Skip to content

Commit be76a20

Browse files
Publish CI inventories to inventory bucket
1 parent 1987f11 commit be76a20

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

terraform/rustc-ci/impl/artifacts.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ module "artifacts_cdn" {
125125
origin_domain_name = aws_s3_bucket.artifacts.bucket_regional_domain_name
126126
}
127127

128+
data "aws_s3_bucket" "inventories" {
129+
bucket = "rust-inventories"
130+
}
131+
128132
resource "aws_s3_bucket_inventory" "artifacts" {
129133
name = "all-objects-csv"
130134
bucket = aws_s3_bucket.artifacts.id
@@ -138,7 +142,7 @@ resource "aws_s3_bucket_inventory" "artifacts" {
138142
}
139143
destination {
140144
bucket {
141-
bucket_arn = aws_s3_bucket.artifacts.arn
145+
bucket_arn = data.aws_s3_bucket.inventories.arn
142146
prefix = aws_s3_bucket.artifacts.id
143147
format = "CSV"
144148
}

0 commit comments

Comments
 (0)