-
-
Notifications
You must be signed in to change notification settings - Fork 187
Fix assume_role handling when role_arn is given #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix assume_role handling when role_arn is given #185
Conversation
|
/terratest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| %{~ if role_arn != "" ~} | ||
|
|
||
| assume_role { | ||
| assume_role = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't an if statement be used here to add the equal sign if the terraform version is greater than 1.6 ?
|
The 1.6.0 minimum seems almost accurate. According to this reference, it looks like 1.6.1 is needed for the equal sign requirement. |
|
💥 This pull request now has conflicts. Could you fix it @mikalinnanoja-rovio? 🙏 |
There is a syntax error in the assume_role block with missing equals sign. As this part has anyway required newer terraform to work, document it in variable definition of role_arn input.
4260e89 to
5bd566f
Compare
There is a syntax error in the assume_role block with missing equals sign.
As this part has anyway required newer terraform to work, document it in variable definition of role_arn input.
Related to
I did not commit
make init && make readmeoutputs because there are some amount of previous unrelated changes it generates.Tested on terraform 1.6.6 and 1.10.5 with latest 5.x provider.