AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::Host

EC2 Host

Resource Type definition for AWS::EC2::Host

Properties

9 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
AvailabilityZone
string
RequiredCreate-only
AssetId
string
Create-only
AutoPlacement
string
HostMaintenance
string
HostRecovery
string
InstanceFamily
string
Create-only
InstanceType
string
Create-only
OutpostArn
string
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
HostIdstringID of the host created.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::Host

Resources:
  MyResource:
    Type: AWS::EC2::Host
    Properties:
      AvailabilityZone: "value"
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

ec2:AllocateHostsec2:DescribeHostsec2:CreateTags

read

ec2:DescribeHosts

update

ec2:ModifyHostsec2:DescribeHostsec2:DeleteTagsec2:CreateTags

delete

ec2:ReleaseHostsec2:DescribeHosts

list

ec2:DescribeHosts

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties10
Required1
TaggingSupported
Primary IDHostId

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

AvailabilityZoneInstanceTypeInstanceFamilyOutpostArnAssetId

External Links