Thread
#general
    m

    magnificent-smartphone-40853

    4 months ago
    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
    transformations: [args => {
                        if (args.type === "aws:ecs/TaskDefinition:ContainerDefinition") {
                            return {
                                props: args.props,
                                opts: pulumi.mergeOptions(args.opts, {
                                    ignoreChanges: ['image']
                                })
                            };
                        }
    
                        return undefined;
                    }],
    l

    little-cartoon-10569

    4 months ago
    Great solution!