Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cluster): allow optional configuration of cluster name #322

Merged
merged 1 commit into from
Feb 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
[#322](https://github.com/pulumi/pulumi-eks/pull/322)
- 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
*/
metral marked this conversation as resolved.
Show resolved Hide resolved
name?: pulumi.Input<string>;
}

/**
Expand Down