[Bug]: aws_cognito_resource_server requires two runs of apply to update scope_identifiers attribute after first deploy #36253
Labels
bug
Addresses a defect in current functionality.
service/cognitoidp
Issues and PRs that pertain to the cognitoidp service.
Terraform Core Version
1.7.4
AWS Provider Version
5.39.1
Affected Resource(s)
aws_cognito_resource_server
Expected Behavior
When running
terraform apply
after adding new scopes the "scope_identifiers" attribute should be updated to reflect the new scopesActual Behavior
The "scope_identifiers" only updates on a second run of
terraform apply
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Sample repo: https://github.com/violet-hall/test-tf-cognito
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
Created the sample repo following the docs. Noting several previous issues about the correct way to add more than one scope
Noting I don't know go so will probably cause more problems than I solve if I attempt a fix
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: