Using the orb version circleci/aws-cli@4 the pipeline works but when upgraded to @5 it fails
An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.
the configuration is the same
- aws-cli/setup:
profile_name: terraform
role_arn: arn:aws:iam::111111111111:role/circleci-terragrunt
role_session_name: ${CIRCLE_PROJECT_REPONAME}
region: eu-west-1
the command is the same
where plan looks like
export AWS_PROFILE=terraform; \
export ENV=my-env; \
export ACCOUNT_ALIAS=some-alias \
export REGION=eu-west-1; \
export LAYER=github; \
terragrunt $@ \
--working-dir ./$${ENV}/$${ACCOUNT_ALIAS}/$${REGION}/$${LAYER} \
--non-interactive \
--queue-include-external \
--provider-cache --log-level debug \
--provider-cache-dir ./.terragrunt-cache
Using the orb version
circleci/aws-cli@4the pipeline works but when upgraded to@5it failsthe configuration is the same
the command is the same
where
planlooks like