AWS::EC2::EIPSpecifies an Elastic IP (EIP) address and can, optionally, associate it with an Amazon EC2 instance. You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see [Bring Your Own IP Addresses (BYOIP)](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html) in the *Amazon EC2 Us...
8 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Address | string | Create-onlyWrite-only |
Domain | string | |
InstanceId | string | |
IpamPoolId | string | Create-onlyWrite-only |
NetworkBorderGroup | string | Create-only |
PublicIpv4Pool | string | |
Tags | Array<Tag> | |
TransferAddress | string | Create-onlyWrite-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AllocationId | string | - |
PublicIp | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::EIP
Resources:
MyResource:
Type: AWS::EC2::EIP
Properties:
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
ec2:AllocateAddressec2:AcceptAddressTransferec2:DescribeAddressesec2:AssociateAddressec2:CreateTagsec2:DescribeAddressesec2:ReleaseAddressec2:DescribeAddressesec2:DisassociateAddressec2:DescribeAddressesec2:DisassociateAddressec2:DeleteTagsec2:CreateTagsec2:AssociateAddressec2:DescribeAddressesEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicPublicIpThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
NetworkBorderGroupTransferAddressIpamPoolIdAddress