Open ezienecker opened 4 months ago
i have the same issue, since I upgraded to the last terragrunt version this is failing
@coc-monpasse from what version do you upgrade? I tried with version 0.54.0 and it's not working too
Hi I fixed the issue updating terraform and terrgrunt to the last versions, in your backend configuration add the profile. In my case it fixed the issue
Unfortunately, this did not solve the problem.
I am also running into this on 0.55.13.
We're using Jenkins and the AWS Pipeline plugin (jenkinsci/pipeline-aws-plugin) which provides the credentials to our build session as Environment Variables only. There is no profile on the agents at any time.
We're also doing role assumption and terragrunt is failing to assume the role properly as a result.
I'm facing the same issue using access_key and secret_key to authenticate the backend. I noticed that if I add the disable_init feature in the backend, terragrunt can init and plan until I change something and then I get an error. This makes me think that the modules are properly getting the authentication because of the generated backend block and the error comes from the terragrunt binary.
remote_state {
backend = "s3"
disable_init = true
. . .
}
Describe the bug I use AWS S3 as backend. I use AWS SSO (not the legacy version of SSO) as my authentication method. In addition, I use multiple AWS accounts (development, testing, production), which means I work with multiple profiles (development, testing, production) in my AWS Config (~/.aws/config). This means that, depending on the environment, I have to call an
export AWS_PROFILE="development"
in the current shell so that I can run terraform or terragrunt without errors. Since this can be very error-prone under certain circumstances, I was looking for an option that would save me this. I came across the section "Keep your CLI flags DRY". I have configured this so that in my opinion this envrionment variable is set accordingly before the defined commands, but unfortunately I keep running into the same error (see below). I am not sure if this does not work in the current terragrunt version or if I have misunderstood the feature.If I execute
export AWS_PROFILE="development"
in the shell before using terragrunt, terragrunt definitely works.To Reproduce
terragrunt run-all init
Expected behavior I expect that I don't have to
export AWS_PROFILE="development"
in the shell so that I can connect against the AWS S3 backend. I expect the environment variables from the extra_arguments to be set correctly.Nice to have Terminal output
Versions
Additional context