-
Notifications
You must be signed in to change notification settings - Fork 1
Uncomment ECR module and add outputs for repository URL and name #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform Plan (dev)Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.ecr.aws_ecr_lifecycle_policy.api_repository_policy will be created
+ resource "aws_ecr_lifecycle_policy" "api_repository_policy" {
+ id = (known after apply)
+ policy = jsonencode(
{
+ rules = [
+ {
+ action = {
+ type = "expire"
}
+ description = "Manter apenas as últimas 1 imagens para otimizar custos"
+ rulePriority = 1
+ selection = {
+ countNumber = 1
+ countType = "imageCountMoreThan"
+ tagStatus = "untagged"
}
},
+ {
+ action = {
+ type = "expire"
}
+ description = "Manter apenas as últimas 1 imagens taggeadas"
+ rulePriority = 2
+ selection = {
+ countNumber = 1
+ countType = "imageCountMoreThan"
+ tagPrefixList = [
+ "latest",
+ "v",
+ "dev",
+ "prod",
+ "staging",
]
+ tagStatus = "tagged"
}
},
]
}
)
+ region = "us-east-1"
+ registry_id = (known after apply)
+ repository = "tech-floripa-certificates-api-dev"
}
# module.ecr.aws_ecr_lifecycle_policy.builder_repository_policy will be created
+ resource "aws_ecr_lifecycle_policy" "builder_repository_policy" {
+ id = (known after apply)
+ policy = jsonencode(
{
+ rules = [
+ {
+ action = {
+ type = "expire"
}
+ description = "Manter apenas as últimas 1 imagens para otimizar custos"
+ rulePriority = 1
+ selection = {
+ countNumber = 1
+ countType = "imageCountMoreThan"
+ tagStatus = "untagged"
}
},
+ {
+ action = {
+ type = "expire"
}
+ description = "Manter apenas as últimas 1 imagens taggeadas"
+ rulePriority = 2
+ selection = {
+ countNumber = 1
+ countType = "imageCountMoreThan"
+ tagPrefixList = [
+ "latest",
+ "v",
+ "dev",
+ "prod",
+ "staging",
]
+ tagStatus = "tagged"
}
},
]
}
)
+ region = "us-east-1"
+ registry_id = (known after apply)
+ repository = "tech-floripa-certificates-builder-dev"
}
# module.ecr.aws_ecr_lifecycle_policy.notification_repository_policy will be created
+ resource "aws_ecr_lifecycle_policy" "notification_repository_policy" {
+ id = (known after apply)
+ policy = jsonencode(
{
+ rules = [
+ {
+ action = {
+ type = "expire"
}
+ description = "Manter apenas as últimas 1 imagens para otimizar custos"
+ rulePriority = 1
+ selection = {
+ countNumber = 1
+ countType = "imageCountMoreThan"
+ tagStatus = "untagged"
}
},
+ {
+ action = {
+ type = "expire"
}
+ description = "Manter apenas as últimas 1 imagens taggeadas"
+ rulePriority = 2
+ selection = {
+ countNumber = 1
+ countType = "imageCountMoreThan"
+ tagPrefixList = [
+ "latest",
+ "v",
+ "dev",
+ "prod",
+ "staging",
]
+ tagStatus = "tagged"
}
},
]
}
)
+ region = "us-east-1"
+ registry_id = (known after apply)
+ repository = "tech-floripa-certificates-notification-dev"
}
# module.ecr.aws_ecr_repository.api_repository will be created
+ resource "aws_ecr_repository" "api_repository" {
+ arn = (known after apply)
+ force_delete = true
+ id = (known after apply)
+ image_tag_mutability = "MUTABLE"
+ name = "tech-floripa-certificates-api-dev"
+ region = "us-east-1"
+ registry_id = (known after apply)
+ repository_url = (known after apply)
+ tags = {
+ "Name" = "tech-floripa-certificates-api-dev"
+ "Project" = "tech-floripa-certificates"
}
+ tags_all = {
+ "Environment" = "dev"
+ "ManagedBy" = "terraform"
+ "Name" = "tech-floripa-certificates-api-dev"
+ "Project" = "tech-floripa-certificates"
}
+ image_scanning_configuration {
+ scan_on_push = true
}
}
# module.ecr.aws_ecr_repository.builder_repository will be created
+ resource "aws_ecr_repository" "builder_repository" {
+ arn = (known after apply)
+ force_delete = true
+ id = (known after apply)
+ image_tag_mutability = "MUTABLE"
+ name = "tech-floripa-certificates-builder-dev"
+ region = "us-east-1"
+ registry_id = (known after apply)
+ repository_url = (known after apply)
+ tags = {
+ "Name" = "tech-floripa-certificates-builder-dev"
+ "Project" = "tech-floripa-certificates"
}
+ tags_all = {
+ "Environment" = "dev"
+ "ManagedBy" = "terraform"
+ "Name" = "tech-floripa-certificates-builder-dev"
+ "Project" = "tech-floripa-certificates"
}
+ image_scanning_configuration {
+ scan_on_push = true
}
}
# module.ecr.aws_ecr_repository.notification_repository will be created
+ resource "aws_ecr_repository" "notification_repository" {
+ arn = (known after apply)
+ force_delete = true
+ id = (known after apply)
+ image_tag_mutability = "MUTABLE"
+ name = "tech-floripa-certificates-notification-dev"
+ region = "us-east-1"
+ registry_id = (known after apply)
+ repository_url = (known after apply)
+ tags = {
+ "Name" = "tech-floripa-certificates-notification-dev"
+ "Project" = "tech-floripa-certificates"
}
+ tags_all = {
+ "Environment" = "dev"
+ "ManagedBy" = "terraform"
+ "Name" = "tech-floripa-certificates-notification-dev"
+ "Project" = "tech-floripa-certificates"
}
+ image_scanning_configuration {
+ scan_on_push = true
}
}
Plan: 6 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ ecr_api_repository_name = "tech-floripa-certificates-api-dev"
+ ecr_repository_url = (known after apply) |
Terraform Plan (shared)No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uncomment the ECR module and introduce outputs for the ECR repository URL and name to enhance visibility and accessibility of these values.