You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the following error message when the number of resources to create is known at plan
│ The "for_each" value depends on resource attributes that cannot be
│ determined until apply, so Terraform cannot predict how many instances will
│ be created. To work around this, use the -target argument to first apply
│ only the resources that the for_each depends on.
✋ I have searched the open/closed issues and my issue is not listed.
AWS SSO Group would be successfully assigned with the specified Accounts and Permission Sets
Actual behavior
│ The "for_each" value depends on resource attributes that cannot be
│ determined until apply, so Terraform cannot predict how many instances will
│ be created. To work around this, use the -target argument to first apply
│ only the resources that the for_each depends on.
Terminal Output Screenshot(s)
Additional context
If I use -target as suggested elsewhere (4149) to provision the permission set first, then the assignments works. However, the explanations I've seen for this error is that Terraform is unable to determine the number of resources to provision at plan so it fails. But in this case, while the arn of the permission set would be unknown, Terraform can determine the number of assignments to create.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
I am getting the following error message when the number of resources to create is known at plan
Versions
Module version [Required]:
Terraform version:
Terraform v1.1.7
Provider version(s):
registry.terraform.io/hashicorp/aws v4.4.0
Reproduction Code [Required]
Steps to reproduce the behavior:
terraform apply
Expected behavior
AWS SSO Group would be successfully assigned with the specified Accounts and Permission Sets
Actual behavior
Terminal Output Screenshot(s)
Additional context
If I use -target as suggested elsewhere (4149) to provision the permission set first, then the assignments works. However, the explanations I've seen for this error is that Terraform is unable to determine the number of resources to provision at plan so it fails. But in this case, while the arn of the permission set would be unknown, Terraform can determine the number of assignments to create.
The text was updated successfully, but these errors were encountered: