https://pulumi.com logo
#automation-api
Title
# automation-api
c

crooked-pillow-11944

02/20/2022, 9:46 PM
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

prehistoric-london-9917

02/22/2022, 4:41 AM
I’m having the same problem - has anyone come up with a workaround?
w

worried-city-86458

02/22/2022, 6:59 PM
p

prehistoric-london-9917

02/22/2022, 7:53 PM
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

crooked-pillow-11944

02/22/2022, 7:57 PM
@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

crooked-pillow-11944

02/22/2022, 8:15 PM
There must be a way to do this when first initializing the stack - when first configuring the stack
w

worried-city-86458

02/22/2022, 8:23 PM
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.
2 Views