Skip to content

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

Description

@carlosjgp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions