Skip to content

Commit

Permalink
feat(cluster): allow optional configuration of cluster name
Browse files Browse the repository at this point in the history
  • Loading branch information
metral committed Feb 13, 2020
1 parent a8b1749 commit edb0865
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### Improvements

- feat(cluster): allow optional configuration of cluster name
[#321](https://github.com/pulumi/pulumi-eks/pull/321)
- feat(identity): add support to setup OIDC provider
[#320](https://github.com/pulumi/pulumi-eks/pull/320)

Expand Down
12 changes: 12 additions & 0 deletions nodejs/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,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.name,
roleArn: eksRole.apply(r => r.arn),
vpcConfig: {
securityGroupIds: [eksClusterSecurityGroup.id],
Expand Down Expand Up @@ -931,6 +932,17 @@ export interface ClusterOptions {
* - https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/eks/#enabling-iam-roles-for-service-accounts
*/
createOidcProvider?: pulumi.Input<boolean>;

/**
* The cluster's physical resource name.
*
* If not specified, the default is to use auto-naming for the cluster's
* name, resulting in a physical name with the format `${name}-eksCluster-0123abcd`.
*
* See for more details:
* https://www.pulumi.com/docs/intro/concepts/programming-model/#autonaming
*/
name?: pulumi.Input<string>;
}

/**
Expand Down

0 comments on commit edb0865

Please sign in to comment.