rhythmic-branch-12845
09/27/2022, 9:55 AMpulumi up -r
, I keep seeing “diffs”, even if nothing has changed in the underlying infrastructure?
Previewing update (dev)
View Live: <https://app.pulumi.com/><redacted>/<proj>/dev/previews/<id>
Type Name Plan Info
pulumi:pulumi:Stack proj-dev
├─ aws:ec2:LaunchTemplate aaaaa [diff: ~vpcSecurityGroupIds]
├─ aws:lb:TargetGroup api
├─ aws:autoscaling:Group aaaaa [diff: ~launchTemplate,vpcZoneIdentifiers]
├─ aws:ec2:LaunchTemplate api [diff: ~vpcSecurityGroupIds]
├─ aws:lb:TargetGroup aaaaa
└─ aws:autoscaling:Group api [diff: ~launchTemplate,vpcZoneIdentifiers]
Resources:
7 unchanged
When I select details
, I get this:
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::proj::pulumi:pulumi:Stack::proj-dev]
~ pulumi:pulumi:Stack: (refresh)
[urn=urn:pulumi:dev::proj::pulumi:pulumi:Stack::proj-dev]
~ aws:autoscaling/group:Group: (refresh)
[id=api]
[urn=urn:pulumi:dev::proj::aws:autoscaling/group:Group::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:autoscaling/group:Group: (refresh)
[id=aaaaa]
[urn=urn:pulumi:dev::proj::aws:autoscaling/group:Group::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:lb/targetGroup:TargetGroup: (refresh)
[id=arn:aws:elasticloadbalancing:ap-southeast-1:<aws_id>:targetgroup/aaaaa/8e2bbbab0efedbad]
[urn=urn:pulumi:dev::proj::aws:lb/targetGroup:TargetGroup::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:lb/targetGroup:TargetGroup: (refresh)
[id=arn:aws:elasticloadbalancing:ap-southeast-1:<aws_id>:targetgroup/api/df555747b8eaeb92]
[urn=urn:pulumi:dev::proj::aws:lb/targetGroup:TargetGroup::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:ec2/launchTemplate:LaunchTemplate: (refresh)
[id=lt-09afb8d3b2f6ae9ac]
[urn=urn:pulumi:dev::proj::aws:ec2/launchTemplate:LaunchTemplate::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:ec2/launchTemplate:LaunchTemplate: (refresh)
[id=lt-0b38e76b0e7b3a1e9]
[urn=urn:pulumi:dev::proj::aws:ec2/launchTemplate:LaunchTemplate::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
little-cartoon-10569
09/27/2022, 7:58 PMapply()
, which preview and refresh can't unroll. So they report differences, to be safe. When you request the final refresh / up, those differences might not manifest.rhythmic-branch-12845
09/28/2022, 4:22 AMapply
function call in my code.. and as for invoking pulumi, I am only doing pulumi up -r
re transient properties (and also “default values that you’re not setting in code”): to take the example of the launch templates, I am setting specific values for the vpc security ids (and they do not change)… so I’m not sure what’s going on here. These values should not be changed arbitrarily by the cloud provider as well.little-cartoon-10569
09/28/2022, 10:19 AMrhythmic-branch-12845
09/28/2022, 1:55 PMproj
is just my redacted name for the actual project name. Sorry if that confused you. It’s all in one stack. I have no other stacks besides dev
little-cartoon-10569
09/28/2022, 7:55 PMrhythmic-branch-12845
10/06/2022, 3:35 PMvpc_security_group_ids
and vpc_zone_identifiers
are defined using variables (more on that later), BUT I have tried hard-coding them as well, and I still get diffs when doing pulumi up -r
To illustrate, my vpc_security_group_ids
are defined like this:
vpc_security_group_ids = [
vars.security_group_ids[f'sg_{ SERVICE_NAME }'],
vars.security_group_ids['sg_common'],
]
(I define the actual security group values in a separate file, vars.py
that gets imported, because these are common values). As mentioned, I have tried defining them directly and not using variables to get the values, but even when I do that, pulumi up -r
still claims that there are diffs. I’ve tried upgrading through new versions of pulumi as they are released… Same thingechoing-dinner-19531
10/18/2022, 8:54 AM