amazon-web-services


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

Related Links

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

Categories

HOME
nam
webview
macos-sierra
iverilog
linker
haxe
minecraft
specifications
cocotb
stack-overflow
yahoo
locationmanager
clish
freertos
webstore
xbox360
temperature
google-cloud-logging
l20n
android-contacts
spam
jest
sqlplus
maven-surefire-plugin
conda
dragula
unordered-multimap
hevc
msdeploy
ruby-daemons
tortoisehg
php-5.3
sfml
dnsmasq
vcenter
aurelia-http-client
text-decorations
plane
hdiv
transparency
nomad
flume-twitter
ssi
aws-kinesis-firehose
roracle
sony-future-lab-n
sonatype
android-sharing
sequence-diagram
network-protocols
mechanicalturk
allegro
gapi
elastic4s
rational-performance-test
nclam
mathjs
zynq
carmen
simian
vaadin4spring
verisign
mnesia
i2b2
preferenceactivity
seadragon
voronoi
textpattern
google-maps-api-2
supercomputers
supersocket.net
compositetype
domino-designer-eclipse
cache-manifest
azure-xplat-cli
mgwt
python-curses
ssmtp
fiware-bosun
uno
microsoft-expression-web
juttle
adhoc-polymorphism
flurry-analytics
qt5.4
oracle-adf-mobile
miglayout
meteor-collections
cpu-time
compiler-flags
visual-c++-2005
vlab
jquery-cycle
significant-digits
ip-geolocation
spark-view-engine
android-dialog
wndproc
prefuse
hardcode
algol68
differentiation
delphi-prism
firefly-mv
uipasteboard
mediacontroller
upshot
css-friendly
bll
regression-testing
active-record-query
mygeneration
multiple-users
odac
bucket
server-load
webclient.uploaddata

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App