eip_association
Gets or updates an individual eip_association
resource, use eip_associations
to retrieve a list of resources or to create or delete a resource.
Overview
Name | eip_association |
Type | Resource |
Description | Resource schema for EC2 EIP association. |
Id | aws.ec2.eip_association |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Composite ID of non-empty properties, to determine the identification. |
allocation_id | string | The allocation ID. This is required for EC2-VPC. |
network_interface_id | string | The ID of the network interface. |
instance_id | string | The ID of the instance. |
private_ip_address | string | The primary or secondary private IP address to associate with the Elastic IP address. |
e_ip | string | The Elastic IP address to associate with the instance. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
get_resource | SELECT | data__Identifier, region |
SELECT
Example
SELECT
region,
id,
allocation_id,
network_interface_id,
instance_id,
private_ip_address,
e_ip
FROM aws.ec2.eip_association
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
Permissions
To operate on the eip_association
resource, the following permissions are required:
Read
ec2:DescribeAddresses