From b76b34dabe1a3a0cfc901531b79a0cf266f61611 Mon Sep 17 00:00:00 2001 From: Andre Wlodkovski Date: Tue, 2 Apr 2024 19:52:29 -0300 Subject: [PATCH] Add AWS ECR Public repository to terraform --- terraform/main.tf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/terraform/main.tf b/terraform/main.tf index d725c87..5e328b8 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -336,6 +336,18 @@ resource "aws_iam_role_policy_attachment" "eks_cluster_vpc_policy_attachment" { } # EKS Resources +resource "aws_ecrpublic_repository" "ecr_authentication_api" { + repository_name = "authentication-api" + + tags = { + "Environment" = var.infra_env + "Name" = "authentication-api" + "Project" = "authentication-app" + "ManagedBy" = "terraform" + "Organization" = "andrewlod" + } +} + resource "aws_eks_cluster" "authentication_cluster" { name = "authentication-cluster-${var.infra_env}" role_arn = aws_iam_role.eks_cluster_role.arn