1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. ec2
  5. getEipAssociation

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.ec2.getEipAssociation

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Associates an Elastic IP address with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account. For more information about working with Elastic IP addresses, see Elastic IP address concepts and rules. You must specify AllocationId and either InstanceId, NetworkInterfaceId, or PrivateIpAddress.

Using getEipAssociation

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getEipAssociation(args: GetEipAssociationArgs, opts?: InvokeOptions): Promise<GetEipAssociationResult>
function getEipAssociationOutput(args: GetEipAssociationOutputArgs, opts?: InvokeOptions): Output<GetEipAssociationResult>
Copy
def get_eip_association(id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetEipAssociationResult
def get_eip_association_output(id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetEipAssociationResult]
Copy
func LookupEipAssociation(ctx *Context, args *LookupEipAssociationArgs, opts ...InvokeOption) (*LookupEipAssociationResult, error)
func LookupEipAssociationOutput(ctx *Context, args *LookupEipAssociationOutputArgs, opts ...InvokeOption) LookupEipAssociationResultOutput
Copy

> Note: This function is named LookupEipAssociation in the Go SDK.

public static class GetEipAssociation 
{
    public static Task<GetEipAssociationResult> InvokeAsync(GetEipAssociationArgs args, InvokeOptions? opts = null)
    public static Output<GetEipAssociationResult> Invoke(GetEipAssociationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetEipAssociationResult> getEipAssociation(GetEipAssociationArgs args, InvokeOptions options)
public static Output<GetEipAssociationResult> getEipAssociation(GetEipAssociationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:ec2:getEipAssociation
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID of the association.
Id This property is required. string
The ID of the association.
id This property is required. String
The ID of the association.
id This property is required. string
The ID of the association.
id This property is required. str
The ID of the association.
id This property is required. String
The ID of the association.

getEipAssociation Result

The following output properties are available:

Id string
The ID of the association.
Id string
The ID of the association.
id String
The ID of the association.
id string
The ID of the association.
id str
The ID of the association.
id String
The ID of the association.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi