Is there a way to increase volume size of instance created
Hi, I have created an AMI with 256 GB snapshot. However when I spinning up EC2 in workflow, it is creating instance with 8GB volume only. Do I need to specify some additional input in 'with' ? PS: Creating instance manually from AWS console using given AMI creates instance with 256GB
uses: machulav/ec2-github-runner@v2
with:
mode: start
github-token: ${{ inputs.PAT }}
ec2-image-id: ami-xyz
ec2-instance-type: t3.xlarge
subnet-id: subnet-xyz
security-group-id: sg-xyz
Regards,
Hmm, this seems off. Are you 100% sure that you are using the correct ami within the same region?
Hmm, this seems off. Are you 100% sure that you are using the correct ami within the same region?
Hi, AMI is correct with 250GB snapshot. I am suspecting internally when RunInstancesCommand is fired then do it take default block device mapping ?
Hi Team, Can we add block device mapping volume size also as a part of input while running runInstancesCommand ?
"BlockDeviceMappings": [
{
"DeviceName": "/dev/sdh",
"Ebs": {
"**VolumeSize**": 100
}
}
],
"ImageId": "ami-abc12345",
"InstanceType": "t2.micro",
"SubnetId": "subnet-6e7f829e"
I dont have the time to implement this but do have the time to test it if you push a pull request? :)
I have not been able to recreate your issue with the wrong disk size on the nodes that Im starting.
I dont have the time to implement this but do have the time to test it if you push a pull request? :)
I have not been able to recreate your issue with the wrong disk size on the nodes that Im starting.
sure, I'll then raise PR for this change in sometime as soon as I get some bandwidth.
Thanks,
Just to confirm when i use my custom AMI it always uses the AMI instance disk size..
Just to confirm when i use my custom AMI it always uses the AMI instance disk size..
Hi @stecullum @Preen, the EBS snapshot associated with your AMI (say 256 GB). does it spin up an EC2 instance with 256 GB volume also?
You can look at AMI description and EBS Snapshot attached with 256GB but then also when instance is created only 8GB is assigned to it
Thanks
I'm testing a change where can can fully configure all the block-device-mappings https://github.com/machulav/ec2-github-runner/pull/229
I've successfully used #229. Can you test @Nitish1814 and report back? You may need to specify uses: machulav/[email protected] or later rather than @v2 to get the feature.