Running ec2-describe-instances in EC2 [closed]
I'm trying to run ec2-describe-instances from a node in EC2 to see all my running instances. I ssh into the instance and do: ec2-describe-instances and get: Required option '-O, --aws-access-key KEY' missing (-h for usage) I'm not sure what this means. I thought it might be the pem file I use to ssh in, so I scp'd it up and used this with the -O option but no dice.
Greg , You need to pass security key and access key as parameters for that command , else you can set those as environmental variables also , you will get the those security and access keys from your account by accessing the link provided by #datasage in above answer .
The ec2 api requires security keys which are different from the ssh keys that you use to login the instance. You should be able to get your keys here: https://console.aws.amazon.com/iam/home?#security_credential
Private docker registry authentication in aws ecs optimized AMI is not successful
Generate swagger json definition for AWS API Gateway
AWS SNS is bypassing API Gateway and calling Lamba functions directly
Access S3 bucket from AWS EC2 via r command lines
Amazon CloudFront and HTTPsL What do I do?
nginx proxy_pass remote ip
SSL Certificates On Elastic Beanstalk Default Setup
Need email open and click events from amazon (aws) ses
Website hosting in specific folder on AWS S3
Opencart images on amazon S3
Programmatically create and deploy On-Demand EC2
How to access S3 bucket from url using boto3?
how to launch ec2 instance using AWS SDK and connect to it via AWS CLI
Dig Command returning “SERVFAIL”
Tableau Server on AWS
S3 v3 authentication Go SDK