Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_aws_account_id throttling #3138

Open
chell0veck opened this issue May 15, 2024 · 0 comments
Open

get_aws_account_id throttling #3138

chell0veck opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@chell0veck
Copy link

Describe the bug

Often error

time=2024-05-15T08:10:46Z level=error msg=Module $module_name has finished with an error: Cannot process module Module $module_name (excluded: false, assume applied: false, dependencies: [$dependency1, $dependency2]) because one of its dependencies, Module $module_name (excluded: false, assume applied: false, dependencies: []), finished with an error: $path_to_root/terragrunt.hcl:242,50-69: Error in function call; Call to function "get_aws_account_id" failed: Error finding AWS credentials (did you set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables?): NoCredentialProviders: no valid providers in chain. Deprecated.

Steps To Reproduce

Sorry can not push useful skeleton but the structure looks like:

-- terragrunt.hcl
..|-- module
......|-- submodule 1
............|-- terragrunt.hcl
......|-- submodule n
............|-- terragrunt.hcl
......|-- submodule 153
............|-- terragrunt.hcl

  1. Executed on $module level with terragrunt run-all $command
  2. In total 153 child terragrunt files
  3. root terragrunt files contains 23 get_aws_account_id() invocations in inputs section.

Expected behavior

Terragrunt execution of 153 modules with 23 get_aws_account_id in root terragrunt root file inputs should succeed.

Nice to haves

grep by log

grep 'Call to function "get_aws_account_id"' bdf90eb6-ffe4-489c-9bce-1bafb2872dde~ | wc -l
281

Versions

  • Terragrunt version: 0.53.8
  • Terraform version: 1.5.7
  • Environment details: Ubuntu 20.04, aws/codebuild/standard:7.0, 7 GB memory, 4 vCPUs

Additional context

So I've moved get_aws_account_id() to locals and used in inputs as variable. That looks helped.
Although it would be great to get some professional confirmation and maybe recommendations how to manage such type of cases.

@chell0veck chell0veck added the bug Something isn't working label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant