Skip to content

Commit 080d3d8

Browse files
committed
iam prefix
1 parent 01ef81a commit 080d3d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

terragrunt/modules/rustc-ci/artifacts.tf

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ locals {
33

44
rustc_builds = "rustc-builds"
55
rustc_builds_alt = "rustc-builds-alt"
6+
iam_prefix = "rustc-ci--rust-lang--rust"
67

78
s3_policy = jsonencode({
89
Version = "2012-10-17"
@@ -110,7 +111,7 @@ module "artifacts_user" {
110111
org = "rust-lang"
111112
repo = "rust"
112113

113-
user_name = "rustc-ci--rust-lang--rust--artifacts"
114+
user_name = "${locals.iam_prefix}--artifacts"
114115
env_prefix = "ARTIFACTS"
115116
}
116117

@@ -162,7 +163,7 @@ resource "aws_s3_bucket_inventory" "artifacts" {
162163
}
163164

164165
resource "aws_iam_role" "try_builds" {
165-
name = "rustc-ci--rust-lang--rust--try-role"
166+
name = "${locals.iam_prefix}--try-role"
166167

167168
assume_role_policy = jsonencode({
168169
Version = "2012-10-17"

0 commit comments

Comments
 (0)