question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pulumi shouldn't fetch the latest AMI by default

See original GitHub issue

When 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:

  1. Make nodeAmiId a required parameter (force users to make a conscious decision about the AMI that they want to use).
  2. Provide the existing fetch behavior only as a convenience function for users that don’t need fine control over when their cluster upgrades.
  3. 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
metralcommented, Sep 19, 2019

@gitfool The new AWS SSM Parameter Store API was just announced yesterday. #258 is tracking the work to leverage it.

1reaction
gitfoolcommented, Sep 11, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found