sparse-intern-71089
09/16/2020, 9:39 AMbreezy-butcher-78604
09/16/2020, 9:40 AMbroad-dog-22463
09/16/2020, 9:41 AMbreezy-butcher-78604
09/16/2020, 9:42 AM@pulumi/awsbreezy-butcher-78604
09/16/2020, 9:43 AMvpcSecurityGroupIds property of an aws.ec2.Instance i seem to get that panicbroad-dog-22463
09/16/2020, 9:45 AMbroad-dog-22463
09/16/2020, 9:45 AMbreezy-butcher-78604
09/16/2020, 9:46 AMvpcSecurityGroupIds when this happenedbroad-dog-22463
09/16/2020, 9:47 AMbreezy-butcher-78604
09/16/2020, 9:47 AMbreezy-butcher-78604
09/16/2020, 9:47 AMbreezy-butcher-78604
09/16/2020, 9:48 AMdeleteBeforeReplace enabled, and as you can see I changed the sourceSecurityGroupIdbreezy-butcher-78604
09/16/2020, 9:48 AMbroad-dog-22463
09/16/2020, 9:51 AMbreezy-butcher-78604
09/16/2020, 9:52 AMsourceSecurityGroupId of a bunch of aws.ec2.SecurityGroupRule resourcesbreezy-butcher-78604
09/16/2020, 9:52 AMbreezy-butcher-78604
09/16/2020, 9:52 AMbroad-dog-22463
09/16/2020, 9:53 AMbroad-dog-22463
09/16/2020, 9:53 AMbroad-dog-22463
09/16/2020, 9:53 AMbroad-dog-22463
09/16/2020, 9:53 AMPreviewing update (dev)
View Live: <https://app.pulumi.com/stack72/vgw-bug/dev/previews/c4721176-75ed-4450-acef-669f9b6b9b1d>
Type Name Plan
+ pulumi:pulumi:Stack vgw-bug-dev create
+ ├─ aws:ec2:SecurityGroup mysecuritygroup2 create
+ ├─ aws:ec2:SecurityGroup mysecuritygroup1 create
+ └─ aws:ec2:Instance web-server-www create
Resources:
+ 4 to create
Do you want to perform this update? yes
Updating (dev)
View Live: <https://app.pulumi.com/stack72/vgw-bug/dev/updates/1>
Type Name Status
+ pulumi:pulumi:Stack vgw-bug-dev created
+ ├─ aws:ec2:SecurityGroup mysecuritygroup1 created
+ ├─ aws:ec2:SecurityGroup mysecuritygroup2 created
+ └─ aws:ec2:Instance web-server-www created
Resources:
+ 4 created
Duration: 50s
~/code/vgw-demo
▶ pulumi up
Previewing update (dev)
View Live: <https://app.pulumi.com/stack72/vgw-bug/dev/previews/2c789837-25c2-4d0b-b4bd-0fa375109511>
Type Name Plan Info
pulumi:pulumi:Stack vgw-bug-dev
~ └─ aws:ec2:Instance web-server-www update [diff: ~vpcSecurityGroupIds]
Resources:
~ 1 to update
3 unchanged
Do you want to perform this update? yes
Updating (dev)
View Live: <https://app.pulumi.com/stack72/vgw-bug/dev/updates/2>
Type Name Status Info
pulumi:pulumi:Stack vgw-bug-dev
~ └─ aws:ec2:Instance web-server-www updated [diff: ~vpcSecurityGroupIds]
Resources:
~ 1 updated
3 unchanged
Duration: 12sbreezy-butcher-78604
09/16/2020, 9:56 AMdeleteBeforeReplace enabled?broad-dog-22463
09/16/2020, 9:57 AMbroad-dog-22463
09/16/2020, 9:57 AMbroad-dog-22463
09/16/2020, 9:57 AMbreezy-butcher-78604
09/16/2020, 11:08 AMbreezy-butcher-78604
09/16/2020, 1:33 PMebsBlockDevice on the EC2 instances like so:
ebsBlockDevices: [{
deviceName: "/dev/sda1",
volumeSize: 50,
deleteOnTermination: true
}],
I've been working on this template for a couple days now and a few days I noticed that every pulumi up the EC2 instances were being marked for replacement, even if the template hadn't changed. Examining the diff I noticed that the volumeSize property was always the culprit. it always showed that it was adding that property (as it didn't exist on Pulumi's internal state). I didn't have time to troubleshoot it at the time so I just added ignoreChanges: [ "ebsBlockDevices" ] to the resources and moved on.
is it possible that the initial diff only shows an update due to the security group IDs, but another part of the code isn't respecting the ignoreChanges option and flagging the instance for replacement which causes the panic?breezy-butcher-78604
09/22/2020, 7:12 AMbreezy-butcher-78604
09/22/2020, 7:13 AM