Govcloud partition refactor (#235)

This commit is contained in:
Robert Fairburn authored and GitHub committed 2026-05-26 05:18:51 -05:00
1 parent 4763e68d85
commit 95ead0f16d
15 files changed
+61 -13

No files matched your search

+2 -1
View File
@@ -16,6 +16,7 @@ KMS_KEY_ARN = os.environ["KMS_KEY_ARN"]
LOG_PREFIX = os.environ["LOG_PREFIX"]
ACCOUNT_ID = os.environ["ACCOUNT_ID"]
REGION = os.environ["REGION"]
PARTITION = os.environ["PARTITION"]
BATCH_ROLE_ARN = os.environ["BATCH_ROLE_ARN"]
@@ -70,7 +71,7 @@ def handler(event, context):
manifest_etag = put_resp["ETag"]
# Submit S3 Batch Operations job
bucket_arn = f"arn:aws:s3:::{BUCKET}"
bucket_arn = f"arn:{PARTITION}:s3:::{BUCKET}"
job = s3control.create_job(
AccountId=ACCOUNT_ID,
Operation={