Author:
erics, February 11th, 2025
How To Add and Associate a New AWS Elastic IP (EIP) Address Via the Command Line (CLI):
|
shell% aws ec2 allocate-address --domain vpc eipalloc-9c09b9effc6b96a98 vpc us-east-1 34.99.141.8 amazon shell% aws ec2 associate-address --allocation-id eipalloc-9c09b9effc6b96a98 --instance-id i-024f1deafa1e2d453 eipassoc-0216d3f7231147aed |
Categories: How-To's, Technology Tags: Address, Allocate, allocate-address, Associate, associate-address, AWS, cli, Command line, EC2, eip, Elastic, Elastic IP, howto, Instance, Instance ID, Network, tips, VPC
|
No comments
Author:
erics, June 30th, 2015
/opt/aws/bin/ec2-metadata | grep placement
Categories: How-To's, Technology Tags: Amazon, Availability Zone, AWS, AZ, cli, ec2-metadata, howto, ID, Instance, Instance ID, meta, metadata, Placement, Region, tips, Zone
|
No comments
Author:
erics, January 8th, 2011
UPDATE: # yum install ec2-utils # rpm -ql ec2-utils /etc/udev/rules.d/51-ec2-hvm-devices.rules /opt/aws/bin/ec2-metadata /sbin/ec2udev # ec2-metadata -i | awk ‘{print $2}’ Just wrote a script for BudgetTravel.com and needed to determine the Instance ID. Here is how: $ wget http://s3.amazonaws.com/ec2metadata/ec2-metadata $ chmod u+x ec2-metadata $ ./ec2-metadata -i # ec2-metadata -i | awk ‘{print $2}’ > /etc/instanceid Link […]
Categories: How-To's, Technology Tags: AWS, EC2, ec2-metadata, Instance ID, instanceid, metadata
|
No comments