Skip to content

Commit

Permalink
tests(mgdNodeGroup): add example that uses simplest API
Browse files Browse the repository at this point in the history
  • Loading branch information
metral committed Feb 12, 2020
1 parent f7de4fc commit ff12982
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nodejs/eks/examples/managed-nodegroups/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const cluster = new eks.Cluster("example-managed-nodegroups", {
// Export the cluster's kubeconfig.
export const kubeconfig = cluster.kubeconfig;

// Create a simple AWS managed node group using a cluster as input.
const managedNodeGroup0 = eks.createManagedNodeGroup("example-managed-ng0", {
cluster: cluster,
nodeRole: role1,
});

// Create a simple AWS managed node group using a cluster as input.
const managedNodeGroup1 = eks.createManagedNodeGroup("example-managed-ng1", {
cluster: cluster,
Expand Down

0 comments on commit ff12982

Please sign in to comment.