Skip to content

Conversation

@BrandonLWhite
Copy link
Contributor

@BrandonLWhite BrandonLWhite commented Oct 28, 2022

This PR adds two things related to the IAM role name:

  • You can specify your own name via iam_role_name input variable.
  • If the autogenerated name exceeds the AWS 64 character limit, it is sha256 hashed and that string is used instead.

This is backward compatible because the default is the generated name, same as before. Further, no existing generated name could have exceeded 64 characters therefore the hash fallback will not affect existing projects.

I'm having difficulty executing the tests, otherwise I would most certainly add to the test coverage.

Ensure generated role name does not exceed 64 characters by falling back to hash256
@moritzzimmer moritzzimmer linked an issue Nov 2, 2022 that may be closed by this pull request
@moritzzimmer moritzzimmer added the 💅 enhancement New feature or request label Nov 2, 2022
Copy link
Owner

@moritzzimmer moritzzimmer left a comment

Choose a reason for hiding this comment

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

@BrandonLWhite thx for this PR! I would change the name generation a bit, otherwise 👍

@moritzzimmer
Copy link
Owner

@BrandonLWhite what do you think about the proposed changes?

@BrandonLWhite
Copy link
Contributor Author

Sure, no problem. I will try to get a commit with the changes today.

Use coalesce function
@moritzzimmer moritzzimmer merged commit 7cca8e2 into moritzzimmer:main Nov 9, 2022
@moritzzimmer
Copy link
Owner

this has been released with v6.6.0 - thx for the contribution @BrandonLWhite!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💅 enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow custom IAM role name

2 participants