bright-orange-69401
12/22/2019, 9:09 PMpulumi preview
on the S3 example template I attached:
Diagnostics:
pulumi😛ulumi:Stack (nuage-admin-dev):
error: preview failed
aws😒3:Bucket (nuage-test):
error: Preview failed: importing arn:aws:s3:::nuage-test: Error importing AWS S3 bucket policy: InvalidARNError: invalid ARN
caused by: invalid Amazon S3 ARN, unknown resource type, arn:aws:s3:::nuage-test
white-balloon-205
12/22/2019, 9:44 PMnuage-test
as the import id. I’m surprised the error is so bad - but I expect it will work with the name instead of the ARN.bright-orange-69401
12/22/2019, 9:56 PMnuage-test
instead of the full ARN does not work either.
The pulumi preview
diagnostic returns an error:
Diagnostics:
aws😒3:Bucket (nuage-test):
warning: inputs to import do not match the existing resource; importing this resource will failAnd if I ignore it and
pulumi up
anyway, I get an error:
Diagnostics:
pulumi😛ulumi:Stack (nuage-admin-dev):
error: update failed
aws😒3:Bucket (nuage-test):
error: inputs to import do not match the existing resource
white-balloon-205
12/22/2019, 10:57 PMbright-orange-69401
12/22/2019, 11:08 PMcors_rules
The thing is though, that in Terraform you can import an S3 Bucket into your .tfstate
without needing to define everything (diff will be calculated later).
You can actually use your .tfstate
to fill the missing values in your template and avoid the diff, which saves a huge amount of time.
It's a pretty big issue (IMHO) that you can't do the same thing in Pulumi.
I actually had to copy into Pulumi the cors_rules
from the state I imported into Terraform, as it is quite difficult to list the exact rules with just the AWS Console & Pulumi's docs
In terms of UX, it would be great to be able to manually set up some Cloud resources, easily pull the configs using the CLI and then use that as boilerplate to get everything under Pulumi management and extend it programatically from there onwhite-balloon-205
12/22/2019, 11:40 PM