Gather metatdata on AWS from within EC2 instance.

So I need to get information about a particular set of machines in the cloud (AWS). EC2_INSTANCE_ID="`wget -q -O – http://instance-data/latest/meta-data/instance-id || die \"wget instance-id has failed: $?\"`" test -n "$EC2_INSTANCE_ID" || die 'cannot obtain instance-id' EC2_AVAIL_ZONE="`wget -q -O – http://instance-data/latest/meta-data/placement/availability-zone || die \"wget availability-zone has failed: $?\"`" test -n "$EC2_AVAIL_ZONE" || die 'cannot obtain…

CategoriesUncategorized

Renaming a user on AWS

aws iam update-user –user-name suse-dev –new-user-name sqs-dev   nJoy ­čśë

CategoriesUncategorized

Manually reset the state of an instance

If an instance gets stuck in an intermediate state (e.g., “deleting”), you can manually reset the state of an instance using the┬ánova reset-state┬ácommand. This will reset it to an error state, which you can then delete. For example: $ nova reset-state c6bbbf26-b40a-47e7-8d5c-eb17bf65c485 $ nova delete c6bbbf26-b40a-47e7-8d5c-eb17bf65c485 You can also use the┬á–active┬áto force the instance back…

CategoriesUncategorized