https://pulumi.com logo
Title
r

rhythmic-sunset-53997

02/27/2023, 9:34 AM
Hi, I have a problem with AWS EKS and pulumi. When I run my script after a day or two since the last execution, which involves an EKS cluster, I get this as the info on changes:
$ pulumi up
Previewing update (sandbox):
     Type                               Name                                  Plan        Info
     pulumi:pulumi:Stack                xxx-sandbox                                       2 warnings
     └─ eks:index:Cluster               xxx-cluster
 +-     ├─ aws:ec2:LaunchConfiguration  xxx-cluster-nodeLaunchConfiguration  replace     [diff: ~imageId]
 ~      └─ aws:cloudformation:Stack     xxx-cluster-nodes                    update      [diff: ~templateBody]
that happens even when I have not made any changes to the script at all. Full diff in thread under this. When I run the changes, there is a short downtime in the EKS cluster which is not great, when I just want to run an update of something unrelated. I found a similar question from here but with no solution. The script uses EKS in a simple way:
import pulumi_eks as eks

cluster = eks.Cluster(
    self._name,
    create_oidc_provider=True,  # Allows connecting k8s serviceAccounts with AWS roles
    desired_capacity=2,
    min_size=1,
    max_size=2,
    vpc_id=self._vpc_id,
    private_subnet_ids=subnets.ids,
    node_associate_public_ip_address=False,
    instance_type='t3.medium',
    user_mappings=self._user_mappings,
)
What can I do to fix this? Thanks!
Untitled
s

salmon-gold-74709

02/28/2023, 7:29 AM
Haven't encountered this yet - perhaps it's specific to launch configurations and others are using launch templates? Next step may be to log a GitHub issue as mentioned in https://pulumi-community.slack.com/archives/C019YSXN04B/p1677515257382609
r

rhythmic-sunset-53997

02/28/2023, 11:06 AM
Ok, I’ll make a GH issue. No idea about the launch configurations vs templates, I just went with the easiest setup of the EKS I could find in the documentation 🤷
s

salmon-gold-74709

02/28/2023, 11:08 AM
Launch templates are more recent than launch configurations and have some extra features - can have a mix of instance types, mix of on-demand and spot, etc. Not sure if templates are better supported though, that was just an idea
r

rhythmic-sunset-53997

02/28/2023, 11:13 AM
Gotcha 🙂 For future reference -> https://github.com/pulumi/pulumi/issues/12298