Difference between revisions of "Aws ec2"

From wikieduonline
Jump to navigation Jump to search
Line 56: Line 56:
 
* <code>[[create-key-pair]]</code>
 
* <code>[[create-key-pair]]</code>
 
* <code>[[create-vpn-connection]]</code>
 
* <code>[[create-vpn-connection]]</code>
<pre>
+
 
create-capacity-reservation
+
create-capacity-reservation
create-capacity-reservation-fleet
+
create-capacity-reservation-fleet
create-carrier-gateway
+
create-carrier-gateway
create-client-vpn-endpoint
+
create-client-vpn-endpoint
create-client-vpn-route
+
create-client-vpn-route
create-customer-gateway
+
create-customer-gateway
create-default-subnet
+
create-default-subnet
create-default-vpc
+
create-default-vpc
create-dhcp-options
+
create-dhcp-options
create-egress-only-internet-gateway
+
create-egress-only-internet-gateway
create-fleet
+
create-fleet
create-flow-logs
+
create-flow-logs
create-fpga-image
+
create-fpga-image
create-image
+
create-image
create-instance-event-window
+
create-instance-event-window
create-instance-export-task
+
create-instance-export-task
create-internet-gateway
+
create-internet-gateway
create-ipam
+
create-ipam
create-ipam-pool
+
create-ipam-pool
create-ipam-scope
+
create-ipam-scope
create-key-pair
+
create-key-pair
create-launch-template
+
create-launch-template
create-launch-template-version
+
create-launch-template-version
create-local-gateway-route
+
create-local-gateway-route
create-local-gateway-route-table-vpc-association
+
create-local-gateway-route-table-vpc-association
create-managed-prefix-list
+
create-managed-prefix-list
create-nat-gateway
+
create-nat-gateway
create-network-acl
+
create-network-acl
create-network-acl-entry
+
create-network-acl-entry
create-network-insights-access-scope
+
create-network-insights-access-scope
create-network-insights-path
+
create-network-insights-path
create-network-interface
+
create-network-interface
create-network-interface-permission
+
create-network-interface-permission
create-placement-group
+
create-placement-group
create-public-ipv4-pool
+
create-public-ipv4-pool
create-replace-root-volume-task
+
create-replace-root-volume-task
create-reserved-instances-listing
+
create-reserved-instances-listing
create-restore-image-task
+
create-restore-image-task
create-route
+
create-route
create-route-table
+
create-route-table
create-security-group
+
create-security-group
create-snapshot
+
create-snapshot
create-snapshots
+
create-snapshots
create-spot-datafeed-subscription
+
create-spot-datafeed-subscription
create-store-image-task
+
create-store-image-task
create-subnet
+
create-subnet
create-subnet-cidr-reservation
+
create-subnet-cidr-reservation
create-tags
+
create-tags
create-traffic-mirror-filter
+
create-traffic-mirror-filter
create-traffic-mirror-filter-rule
+
create-traffic-mirror-filter-rule
create-traffic-mirror-session
+
create-traffic-mirror-session
create-traffic-mirror-target
+
create-traffic-mirror-target
create-transit-gateway
+
create-transit-gateway
create-transit-gateway-connect
+
create-transit-gateway-connect
create-transit-gateway-connect-peer
+
create-transit-gateway-connect-peer
create-transit-gateway-multicast-domain
+
create-transit-gateway-multicast-domain
create-transit-gateway-peering-attachment
+
create-transit-gateway-peering-attachment
create-transit-gateway-prefix-list-reference
+
create-transit-gateway-prefix-list-reference
create-transit-gateway-route
+
create-transit-gateway-route
create-transit-gateway-route-table
+
create-transit-gateway-route-table
create-transit-gateway-vpc-attachment
+
create-transit-gateway-vpc-attachment
create-volume
+
create-volume
create-vpc
+
create-vpc
create-vpc-endpoint
+
create-vpc-endpoint
create-vpc-endpoint-connection-notification
+
create-vpc-endpoint-connection-notification
create-vpc-endpoint-service-configuration
+
create-vpc-endpoint-service-configuration
create-vpc-peering-connection
+
create-vpc-peering-connection
create-vpn-connection
+
create-vpn-connection
create-vpn-connection-route
+
create-vpn-connection-route
create-vpn-gateway
+
create-vpn-gateway
</pre>
 
  
 
== Related terms ==
 
== Related terms ==

Revision as of 19:43, 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

create-capacity-reservation
create-capacity-reservation-fleet
create-carrier-gateway
create-client-vpn-endpoint
create-client-vpn-route
create-customer-gateway
create-default-subnet
create-default-vpc
create-dhcp-options
create-egress-only-internet-gateway
create-fleet
create-flow-logs
create-fpga-image
create-image
create-instance-event-window
create-instance-export-task
create-internet-gateway
create-ipam
create-ipam-pool
create-ipam-scope
create-key-pair
create-launch-template
create-launch-template-version
create-local-gateway-route
create-local-gateway-route-table-vpc-association
create-managed-prefix-list
create-nat-gateway
create-network-acl
create-network-acl-entry
create-network-insights-access-scope
create-network-insights-path
create-network-interface
create-network-interface-permission
create-placement-group
create-public-ipv4-pool
create-replace-root-volume-task
create-reserved-instances-listing
create-restore-image-task
create-route
create-route-table
create-security-group
create-snapshot
create-snapshots
create-spot-datafeed-subscription
create-store-image-task
create-subnet
create-subnet-cidr-reservation
create-tags
create-traffic-mirror-filter
create-traffic-mirror-filter-rule
create-traffic-mirror-session
create-traffic-mirror-target
create-transit-gateway
create-transit-gateway-connect
create-transit-gateway-connect-peer
create-transit-gateway-multicast-domain
create-transit-gateway-peering-attachment
create-transit-gateway-prefix-list-reference
create-transit-gateway-route
create-transit-gateway-route-table
create-transit-gateway-vpc-attachment
create-volume
create-vpc
create-vpc-endpoint
create-vpc-endpoint-connection-notification
create-vpc-endpoint-service-configuration
create-vpc-peering-connection
create-vpn-connection
create-vpn-connection-route
create-vpn-gateway

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: