Closed guitarrapc closed 4 years ago
It would be better dotnet pulumi set JSON without \n
and white spaces, as pulumi refresh returns, or pulumi refresh
should respect what Bucket Policy describe. (Bucket Policy contains \n
and spaces.
It's not a big impact but non-necessary change detected on refresh
confuse me my code is bad or any.
won't happen with latest pulumi 2.3.0 & pulumi-aws 2.8.0. close issue.
Language: dotnet (C#)
Description
Even S3 Bucket Policy was applied with
pulumi up
,pulumi refresh
always detect change. Detected change is quite simple, remove eol\n
and spaces. Next time I ranpulumi up
change will not detect,Expected behavior
no diff reported on
pulumi refresh
.Actual behavior
pulumi refresh
report diff. It removes JSON'S\n
andspace
from actual S3 Bucket Policy.Step to reproduce
Let's create bucket and attach simple policy.
run
pulumi up
to apply change.run
pulumi refresh
will detect change.apply refresh and run
pulumi up
orpulumi refresh
again will not detect change.Let's change to policy and
pulumi up
, this detect change onpulumi refresh
again.version