it looks like you're defining two different programs inside the same stack - you can't do that.
Pulumi drives towards a desired state. Define the S3 bucket and the dynamodb table inside the same program and Pulumi will handle doing them in parallel if there are no dependencies between them
h
hallowed-ice-8403
06/23/2021, 9:03 AM
oh got it, Thank you!
hallowed-ice-8403
06/23/2021, 11:56 AM
For my use case, I will be running the code using airflow dags based on few conditions.
will it be possible to add new resources to existing stack if the resource is not already defined in initial program using the
auto.select_stack
?
or do u have to create a new stack (state file) for each sub tasks ?
b
billowy-army-68599
06/23/2021, 12:29 PM
stacks are just new invocations of new programs, you'll need a new project and stack for each new pulumi program you want to run
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.