Does somebody have an example of using the AWS Pro...
# automation-api
c
Does somebody have an example of using the AWS Provider
default_tags
with pulumi automation api?
I tried setting it as a config option like https://github.com/pulumi/automation-api-examples/blob/main/python/database_migration/main.py#L84 but it only supports strings - and tags are dictionaries
p
I’m having the same problem - has anyone come up with a workaround?
w
p
Good suggestion @worried-city-86458. Is that something that’s configurable in the automation API? I’ll have to take a look.
In the meantime, I did find a workaround that works for me. Create a function that writes out the stack config, and the automation API will refresh it. (based off of this example)
c
@worried-city-86458’s you're not use the automation api @prehistoric-london-9917 that's a really wonky workaround I'm going to wait for a better answer thanks 🙂
c
There must be a way to do this when first initializing the stack - when first configuring the stack
w
My stacks ask the base class for an aws provider, which wires up the default tags, and this provider is used for all aws resources in that stack.