fresh-honey-15888
12/11/2024, 4:04 PMpulumi refresh with empty state and existing resources, and get that state synced up? I have an old stack where the state was stored locally in files that I haven't touched in a while. Now when I run pulumi up it connects to the cloud, sees no resources, and tries to create them all. But these resources exist and were previously created by Pulumi, so my thinking was that pulumi refresh should slurp them in. It doesn't, though, and always shows an empty modifications list. And pulumi up keeps offering to recreate everything. How do I import these resources into the cloud so I can keep managing them with Pulumi? Please tell me I don't have to import nearly 40 resources individually. 🙂quick-house-41860
12/11/2024, 4:40 PMpulumi preview with the --import-file option to create an import file. That way you only have to fill in the IDs and can import all of them at once with pulumi import --file ... .fresh-honey-15888
12/11/2024, 4:43 PMquick-house-41860
12/11/2024, 4:45 PMImport section explaining that: https://www.pulumi.com/registry/packages/aws/api-docs/alb/loadbalancer/#importfresh-honey-15888
12/11/2024, 6:02 PMquick-house-41860
12/12/2024, 8:30 AM