Skip to content

Commit

Permalink
add option for api or configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeromano committed Feb 27, 2024
1 parent d008531 commit 9d453db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pulumi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ const eksCluster = new eks.Cluster(`${stackName}-cluster`, {
maxSize: 50,
desiredCapacity: 10,
},
},{
transformations: [args => {
if (args.type === "aws:eks/cluster:Cluster") {
args.props["accessConfig"] = {
authenticationMode: "API_AND_CONFIG_MAP"
};
}
return undefined;
}]
})

outputs.clusterName = eksCluster.eksCluster.name
Expand Down

0 comments on commit 9d453db

Please sign in to comment.