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
Error: Missing attribute separator
│
│ on -backend-config="assume_role={role_arn=arn:xxxxxx}" line 1:
│ (source code not available)
│
│ Expected a newline or comma to mark the beginning of the next attribute.
Expected Behavior
I use the “partial configuration” system in cli to supply parameters to my backend dynamically during terraform init.
Thanks for reporting this, @olahouze. This was a planned change to centralize all parameters for assuming a role under assume_role. Did you get any deprecation warnings when using just role_arn? If not, that's a bug with warnings being passed from state backends to the user.
Based on the error message you're getting in 1.10,
Expected a newline or comma to mark the beginning of the next attribute
there's a bug with handing object values passed on the command line.
Terraform Version
Terraform Configuration Files
Debug Output
Error: Missing attribute separator
│
│ on -backend-config="assume_role={role_arn=arn:xxxxxx}" line 1:
│ (source code not available)
│
│ Expected a newline or comma to mark the beginning of the next attribute.
Expected Behavior
I use the “partial configuration” system in cli to supply parameters to my backend dynamically during terraform init.
This system only takes into account key/value pairs in cli mode (https://developer.hashicorp.com/terraform/language/backend#command-line-key-value-pairs)
Since the latest version of terraform, when I use an S3 as my backend, I have to specify the following parameters for assumes roles
The old way of working with only the “role_arn” field is no longer supported.
The cli backend configuration should be able to take in charge key/value pairs whose vlue is an object (in this case, a map).
Actual Behavior
I can therefore no longer dynamically provide the role to be used for my cli backend
Steps to Reproduce
terraform init --backend-config="key=xxx" -backend-config="assume_role={role_arn=arn:xxxx}"
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: