EC2-STOP-INSTANCES(1)

πŸ“¦ version 1.6.14.1, in ubuntu jammy, ubuntu noble

πŸ’– EC2-STOP-INSTANCES(1) πŸ’–

okay bestie, welcome to the User Commands section of the manual, and today's main character is ec2-stop-instances β€” the little command that tells your running instances to take a nap. πŸ’€βœ¨


🌸 NAME 🌸

ec2-stop-instances β€” Stop running instances


✨ SYNOPSIS ✨

ec2stop ([ec2-stop-instances])
ec2stop [GENERAL OPTIONS] INSTANCE [INSTANCE [...]]

🫢 GENERAL NOTES 🫢

Any command option or parameter can be handed the value - and that literally means "read the values for this option from stdin, bestie." πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Stop selected running instances. That's the whole vibe.

The INSTANCE parameter is an instance ID to stop. Yes, singular, yes, you can pass a bunch. πŸ‘‘


πŸ’œ GENERAL OPTIONS πŸ’œ

  • -O, --aws-access-key KEY β€” Your AWS Access Key ID. Defaults to whatever the AWS_ACCESS_KEY environment variable is holding (if it's set at all, no cap).
  • -W, --aws-secret-key KEY β€” Your AWS Secret Access Key. Defaults to the value of the AWS_SECRET_KEY environment variable (if set).
  • -T, --security-token TOKEN β€” AWS delegation token. Defaults to the value of the AWS_DELEGATION_TOKEN environment variable (if set).
  • -K, --private-key KEY β€” [DEPRECATED] Specify KEY as the private key to use. Defaults to the value of the EC2_PRIVATE_KEY environment variable (if set). Overrides the default. ngl, this one's giving legacy energy β€” deprecated, so maybe don't make it your whole personality.
  • -C, --cert CERT β€” [DEPRECATED] Specify CERT as the X509 certificate to use. Defaults to the value of the EC2_CERT environment variable (if set). Overrides the default. also deprecated, also living in the past fr fr.
  • -U, --url URL β€” Specify URL as the web service URL to use. Defaults to 'https://ec2.amazonaws.com' (us-east-1) or to that of the EC2_URL environment variable (if set). Overrides the default.
  • --region REGION β€” Specify REGION as the web service region to use. This option will override the URL specified by the "-U URL" option and the EC2_URL environment variable. It defaults to the region specified by the EC2_URL environment variable, or us-east-1 if that environment variable is not set. region supremacy ✨
  • -D, --auth-dry-run β€” Check if you can perform the requested action rather than actually performing it. it's giving "look but don't touch" 🫣
  • -v, --verbose β€” Verbose output. spill the tea, tell me everything πŸ“
  • -?, --help β€” Display this help.
  • -H, --headers β€” Display column headers.
  • --debug β€” Display additional debugging information. for when you need the extra extra. πŸ”₯
  • --show-empty-fields β€” Indicate empty fields.
  • --hide-tags β€” Do not display tags for tagged resources.
  • --connection-timeout TIMEOUT β€” Specify a connection timeout TIMEOUT (in seconds).
  • --request-timeout TIMEOUT β€” Specify a request timeout TIMEOUT (in seconds).

πŸŽ€ SPECIFIC OPTIONS πŸŽ€

  • -f, --force β€” Forcefully stops the instance. no chill, no mercy, just stopped. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯


bestie, quick reminder: -K/--private-key and -C/--cert are DEPRECATED. i'm not being dramatic, the manual literally says so. πŸ™ˆ

and that's the whole page, periodt. πŸ’– this one came from the EC2 API command line tools, version 1.6.14.1, api 2014-05-01 β€” yes it's an old queen but she still serves. πŸ§šβ€β™€οΈπŸŒˆ bye babes, go stop some instances responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from