freezing-needle-27463
06/19/2023, 1:22 PMpulumi up
. The error is
Error: cannot ignore changes to the following properties because one or more elements of the path are missing: "tags.tag_created_date"
We have added a ResourceTransformation
in our StackOptions
to ignore changes to the tag_created_date
. We are using pulumi-azure-native
and on vers 3.72.2
of the CLI. This has been working without any issue till today.
We can fix it by deleting the tag in question from the resource, doing a pulumi refresh
and then pulumi up
. A very cumbersome workaround and would appreciate if anyone can help us diagnose the issue.
Thanksechoing-dinner-19531
06/19/2023, 2:21 PMfreezing-needle-27463
06/19/2023, 2:28 PMechoing-dinner-19531
06/19/2023, 2:29 PMfreezing-needle-27463
06/19/2023, 2:33 PMStackOptions
to ignore changes to our custom tag like so
public StackOptions GetStackOptions()
{
return new StackOptions
{
ResourceTransformations = new List<ResourceTransformation>
{
IgnoreCreatedDateTags
}
};
}
public ResourceTransformationResult? IgnoreCreatedDateTags(ResourceTransformationArgs args)
{
var tagp = args.Args.GetType().GetProperty("Tags");
if (tagp != null)
{
args.Options.IgnoreChanges = new List<string> { "tags." + TagHelper.CreatedDate };
}
return new ResourceTransformationResult(args.Args, args.Options);
}
Nothing has changed from our end for it to suddenly throw an error related to the custom tagechoing-dinner-19531
06/19/2023, 4:29 PMfreezing-needle-27463
06/19/2023, 6:02 PMechoing-dinner-19531
06/19/2023, 7:39 PMfreezing-needle-27463
06/19/2023, 7:42 PMechoing-dinner-19531
06/19/2023, 7:42 PMfreezing-needle-27463
06/20/2023, 3:42 PM