This message was deleted.
# general
s
This message was deleted.
b
i believe this is expected behaviour, if you modify the block device size it triggers a replacement. if you want to resize the device, you’ll need to do it manually
r
Hmm - do you know why that is? Since the volume can be resized from the console, I expected to be able to do the same with Pulumi.
b
because it’s defined inline in the ec2 instance, if you define it with this resource you can resize it https://www.pulumi.com/registry/packages/aws/api-docs/ebs/volume/
r
Gotcha yeah I was just thinking of the ebs.Volume approach.I think that'll work for us fine for normal instances, but I can't use that when the instance comes with multiple volumes that come over from the AMI.
To do it in code, I guess I could use get_volume to retrieve the volume info and then use botocore to increase the volume's size. But... if that's the case, why can't Pulumi do the same?