Skip to content

Commit dc78bf3

Browse files
committed
fix: decouple RESOURCE_CODEBUILD_ROLE_ARN from SKIP_CREDENTIALS gate
1 parent 2f930e2 commit dc78bf3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

hack/lib/common-env.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ if [ -z "$SKIP_CREDENTIALS" ]; then
2525

2626
IDE_ROLE_NAME="${EKS_CLUSTER_NAME}-ide-role"
2727
IDE_ROLE_ARN="arn:aws:iam::${ACCOUNT_ID}:role/${IDE_ROLE_NAME}"
28-
29-
export RESOURCE_CODEBUILD_ROLE_ARN="${IDE_ROLE_ARN}"
28+
fi
29+
30+
# Set RESOURCE_CODEBUILD_ROLE_ARN if not already provided (e.g. by Workshop Studio)
31+
if [ -z "${RESOURCE_CODEBUILD_ROLE_ARN:-}" ]; then
32+
export RESOURCE_CODEBUILD_ROLE_ARN="${IDE_ROLE_ARN:-}"
3033
fi
3134

3235
export DOCKER_CLI_HINTS="false"

0 commit comments

Comments
 (0)