We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 150835e commit d422c78Copy full SHA for d422c78
terraform/services/ecr-cleanup/main.tf
@@ -8,10 +8,21 @@ locals {
8
}
9
10
11
+module "standards" {
12
+ source = "github.com/CMSgov/cdap//terraform/modules/standards?ref=####"
13
+ providers = { aws = aws, aws.secondary = aws.secondary }
14
+ app = "cdap"
15
+ env = var.env
16
+ root_module = "https://github.com/CMSgov/cdap/tree/main/terraform/services/ecr-cleanup"
17
+ service = ecr-cleanup
18
+}
19
20
data "aws_caller_identity" "current" {}
21
data "aws_region" "current" {}
-
22
+data "aws_ecr_repository" "service" {
23
+ for_each = toset(var.repositories[module.standards.env])
24
+ name = each.key
25
26
data "aws_iam_policy_document" "ecr_cleanup" {
27
statement {
28
sid = "ECRAccess"
0 commit comments