gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
7.78k stars 959 forks source link

Terragrunt AWS SSO error #2007

Open yossarian04 opened 2 years ago

yossarian04 commented 2 years ago

When I try to run terragrunt against my named profile that is configured with AWS SSO, I receive the below error:

`ERRO[0005] 1 error occurred:

I'm setting the provider in my terragrunt.hcl file # Configure Terragrunt to automatically store tfstate files in an S3 bucket remote_state { backend = "s3" config = { encrypt = true bucket = local.tf_rs_bucket key = local.tf_rs_bucket_key region = local.aws_region profile = local.aws_profile dynamodb_table = local.tf_rs_table } //generate = { // path = "backend.tf" // if_exists = "overwrite" //} }

I then add an OS environment variable with that named profile. The cli works fine, but Terragrunt fails. I'm using Terragrunt version v0.36.1 and Terraform version 0.14.11

It's like Terragrunt doesn't know where to look for the credentials. Previous tickets around this issue say that this should work?

denis256 commented 2 years ago

Hi, can be shared output of execution with --terragrunt-log-level debug, maybe it will show more details about execution flow