Skip to content

Conversation

@linki
Copy link
Member

@linki linki commented Sep 18, 2024

This is a less invasive version of #817.

It changes the eksID to just be the LocalID of the cluster (rather than also including region and AWS account ID which is redundant because it's already part of the ARN). LocalID should be unique in the account and if we go with the pattern Alias == LocalID then it's kind of implied.

When creating clusters via aws-account-creator with --local-id=kube-1 (what we do today) this would lead to kube-1 as both the CF Stack and EKS cluster name which seems reasonable.

If we start to create EKS clusters where the localID is equal to alias (e.g. --local-id=teapot) this would lead to teapot as both the CF Stack and EKS cluster name. With this it's more understandable how a second cluster in the same account can live side by side, e.g --local-id=linki-test will result in linki-test as both the CF Stack and EKS cluster name.

In practice I think it makes sense to create EKS clusters with, e.g. --local-id=cluster-teapot. This would lead to cluster-teapot as both the CF Stack and EKS cluster name and avoids clashes with another CF Stack that's called teapot. We do the same for the node pool Stacks, where we prefix each of them with nodepool-.

In any case, with this change, we can still pursue both variants.

@linki linki added the minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call. label Sep 18, 2024
@linki
Copy link
Member Author

linki commented Sep 18, 2024

👍

1 similar comment
@demonCoder95
Copy link
Member

👍

@linki linki merged commit 6695a52 into master Sep 18, 2024
3 checks passed
@linki linki deleted the use-local-id-for-eks-id branch September 18, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

minor Minor changes, e.g. low risk config updates, changes that do not introduce a new API call.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants