Created
March 11, 2020 15:33
-
-
Save leepa/5d18b9f55cc762bf9100b8f5dc9dd869 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const cluster = new bottle.BottlerocketCluster(this, 'Cluster'); | |
const ami = ssm.StringParameter.valueForStringParameter(this, '/aws/service/bottlerocket/aws-k8s-1.15/x86_64/latest/image_id'); | |
cluster.node.findAll().forEach(s => { | |
if (s instanceof asg.CfnLaunchConfiguration) { | |
const asg = s as asg.CfnLaunchConfiguration; | |
asg.imageId = ami; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment