Instance (Virtual Machine)

Creating a virtual machine with minimal parameters

circle-exclamation
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: {{CURRENT_IP}}/32
  - name: web1
    type: aws_ec2_instance
    props:
      image_id: "{{ Image|arm64_ubuntu_24_04 }}"
      instance_type: t4g.small
      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 virtual machine with free trial (t4g.small)

circle-info

Free Trial display: The t4g.small instance type qualifies for AWS Free Trial (750 hours/month until Dec 2026). Free trial info is shown in the plan header (not as a pricing dimension) because it applies at the AWS account level, not per resource. This avoids confusion when multiple t4g.small instances exist in the desired state.

Example plan output

Creating a spot virtual machine

circle-exclamation

Example price for above configuration

Last updated