Open tonglil opened 2 months ago
Thanks for this request!
Hi @tonglil
I'm not clear, but it sounds from your description like you had session_name
set but did not have role_arn
set, is that correct? If you're not assuming a role, session_name
is ignored. If you are assuming a role, the role_arn
is required.
If that is the case, you should remove session_name
from your backend configuration.
If not, can you please share your existing backend configuration?
Terraform Version
Affected Pages
https://developer.hashicorp.com/terraform/language/settings/backends/s3#assume-role-configuration
What is the docs issue?
role_arn
use to be optional, but is now made required when updating to the new nested syntax.Why is this so, when it use to be possible to just specify
session_name
? How do I migrate from the deprecated parameter without knowing therole_arn
to specify?Proposal
Allow
role_arn
to be optional in the nested argument format.References