Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8256537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:53:16+00:00 2026-06-08T01:53:16+00:00

I have set of shell scripts that I wish to run in my ec2

  • 0

I have set of shell scripts that I wish to run in my ec2 instance.. I tried this

ec2-run-instances -K testing2.pem ami-****** -d Setup.sh

I get an error like this :

Required option '-C, --cert CERT' missing (-h for usage)

What is wrong in the above commands?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:53:17+00:00Added an answer on June 8, 2026 at 1:53 am

    You’re missing an EC2_CERT environment variable, and based on the fact that you’ve called your key testing2.pem, I’d hypothesize you’re also missing EC2_PRIVATE_KEY. From the setup instructions:

    Because you can have more than one AWS account, you need to identify yourself so that the command line tools know which credentials to use. It’s possible, but tedious, to provide this information as a command line option every time you invoke each command. So we recommend that you set up these environment variables and be done with it.

    There are two environment variables you can set to point at your private key and certificate. After you set these environment variables, the tools use their values to find your credentials. The environment variable EC2_PRIVATE_KEY should point to your private key file, and EC2_CERT should point to your X.509 certificate.

    When you’ve set up those environment variables, you’ll be able to use them for all AWS CLI tools.

    Assuming testing2.pem is an instance keypair, what you really want is this command, after you’ve set up those environment variables, of course. Note the lowercase -k flag:

    ec2-run-instances ami-****** -k testing2.pem -d Setup.sh
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my repository i have several shell scripts that run in a cygwin console
I have a small shell application that embeds Tcl to execute some set of
I have a shell script that I want to set uid bit. I set
I have two simple shell scripts to run my solr installation in a screen
I have a set of data that looks like this 201206040210 -3461.00000000 -8134.00000000 -4514.00000000
Does this smell? I have a few properties you can only set once. They
I have set the eclipse java formatter to wrap lines that exceed 120 characters
I have set up an app that is registered for remote notifications. - (void)application:(UIApplication*)application
I'm trying to set up a shell script that will start a screen session
I have an XML that contains information about environment variable to set into the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.