Pulumi shouldn't fetch the latest AMI by default
See original GitHub issueWhen using pulumi update with an EKS cluster, pulumi’s default behavior is to always fetch the latest version of the EKS AMI if nodeAmiId isn’t specified.
While this behavior can be convenient, unexpected upgrades to the EKS AMI can cause unexpected downtime or break the cluster entirely.
For production situations, it’s strongly recommended that you explicitly pass the nodeAmiId parameter so that you have full control over when your nodes upgrade.
pulumi-eks’s default behavior should enforce best practices. I propose the following:
- Make
nodeAmiIda required parameter (force users to make a conscious decision about the AMI that they want to use). - Provide the existing fetch behavior only as a convenience function for users that don’t need fine control over when their cluster upgrades.
- Warn people in the documentation for the above helper function about not using this in production.
See https://pulumi-community.slack.com/archives/C84L4E3N1/p1553791785005000 for more discussion.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
eks.Cluster | Pulumi
The AMI ID to use for the worker nodes. Defaults to the latest recommended EKS Optimized Linux AMI from the AWS Systems Manager...
Read more >aws.ec2.Ami - Pulumi
Documentation for the aws.ec2.Ami resource with examples, input properties, output properties, lookup functions, and supporting types.
Read more >aws.batch.ComputeEnvironment - Pulumi
Provides information used to select Amazon Machine Images (AMIs) for EC2 instances in the compute environment. If Ec2Configuration isn't specified, the default ...
Read more >spotinst.aws.ManagedInstance - Pulumi
In case of any available Reserved Instances, Managed Instance will utilize them before purchasing Spot instances. Default: "false" . image_id ...
Read more >aws.ec2.ManagedPrefixList - Pulumi
new ManagedPrefixList(name: string, args: ManagedPrefixListArgs, ... pulumi import aws:ec2/managedPrefixList:ManagedPrefixList default pl- ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@gitfool The new AWS SSM Parameter Store API was just announced yesterday. #258 is tracking the work to leverage it.
Falling back to requiring AMI Id is not so friendly. It would be better to be able to specify an exact k8s version, e.g.
1.14.6, or an exact AMI name, e.g.amazon-eks-node-1.14-v20190906, and still have the AMI Id looked up, since the optimal AMI Id will vary depending on region and so should match the region the Pulumi stack is in.