Skip to content

[install/infra] Fixup k3s database unique IDs, GKE unique ID syntax, EKS long branch name IAM role errors#12321

Merged
roboquat merged 2 commits into
nvn/sh-preview-flagfrom
alt/sh-preview-flag/tf-fixups
Aug 24, 2022
Merged

[install/infra] Fixup k3s database unique IDs, GKE unique ID syntax, EKS long branch name IAM role errors#12321
roboquat merged 2 commits into
nvn/sh-preview-flagfrom
alt/sh-preview-flag/tf-fixups

Conversation

@adrienthebo

Copy link
Copy Markdown
Contributor

No description provided.

…suffix

EKS limits [iam role prefix lengths] to 38 characters, as the IAM role
length max is 64 characters and the random 26 character suffix eats up
most of the string length. As we're naming our clusters based on the
current branch these names could become quite long.

This commit removes this issue by creating a specific IAM role name and
creating our own unique IDs.

[iam role prefix lengths]: https://github.com/hashicorp/terraform-provider-aws/blob/v4.27.0/internal/service/iam/role.go#L29-L30
@adrienthebo
adrienthebo requested review from a team and nandajavarma August 23, 2022 22:59
@github-actions github-actions Bot added the team: delivery Issue belongs to the self-hosted team label Aug 23, 2022
@adrienthebo

Copy link
Copy Markdown
Contributor Author

/release-note-none

@nandajavarma nandajavarma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for making this changes Adrien! I only fixed it on GCP and missed on other clusters 🤦‍♀️

@roboquat
roboquat merged commit 7d61faf into nvn/sh-preview-flag Aug 24, 2022
@roboquat
roboquat deleted the alt/sh-preview-flag/tf-fixups branch August 24, 2022 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none size/S team: delivery Issue belongs to the self-hosted team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants