Skip to content

Commit 28d07e1

Browse files
committed
fix(vpc-endpoint-consumer): update S3 sync commands to include party ID in bucket paths
Signed-off-by: Ghislain Cheng <ghislain.cheng@zama.ai>
1 parent 3ab784e commit 28d07e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • modules/vpc-endpoint-consumer

modules/vpc-endpoint-consumer/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ resource "null_resource" "sync_s3_bucket" {
262262
set -e
263263
TEMP_DIR=$(mktemp -d)
264264
trap "rm -rf $TEMP_DIR" EXIT
265-
aws s3 sync --region ${data.aws_region.current.region} ${each.value.public_bucket_url} "$TEMP_DIR"
266-
aws s3 sync --region ${data.aws_region.current.region} "$TEMP_DIR" ${local.public_vault_s3_bucket_name}
265+
aws s3 sync --region ${data.aws_region.current.region} ${each.value.public_bucket_url}/PUB-p${each.value.party_id} "$TEMP_DIR"
266+
aws s3 sync --region ${data.aws_region.current.region} "$TEMP_DIR" ${local.public_vault_s3_bucket_name}/PUB-p${each.value.party_id}
267267
EOT
268268
when = create
269269
quiet = true

0 commit comments

Comments
 (0)