AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::EIP

EC2 EIP

Specifies 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...

Properties

8 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
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

Return Values

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

AttributeTypeDescription
AllocationIdstring-
PublicIpstring-

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::EIP

Resources:
  MyResource:
    Type: AWS::EC2::EIP
    Properties:
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

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

create

ec2:AllocateAddressec2:AcceptAddressTransferec2:DescribeAddressesec2:AssociateAddressec2:CreateTags

read

ec2:DescribeAddresses

delete

ec2:ReleaseAddressec2:DescribeAddressesec2:DisassociateAddress

update

ec2:DescribeAddressesec2:DisassociateAddressec2:DeleteTagsec2:CreateTagsec2:AssociateAddress

list

ec2:DescribeAddresses

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
Required0
TaggingSupported
Primary IDPublicIp

Supported Operations

CreateReadDeleteUpdateList

Immutable After Creation

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

NetworkBorderGroupTransferAddressIpamPoolIdAddress

External Links