diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 6ae5b07..92a4350 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -3,6 +3,7 @@ definitions: - script: &aws-context echo $INSTANCE_ID_TF $AWS_DEFAULT_REGION $AWS_ACCOUNT_NO $OIDC_ROLE; export AWS_ROLE_ARN=arn:aws:iam::$AWS_ACCOUNT_NO:role/$OIDC_ROLE; + export AWS_ROLE_SESSION_NAME=$OIDC_ROLE; export AWS_WEB_IDENTITY_TOKEN_FILE=$(pwd)/web-identity-token; echo $BITBUCKET_STEP_OIDC_TOKEN > $(pwd)/web-identity-token; export AWS_ACCESS_KEY_ID=$(echo $STS_OUTPUT | jq -r '.Credentials.AccessKeyId');