magnificent-sugar-64951
05/21/2023, 9:39 AMmelodic-tomato-39005
05/22/2023, 12:58 PMpulumi import
should not only update your stack (json file) but also print code that you can insert into your program.
Another alternative is to use import directly in your code.
Both are documented here.magnificent-sugar-64951
05/22/2023, 1:01 PMmelodic-tomato-39005
05/22/2023, 1:06 PM-f
. But in your case, you want to import new resources from Azure into your stack.
You would use this syntax:
pulumi import aws:s3/bucket:Bucket infra-logs company-infra-logs
magnificent-sugar-64951
05/22/2023, 1:07 PMmelodic-tomato-39005
05/22/2023, 1:09 PMpulumi import [type] [name] [id]
. I think your types
are correct. The name
is your choice. The id
is the full Azure id.magnificent-sugar-64951
05/22/2023, 1:10 PM