broad-hairdresser-1495
03/30/2021, 6:08 PMpulumi import
when storing this in local file
after this command pulumi import aws:ec2/instance:Instance myInstanceName i-0ba17989210ad396a
i get this output (and a .pulumi/aws_test.json file with whole EC2 instance):
import pulumi
import pulumi_aws as aws
eu1tst_rhtestloadgen002 = aws.ec2.Instance("eu1tst-rhtestloadgen002",
ami="ami-04c89a19fea29f1f0",
ebs_optimized=True,
get_password_data=False,
instance_type="c4.2xlarge",
source_dest_check=True,
tags={
"Name": "eu1tst-rhtestloadgen002"
},
opts=pulumi.ResourceOptions(protect=True))
this works fine when running pulumi up
and i get no changes.
but how do i make volume changes on existing AWS EC2 instance after import?billowy-army-68599
03/30/2021, 6:15 PMpulumi up
it'll show you the changesbroad-hairdresser-1495
03/30/2021, 6:34 PMinstance_type
but how do i change IOPS on a ebs_block_devicesbillowy-army-68599
03/30/2021, 6:52 PMbroad-hairdresser-1495
03/31/2021, 9:26 AMebs_block_devices
pulumi wants to destroy that disk and create a new one 🙂 but i dont want to do that.billowy-army-68599
03/31/2021, 3:41 PM