Elastic Ip Address Association
Provides an Elastic Ip Address Association This resource associates an elastic IP address to an EC2 instance.
exports.createResources = () => [
{
type: "ElasticIpAddressAssociation",
group: "EC2",
dependencies: ({}) => ({
eip: "myip",
instance: "web-server-ec2-vpc",
}),
},
];
Examples
Depenencies
Listing
List only the elastic IP addresses associations with the EC2::ElasticIpAddressAssociation filter:
gc l -t EC2::ElasticIpAddressAssociation
Listing resources on 1 provider: aws
✓ aws
✓ Initialising
✓ Listing 3/3
┌─────────────────────────────────────────────────────────────────────────┐
│ 1 EC2::ElasticIpAddressAssociation from aws │
├─────────────────────────────────────────────────────────────────────────┤
│ name: eip-attach::eip::web-server-ec2-example │
│ managedByUs: Yes │
│ live: │
│ InstanceId: i-05270666d18a60c37 │
│ AllocationId: eipalloc-0084f3b737b18e237 │
│ AssociationId: eipassoc-041bc14e6cefaadb6 │
│ │
└─────────────────────────────────────────────────────────────────────────┘
List Summary:
Provider: aws
┌────────────────────────────────────────────────────────────────────────┐
│ aws │
├──────────────────────────────────┬─────────────────────────────────────┤
│ EC2::ElasticIpAddressAssociation │ eip-attach::eip::web-server-ec2-ex… │
└──────────────────────────────────┴─────────────────────────────────────┘
1 resource, 1 type, 1 provider
Command "gc l -t EC2::ElasticIpAddressAssociation" executed in 4s, 171 MB