I made a terrible mistake and tried to deploy to Prod at 1am 😵💫 I am using SST Ion, first time with AWS and SST and Pulumi. I have an existing user pool, so I transform the name to match the exisiting user pool name. Instead it creates a new pool with basically a random name. How can I reuse the existing pool? Thank you!
f
fast-sandwich-30809
07/11/2024, 12:57 PM
Ah, you're looking for how to import an existing resource. What language are you using?
c
creamy-mechanic-23690
07/11/2024, 3:52 PM
Typescript, using SST Ion
f
fast-sandwich-30809
07/11/2024, 4:35 PM
In TS there is typically a
name
parameter that can be passed to the resource options; in addition to the name that is passed to pulumi. Specifying both disables the random-suffix feature.
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.