Text of docs.aws.amazon.com › cli › latest › reference › ec2 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

ec2 — AWS CLI 2.41.1 Command Reference

AWS CLI Command Reference Home User Guide Forum GitHub Navigation index next | previous | AWS CLI 2.41.1 Command Reference » aws » ec2 ← start-snapshot / accept-address-transfer → Table of Contents ec2 Description Available Commands Quick search Feedback Did you find this page useful? Do you have a suggestion to improve the documentation? Give us feedback . If you would like to suggest an improvement or fix for the AWS CLI, check out our contributing guide on GitHub.

User Guide First time using the AWS CLI? See the User Guide for help getting started. [ aws ] ec2 ¶ Description ¶ This is the Amazon EC2 API Reference . It provides descriptions, API request parameters, and the XML response for each of the Amazon EC2 Query API actions. Note that the Amazon EC2 API includes actions for Amazon EC2 plus additional services, such as Amazon EBS and Amazon VPC. Learn more To learn about using the Query API, see Using the API for Amazon EC2 .

To learn about the permissions required to call an Amazon EC2 API action, see Actions, resources, and condition keys for Amazon EC2 . To get the list of API actions by service and resource, see Actions by service . To get the alphabetical list of API actions, see . To get descriptions of the API error codes, see Error codes for the Amazon EC2 API . Alternatively, use one of the following methods to access the Amazon EC2 API, instead of using the Query API directly: Amazon Web Services CLI Command Reference - ec2 commands CloudFormation - Amazon EC2 resource type reference Amazon Web Services Tools for PowerShell Cmdlet Reference - Amazon EC2 cmdlets Amazon Web Services SDKs Available Commands ¶ accept-address-transfer accept-capacity-reservation-billing-ownership accept-reserved-instances-exchange-quote accept-transit-gateway-client-vpn-attachment accept-transit-gateway-multicast-domain-associations accept-transit-gateway-peering-attachment accept-transit-gateway-vpc-attachment accept-vpc-endpoint-connections accept-vpc-peering-connection advertise-byoip-cidr allocate-address allocate-hosts allocate-ipam-pool-cidr apply-security-groups-to-client-vpn-target-network assign-ipv6-addresses assign-private-ip-addresses assign-private-nat-gateway-address associate-address associate-application-status-check associate-capacity-reservation-billing-owner associate-client-vpn-target-network associate-dhcp-options associate-enclave-certificate-iam-role associate-iam-instance-profile associate-instance-event-window associate-ipam-byoasn associate-ipam-resource-discovery associate-kms-key-id associate-nat-gateway-address associate-networking-flex-cost-allocation-policy associate-route-server associate-route-table associate-security-group-vpc associate-subnet-cidr-block associate-transit-gateway-multicast-domain associate-transit-gateway-policy-table associate-transit-gateway-route-table associate-trunk-interface associate-vpc-cidr-block attach-classic-link-vpc attach-image-watermark attach-internet-gateway attach-network-interface attach-verified-access-trust-provider attach-volume attach-vpn-gateway authorize-client-vpn-ingress authorize-security-group-egress authorize-security-group-ingress batch-modify-ipam-routing-policy-registrations bundle-instance cancel-bundle-task cancel-capacity-reservation cancel-capacity-reservation-fleets cancel-conversion-task cancel-declarative-policies-report cancel-export-task cancel-image-launch-permission cancel-import-task cancel-reserved-instances-listing cancel-spot-fleet-requests cancel-spot-instance-requests confirm-product-instance copy-fpga-image copy-image copy-snapshot copy-volumes create-application-status-check create-capacity-manager-data-export create-capacity-reservation create-capacity-reservation-by-splitting create-capacity-reservation-cancellation-quote create-capacity-reservation-date-change-quote create-capacity-reservation-fleet create-carrier-gateway create-client-vpn-endpoint create-client-vpn-route create-coip-cidr create-coip-pool create-customer-gateway create-default-subnet create-default-vpc create-delegate-mac-volume-ownership-task create-dhcp-options create-egress-only-internet-gateway create-fleet create-flow-logs create-fpga-image create-image create-image-usage-report create-instance-connect-endpoint create-instance-event-window create-instance-export-task create-internet-gateway create-interruptible-capacity-reservation-allocation create-ipam create-ipam-external-resource-verification-token create-ipam-internet-registry-association create-ipam-policy create-ipam-pool create-ipam-prefix-list-resolver create-ipam-prefix-list-resolver-target create-ipam-resource-discovery create-ipam-routing-policy-registration create-ipam-scope create-key-pair create-launch-template create-launch-template-version create-local-gateway-route create-local-gateway-route-table create-local-gateway-route-table-virtual-interface-group-association create-local-gateway-route-table-vpc-association create-local-gateway-virtual-interface create-local-gateway-virtual-interface-group create-mac-system-integrity-protection-modification-task create-managed-prefix-list create-metric-category 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-networking-flex-cost-allocation-policy create-placement-group create-public-ipv4-pool create-replace-root-volume-task create-reserved-instances-listing create-restore-image-task create-route create-route-server create-route-server-endpoint create-route-server-peer create-route-table create-secondary-network create-secondary-subnet 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-metering-policy create-transit-gateway-metering-policy-entry create-transit-gateway-multicast-domain create-transit-gateway-network-function-attachment create-transit-gateway-peering-attachment create-transit-gateway-policy-table create-transit-gateway-policy-table-entry create-transit-gateway-prefix-list-reference create-transit-gateway-route create-transit-gateway-route-table create-transit-gateway-route-table-announcement create-transit-gateway-vpc-attachment create-verified-access-endpoint create-verified-access-group create-verified-access-instance create-verified-access-trust-provider create-volume create-vpc create-vpc-block-public-access-exclusion create-vpc-encryption-control create-vpc-endpoint create-vpc-endpoint-connection-notification create-vpc-endpoint-service-configuration create-vpc-peering-connection create-vpn-concentrator create-vpn-connection create-vpn-connection-route create-vpn-gateway delete-application-status-check delete-capacity-manager-data-export delete-carrier-gateway delete-client-vpn-endpoint delete-client-vpn-endpoint-authorization-policy delete-client-vpn-route delete-coip-cidr delete-coip-pool delete-customer-gateway delete-dhcp-options delete-egress-only-internet-gateway delete-fleets delete-flow-logs delete-fpga-image delete-image-usage-report delete-instance-connect-endpoint delete-instance-event-window delete-internet-gateway delete-ipam delete-ipam-external-resource-verification-token delete-ipam-internet-registry-association delete-ipam-policy delete-ipam-pool delete-ipam-prefix-list-resolver delete-ipam-prefix-list-resolver-target delete-ipam-resource-discovery delete-ipam-routing-policy-registration delete-ipam-scope delete-key-pair delete-launch-template delete-launch-template-versions delete-local-gateway-route delete-local-gateway-route-table delete-local-gateway-route-table-virtual-interface-group-association delete-local-gateway-route-table-

The rest of this page is on the live site.