We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb6623c + 85d27ab commit 70c4272Copy full SHA for 70c4272
terraform/bootstrap/secrets/main.tf
@@ -6,9 +6,13 @@ terraform {
6
required_version = ">= 0.12"
7
}
8
9
+locals {
10
+ project = "<% .Name %>"
11
+}
12
+
13
# Create the CI User
14
resource "aws_iam_user" "ci_user" {
- name = "${var.project}-ci-user"
15
+ name = "${local.project}-ci-user"
16
17
18
# Create a keypair to be used by CI systems
terraform/modules/environment/main.tf
@@ -97,5 +97,5 @@ module "ecr" {
97
98
environment = var.environment
99
ecr_repositories = var.ecr_repositories
100
- ecr_principals = [aws_iam_user.ci_user.arn]
+ ecr_principals = [data.aws_iam_user.ci_user.arn]
101
0 commit comments