Everytime I run `pulumi up`, I get the following d...
# aws
p
Everytime I run
pulumi up
, I get the following diff:
Copy code
Previewing update (test):
  pulumi:pulumi:Stack: (same)
    [urn=urn:pulumi:test::clusters::pulumi:pulumi:Stack::clusters-test]
        ~ aws:ec2/launchTemplate:LaunchTemplate: (update)
            [id=lt-000000000000000000]
            [urn=urn:pulumi:test::clusters::eks:index:NodeGroupV2$aws:ec2/launchTemplate:LaunchTemplate::test-eks-cluster-nodegroup-system-launchTemplate]
            [provider=urn:pulumi:test::clusters::pulumi:providers:aws::default_6_9_0::c5a67e74-723e-4ffb-ac97-7389ea842852]
            blockDeviceMappings  : [
                [0]: {
                    deviceName: "/dev/xvda"
                    ebs       : {
                        deleteOnTermination: "true"
                        encrypted          : "true"
                        volumeSize         : 50
                        volumeType         : "gp2"
                    }
                }
            ]
            iamInstanceProfile   : {
                arn       : "arn:aws:iam::000000000000:instance-profile/test-eks-cluster-nodegroup-iam-instance-profile"
            }
            imageId              : "ami-0e53e599c9fd9484e"
            instanceMarketOptions: {
            }
            instanceType         : "t3.medium"
            keyName              : "keyname"
            name                 : "test-eks-cluster-nodegroup-system-launchTemplate"
            networkInterfaces    : [
                [0]: {
                    associatePublicIpAddress: "true"
                    securityGroups          : [
                        [0]: "sg-00000000000000000"
                    ]
                }
            ]
            userData             : "xxx"
        ~ aws:autoscaling/group:Group: (update)
            [id=test-eks-cluster-nodegroup-system]
            [urn=urn:pulumi:test::clusters::eks:index:NodeGroupV2$aws:autoscaling/group:Group::test-eks-cluster-nodegroup-system]
            [provider=urn:pulumi:test::clusters::pulumi:providers:aws::default_6_9_0::c5a67e74-723e-4ffb-ac97-7389ea842852]
          ~ launchTemplate: {
              ~ version: "16" => output<string>
            }
I tried both
ignoreChanges: ['*']
and the following transformations:
Copy code
transformations: [
        (args) => {
          if (args.type === 'aws:ec2/launchTemplate:LaunchTemplate') {
            return {
              props: args.props,
              opts: pulumi.mergeOptions(args.opts, {
                ignoreChanges: ['*'],
              }),
            }
          }
          return undefined
        },
      ],
b
I have seen a comment from @shy-arm-32391 on https://github.com/pulumi/pulumi-eks/issues/709 that ignore_changes is not supported for resources in
pulumi/eks
. I am not sure if there’s been an update on this. This has been a source of significant pain for us as well 😞
s
hi! I asked internally and there is a bit of related work happening currently. This is an issue that needs to be addressed in pulumi/pulumi itself, as it affects all component resources, not just pulumi-eks. I'd encourage you to file an issue there and link the related eks issues.