Hi Everyone, I just want to know, how to increase ...
# getting-started
a
Hi Everyone, I just want to know, how to increase root device volume size of a server (ec2) with pulumi, because I didn’t find in the documentation about how to increase/resize root volume size? https://www.pulumi.com/registry/packages/aws/api-docs/ec2/instance/ this my example code, the result is 8GB for root device volume. I want to increase the size. Thank you.
Copy code
let server = [];
server.push(new aws.ec2.Instance(`proxy-website-${ stack }`, {
    ami: config.require("id-ami-ubuntu"),
    instanceType: "t3.small",
    keyName: config.require("key-name"),
    subnetId: publicSubnet,
    vpcSecurityGroupIds: [ secgroup ],
    tags: {
        Name: `proxy-website-${ stack }`,
        Environment: `${ stack }`,
        Pulumi: "true",
    },
}));
l
https://www.pulumi.com/registry/packages/aws/api-docs/ec2/instance/#rootblockdevice_nodejs In the
rootBlockDevice
property, you can set the
volumeSize
property:
Copy code
rootBlockDevice: {
   volumeSize: 16
}
will create a root volume of 16GiB.
a
Thank you @limited-rainbow-51650 🙏