CircleCI-Public / CircleCI-Public/aws-cli-orb

[Bug] v5.x.x vs v4.x.x `aws-cli/setup` changes broke Terragrunt setup

Open
#236 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
61
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

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

```
make plan
```

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.