clean-controller-92732
10/11/2022, 11:27 PMupdating stack...
Updating (test22):
pulumi:pulumi:Stack AUTOIAM-TAMTOOL-test22 running
aws:iam:User test22 [diff: ~tags]
~ aws:iam:UserPolicy useast-partner-datafeed updating [diff: ~policy]
~ aws:iam:UserPolicy useast-partner-datafeed updated [diff: ~policy]
pulumi:pulumi:Stack AUTOIAM-TAMTOOL-test22
Resources:
~ 1 updated
2 unchanged
billowy-army-68599
10/11/2022, 11:32 PMclean-controller-92732
10/11/2022, 11:33 PMlittle-cartoon-10569
10/11/2022, 11:53 PMpulumi diff
with the detailed option (I forget what it is..)clever-sunset-76585
10/12/2022, 12:12 AMor runIt'swith the detailed optionpulumi diff
--diff
. So pulumi up --diff
or pulumi preview --diff
.clean-controller-92732
10/12/2022, 12:43 AMlittle-cartoon-10569
10/12/2022, 12:46 AMpulumi preview --diff --stack <stackname>
from the command line. You might need to create a temporary "fake" stack yaml file? Not sure. Ideally, you won't have to...clean-controller-92732
10/12/2022, 12:53 AMawait stack.PreviewAsync(new PreviewOptions() {Diff = true});
i don’t see the iam user tags in the diff at all. this is the policy update that’s also happening.
Previewing update (test22):
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:test22::AUTOIAM-TAMTOOL::pulumi:pulumi:Stack::AUTOIAM-TAMTOOL-test22]
~ aws:iam/userPolicy:UserPolicy: (update)
[id=test22:thetradedesk-useast-partner-datafeed]
[urn=urn:pulumi:test22::AUTOIAM-TAMTOOL::aws:iam/userPolicy:UserPolicy::thetradedesk-useast-partner-datafeed]
[provider=urn:pulumi:test22::AUTOIAM-TAMTOOL::pulumi:providers:aws::default_5_13_0::288879a8-1da1-4fcb-ac19-7f4d43bc7d7c]
~ policy: (json) {
Id : "AutoIAM"
~ Statement: [
~ [0]: {
Action : "s3:ListBucket"
~ Condition: {
~ StringLike: {
~ s3:prefix: [
[0]: "test22/*"
[1]: "test222/*"
[2]: "test2222/*"
+ [3]: "test22222/*"
]
}
}
Effect : "Allow"
Resource : "arn:aws:s3:::thetradedesk-useast-partner-datafeed"
Sid : "thetradedeskuseastpartnerdatafeed1"
}
~ [1]: {
Action : [
[0]: "s3:GetObject"
[1]: "s3:GetObjectAcl"
]
Effect : "Allow"
~ Resource: [
[0]: "arn:aws:s3:::thetradedesk-useast-partner-datafeed/test22/*"
[1]: "arn:aws:s3:::thetradedesk-useast-partner-datafeed/test222/*"
[2]: "arn:aws:s3:::thetradedesk-useast-partner-datafeed/test2222/*"
+ [3]: "arn:aws:s3:::thetradedesk-useast-partner-datafeed/test22222/*"
]
Sid : "thetradedeskuseastpartnerdatafeed2"
}
[2]: {
Action : [
[0]: "s3:GetBucketLocation"
[1]: "s3:GetBucketACL"
]
Effect : "Allow"
Resource: "arn:aws:s3:::thetradedesk-useast-partner-datafeed"
Sid : "thetradedeskuseastpartnerdatafeed3"
}
]
Version : "2012-10-17"
}
Resources:
~ 1 to update
2 unchanged
little-cartoon-10569
10/12/2022, 1:47 AMclean-controller-92732
10/12/2022, 3:17 PMPreviewing update (test22):
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:test22::AUTOIAM-TAMTOOL::pulumi:pulumi:Stack::AUTOIAM-TAMTOOL-test22]
~ aws:iam/user:User: (update)
[id=test22]
[urn=urn:pulumi:test22::AUTOIAM-TAMTOOL::aws:iam/user:User::test22]
[provider=urn:pulumi:test22::AUTOIAM-TAMTOOL::pulumi:providers:aws::default_5_13_0::288879a8-1da1-4fcb-ac19-7f4d43bc7d7c]
~ tags: {
+ POO-1111: "1"
}
pulumi:pulumi:Stack AUTOIAM-TAMTOOL-test22 running
~ aws:iam:User test22 updating [diff: ~tags]
~ aws:iam:User test22 updated [diff: ~tags]
The tag key must be a minimum of 1 and a maximum of 128 Unicode characters in UTF-8.
The tag value must be a minimum of 0 and a maximum of 256 Unicode characters in UTF-8.
little-cartoon-10569
10/12/2022, 7:12 PM{[key: string]: string}
)? If you're just doing tags: { 'POO-111': "" }
and it's not working, then I'd say that's a bug.clean-controller-92732
10/12/2022, 7:38 PM{{"SomeOriginalTag", "SomeValue"}}
to {{"SomeOriginalTag","SomeValue"}, {"POO-111", ""}}
and that didn’t work with the value as an empty string, which is a valid tag according to awslittle-cartoon-10569
10/12/2022, 7:47 PMpulumi.output("")
? Since it's a "real" object, it might get around the "there's no object here, I'm skipping this" problem; but Pulumi still resolves it to the empty string.new Output("")
?clean-controller-92732
10/12/2022, 8:30 PMPulumi.Output.Create("").ToString()
little-cartoon-10569
10/12/2022, 8:42 PMclean-controller-92732
10/12/2022, 9:26 PMlittle-cartoon-10569
10/12/2022, 9:59 PMPulumi.Output.Create("")
? Without the ToString(), that'd be wrong.clean-controller-92732
10/12/2022, 11:22 PMlittle-cartoon-10569
10/12/2022, 11:23 PMclean-controller-92732
10/12/2022, 11:26 PMlittle-cartoon-10569
10/12/2022, 11:27 PMclean-controller-92732
10/12/2022, 11:41 PMvar inputmap = new InputMap<string>();
inputmap.Add("AutoIAMCreated", "true");
inputmap.Add("test",Output.Create(""));
updating stack...
Updating (test22):
pulumi:pulumi:Stack AUTOIAM-TAMTOOL-test22 running
aws:iam:User test22 [diff: ~tags]
aws:iam:UserPolicy thetradedesk-useast-partner-datafeed
pulumi:pulumi:Stack AUTOIAM-TAMTOOL-test22
Resources:
3 unchanged
little-cartoon-10569
10/12/2022, 11:57 PMIN general I have a suspicion that Pulumi data model that's communicated between the user program and Pulumi Engine, providers, etc, does not support map entries with null values (considers them to be equivalent to omitting the key from the map)
clean-controller-92732
10/13/2022, 12:06 AMlittle-cartoon-10569
10/13/2022, 12:07 AMclean-controller-92732
10/13/2022, 12:08 AM