PATH:
usr
/
local
/
jetapps
/
var
/
lib
/
aws
/
lib
/
python2.7
/
site-packages
/
awscli
/
examples
/
ec2
**To modify Reserved Instances** This example command moves a Reserved Instance to another Availability Zone in the same region. Command:: aws ec2 modify-reserved-instances --reserved-instances-ids b847fa93-e282-4f55-b59a-1342f5bd7c02 --target-configurations AvailabilityZone=us-west-1c,Platform=EC2-Classic,InstanceCount=10 Output:: { "ReservedInstancesModificationId": "rimod-d3ed4335-b1d3-4de6-ab31-0f13aaf46687" } **To modify the network platform of Reserved Instances** This example command converts EC2-Classic Reserved Instances to EC2-VPC. Command:: aws ec2 modify-reserved-instances --reserved-instances-ids f127bd27-edb7-44c9-a0eb-0d7e09259af0 --target-configurations AvailabilityZone=us-west-1c,Platform=EC2-VPC,InstanceCount=5 Output:: { "ReservedInstancesModificationId": "rimod-82fa9020-668f-4fb6-945d-61537009d291" } For more information, see `Modifying Your Reserved Instances`_ in the *Amazon EC2 User Guide*. **To modify the instance size of Reserved Instances** This example command modifies a Reserved Instance that has 10 m1.small Linux/UNIX instances in us-west-1c so that 8 m1.small instances become 2 m1.large instances, and the remaining 2 m1.small become 1 m1.medium instance in the same Availability Zone. Command:: aws ec2 modify-reserved-instances --reserved-instances-ids 1ba8e2e3-3556-4264-949e-63ee671405a9 --target-configurations AvailabilityZone=us-west-1c,Platform=EC2-Classic,InstanceCount=2,InstanceType=m1.large AvailabilityZone=us-west-1c,Platform=EC2-Classic,InstanceCount=1,InstanceType=m1.medium Output:: { "ReservedInstancesModificationId": "rimod-acc5f240-080d-4717-b3e3-1c6b11fa00b6" } For more information, see `Modifying the Instance Size of Your Reservations`_ in the *Amazon EC2 User Guide*. .. _`Modifying the Instance Size of Your Reservations`: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modification-instancemove.html .. _`Modifying Your Reserved Instances`: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ri-modifying.html
[+]
..
[-] purchase-host-reservation.rst
[edit]
[-] create-fpga-image.rst
[edit]
[-] modify-vpc-endpoint-service-configuration.rst
[edit]
[-] describe-spot-fleet-instances.rst
[edit]
[-] create-network-interface-permission.rst
[edit]
[-] update-security-group-rule-descriptions-egress.rst
[edit]
[-] describe-stale-security-groups.rst
[edit]
[-] describe-volume-status.rst
[edit]
[-] describe-elastic-gpus.rst
[edit]
[-] cancel-conversion-task.rst
[edit]
[-] get-console-output.rst
[edit]
[-] release-address.rst
[edit]
[-] create-tags.rst
[edit]
[-] revoke-security-group-egress.rst
[edit]
[-] delete-volume.rst
[edit]
[-] describe-egress-only-internet-gateways.rst
[edit]
[-] describe-hosts.rst
[edit]
[-] modify-instance-event-start-time.rst
[edit]
[-] describe-snapshot-attribute.rst
[edit]
[-] enable-volume-io.rst
[edit]
[-] modify-volume-attribute.rst
[edit]
[-] allocate-hosts.rst
[edit]
[-] describe-vpc-classic-link-dns-support.rst
[edit]
[-] delete-launch-template-versions.rst
[edit]
[-] release-hosts.rst
[edit]
[-] authorize-security-group-egress.rst
[edit]
[-] restore-address-to-classic.rst
[edit]
[-] describe-vpc-classic-link.rst
[edit]
[-] disable-vpc-classic-link.rst
[edit]
[-] delete-network-interface.rst
[edit]
[-] describe-principal-id-format.rst
[edit]
[-] delete-internet-gateway.rst
[edit]
[-] delete-route.rst
[edit]
[-] enable-vpc-classic-link-dns-support.rst
[edit]
[-] delete-security-group.rst
[edit]
[-] describe-classic-link-instances.rst
[edit]
[-] associate-route-table.rst
[edit]
[-] describe-scheduled-instance-availability.rst
[edit]
[-] replace-network-acl-association.rst
[edit]
[-] detach-vpn-gateway.rst
[edit]
[-] describe-network-interface-attribute.rst
[edit]
[-] modify-vpc-endpoint.rst
[edit]
[-] describe-host-reservations.rst
[edit]
[-] create-snapshot.rst
[edit]
[-] run-instances.rst
[edit]
[-] create-network-acl.rst
[edit]
[-] deregister-image.rst
[edit]
[-] report-instance-status.rst
[edit]
[-] describe-instance-attribute.rst
[edit]
[-] replace-iam-instance-profile.rst
[edit]
[-] modify-vpc-endpoint-connection-notification.rst
[edit]
[-] get-reserved-instances-exchange-quote.rst
[edit]
[-] describe-route-tables.rst
[edit]
[-] update-security-group-rule-descriptions-ingress.rst
[edit]
[-] describe-availability-zones.rst
[edit]
[-] describe-internet-gateways.rst
[edit]
[-] create-security-group.rst
[edit]
[-] create-spot-datafeed-subscription.rst
[edit]
[-] associate-subnet-cidr-block.rst
[edit]
[-] describe-security-groups.rst
[edit]
[-] describe-aggregate-id-format.rst
[edit]
[-] create-network-acl-entry.rst
[edit]
[-] describe-prefix-lists.rst
[edit]
[-] delete-vpc-peering-connection.rst
[edit]
[-] create-default-subnet.rst
[edit]
[-] create-vpn-gateway.rst
[edit]
[-] detach-network-interface.rst
[edit]
[-] describe-network-acls.rst
[edit]
[-] create-default-vpc.rst
[edit]
[-] describe-snapshots.rst
[edit]
[-] create-vpn-connection.rst
[edit]
[-] delete-customer-gateway.rst
[edit]
[-] create-vpc-endpoint-connection-notification.rst
[edit]
[-] attach-classic-link-vpc.rst
[edit]
[-] describe-subnets.rst
[edit]
[-] create-instance-export-task.rst
[edit]
[-] associate-address.rst
[edit]
[-] reboot-instances.rst
[edit]
[-] delete-snapshot.rst
[edit]
[-] describe-vpc-attribute.rst
[edit]
[-] monitor-instances.rst
[edit]
[-] create-nat-gateway.rst
[edit]
[-] create-vpc-endpoint.rst
[edit]
[-] get-password-data.rst
[edit]
[-] describe-spot-fleet-requests.rst
[edit]
[-] describe-instances.rst
[edit]
[-] import-key-pair.rst
[edit]
[-] create-subnet.rst
[edit]
[-] describe-vpn-connections.rst
[edit]
[-] create-volume.rst
[edit]
[-] describe-conversion-tasks.rst
[edit]
[-] modify-launch-template.rst
[edit]
[-] delete-vpn-gateway.rst
[edit]
[-] describe-volumes.rst
[edit]
[-] delete-launch-template.rst
[edit]
[-] associate-iam-instance-profile.rst
[edit]
[-] delete-spot-datafeed-subscription.rst
[edit]
[-] purchase-reserved-instances-offering.rst
[edit]
[-] unassign-private-ip-addresses.rst
[edit]
[-] describe-bundle-tasks.rst
[edit]
[-] describe-key-pairs.rst
[edit]
[-] create-internet-gateway.rst
[edit]
[-] describe-spot-fleet-request-history.rst
[edit]
[-] create-flow-logs.rst
[edit]
[-] purchase-scheduled-instances.rst
[edit]
[-] modify-instance-placement.rst
[edit]
[-] modify-hosts.rst
[edit]
[-] delete-vpc-endpoint-connection-notifications.rst
[edit]
[-] enable-vpc-classic-link.rst
[edit]
[-] describe-dhcp-options.rst
[edit]
[-] modify-instance-attribute.rst
[edit]
[-] disable-vpc-classic-link-dns-support.rst
[edit]
[-] describe-host-reservation-offerings.rst
[edit]
[-] get-host-reservation-purchase-preview.rst
[edit]
[-] delete-network-acl.rst
[edit]
[-] describe-security-group-references.rst
[edit]
[-] replace-route.rst
[edit]
[-] reject-vpc-peering-connection.rst
[edit]
[-] create-customer-gateway.rst
[edit]
[-] describe-id-format.rst
[edit]
[-] assign-ipv6-addresses.rst
[edit]
[-] delete-subnet.rst
[edit]
[-] run-scheduled-instances.rst
[edit]
[-] reset-fpga-image-attribute.rst
[edit]
[-] modify-id-format.rst
[edit]
[-] delete-route-table.rst
[edit]
[-] describe-images.rst
[edit]
[-] stop-instances.rst
[edit]
[-] request-spot-instances.rst
[edit]
[-] create-vpc-endpoint-service-configuration.rst
[edit]
[-] create-launch-template-version.rst
[edit]
[-] describe-flow-logs.rst
[edit]
[-] enable-vgw-route-propagation.rst
[edit]
[-] describe-account-attributes.rst
[edit]
[-] describe-export-tasks.rst
[edit]
[-] create-egress-only-internet-gateway.rst
[edit]
[-] disable-vgw-route-propagation.rst
[edit]
[-] cancel-export-task.rst
[edit]
[-] create-image.rst
[edit]
[-] describe-image-attribute.rst
[edit]
[-] attach-volume.rst
[edit]
[-] create-placement-group.rst
[edit]
[-] create-launch-template.rst
[edit]
[-] modify-vpc-attribute.rst
[edit]
[-] delete-vpn-connection-route.rst
[edit]
[-] disassociate-subnet-cidr-block.rst
[edit]
[-] delete-dhcp-options.rst
[edit]
[-] describe-customer-gateways.rst
[edit]
[-] disassociate-route-table.rst
[edit]
[-] modify-vpc-tenancy.rst
[edit]
[-] delete-vpc.rst
[edit]
[-] describe-scheduled-instances.rst
[edit]
[-] disassociate-vpc-cidr-block.rst
[edit]
[-] describe-tags.rst
[edit]
[-] attach-internet-gateway.rst
[edit]
[-] cancel-bundle-task.rst
[edit]
[-] describe-addresses.rst
[edit]
[-] modify-subnet-attribute.rst
[edit]
[-] bundle-instance.rst
[edit]
[-] describe-regions.rst
[edit]
[-] reset-image-attribute.rst
[edit]
[-] revoke-security-group-ingress.rst
[edit]
[-] copy-fpga-image.rst
[edit]
[-] reset-instance-attribute.rst
[edit]
[-] describe-nat-gateways.rst
[edit]
[-] modify-fpga-image-attribute.rst
[edit]
[-] reset-snapshot-attribute.rst
[edit]
[-] delete-placement-group.rst
[edit]
[-] delete-egress-only-internet-gateway.rst
[edit]
[-] terminate-instances.rst
[edit]
[-] describe-launch-template-versions.rst
[edit]
[-] describe-volume-attribute.rst
[edit]
[-] create-route.rst
[edit]
[-] delete-fpga-image.rst
[edit]
[-] associate-vpc-cidr-block.rst
[edit]
[-] disassociate-iam-instance-profile.rst
[edit]
[-] create-dhcp-options.rst
[edit]
[-] modify-instance-credit-specification.rst
[edit]
[-] cancel-spot-instance-requests.rst
[edit]
[-] delete-vpc-endpoint-service-configurations.rst
[edit]
[-] describe-iam-instance-profile-associations.rst
[edit]
[-] detach-classic-link-vpc.rst
[edit]
[-] delete-network-interface-permission.rst
[edit]
[-] create-route-table.rst
[edit]
[-] attach-network-interface.rst
[edit]
[-] create-network-interface.rst
[edit]
[-] detach-volume.rst
[edit]
[-] delete-key-pair.rst
[edit]
[-] describe-reserved-instances-modifications.rst
[edit]
[-] describe-instance-status.rst
[edit]
[-] modify-spot-fleet-request.rst
[edit]
[-] describe-network-interface-permissions.rst
[edit]
[-] describe-fpga-image-attribute.rst
[edit]
[-] copy-image.rst
[edit]
[-] describe-vpc-peering-connections.rst
[edit]
[-] describe-instance-credit-specifications.rst
[edit]
[-] modify-snapshot-attribute.rst
[edit]
[-] create-key-pair.rst
[edit]
[-] attach-vpn-gateway.rst
[edit]
[-] describe-placement-groups.rst
[edit]
[-] create-vpn-connection-route.rst
[edit]
[-] delete-nat-gateway.rst
[edit]
[-] replace-route-table-association.rst
[edit]
[-] describe-spot-datafeed-subscription.rst
[edit]
[-] describe-vpn-gateways.rst
[edit]
[-] delete-network-acl-entry.rst
[edit]
[-] modify-vpc-endpoint-service-permissions.rst
[edit]
[-] unmonitor-instances.rst
[edit]
[-] describe-vpcs.rst
[edit]
[-] reject-vpc-endpoint-connections.rst
[edit]
[-] describe-reserved-instances.rst
[edit]
[-] cancel-spot-fleet-requests.rst
[edit]
[-] modify-reserved-instances.rst
[edit]
[-] describe-vpc-endpoint-services.rst
[edit]
[-] describe-identity-id-format.rst
[edit]
[-] accept-vpc-endpoint-connections.rst
[edit]
[-] describe-spot-instance-requests.rst
[edit]
[-] move-address-to-vpc.rst
[edit]
[-] describe-moving-addresses.rst
[edit]
[-] modify-identity-id-format.rst
[edit]
[-] describe-spot-price-history.rst
[edit]
[-] describe-launch-templates.rst
[edit]
[-] modify-network-interface-attribute.rst
[edit]
[-] describe-vpc-endpoint-service-configurations.rst
[edit]
[-] describe-vpc-endpoint-service-permissions.rst
[edit]
[-] describe-reserved-instances-offerings.rst
[edit]
[-] request-spot-fleet.rst
[edit]
[-] disassociate-address.rst
[edit]
[-] describe-vpc-endpoints.rst
[edit]
[-] delete-tags.rst
[edit]
[-] create-vpc.rst
[edit]
[-] replace-network-acl-entry.rst
[edit]
[-] associate-dhcp-options.rst
[edit]
[-] accept-reserved-instances-exchange-quote.rst
[edit]
[-] register-image.rst
[edit]
[-] assign-private-ip-addresses.rst
[edit]
[-] modify-image-attribute.rst
[edit]
[-] start-instances.rst
[edit]
[-] copy-snapshot.rst
[edit]
[-] detach-internet-gateway.rst
[edit]
[-] authorize-security-group-ingress.rst
[edit]
[-] unassign-ipv6-addresses.rst
[edit]
[-] confirm-product-instance.rst
[edit]
[-] delete-vpn-connection.rst
[edit]
[-] get-launch-template-data.rst
[edit]
[-] describe-vpc-endpoint-connection-notifications.rst
[edit]
[-] accept-vpc-peering-connection.rst
[edit]
[-] describe-vpc-endpoint-connections.rst
[edit]
[-] delete-vpc-endpoints.rst
[edit]
[-] describe-network-interfaces.rst
[edit]
[-] delete-flow-logs.rst
[edit]
[-] modify-vpc-peering-connection-options.rst
[edit]
[-] allocate-address.rst
[edit]
[-] describe-fpga-images.rst
[edit]
[-] create-vpc-peering-connection.rst
[edit]