Skip to content

Commit

Permalink
feat(cluster): add disableAutoNaming to allow precise cluster naming
Browse files Browse the repository at this point in the history
  • Loading branch information
metral committed Feb 7, 2020
1 parent 4b70178 commit 005b3c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

### Improvements

- feat(cluster): add disableAutoNaming to allow precise cluster naming
[#321](https://github.com/pulumi/pulumi-eks/pull/321)

## 0.18.19 (Released January 27, 2020)

- Unblock CI by disabling debug logging, rm unnecessary tests, and fixing broken tests
[#309](https://github.com/pulumi/pulumi-eks/pull/309)
- feat(cluster): Support public access controls
Expand Down
15 changes: 15 additions & 0 deletions nodejs/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ export function createCore(name: string, args: ClusterOptions, parent: pulumi.Co

// Create the EKS cluster
const eksCluster = new aws.eks.Cluster(`${name}-eksCluster`, {
name: args.disableAutoNaming ? name : undefined,
roleArn: eksRole.apply(r => r.arn),
vpcConfig: {
securityGroupIds: [eksClusterSecurityGroup.id],
Expand Down Expand Up @@ -902,6 +903,20 @@ export interface ClusterOptions {
* The tags to apply to the EKS cluster.
*/
clusterTags?: InputTags;

/**
* Indicates whether or not to disable auto-naming on the cluster's
* physical name. The default is `false` in order to use auto-naming for
* the cluster's name, resulting in a physical name with the format
* `${name}-eksCluster-0123abcd.
*
* Setting this arg to `true` results in a physical name with the format
* `${name}` only.
*
* See for more details:
* https://www.pulumi.com/docs/intro/concepts/programming-model/#autonaming
*/
disableAutoNaming?: boolean;
}

/**
Expand Down

0 comments on commit 005b3c6

Please sign in to comment.