How do you ignore all changes to a property inside...
# general
m
How do you ignore all changes to a property inside of a nested array? something like:
ignoreChanges: ['taskDefinitionArgs.containers[*].image']
where
containers
is an array.
I ended up using a transformation instead. Seems the EBNF notation doesn't support wildcarding
Copy code
transformations: [args => {
                    if (args.type === "aws:ecs/TaskDefinition:ContainerDefinition") {
                        return {
                            props: args.props,
                            opts: pulumi.mergeOptions(args.opts, {
                                ignoreChanges: ['image']
                            })
                        };
                    }

                    return undefined;
                }],
🎉 1
l
Great solution!
212 Views