Adds initial files]

This commit is contained in:
2026-01-20 13:48:13 -03:00
parent 12176c50c1
commit 6026870c5c
16 changed files with 1316 additions and 0 deletions

32
infra/ecr/main.tf Normal file
View File

@@ -0,0 +1,32 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 6.27"
}
}
}
provider "aws" {
region = var.aws_region
}
resource "aws_ecr_repository" "app" {
name = var.repository_name
image_tag_mutability = "MUTABLE" # or "IMMUTABLE"
image_scanning_configuration {
scan_on_push = true
}
encryption_configuration {
encryption_type = "AES256" # or "KMS" for customer managed keys
}
tags = {
Name = var.repository_name
Environment = var.environment
ManagedBy = "Terraform"
}
}