EC2-ATTACH-NETWORK-INTERFACE(1)
EC2-ATTACH-NETWORK-INTERFACE π
okay bestie, so you know how sometimes your lil cloud instance is just sitting there with no network interface and you're like "girl... get a life"? yeah. this is the manual page for ec2-attach-network-interface π
β it's a User Command from the EC2 API command line tools, and it does exactly the one thing it says on the tin. iconic behaviour, honestly.
β¨ NAME β¨
ec2-attach-network-interface β attaches a network interface to an instance. that's it. that's the whole job. she's a one-trick pony and she ATE π
πΈ SYNOPSIS πΈ
ec2attnic ([ec2-attach-network-interface])
ec2attnic [GENERAL OPTIONS] NETWORKINTERFACE -i INSTANCE -d DEVICEINDEX
so the short lil nickname is ec2attnic, and you can also call her by her full government name ec2-attach-network-interface. either way, she wants your NETWORKINTERFACE plus an instance (-i INSTANCE) and a device index (-d DEVICEINDEX). no cap. π¦
π GENERAL NOTES π
okay so this is the part everyone skips and then cries about later: any command option or parameter can be handed a value of -, and that means "bestie, read the values for this option from stdin instead." every single one. fr fr. π₯
π DESCRIPTION π
Attaches a network interface to an instance. she's simple, she's direct, she's not here to waste your time. main character energy but make it infrastructure. β¨
π GENERAL OPTIONS π
these are the shared ones β every command in the fam has them, so learn them once and you're set for life. iykyk. π
-O,--aws-access-key KEYβ your AWS Access Key ID. if you don't say anything, she defaults to whatever's in theAWS_ACCESS_KEYenvironment variable (if it's set). π-W,--aws-secret-key KEYβ your AWS Secret Access Key. defaults to the value of theAWS_SECRET_KEYenvironment variable (if set). keep this one secret bestie, literally the name says it π-T,--security-token TOKENβ the AWS delegation token. defaults to the value of theAWS_DELEGATION_TOKENenvironment variable (if set). π¦-K,--private-key KEYβ [DEPRECATED] π specifyKEYas the private key to use. defaults to the value of theEC2_PRIVATE_KEYenvironment variable (if set). overrides the default.-C,--cert CERTβ [DEPRECATED] π specifyCERTas the X509 certificate to use. defaults to the value of theEC2_CERTenvironment variable (if set). overrides the default.
both of those are deprecated, okay? like, we don't do that anymore. she'll still let you, but the vibes are off. π
-U,--url URLβ specifyURLas the web service URL to use. defaults to the value of'https://ec2.amazonaws.com'(us-east-1) or to that of theEC2_URLenvironment variable (if set). overrides the default. β--region REGIONβ specifyREGIONas the web service region to use. this option will override the URL specified by the-U URLoption and theEC2_URLenvironment variable. it defaults to the region specified by theEC2_URLenvironment variable, orus-east-1if that environment variable is not set. π-D,--auth-dry-runβ checks if you can perform the requested action instead of actually performing it. the "just checking babe, not committing" option. π§-v,--verboseβ verbose output. she will tell you EVERYTHING. not me being nosy π₯-?,--helpβ display this help. hi, you are here. π-H,--headersβ display column headers. π--debugβ display additional debugging information. for when it's giving... problems. π--show-empty-fieldsβ indicate empty fields. yes queen, show us the nothing. β¨--hide-tagsβ do not display tags for tagged resources. π--connection-timeout TIMEOUTβ specify a connection timeoutTIMEOUT(in seconds). β³--request-timeout TIMEOUTβ specify a request timeoutTIMEOUT(in seconds). β³
π SPECIFIC OPTIONS π
these are the ones that actually do the thing. the moment. the main event. π
-i,--instance INSTANCEβ the ID of the instance that will be attached to the network interface. that's the girl getting the glow-up. π-d,--device-index DEVICEINDEXβ the index of the device for the network interface attachment on the instance. which slot she's sitting in. π
π SEE ALSO π
go read the lore, bestie:
http://docs.amazonwebservices.com/AWSEC2/2014-05-01/CommandLineReferencehttp://docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference
π bye babes π
that's the whole page! this was EC2 API command line tools, version 1.6.14.1, api 2014-05 β so yes she's a lil vintage, she's an old money icon, and she still works. go attach that network interface. slay. π
β¨π«Ά
π¦ where this page comes from
- ubuntu jammy: ec2-api-tools 1.6.14.1-0ubuntu1
- ubuntu noble: ec2-api-tools 1.6.14.1-0ubuntu2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms