Carina

Resource

awscc.ec2.Eip

CloudFormation Type: AWS::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) in the Amazon EC2 User Guide. For more information, see Elastic IP Addresses in the Amazon EC2 User Guide.

Example

awscc.ec2.Eip {
  domain = vpc

  tags = {
    Environment = 'example'
  }
}

Argument Reference

address

domain

The network (vpc). If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.

instance_id

The ID of the instance. Updates to the InstanceId property may require some interruptions. Updates on an EIP reassociates the address on its associated resource.

ipam_pool_id

network_border_group

A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. Use this parameter to limit the IP address to this location. IP addresses cannot move between network border groups. Use DescribeAvailabilityZones to view the network border groups.

public_ipv4_pool

The ID of an address pool that you own. Use this parameter to let Amazon EC2 select an address from the address pool. Updates to the PublicIpv4Pool property may require some interruptions. Updates on an EIP reassociates the address on its associated resource.

tags

Any tags assigned to the Elastic IP address. Updates to the Tags property may require some interruptions. Updates on an EIP reassociates the address on its associated resource.

transfer_address

The Elastic IP address you are accepting for transfer. You can only accept one transferred address. For more information on Elastic IP address transfers, see Transfer Elastic IP addresses in the Amazon Virtual Private Cloud User Guide.

Enum Values

domain (Domain)

Value DSL Identifier
vpc aws.ec2.Eip.Domain.vpc
standard aws.ec2.Eip.Domain.standard

Shorthand formats: vpc or Domain.vpc

Attribute Reference

allocation_id

public_ip

AWS API narrowings

These fields are narrower than or equal to CFN. Input rules combine documented AWS domains, recorded live observations, and Carina canonical spellings for stable state comparison. A canonical DSL spelling does not claim AWS rejects other spellings. Attaching a type name adds no structural constraints. Field names below use CFN spelling.

CFN field Relation to CFN Evidence URL Verbatim quote / exact observation Checked / observed
/definitions/Tag/properties/Key Subset: CFN ∩ reviewed input domain Source record Maximum key length – 128 Unicode characters in UTF-8 2026-11-07
/definitions/Tag/properties/Value Subset: CFN ∩ reviewed input domain Source record The value of the tag.Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters. 2026-11-07
/properties/Domain Subset: CFN ∩ reviewed input domain Source record The network (vpc).If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.Allowed values: vpc | standard 2026-11-07