Show / Hide Table of Contents

Class Eip

Provides an Elastic IP resource.

Note: EIP may require IGW to exist prior to association. Use depends_on to set an explicit dependency on the IGW.

Note: Do not use network_interface to associate the EIP to aws.lb.LoadBalancer or aws.ec2.NatGateway resources. Instead use the allocation_id available in those resources to allow AWS to manage the association, otherwise you will see AuthFailure errors.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var lb = new Aws.Ec2.Eip("lb", new Aws.Ec2.EipArgs
    {
        Instance = aws_instance.Web.Id,
        Vpc = true,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Eip
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Ec2
Assembly: Pulumi.Aws.dll
Syntax
public class Eip : CustomResource

Constructors

View Source

Eip(String, EipArgs, CustomResourceOptions)

Create a Eip resource with the given unique name, arguments, and options.

Declaration
public Eip(string name, EipArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

EipArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AllocationId

Declaration
public Output<string> AllocationId { get; }
Property Value
Type Description
Output<System.String>
View Source

AssociateWithPrivateIp

A user specified primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

Declaration
public Output<string> AssociateWithPrivateIp { get; }
Property Value
Type Description
Output<System.String>
View Source

AssociationId

Declaration
public Output<string> AssociationId { get; }
Property Value
Type Description
Output<System.String>
View Source

CustomerOwnedIp

Customer owned IP.

Declaration
public Output<string> CustomerOwnedIp { get; }
Property Value
Type Description
Output<System.String>
View Source

CustomerOwnedIpv4Pool

The ID of a customer-owned address pool. For more on customer owned IP addressed check out Customer-owned IP addresses guide

Declaration
public Output<string> CustomerOwnedIpv4Pool { get; }
Property Value
Type Description
Output<System.String>
View Source

Domain

Declaration
public Output<string> Domain { get; }
Property Value
Type Description
Output<System.String>
View Source

Instance

EC2 instance ID.

Declaration
public Output<string> Instance { get; }
Property Value
Type Description
Output<System.String>
View Source

NetworkInterface

Network interface ID to associate with.

Declaration
public Output<string> NetworkInterface { get; }
Property Value
Type Description
Output<System.String>
View Source

PrivateDns

The Private DNS associated with the Elastic IP address (if in VPC).

Declaration
public Output<string> PrivateDns { get; }
Property Value
Type Description
Output<System.String>
View Source

PrivateIp

Contains the private IP address (if in VPC).

Declaration
public Output<string> PrivateIp { get; }
Property Value
Type Description
Output<System.String>
View Source

PublicDns

Public DNS associated with the Elastic IP address.

Declaration
public Output<string> PublicDns { get; }
Property Value
Type Description
Output<System.String>
View Source

PublicIp

Contains the public IP address.

Declaration
public Output<string> PublicIp { get; }
Property Value
Type Description
Output<System.String>
View Source

PublicIpv4Pool

EC2 IPv4 address pool identifier or amazon. This option is only available for VPC EIPs.

Declaration
public Output<string> PublicIpv4Pool { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

A map of tags to assign to the resource.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

Vpc

Boolean if the EIP is in a VPC or not.

Declaration
public Output<bool> Vpc { get; }
Property Value
Type Description
Output<System.Boolean>

Methods

View Source

Get(String, Input<String>, EipState, CustomResourceOptions)

Get an existing Eip resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Eip Get(string name, Input<string> id, EipState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

EipState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Eip
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.