Provider's assume_role
is silently ignored if role_arn
isn't known during the plan step
#24796
Labels
authentication
Pertains to authentication; to the provider itself of otherwise.
bug
Addresses a defect in current functionality.
Milestone
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Uploaded here: https://drive.google.com/file/d/1MF9jBFBc3wE5bs4hQspJzCF8OFg_U0q1/view?usp=sharing
It's PGP encrypted with Hashicorp's public key (using Keybase).
Expected Behavior
Actual Behavior
It just ignores the
assume_role
block altogether, and creates the provider without assuming a role. This is really bad, as it almost caused me to delete a whole bunch of things that shouldn't be deleted because it suddenly changed the account that the provider was using (when I made a change that caused the assumed role ARN to not be known until the apply step).Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: