Skip to content

s3 backend creation issue with credential_process + source_profile + role_arn #864

@reegnz

Description

@reegnz

I am trying to use terragrunt with aws-vault but my configuration seems to fail with terragrunt (and terraform), but works fine for the cli for example.

I believe that this might be an issue with not using the latest SDK, so I would try to upgrade that first and see if that fixes the issue.

My aws config:

[profile work]
region=us-east-1
credential_process = aws-vault exec work --json --prompt=osascript

[profile playground-AdminRole]
region=us-east-1
source_profile=work
role_arn=arn:aws:iam::111111111111:role/AdminRole
➜ terragrunt apply
[terragrunt] 2019/09/13 13:14:18 Reading Terragrunt config file at /Users/reegnz/github/aws-infra-live/playground/global/domain/terragrunt.hcl
[terragrunt] [/Users/reegnz/github/aws-infra-live/playground/global/domain] 2019/09/13 13:14:18 Running command: terraform --version
[terragrunt] 2019/09/13 13:14:19 Terraform files in /Users/reegnz/github/aws-infra-live/playground/global/domain/.terragrunt-cache/YHAiOZmsTQ0ZYoYx4EKbpRrLc6U/atLwOwOfUS0c8RxP5eXSzcffHRw/domain are up to date. Will not download again.
[terragrunt] 2019/09/13 13:14:19 Copying files from /Users/reegnz/aws-infra-live/playground/global/domain into /Users/reegnz/github/aws-infra-live/playground/global/domain/.terragrunt-cache/YHAiOZmsTQ0ZYoYx4EKbpRrLc6U/atLwOwOfUS0c8RxP5eXSzcffHRw/domain
[terragrunt] 2019/09/13 13:14:19 Setting working directory to /Users/reegnz/aws-infra-live/playground/global/domain/.terragrunt-cache/YHAiOZmsTQ0ZYoYx4EKbpRrLc6U/atLwOwOfUS0c8RxP5eXSzcffHRw/domain
[terragrunt] 2019/09/13 13:14:19 Error initializing session: SharedConfigAssumeRoleError: failed to load assume role for arn:aws:iam::946862322396:role/AdminRole, source profile has no shared credentials
[terragrunt] 2019/09/13 13:14:19 Unable to determine underlying exit code, so Terragrunt will exit with error code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions