awscc_ec2_host (Resource)

Resource Type definition for AWS::EC2::Host

Example Usage

First example - Create dedicated host specifying instance family

resource "awscc_ec2_host" "dedicated_host" {
  availability_zone = "us-east-1a"
  auto_placement    = "on"
  instance_family   = "m5"
}

Second example - Create dedicated host specifying instance type

resource "awscc_ec2_host" "dedicated_host1" {
  availability_zone = "us-east-1b"
  auto_placement    = "on"
  instance_type     = "m5.xlarge"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

$ terraform import awscc_ec2_host.example <resource ID>