Hello guys I've tried to upgrade the version for `...
# aws
l
Hello guys I've tried to upgrade the version for
awsx
from 0.40 to 1.0 and I'm finding that when doing
preview
or
update
, it wants to recreate my VPC I saw in the https://www.pulumi.com/docs/guides/crosswalk/aws/ documentation that it is suggested to use the
classic
package, but that means that there is no way to upgrade apart destroying all the resources and recreate them?
c
Are there any recommendations for a migration path for VPCs created prior to awsx 1.x? Classic has the method
fromExistingIds
where I could possibly retain the VPC on delete and then look it up by ID but I don't see a way to get an existing
awsx.ec2.Vpc
resource. There also doesn't appear to be a way to import an existing VPC as an
awsx.ec2.Vpc
since it's a
ComponentResource
and there's no import property on
ComponentResourceOptions
. It'd be great if there was some official documentation that outlined a migration path. Currently the README only suggests that resources may need to be recreated when migrating to 1.x.
c
FWIW as of awsx@1.0 I ended up dropping awsx for VPC creation entirely, and reproduced the internal structure awsx creates manually (not that hard to do) so that at least the VPC and subnets didn't need to be recreated. It's not that hard to DIY and we also wanted more control for other reasons, so it was OK for us - but we did still schedule downtime to do it