aws_instances.md
April 1, 2019 ยท View on GitHub
Document: "ec2"
Path: "https://github.com/aws/aws-sdk-go-v2/tree/master/models/apis/ec2/2016-11-15/api-2.json")
Instances
aws_instances {
additional_info => "additional_info (optional)",
block_device_mappings => "BlockDeviceMappings (optional)",
capacity_reservation_specification => $aws_capacity_reservation_specification
client_token => "client_token (optional)",
cpu_options => $aws_cpu_options_request
credit_specification => $aws_credit_specification_request
disable_api_termination => "DisableApiTermination (optional)",
dry_run => "DryRun (optional)",
ebs_optimized => "EbsOptimized (optional)",
elastic_gpu_specification => "ElasticGpuSpecification (optional)",
elastic_inference_accelerators => "ElasticInferenceAccelerators (optional)",
filters => "Filters (optional)",
hibernation_options => $aws_hibernation_options_request
iam_instance_profile => $aws_iam_instance_profile_specification
kernel_id => "kernel_id (optional)",
image_id => "image_id (optional)",
instance_ids => "InstanceIds (optional)",
instance_initiated_shutdown_behavior => $aws_shutdown_behavior
instance_market_options => $aws_instance_market_options_request
instance_type => $aws_instance_type
ipv6_address_count => "1234 (optional)",
ipv6_addresses => "Ipv6Addresses (optional)",
kernel_id => "kernel_id (optional)",
key_name => "key_name (optional)",
launch_template => $aws_launch_template_specification
license_specifications => $aws_license_specification_list_request
max_count => "1234 (optional)",
max_results => "1234 (optional)",
min_count => "1234 (optional)",
monitoring => $aws_run_instances_monitoring_enabled
network_interfaces => "NetworkInterfaces (optional)",
next_token => "next_token (optional)",
placement => $aws_placement
private_ip_address => "private_ip_address (optional)",
ramdisk_id => "ramdisk_id (optional)",
security_group_ids => "SecurityGroupIds (optional)",
security_groups => "SecurityGroups (optional)",
subnet_id => "subnet_id (optional)",
tag_specifications => "TagSpecifications (optional)",
user_data => "user_data (optional)",
}
| Name | Type | Required |
|---|---|---|
| additional_info | String | false |
| block_device_mappings | BlockDeviceMappingRequestList | false |
| capacity_reservation_specification | CapacityReservationSpecification | false |
| client_token | String | false |
| cpu_options | CpuOptionsRequest | false |
| credit_specification | CreditSpecificationRequest | false |
| disable_api_termination | Boolean | false |
| dry_run | Boolean | false |
| ebs_optimized | Boolean | false |
| elastic_gpu_specification | ElasticGpuSpecifications | false |
| elastic_inference_accelerators | ElasticInferenceAccelerators | false |
| filters | FilterList | false |
| hibernation_options | HibernationOptionsRequest | false |
| iam_instance_profile | IamInstanceProfileSpecification | false |
| kernel_id | String | false |
| image_id | String | false |
| instance_ids | InstanceIdStringList | false |
| instance_initiated_shutdown_behavior | ShutdownBehavior | false |
| instance_market_options | InstanceMarketOptionsRequest | false |
| instance_type | InstanceType | false |
| ipv6_address_count | Integer | false |
| ipv6_addresses | InstanceIpv6AddressList | false |
| kernel_id | String | false |
| key_name | String | false |
| launch_template | LaunchTemplateSpecification | false |
| license_specifications | LicenseSpecificationListRequest | false |
| max_count | Integer | false |
| max_results | Integer | false |
| min_count | Integer | false |
| monitoring | RunInstancesMonitoringEnabled | false |
| network_interfaces | InstanceNetworkInterfaceSpecificationList | false |
| next_token | String | false |
| placement | Placement | false |
| private_ip_address | String | false |
| ramdisk_id | String | false |
| security_group_ids | SecurityGroupIdStringList | false |
| security_groups | SecurityGroupStringList | false |
| subnet_id | String | false |
| tag_specifications | TagSpecificationList | false |
| user_data | String | false |
CRUD operations
Here is a list of endpoints that we use to create, read, update and delete the Instances
| Operation | Path | Verb | Description | OperationID |
|---|---|---|---|---|
| Create | / | POST | Launches the specified number of instances using an AMI for which you have permissions. You can specify a number of options, or leave the default options. The following rules apply:
You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters. To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances. An instance is ready for you to use when it's in the Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key Pairs in the Amazon Elastic Compute Cloud User Guide. For troubleshooting, see What To Do If An Instance Immediately Terminates, and Troubleshooting Connecting to Your Instance in the Amazon Elastic Compute Cloud User Guide. | RunInstances |
| List - list all | / | POST | Describes one or more of your instances. If you specify one or more instance IDs, Amazon EC2 returns information for those instances. If you do not specify instance IDs, Amazon EC2 returns information for all relevant instances. If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the returned results. Recently terminated instances might appear in the returned results. This interval is usually less than one hour. If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally. | DescribeInstances |
| List - get one | `` | |||
| List - get list using params | `` | |||
| Update | `` | |||
| Delete | / | POST | Shuts down one or more instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds. If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated. Terminated instances remain visible after termination (for approximately one hour). By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running. You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the For more information about troubleshooting, see Troubleshooting Terminating Your Instance in the Amazon Elastic Compute Cloud User Guide. | TerminateInstances |