EC2-DETACH-VPN-GATEWAY(1)

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

✨ EC2-DETACH-VPN-GATEWAY ✨

okay bestie, welcome to the ec2-detach-vpn-gateway page, from the User Commands manual πŸ’… this one is short and sweet and honestly? iconic.


πŸŽ€ NAME πŸŽ€

ec2-detach-vpn-gateway β€” Detaches a VPN gateway from a VPC

like. that's the whole vibe. we're detaching. we're freeing the gateway. slay.


🌸 SYNOPSIS 🌸

ec2detvgw ([ec2-detach-vpn-gateway])
ec2detvgw [GENERAL OPTIONS] VPN_GATEWAY -c VPC

πŸ’– GENERAL NOTES πŸ’–

Any command option/parameter may be passed a value of - to indicate that values for that option should be read from stdin.

yes literally any of them. pass the little dash and it'll read from stdin instead. no cap 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

Detaches a VPN gateway from a VPC. The VPN_GATEWAY parameter is the VPN gateway you want to detach from the VPC.

that's it, that's the plot. you hand it a VPN gateway, you point it at a VPC, and it unhooks them from each other. it's giving "we need to talk" energy but for infrastructure πŸ’€


πŸ‘‘ GENERAL OPTIONS πŸ‘‘

  • -O, --aws-access-key _KEY_ β€” AWS Access Key ID. Defaults to the value of the AWS_ACCESS_KEY environment variable (if set).
  • -W, --aws-secret-key _KEY_ β€” 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.
  • -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.
  • -U, --url _URL_ β€” Specify URL as the web service URL to use. Defaults to the value of 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 EC2_URL environment variable. This option defaults to the region specified by the EC2_URL environment variable or us-east-1 if this environment variable is not set.
  • -D, --auth-dry-run β€” Check if you can perform the requested action rather than actually performing it.
  • -v, --verbose β€” Verbose output.
  • -?, --help β€” Display this help.
  • -H, --headers β€” Display column headers.
  • --debug β€” Display additional debugging information.
  • --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).
bestie PSA: -K and -C are marked [DEPRECATED], so maybe don't build your whole personality around them, okay? πŸ™ˆ they still work, they're just… old news.

πŸ’œ SPECIFIC OPTIONS πŸ’œ

  • -c, --vpc _VPC_ β€” The ID of the VPC you want to detach the VPN gateway from.

this is the one that actually matters for this command, and yes, the synopsis makes you use it. -c VPC, every time. periodt ✨


🌈 SEE ALSO 🌈

go read those if you want the full lore, iykyk πŸ“š


and that's the whole page, bestie!! πŸ₯³ this little gem is from the EC2 API command line tools, version 1.6.14.1, api=2014-05-01, filed under EC2-DETACH-VPN-GATEWAY(1). mwah, go detach something responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from