We recommend new projects start with resources from the AWS provider.
aws-native.ec2.Eip
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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.
Create Eip Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Eip(name: string, args?: EipArgs, opts?: CustomResourceOptions);
@overload
def Eip(resource_name: str,
args: Optional[EipArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Eip(resource_name: str,
opts: Optional[ResourceOptions] = None,
address: Optional[str] = None,
domain: Optional[str] = None,
instance_id: Optional[str] = None,
ipam_pool_id: Optional[str] = None,
network_border_group: Optional[str] = None,
public_ipv4_pool: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
transfer_address: Optional[str] = None)
func NewEip(ctx *Context, name string, args *EipArgs, opts ...ResourceOption) (*Eip, error)
public Eip(string name, EipArgs? args = null, CustomResourceOptions? opts = null)
type: aws-native:ec2:Eip
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EipArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EipArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EipArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Eip Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Eip resource accepts the following input properties:
- Address string
- An Elastic IP address or a carrier IP address in a Wavelength Zone.
- Domain string
- 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 string - 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 stringId - The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
- Network
Border stringGroup - 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
Ipv4Pool string - 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. - List<Pulumi.
Aws Native. Inputs. Tag> - 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 string - 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.
- Address string
- An Elastic IP address or a carrier IP address in a Wavelength Zone.
- Domain string
- 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 string - 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 stringId - The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
- Network
Border stringGroup - 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
Ipv4Pool string - 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. - Tag
Args - 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 string - 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.
- address String
- An Elastic IP address or a carrier IP address in a Wavelength Zone.
- domain String
- 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 String - 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 StringId - The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
- network
Border StringGroup - 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
Ipv4Pool String - 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. - List<Tag>
- 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 String - 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.
- address string
- An Elastic IP address or a carrier IP address in a Wavelength Zone.
- domain string
- 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 string - 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 stringId - The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
- network
Border stringGroup - 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
Ipv4Pool string - 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. - Tag[]
- 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 string - 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.
- address str
- An Elastic IP address or a carrier IP address in a Wavelength Zone.
- domain str
- 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 str - 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_ strid - The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
- network_
border_ strgroup - 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_ strpool - 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. - Sequence[Tag
Args] - 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 str - 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.
- address String
- An Elastic IP address or a carrier IP address in a Wavelength Zone.
- domain String
- 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 String - 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 StringId - The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. For more information, see Allocate sequential Elastic IP addresses from an IPAM pool in the Amazon VPC IPAM User Guide .
- network
Border StringGroup - 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
Ipv4Pool String - 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. - List<Property Map>
- 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 String - 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Eip resource produces the following output properties:
- Allocation
Id string - 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. For example,
eipalloc-5723d13e
. - Id string
- The provider-assigned unique ID for this managed resource.
- Public
Ip string - The Elastic IP address.
- Allocation
Id string - 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. For example,
eipalloc-5723d13e
. - Id string
- The provider-assigned unique ID for this managed resource.
- Public
Ip string - The Elastic IP address.
- allocation
Id String - 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. For example,
eipalloc-5723d13e
. - id String
- The provider-assigned unique ID for this managed resource.
- public
Ip String - The Elastic IP address.
- allocation
Id string - 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. For example,
eipalloc-5723d13e
. - id string
- The provider-assigned unique ID for this managed resource.
- public
Ip string - The Elastic IP address.
- allocation_
id str - 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. For example,
eipalloc-5723d13e
. - id str
- The provider-assigned unique ID for this managed resource.
- public_
ip str - The Elastic IP address.
- allocation
Id String - 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. For example,
eipalloc-5723d13e
. - id String
- The provider-assigned unique ID for this managed resource.
- public
Ip String - The Elastic IP address.
Supporting Types
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.