Skip to content

Commit

Permalink
Add AWS ECR Public repository to terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlod committed Apr 2, 2024
1 parent dda3339 commit b76b34d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b76b34d

Please sign in to comment.