Instance (Virtual Machine)
Creating a virtual machine with minimal parameters
You can generate similar template from MechCloud AWS agent using below prompts (one at a time) - create a security group named 'sg_web' which allows traffic on port 443 form '223.223.223.100/32' port only. its description should be 'Allow HTTPS from private ip'.
--------------------------------------------------------------------------------------------------------------------
create an ec2 instance named 'web1' with following details - image - ami-0bc691261a82b32bc instance type - t3.nano security groupd id - 'ref:sg_web'
resources:
- name: sg_web
type: aws_ec2_security_group
props:
group_name: sg_web
group_description: "Allow HTTPS from private ip"
security_group_ingress:
- ip_protocol: tcp
from_port: 443
to_port: 443
cidr_ip: 223.223.223.100/32
- name: web1
type: aws_ec2_instance
props:
image_id: ami-0ecb62995f68bb549
instance_type: t3.nano
security_group_ids:
- "ref:sg_web"Example price for above configuration
Creating a virtual machine with additional volumes
Example price for above configuration
Creating a spot virtual machine
You can generate similar template from MechCloud AWS agent using below prompts (one at a time) - create a launch template named 'template1' with following details -
image - ami-0bc691261a82b32bc
instance type - t3.nano market type - spot
--------------------------------------------------------------------------------------------------------------------
create an ec2 instance named 'spot_vm1' using 'ref:template1' launch template id and version 1 of this template
Example price for above configuration
Last updated
Was this helpful?