Skip to content

fix: limit cluster_name when creating fargate IAM Role#1270

Merged
barryib merged 2 commits into
terraform-aws-modules:masterfrom
gugacavalieri:fix-fargate-module-cluster-name-limit
Apr 19, 2021
Merged

fix: limit cluster_name when creating fargate IAM Role#1270
barryib merged 2 commits into
terraform-aws-modules:masterfrom
gugacavalieri:fix-fargate-module-cluster-name-limit

Conversation

@gugacavalieri

@gugacavalieri gugacavalieri commented Mar 9, 2021

Copy link
Copy Markdown
Contributor

PR o'clock

Description

This PR resolves #1268 😄

This will always limit the aws_iam_role.eks_fargate_pod.name_prefix attribute to 32 chars. If the cluster_name variable is shorter than 24 chars, it will use the full string instead.

Checklist

@gugacavalieri gugacavalieri changed the title limit cluster_name when creating fargate IAM Role fix: limit cluster_name when creating fargate IAM Role Mar 9, 2021
@gugacavalieri gugacavalieri marked this pull request as ready for review March 9, 2021 19:03
@gugacavalieri

Copy link
Copy Markdown
Contributor Author

Thanks @stijndehaes ! I don't know why CI is failing on the Lint / Docs step tho ...

@barryib barryib merged commit f8bdea1 into terraform-aws-modules:master Apr 19, 2021
barryib pushed a commit to barryib/terraform-aws-eks that referenced this pull request May 20, 2021
@github-actions

Copy link
Copy Markdown

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fargate aws_iam_role throwing error due to long cluster_name

3 participants