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

How does distributed architecture work for serving out dynamic and static content
AWS - Creating a Route53 subdomain in a separate account to the top level domain [duplicate]
How to set startup page on AWS Elastic Beanstalk
Can I get credentials by AWS IAM Role published by another aws account?
AWS asking me for a passphrase for key: EC2
How to define IAM Policy for a user to have programmatic full or limited access only for specific dynamodb tables?
Good deployment in aws with Symfony
How to get the end time of AWS EBS volume snapshot ? I want to find out the time when the snapshot completed
copy specific data in one s3 bucket to another bucket using data pipeline
AWS CodeDeploy using Github Failing
Tool to orchestrate execution of AWS CloudFormation templates
Updating ElasticSearch mappings field type with existing data
Is there a way to use the CLI to configure an Alexa skill?
Why won't my node / Heroku app connect to RDS?
Amazon Redshift - Replication - Data load Vs Query Performance Issues
Cloudfront CNAME or DNS CNAME? [duplicate]

Categories

HOME
python-2.7
xpath
windows-8.1
angular-ui-grid
adfs3.0
android-fragments
bokeh
postgresql-9.4
transactions
filesize
tabs
bittorrent
sympy
static-analysis
timber
sharepoint-online
elastic-load-balancer
fbloginview
fullcalendar-scheduler
heap-dump
reselect
closures
c#-7.0
cocos2d-android
nullreferenceexception
tableview
altium-designer
connection-refused
intel
firemonkey-style
spreadsheetgear
marquee
macromedia
tilemill
nsmutablearray
quickcheck
cloudera-manager
spring-rabbitmq
restful-architecture
char-pointer
identify
tidal-scheduler
right-click
netapp
notesview
reverse-dns
moinmoin
common-table-expression
liteide
viewmodel
cyanogenmod
tinyioc
android-5.0-lollipop
xcglogger
supertest
photoswipe
comm
android-mediarecorder
test-data
glimpse
network-protocols
streamwriter
dmarc
eclemma
bayesglm
compositetype
org-babel
relational-model
artisan
whitespace-language
mojo
dc
windows-rt
visual-studio-6
lmax
nidaqmx
full-text-indexing
flipboard
autonumber
facebook-game-groups
hints
apportable
ldif
chartfx
email-verification
image-formats
prototypal-inheritance
type-safety
kernel32
rtd
upshot
airprint
regression-testing
odac
data-retrieval
tacit-programming
inversion
acceleration
chronic
webclient.uploaddata

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App