From 043d173bdbe87a440345fd2ca14c7731a101b44d Mon Sep 17 00:00:00 2001 From: sebas_correa Date: Wed, 29 Apr 2026 11:37:17 -0300 Subject: [PATCH] fix: propagate bucket_name/arn/region from build_context to link workflows Declare BUCKET_NAME, BUCKET_ARN, and BUCKET_REGION as outputs of the build_context step in link, link-update, and unlink workflows so they are available as environment variables for build_permissions_context, which previously failed with "bucket_name/bucket_arn not found in service attributes" when those values weren't in $CONTEXT. Co-Authored-By: Claude Sonnet 4.6 --- aws-s3-bucket/workflows/aws/link-update.yaml | 6 ++++++ aws-s3-bucket/workflows/aws/link.yaml | 6 ++++++ aws-s3-bucket/workflows/aws/unlink.yaml | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/aws-s3-bucket/workflows/aws/link-update.yaml b/aws-s3-bucket/workflows/aws/link-update.yaml index baed09e..61dd8c2 100644 --- a/aws-s3-bucket/workflows/aws/link-update.yaml +++ b/aws-s3-bucket/workflows/aws/link-update.yaml @@ -21,6 +21,12 @@ steps: type: environment - name: LINK_PATH_PREFIX type: environment + - name: BUCKET_NAME + type: environment + - name: BUCKET_ARN + type: environment + - name: BUCKET_REGION + type: environment - name: build permissions context type: script diff --git a/aws-s3-bucket/workflows/aws/link.yaml b/aws-s3-bucket/workflows/aws/link.yaml index baed09e..61dd8c2 100644 --- a/aws-s3-bucket/workflows/aws/link.yaml +++ b/aws-s3-bucket/workflows/aws/link.yaml @@ -21,6 +21,12 @@ steps: type: environment - name: LINK_PATH_PREFIX type: environment + - name: BUCKET_NAME + type: environment + - name: BUCKET_ARN + type: environment + - name: BUCKET_REGION + type: environment - name: build permissions context type: script diff --git a/aws-s3-bucket/workflows/aws/unlink.yaml b/aws-s3-bucket/workflows/aws/unlink.yaml index 8e00019..7c4588e 100644 --- a/aws-s3-bucket/workflows/aws/unlink.yaml +++ b/aws-s3-bucket/workflows/aws/unlink.yaml @@ -21,6 +21,12 @@ steps: type: environment - name: LINK_PATH_PREFIX type: environment + - name: BUCKET_NAME + type: environment + - name: BUCKET_ARN + type: environment + - name: BUCKET_REGION + type: environment - name: build permissions context type: script