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

for_each is not working in provider block #36379

Open
shubhamyadav20 opened this issue Jan 22, 2025 · 0 comments
Open

for_each is not working in provider block #36379

shubhamyadav20 opened this issue Jan 22, 2025 · 0 comments
Labels
enhancement new new issue not yet triaged

Comments

@shubhamyadav20
Copy link

Terraform Version

v1.9.8

Use Cases

I am having 15 aws account with 6 aws resources needs to deploy on 15 account. currently I have established the connection between 15 aws account via cross account role . but provider block is not working for_each.

Attempted Solutions

provider "aws"
{

for_each = var.accounts
assume_role = "each.value.role_arn"
}

kindly help with this

I have 6 root modules in which i am deploying the resources. i don't want to pass 6 root modules for each account. it should be dynamic to assume all 15 accounts and deploy all 6 resource

Proposal

No response

References

No response

@shubhamyadav20 shubhamyadav20 added enhancement new new issue not yet triaged labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

1 participant