Difference between revisions of "Aws ec2"

From wikieduonline
Jump to navigation Jump to search
Line 51: Line 51:
  
 
== Create ==
 
== Create ==
* [[create-vpc]]
+
* <code>[[create-vpc]]</code>
* [[create-subnet]]
+
* <code>[[create-subnet]]</code>
* [[create-nat-gateway]]  
+
* <code>[[create-nat-gateway]]</code>
 +
* <code>[[create-key-pair]]</code>
 +
* <code>[[create-vpn-connection]]</code>
  
 
== Related terms ==
 
== Related terms ==

Revision as of 19:41, 26 May 2022

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/index.html

  • Get a list of EC2 instances:
aws ec2 describe-instances
  • Get a list of EC2 instances and filter Name, Id and Status:
aws ec2 describe-instances | egrep 'InstanceId|"Name":|"Value":|PublicIp'
  • Create or run an instance
aws ec2 run-instances [1]
  • Start an EC2 instance:
aws ec2 start-instances --instance-ids i-08cf893bbcfd7dc46 (Use your own instance-id)
  • Stop an EC2 instance:
aws ec2 stop-instances --instance-ids i-08cf893bbcfd7dc46 (Use your own instance-id)
  • Query and display EC2 metadata: ec2metadata [2] (Distributed in cloud-guest-utils package at least in Debian)

Volumes:

Key management:

AWS VPN

AWS VPC

Subnet

Security Group

Create

Related terms

See also

  • https://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html
  • https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
  • Advertising: