Skip to content

s3 bucket rest api automation api #7866

Discussion options

You must be logged in to vote

I believe in order to do this, you'd need to store the list of buckets under management for a given stack somewhere outside of the Pulumi program -- e.g., in a database accessible to your Go program, an external file, or something similar. Then, at runtime, your wrapper program would fetch the list of buckets from that database, reconcile it with whatever your user's trying to do (create a new bucket, delete one, etc.), and then your Pulumi program would iterate over that list to determine what to create, update, or delete.

Here's a complete example in TypeScript that shows how you might do this:

import { InlineProgramArgs, LocalWorkspace } from "@pulumi/pulumi/automation";
import { s3 } f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nimbinatus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants