Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nodegroup): add opts to use the recommended AMIs from the SSM store
Add new `NodeGroupOptions` to enable the use of the latest recommended AMI IDs from the AWS SSM Parameter Store. - `latestAmi`: use the latest recommended EKS Optimized Linux AMI. - `gpu`: use the latest recommended EKS Optimized Linux AMI with GPU support. See for more details: - https://docs.aws.amazon.com/eks/latest/userguide/retrieve-ami-id.html - https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html - https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html
- Loading branch information
Showing
9 changed files
with
159 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: test-nodegroup-options | ||
description: Tests that validate and verify working nodegroup options | ||
runtime: nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# tests/nodegroup-options | ||
|
||
Tests that validate and verify working nodegroup options. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as eks from "@pulumi/eks"; | ||
import * as pulumi from "@pulumi/pulumi"; | ||
|
||
const projectName = pulumi.getProject(); | ||
|
||
const cluster1 = new eks.Cluster(`${projectName}-1`, { | ||
deployDashboard: false, | ||
latestAmi: true, // use the latest recommended AMI from AWS | ||
}); | ||
|
||
const cluster2 = new eks.Cluster(`${projectName}-2`, { | ||
deployDashboard: false, | ||
latestAmi: true, // use the latest recommended AMI from AWS | ||
gpu: true, // opt-in to use the latest recommended AMI from AWS with GPU support | ||
}); | ||
|
||
// Export the clusters' kubeconfig. | ||
export const kubeconfig1 = cluster1.kubeconfig; | ||
export const kubeconfig2 = cluster2.kubeconfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "example-nodegroup-options", | ||
"devDependencies": { | ||
"typescript": "^3.0.0" | ||
}, | ||
"dependencies": { | ||
"@pulumi/pulumi": "^1.0.0", | ||
"@pulumi/eks": "latest" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"compilerOptions": { | ||
"outDir": "bin", | ||
"target": "es6", | ||
"lib": [ | ||
"es6" | ||
], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"stripInternal": true, | ||
"experimentalDecorators": true, | ||
"pretty": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noImplicitAny": true, | ||
"noImplicitReturns": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"strictNullChecks": true | ||
}, | ||
"files": [ | ||
"index.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters