|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
The AWS::EC2::EIP resource allocates an Elastic IP (EIP) address and can, optionally, associate it with an Amazon EC2 instance.
The Instance ID of the Amazon EC2 instance that you want to associate with this Elastic IP address.
Set to "vpc" to allocate the address to your Virtual Private Cloud (VPC). No other values are supported.
For more information, see AllocateAddress in the Amazon Elastic Compute Cloud API Reference. For more information about Elastic IP Addresses in VPC, go to IP Addressing in Your VPC in the Amazon VPC User Guide.
Required: Conditional. Required when allocating an address to a VPC
When you specify the logical ID of an AWS::EC2::EIP object as an argument to the
function, AWS CloudFormation returns the value of the instance's
For more information about using the
Ref function, see Ref.
Fn::GetAtt returns a value for a specified attribute of this type.
This section lists the available attributes and corresponding return values.
The ID that AWS assigns to represent the allocation of the address for use with Amazon VPC.
THis is returned only for VPC elastic IP addresses. Example return value:
For more information about using
Fn:GetAtt, see Fn::GetAtt.
To view AWS::EC2::EIP snippets, see Assigning an Amazon EC2 Elastic IP Using AWS::EC2::EIP Snippet.