Skip to content

Conversation

@mikalinnanoja-rovio
Copy link

@mikalinnanoja-rovio mikalinnanoja-rovio commented Jan 30, 2025

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 readme outputs 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.

@mikalinnanoja-rovio mikalinnanoja-rovio requested review from a team as code owners January 30, 2025 11:14
@mergify mergify bot added the triage Needs triage label Jan 30, 2025
@RoseSecurity
Copy link

/terratest

Copy link

@RoseSecurity RoseSecurity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @Nuru and @Gowiem on this issue. The generated configuration should be removed as it's hard to maintain. This is a fair temporary fix while we work towards that resolution though

@nitrocode nitrocode added the patch A minor, backward compatible change label Jun 22, 2025
%{~ if role_arn != "" ~}

assume_role {
assume_role = {
Copy link
Member

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 ?

@nitrocode
Copy link
Member

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.

@mergify
Copy link

mergify bot commented Sep 17, 2025

💥 This pull request now has conflicts. Could you fix it @mikalinnanoja-rovio? 🙏

@mergify mergify bot added the conflict This PR has conflicts label Sep 17, 2025
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.
@mikalinnanoja-rovio mikalinnanoja-rovio force-pushed the feature_assume_role_block_syntax branch from 4260e89 to 5bd566f Compare September 18, 2025 11:28
@mergify mergify bot removed the conflict This PR has conflicts label Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch A minor, backward compatible change triage Needs triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants