Learn R Programming


title: "Quick-Start-Guide" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Quick-Start-Guide} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8}

Introduction

This package aims to provide the functions for communicating with Amazon Web Services(AWS) Elastic Container Service(ECS) using AWS REST APIs. The ECS functions start with the prefix ecs_ and EC2 functions start with ec2_. The general-purpose functions have the prefix aws_.

Since there are above 400 EC2 APIs, it is not possible for the unit test to cover all use cases. If you see any problems when using the package, please consider to submit the issue to GitHub issue.

Authentication

Credentials must be provided for using the package. The package uses access key id and secret access key to authenticate with AWS. See AWS user guide for the information about how to obtain them from AWS console. The credentials can be set via aws_set_credentials().

aws_set_credentials()
#> $access_key_id
#> [1] "AK**************OYX3"
#> 
#> $secret_access_key
#> [1] "mL**********************************XGGH"
#> 
#> $region
#> [1] "ap-southeast-1"

The function aws_set_credentials sets both the credentials and the region of the AWS service. You can either explicitly provide them by the function arguments or rely on the locator to automatically find your credentials. There are many ways to locate the credentials but the most important methods are as follow(sorted by the search order):

  1. environment variables AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION, and AWS_SESSION_TOKEN

  2. a profile in a global credentials dot file in a location set by AWS_SHARED_CREDENTIALS_FILE or defaulting typically to "~/.aws/credentials" (or another OS-specific location), using the profile specified by AWS_PROFILE

Users can find the details on how the credentials are located from ?aws.signature::locate_credentials. A list of AWS regions can be found by calling the function aws_list_regions.

aws_list_regions()
#>  [1] "us-east-1"      "us-east-2"      "us-west-1"      "us-west-2"      "us-gov-west-1" 
#>  [6] "us-gov-east-1"  "ca-central-1"   "eu-north-1"     "eu-west-1"      "eu-west-2"     
#> [11] "eu-west-3"      "eu-central-1"   "eu-south-1"     "af-south-1"     "ap-northeast-1"
#> [16] "ap-northeast-2" "ap-northeast-3" "ap-southeast-1" "ap-southeast-2" "ap-east-1"     
#> [21] "ap-south-1"     "sa-east-1"      "me-south-1"

Call the functions

Calling the EC2 or ECS function is simple, for example, you can list all ECS clusters via

ecs_list_clusters()
#> REST request failed with the message:
#>  Timeout was reached: [ecs.ap-southeast-1.amazonaws.com] Send failure: Connection was aborted
#> [1] "arn:aws:ecs:ap-southeast-1:020007817719:cluster/R-worker-cluster"
#> [2] "arn:aws:ecs:ap-southeast-1:020007817719:cluster/test"

The original EC2 and ECS APIs accept the request parameter via the query parameter or header and return the result by JSON or XML text in the REST request. The package provides a unified way to call both APIs. The request parameters can be given by the function arguments and the result is returned in a list format. If possible, the package will try to simplify the result and return a simple character vector. It will also handle the nextToken parameter in the REST APIs and collect the full result in a single function call. This default behavior can be turned off by providing the parameter simplefy = FALSE.

Each EC2 or ECS API has its own document. For example, you can find the help page of ecs_list_clusters via ?ecs_list_clusters. The full description of the APIs can be found at AWS Documentation.

A note for the AWS EC2 functions

Array

While the AWS Documentation is very helpful in finding the API use cases. There are some inconsistencies between the AWS Documentation and the package functions. To be more specific, the array type parameter will get a special treatment in this package. For example, here is an example for DescribeVpcs from the AWS Documentation which describes the specified VPCs

https://ec2.amazonaws.com/?Action=DescribeVpcs
&VpcId.1=vpc-081ec835f3EXAMPLE
&vpcId.2=vpc-0ee975135dEXAMPLE
&VpcId.3=vpc-06e4ab6c6cEXAMPLE

The VpcId is so-called array object in the AWS Documentation. The package uses a vector or a list to represent the array object. The dot . in the array can be explained as [[ and anything followed by the dot can be explained as the index. Therefore, the corresponding R expression for VpcId is

## VpcId can also be a character vector
VpcId <- list()
VpcId[[1]] <- "vpc-081ec835f3EXAMPLE"
VpcId[[2]] <- "vpc-0ee975135dEXAMPLE"
VpcId[[3]] <- "vpc-06e4ab6c6cEXAMPLE"

VpcId
#> [[1]]
#> [1] "vpc-081ec835f3EXAMPLE"
#> 
#> [[2]]
#> [1] "vpc-0ee975135dEXAMPLE"
#> 
#> [[3]]
#> [1] "vpc-06e4ab6c6cEXAMPLE"

and the same request in R can be made by

ec2_describe_vpcs(VpcId = VpcId)

Internally, VpcId will be converted to an array object using the function list_to_array, e.g.

## The first argument is the parameter prefix
## The second argument should be a (named) vector or list
list_to_array("VpcId", VpcId)
#> $VpcId.1
#> [1] "vpc-081ec835f3EXAMPLE"
#> 
#> $VpcId.2
#> [1] "vpc-0ee975135dEXAMPLE"
#> 
#> $VpcId.3
#> [1] "vpc-06e4ab6c6cEXAMPLE"

Just like list can be nested, the array object can be nested as well. For example, if we have a tags array like

tags.1.name = name-example
tags.1.value.1 = value-example1
tags.1.value.2 = value-example2

Using the array rule we mentioned above, the corresponding R expression is

tags <- list()
tags[[1]] <- list()
tags[[1]][["name"]] <- "name-example"
tags[[1]][["value"]] <- list()
tags[[1]][["value"]][[1]] <- "value-example1"
tags[[1]][["value"]][[2]] <- "value-example2"

tags
#> [[1]]
#> [[1]]$name
#> [1] "name-example"
#> 
#> [[1]]$value
#> [[1]]$value[[1]]
#> [1] "value-example1"
#> 
#> [[1]]$value[[2]]
#> [1] "value-example2"

We can verify the request parameter using list_to_array

list_to_array("tags", tags)
#> $tags.1.name
#> [1] "name-example"
#> 
#> $tags.1.value.1
#> [1] "value-example1"
#> 
#> $tags.1.value.2
#> [1] "value-example2"

Filter

A even more aggressive change can be found on the Filter parameter. Here is an example of describing VPCs which satisfy some specific conditions from the AWS Documentation

https://ec2.amazonaws.com/?Action=DescribeVpcs
&Filter.1.Name=dhcp-options-id
&Filter.1.Value.1=dopt-7a8b9c2d
&Filter.1.Value.2=dopt-2b2a3d3c
&Filter.2.Name=state
&Filter.2.Value.1=available

The Filter parameter is, of course, an array object in AWS documentation. However, it is clearly redundant to specify the filter's name and value separately. Therefore, the package allows users to provide the filter as a named list. The same request in R can be given by

ec2_describe_vpcs(
  Filter = list(
    `dhcp-options-id` = c("dopt-7a8b9c2d", "dopt-2b2a3d3c"),
    state="available"
  )
)

The Filter parameter will be converted into a list object which meets the AWS filter requirement. If you are unsure about whether you has specified the correct filter, you can check the converted filter values via

filter <- list(
    `dhcp-options-id` = c("dopt-7a8b9c2d", "dopt-2b2a3d3c"),
    state="available"
  )
list_to_filter(filter)
#> $Filter.1.Name
#> [1] "dhcp-options-id"
#> 
#> $Filter.1.Value.1
#> [1] "dopt-7a8b9c2d"
#> 
#> $Filter.1.Value.2
#> [1] "dopt-2b2a3d3c"
#> 
#> $Filter.2.Name
#> [1] "state"
#> 
#> $Filter.2.Value.1
#> [1] "available"

A note for the AWS ECS functions

The AWS ECS API uses JSON format to assemble the request parameter. Therefore, the ECS functions will call rjson::toJSON to convert the request parameters into JSON objects. If you are not sure if you use the parameter correctly, you can manually run rjson::toJSON and compare the result with the example provided in AWS documentation. For example, the request syntax for the tags parameter in CreateCluster API is

"tags": [ 
         { 
            "key": "string",
            "value": "string"
         }
      ]

The corresponding R format should be

tags <- list(
  c(key = "key", value = "value")
  )

You can verify it by

cat(rjson::toJSON(tags, indent = 1))
#> [
#>  {
#> "key":"key",
#> "value":"value"
#>  }
#> ]

Package settings

The package handles the network issue via the parameter retry_time, print_on_error and network_timeout.

aws_get_retry_time()
#> [1] 5
aws_get_print_on_error()
#> [1] TRUE
aws_get_network_timeout()
#> [1] 2

retry_time determines the number of time the function will retry when network error occurs before throwing an error. If print_on_error is set to False, no message will be given when the network error has occurred and the package will silently resend the REST request. network_timeout decides how long the function will wait before it fails. They can be changed via the corresponding setters(e.g. aws_set_retry_time). You can also temporary alter the setting by providing the package setting as a parameter in the EC2 or ECS function.

Warning

Not all AWS APIs are idempotent, especially for the functions that need to allocate resources on AWS(e.g. ecs_start_task). If you plan to use the AWS function in your package, special handle for the network issue is required for the non-idempotent API to avoid a double allocation.

Session info

sessionInfo()
#> R version 4.0.4 (2021-02-15)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 19042)
#> 
#> Matrix products: default
#> 
#> locale:
#> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
#> [3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
#> [5] LC_TIME=English_United States.1252    
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] aws.ecx_1.0.4
#> 
#> loaded via a namespace (and not attached):
#>  [1] tidyselect_1.1.0    xfun_0.19           remotes_2.2.0       purrr_0.3.4        
#>  [5] generics_0.1.0      vctrs_0.3.4         colorspace_2.0-0    testthat_3.0.2     
#>  [9] usethis_1.6.3       htmltools_0.5.0     stats4_4.0.4        yaml_2.2.1         
#> [13] base64enc_0.1-3     rlang_0.4.10        pkgbuild_1.1.0      pillar_1.4.6       
#> [17] rapiclient_0.1.3    glue_1.4.2          withr_2.3.0         BiocGenerics_0.36.0
#> [21] RColorBrewer_1.1-2  sessioninfo_1.1.1   rvcheck_0.1.8       lifecycle_0.2.0    
#> [25] stringr_1.4.0       dlstats_0.1.3       munsell_0.5.0       commonmark_1.7     
#> [29] gtable_0.3.0        devtools_2.3.2      memoise_1.1.0       evaluate_0.14      
#> [33] knitr_1.31          callr_3.5.1         ps_1.4.0            curl_4.3           
#> [37] parallel_4.0.4      Rcpp_1.0.5          BiocManager_1.30.10 scales_1.1.1       
#> [41] formatR_1.8         S4Vectors_0.28.0    desc_1.2.0          pkgload_1.1.0      
#> [45] jsonlite_1.7.2      fs_1.5.0            rjson_0.2.20        ggplot2_3.3.2      
#> [49] digest_0.6.27       stringi_1.5.3       dplyr_1.0.2         processx_3.4.4     
#> [53] rprojroot_2.0.2     grid_4.0.4          cli_2.3.1           tools_4.0.4        
#> [57] magrittr_1.5        tibble_3.0.4        pkgconfig_2.0.3     crayon_1.3.4       
#> [61] aws.signature_0.6.0 whisker_0.4         ellipsis_0.3.1      xml2_1.3.2         
#> [65] prettyunits_1.1.1   assertthat_0.2.1    rmarkdown_2.7       httr_1.4.2         
#> [69] roxygen2_7.1.1      rstudioapi_0.13     badger_0.0.9        R6_2.5.0           
#> [73] compiler_4.0.4

future work

  1. Convert parameter type if it does not meet the AWS type requirement. Done

  2. add link to the function documentation

Copy Link

Version

Install

install.packages('aws.ecx')

Monthly Downloads

281

Version

1.0.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jiefei Wang

Last Published

January 26th, 2022

Functions in aws.ecx (1.0.5)

aws_set_credentials

Set or get AWS credentials
ec2_accept_transit_gateway_multicast_domain_associations

Accept Transit Gateway Multicast Domain Associations
CommonDoc

Common documents
ec2_accept_transit_gateway_vpc_attachment

Accept Transit Gateway Vpc Attachment
ec2_accept_vpc_peering_connection

Accept Vpc Peering Connection
list_to_array

Utility functions
ec2_accept_transit_gateway_peering_attachment

Accept Transit Gateway Peering Attachment
ec2_accept_vpc_endpoint_connections

Accept Vpc Endpoint Connections
ec2_accept_reserved_instances_exchange_quote

Accept Reserved Instances Exchange Quote
ec2_advertise_byoip_cidr

Advertise Byoip Cidr
ec2_associate_client_vpn_target_network

Associate Client Vpn Target Network
ec2_allocate_address

Allocate Address
ec2_apply_security_groups_to_client_vpn_target_network

Apply Security Groups To Client Vpn Target Network
ec2_attach_vpn_gateway

Attach Vpn Gateway
ec2_attach_volume

Attach Volume
ec2_associate_route_table

Associate Route Table
ec2_associate_enclave_certificate_iam_role

Associate Enclave Certificate Iam Role
ec2_cancel_import_task

Cancel Import Task
ec2_cancel_reserved_instances_listing

Cancel Reserved Instances Listing
ec2_associate_iam_instance_profile

Associate Iam Instance Profile
ec2_associate_subnet_cidr_block

Associate Subnet Cidr Block
ec2_authorize_security_group_egress

Authorize Security Group Egress
ec2_authorize_client_vpn_ingress

Authorize Client Vpn Ingress
ec2_allocate_hosts

Allocate Hosts
ec2_cancel_conversion_task

Cancel Conversion Task
ec2_cancel_export_task

Cancel Export Task
ec2_assign_private_ip_addresses

Assign Private Ip Addresses
ec2_copy_image

Copy Image
ec2_associate_address

Associate Address
ec2_create_capacity_reservation

Create Capacity Reservation
ec2_create_client_vpn_endpoint

Create Client Vpn Endpoint
ec2_create_client_vpn_route

Create Client Vpn Route
ec2_create_image

Create Image
ec2_assign_ipv6_addresses

Assign Ipv6 Addresses
ec2_associate_transit_gateway_multicast_domain

Associate Transit Gateway Multicast Domain
ec2_create_carrier_gateway

Create Carrier Gateway
ec2_attach_internet_gateway

Attach Internet Gateway
ec2_create_egress_only_internet_gateway

Create Egress Only Internet Gateway
ec2_associate_transit_gateway_route_table

Associate Transit Gateway Route Table
ec2_associate_dhcp_options

Associate Dhcp Options
ec2_associate_vpc_cidr_block

Associate Vpc Cidr Block
ec2_create_network_acl

Create Network Acl
ec2_create_flow_logs

Create Flow Logs
ec2_create_fpga_image

Create Fpga Image
ec2_copy_snapshot

Copy Snapshot
ec2_create_network_acl_entry

Create Network Acl Entry
ec2_create_default_subnet

Create Default Subnet
ec2_create_launch_template_version

Create Launch Template Version
ec2_create_customer_gateway

Create Customer Gateway
ec2_create_launch_template

Create Launch Template
ec2_create_instance_export_task

Create Instance Export Task
ec2_create_tags

Create Tags
ec2_create_traffic_mirror_filter

Create Traffic Mirror Filter
ec2_create_network_interface_permission

Create Network Interface Permission
ec2_authorize_security_group_ingress

Authorize Security Group Ingress
ec2_attach_network_interface

Attach Network Interface
ec2_create_placement_group

Create Placement Group
ec2_create_vpn_connection_route

Create Vpn Connection Route
ec2_create_vpc

Create Vpc
ec2_create_volume

Create Volume
ec2_create_vpn_connection

Create Vpn Connection
ec2_confirm_product_instance

Confirm Product Instance
ec2_bundle_instance

Bundle Instance
ec2_attach_classic_link_vpc

Attach Classic Link Vpc
ec2_create_transit_gateway_connect

Create Transit Gateway Connect
ec2_delete_local_gateway_route

Delete Local Gateway Route
ec2_delete_local_gateway_route_table_vpc_association

Delete Local Gateway Route Table Vpc Association
ec2_copy_fpga_image

Copy Fpga Image
ec2_create_transit_gateway_connect_peer

Create Transit Gateway Connect Peer
ec2_delete_client_vpn_endpoint

Delete Client Vpn Endpoint
ec2_create_fleet

Create Fleet
ec2_create_route_table

Create Route Table
ec2_create_internet_gateway

Create Internet Gateway
ec2_cancel_bundle_task

Cancel Bundle Task
ec2_create_managed_prefix_list

Create Managed Prefix List
ec2_delete_client_vpn_route

Delete Client Vpn Route
ec2_create_nat_gateway

Create Nat Gateway
ec2_create_reserved_instances_listing

Create Reserved Instances Listing
ec2_create_key_pair

Create Key Pair
ec2_cancel_spot_instance_requests

Cancel Spot Instance Requests
ec2_cancel_spot_fleet_requests

Cancel Spot Fleet Requests
ec2_create_default_vpc

Create Default Vpc
ec2_cancel_capacity_reservation

Cancel Capacity Reservation
ec2_create_dhcp_options

Create Dhcp Options
ec2_create_snapshot

Create Snapshot
ec2_create_snapshots

Create Snapshots
ec2_create_spot_datafeed_subscription

Create Spot Datafeed Subscription
ec2_create_subnet

Create Subnet
ec2_create_transit_gateway_prefix_list_reference

Create Transit Gateway Prefix List Reference
ec2_create_transit_gateway_route

Create Transit Gateway Route
ec2_delete_fpga_image

Delete Fpga Image
ec2_delete_flow_logs

Delete Flow Logs
ec2_delete_route

Delete Route
ec2_create_vpc_endpoint_service_configuration

Create Vpc Endpoint Service Configuration
ec2_delete_route_table

Delete Route Table
ec2_delete_network_acl

Delete Network Acl
ec2_delete_tags

Delete Tags
ec2_delete_network_acl_entry

Delete Network Acl Entry
ec2_delete_traffic_mirror_filter

Delete Traffic Mirror Filter
ec2_create_vpc_peering_connection

Create Vpc Peering Connection
ec2_delete_transit_gateway_multicast_domain

Delete Transit Gateway Multicast Domain
ec2_deprovision_byoip_cidr

Deprovision Byoip Cidr
ec2_create_security_group

Create Security Group
ec2_delete_vpn_gateway

Delete Vpn Gateway
ec2_describe_addresses_attribute

Describe Addresses Attribute
ec2_delete_transit_gateway_peering_attachment

Delete Transit Gateway Peering Attachment
ec2_describe_aggregate_id_format

Describe Aggregate Id Format
ec2_describe_elastic_gpus

Describe Elastic Gpus
ec2_describe_export_image_tasks

Describe Export Image Tasks
ec2_delete_internet_gateway

Delete Internet Gateway
ec2_create_vpc_endpoint

Create Vpc Endpoint
ec2_create_route

Create Route
ec2_create_traffic_mirror_target

Create Traffic Mirror Target
ec2_create_transit_gateway

Create Transit Gateway
ec2_create_vpc_endpoint_connection_notification

Create Vpc Endpoint Connection Notification
ec2_create_transit_gateway_route_table

Create Transit Gateway Route Table
ec2_delete_customer_gateway

Delete Customer Gateway
ec2_create_vpn_gateway

Create Vpn Gateway
ec2_create_transit_gateway_vpc_attachment

Create Transit Gateway Vpc Attachment
ec2_create_local_gateway_route_table_vpc_association

Create Local Gateway Route Table Vpc Association
ec2_delete_launch_template

Delete Launch Template
ec2_delete_dhcp_options

Delete Dhcp Options
ec2_describe_fpga_image_attribute

Describe Fpga Image Attribute
ec2_create_local_gateway_route

Create Local Gateway Route
ec2_describe_fpga_images

Describe Fpga Images
ec2_describe_carrier_gateways

Describe Carrier Gateways
ec2_delete_carrier_gateway

Delete Carrier Gateway
ec2_delete_network_insights_analysis

Delete Network Insights Analysis
ec2_describe_instance_type_offerings

Describe Instance Type Offerings
ec2_delete_placement_group

Delete Placement Group
ec2_delete_security_group

Delete Security Group
ec2_delete_queued_reserved_instances

Delete Queued Reserved Instances
ec2_delete_key_pair

Delete Key Pair
ec2_describe_classic_link_instances

Describe Classic Link Instances
ec2_delete_network_insights_path

Delete Network Insights Path
ec2_create_network_insights_path

Create Network Insights Path
ec2_delete_traffic_mirror_filter_rule

Delete Traffic Mirror Filter Rule
ec2_describe_export_tasks

Describe Export Tasks
ec2_describe_instance_types

Describe Instance Types
ec2_describe_fast_snapshot_restores

Describe Fast Snapshot Restores
ec2_describe_host_reservation_offerings

Describe Host Reservation Offerings
ec2_describe_host_reservations

Describe Host Reservations
ec2_delete_launch_template_versions

Delete Launch Template Versions
ec2_describe_instance_event_notification_attributes

Describe Instance Event Notification Attributes
ec2_create_network_interface

Create Network Interface
ec2_delete_network_interface_permission

Delete Network Interface Permission
ec2_delete_network_interface

Delete Network Interface
ec2_delete_spot_datafeed_subscription

Delete Spot Datafeed Subscription
ec2_describe_launch_template_versions

Describe Launch Template Versions
ec2_delete_subnet

Delete Subnet
ec2_delete_transit_gateway_prefix_list_reference

Delete Transit Gateway Prefix List Reference
ec2_delete_snapshot

Delete Snapshot
ec2_describe_instance_status

Describe Instance Status
ec2_delete_traffic_mirror_session

Delete Traffic Mirror Session
ec2_describe_launch_templates

Describe Launch Templates
ec2_describe_instances

Describe Instances
ec2_create_traffic_mirror_filter_rule

Create Traffic Mirror Filter Rule
ec2_delete_transit_gateway_route

Delete Transit Gateway Route
ec2_delete_vpc_endpoint_connection_notifications

Delete Vpc Endpoint Connection Notifications
ec2_create_traffic_mirror_session

Create Traffic Mirror Session
ec2_describe_internet_gateways

Describe Internet Gateways
ec2_create_transit_gateway_multicast_domain

Create Transit Gateway Multicast Domain
ec2_describe_network_interface_attribute

Describe Network Interface Attribute
ec2_delete_transit_gateway_connect

Delete Transit Gateway Connect
ec2_delete_transit_gateway_route_table

Delete Transit Gateway Route Table
ec2_delete_transit_gateway_vpc_attachment

Delete Transit Gateway Vpc Attachment
ec2_delete_vpc_endpoint_service_configurations

Delete Vpc Endpoint Service Configurations
ec2_create_transit_gateway_peering_attachment

Create Transit Gateway Peering Attachment
ec2_delete_transit_gateway_connect_peer

Delete Transit Gateway Connect Peer
ec2_delete_vpn_connection

Delete Vpn Connection
ec2_deregister_image

Deregister Image
ec2_describe_network_interface_permissions

Describe Network Interface Permissions
ec2_delete_egress_only_internet_gateway

Delete Egress Only Internet Gateway
ec2_delete_fleets

Delete Fleets
ec2_describe_network_insights_analyses

Describe Network Insights Analyses
ec2_deregister_instance_event_notification_attributes

Deregister Instance Event Notification Attributes
ec2_delete_vpc

Delete Vpc
ec2_describe_addresses

Describe Addresses
ec2_delete_volume

Delete Volume
ec2_describe_account_attributes

Describe Account Attributes
ec2_describe_byoip_cidrs

Describe Byoip Cidrs
ec2_describe_reserved_instances_modifications

Describe Reserved Instances Modifications
ec2_describe_availability_zones

Describe Availability Zones
ec2_delete_vpn_connection_route

Delete Vpn Connection Route
ec2_describe_reserved_instances_offerings

Describe Reserved Instances Offerings
ec2_describe_network_insights_paths

Describe Network Insights Paths
ec2_delete_managed_prefix_list

Delete Managed Prefix List
ec2_describe_network_interfaces

Describe Network Interfaces
ec2_describe_placement_groups

Describe Placement Groups
ec2_describe_bundle_tasks

Describe Bundle Tasks
ec2_describe_client_vpn_connections

Describe Client Vpn Connections
ec2_describe_client_vpn_authorization_rules

Describe Client Vpn Authorization Rules
ec2_describe_snapshot_attribute

Describe Snapshot Attribute
ec2_describe_security_groups

Describe Security Groups
ec2_describe_fleet_history

Describe Fleet History
ec2_describe_capacity_reservations

Describe Capacity Reservations
ec2_describe_fleet_instances

Describe Fleet Instances
ec2_describe_fleets

Describe Fleets
ec2_describe_spot_fleet_requests

Describe Spot Fleet Requests
ec2_delete_nat_gateway

Delete Nat Gateway
ec2_delete_traffic_mirror_target

Delete Traffic Mirror Target
ec2_describe_dhcp_options

Describe Dhcp Options
ec2_delete_transit_gateway

Delete Transit Gateway
ec2_describe_flow_logs

Describe Flow Logs
ec2_delete_vpc_endpoints

Delete Vpc Endpoints
ec2_delete_vpc_peering_connection

Delete Vpc Peering Connection
ec2_describe_client_vpn_endpoints

Describe Client Vpn Endpoints
ec2_describe_instance_attribute

Describe Instance Attribute
ec2_deregister_transit_gateway_multicast_group_sources

Deregister Transit Gateway Multicast Group Sources
ec2_deregister_transit_gateway_multicast_group_members

Deregister Transit Gateway Multicast Group Members
ec2_describe_spot_instance_requests

Describe Spot Instance Requests
ec2_describe_instance_credit_specifications

Describe Instance Credit Specifications
ec2_describe_egress_only_internet_gateways

Describe Egress Only Internet Gateways
ec2_describe_image_attribute

Describe Image Attribute
ec2_describe_coip_pools

Describe Coip Pools
ec2_describe_client_vpn_target_networks

Describe Client Vpn Target Networks
ec2_describe_hosts

Describe Hosts
ec2_describe_iam_instance_profile_associations

Describe Iam Instance Profile Associations
ec2_describe_spot_fleet_request_history

Describe Spot Fleet Request History
ec2_describe_spot_fleet_instances

Describe Spot Fleet Instances
ec2_describe_client_vpn_routes

Describe Client Vpn Routes
ec2_describe_conversion_tasks

Describe Conversion Tasks
ec2_describe_id_format

Describe Id Format
ec2_describe_customer_gateways

Describe Customer Gateways
ec2_describe_images

Describe Images
ec2_describe_local_gateway_route_table_vpc_associations

Describe Local Gateway Route Table Vpc Associations
ec2_describe_local_gateway_route_table_virtual_interface_group_associations

Describe Local Gateway Route Table Virtual Interface Group Associations
ec2_describe_nat_gateways

Describe Nat Gateways
ec2_describe_network_acls

Describe Network Acls
ec2_describe_transit_gateways

Describe Transit Gateways
ec2_describe_ipv6_pools

Describe Ipv6 Pools
ec2_describe_import_image_tasks

Describe Import Image Tasks
ec2_describe_import_snapshot_tasks

Describe Import Snapshot Tasks
ec2_describe_identity_id_format

Describe Identity Id Format
ec2_describe_key_pairs

Describe Key Pairs
ec2_describe_traffic_mirror_targets

Describe Traffic Mirror Targets
ec2_describe_prefix_lists

Describe Prefix Lists
ec2_describe_principal_id_format

Describe Principal Id Format
ec2_describe_volume_attribute

Describe Volume Attribute
ec2_describe_local_gateway_virtual_interfaces

Describe Local Gateway Virtual Interfaces
ec2_describe_transit_gateway_attachments

Describe Transit Gateway Attachments
ec2_describe_scheduled_instances

Describe Scheduled Instances
ec2_disassociate_client_vpn_target_network

Disassociate Client Vpn Target Network
ec2_disassociate_enclave_certificate_iam_role

Disassociate Enclave Certificate Iam Role
ec2_describe_security_group_references

Describe Security Group References
ec2_describe_transit_gateway_connect_peers

Describe Transit Gateway Connect Peers
ec2_describe_transit_gateway_connects

Describe Transit Gateway Connects
ec2_describe_local_gateway_route_tables

Describe Local Gateway Route Tables
ec2_describe_stale_security_groups

Describe Stale Security Groups
ec2_describe_spot_price_history

Describe Spot Price History
ec2_describe_transit_gateway_route_tables

Describe Transit Gateway Route Tables
ec2_describe_local_gateways

Describe Local Gateways
ec2_disassociate_transit_gateway_route_table

Disassociate Transit Gateway Route Table
ec2_disassociate_vpc_cidr_block

Disassociate Vpc Cidr Block
ec2_describe_local_gateway_virtual_interface_groups

Describe Local Gateway Virtual Interface Groups
ec2_get_coip_pool_usage

Get Coip Pool Usage
ec2_describe_vpc_endpoint_connection_notifications

Describe Vpc Endpoint Connection Notifications
ec2_describe_vpc_endpoint_connections

Describe Vpc Endpoint Connections
ec2_describe_reserved_instances_listings

Describe Reserved Instances Listings
ec2_describe_reserved_instances

Describe Reserved Instances
ec2_describe_snapshots

Describe Snapshots
ec2_get_console_output

Get Console Output
ec2_describe_transit_gateway_multicast_domains

Describe Transit Gateway Multicast Domains
ec2_describe_transit_gateway_peering_attachments

Describe Transit Gateway Peering Attachments
ec2_describe_transit_gateway_vpc_attachments

Describe Transit Gateway Vpc Attachments
ec2_describe_managed_prefix_lists

Describe Managed Prefix Lists
ec2_describe_volumes_modifications

Describe Volumes Modifications
ec2_get_host_reservation_purchase_preview

Get Host Reservation Purchase Preview
ec2_get_groups_for_capacity_reservation

Get Groups For Capacity Reservation
ec2_describe_spot_datafeed_subscription

Describe Spot Datafeed Subscription
ec2_describe_moving_addresses

Describe Moving Addresses
ec2_get_transit_gateway_multicast_domain_associations

Get Transit Gateway Multicast Domain Associations
ec2_get_transit_gateway_prefix_list_references

Get Transit Gateway Prefix List References
ec2_describe_vpc_attribute

Describe Vpc Attribute
ec2_describe_traffic_mirror_filters

Describe Traffic Mirror Filters
ec2_describe_traffic_mirror_sessions

Describe Traffic Mirror Sessions
ec2_describe_vpc_endpoints

Describe Vpc Endpoints
ec2_describe_vpc_endpoint_services

Describe Vpc Endpoint Services
ec2_describe_public_ipv4_pools

Describe Public Ipv4 Pools
ec2_describe_vpn_connections

Describe Vpn Connections
ec2_describe_vpn_gateways

Describe Vpn Gateways
ec2_detach_classic_link_vpc

Detach Classic Link Vpc
ec2_detach_internet_gateway

Detach Internet Gateway
ec2_describe_regions

Describe Regions
ec2_modify_fpga_image_attribute

Modify Fpga Image Attribute
ec2_modify_fleet

Modify Fleet
ec2_describe_route_tables

Describe Route Tables
ec2_describe_vpc_classic_link

Describe Vpc Classic Link
ec2_describe_scheduled_instance_availability

Describe Scheduled Instance Availability
ec2_detach_vpn_gateway

Detach Vpn Gateway
ec2_describe_vpc_classic_link_dns_support

Describe Vpc Classic Link Dns Support
ec2_disable_vpc_classic_link

Disable Vpc Classic Link
ec2_disable_vgw_route_propagation

Disable Vgw Route Propagation
ec2_disassociate_subnet_cidr_block

Disassociate Subnet Cidr Block
ec2_disassociate_transit_gateway_multicast_domain

Disassociate Transit Gateway Multicast Domain
ec2_disassociate_route_table

Disassociate Route Table
ec2_disassociate_iam_instance_profile

Disassociate Iam Instance Profile
ec2_detach_network_interface

Detach Network Interface
ec2_enable_fast_snapshot_restores

Enable Fast Snapshot Restores
ec2_enable_ebs_encryption_by_default

Enable Ebs Encryption By Default
ec2_disable_fast_snapshot_restores

Disable Fast Snapshot Restores
ec2_disable_ebs_encryption_by_default

Disable Ebs Encryption By Default
ec2_disable_transit_gateway_route_table_propagation

Disable Transit Gateway Route Table Propagation
ec2_detach_volume

Detach Volume
ec2_get_associated_ipv6_pool_cidrs

Get Associated Ipv6 Pool Cidrs
ec2_describe_subnets

Describe Subnets
ec2_get_capacity_reservation_usage

Get Capacity Reservation Usage
ec2_export_transit_gateway_routes

Export Transit Gateway Routes
ec2_describe_tags

Describe Tags
ec2_describe_volume_status

Describe Volume Status
ec2_describe_volumes

Describe Volumes
ec2_get_launch_template_data

Get Launch Template Data
ec2_get_associated_enclave_certificate_iam_roles

Get Associated Enclave Certificate Iam Roles
ec2_modify_capacity_reservation

Modify Capacity Reservation
ec2_disable_vpc_classic_link_dns_support

Disable Vpc Classic Link Dns Support
ec2_disassociate_address

Disassociate Address
ec2_modify_client_vpn_endpoint

Modify Client Vpn Endpoint
ec2_enable_volume_io

Enable Volume IO
ec2_modify_instance_credit_specification

Modify Instance Credit Specification
ec2_describe_vpc_endpoint_service_permissions

Describe Vpc Endpoint Service Permissions
ec2_describe_vpc_endpoint_service_configurations

Describe Vpc Endpoint Service Configurations
ec2_modify_vpn_tunnel_certificate

Modify Vpn Tunnel Certificate
ec2_get_managed_prefix_list_associations

Get Managed Prefix List Associations
ec2_enable_vpc_classic_link

Enable Vpc Classic Link
ec2_modify_instance_event_start_time

Modify Instance Event Start Time
ec2_describe_vpc_peering_connections

Describe Vpc Peering Connections
ec2_export_client_vpn_client_configuration

Export Client Vpn Client Configuration
ec2_get_console_screenshot

Get Console Screenshot
ec2_export_image

Export Image
ec2_modify_instance_attribute

Modify Instance Attribute
ec2_import_key_pair

Import Key Pair
ec2_import_instance

Import Instance
ec2_stop_instances

Stop Instances
ec2_reboot_instances

Reboot Instances
ec2_describe_vpcs

Describe Vpcs
ec2_modify_subnet_attribute

Modify Subnet Attribute
ec2_modify_transit_gateway

Modify Transit Gateway
ec2_modify_transit_gateway_prefix_list_reference

Modify Transit Gateway Prefix List Reference
ec2_modify_traffic_mirror_filter_network_services

Modify Traffic Mirror Filter Network Services
ec2_get_default_credit_specification

Get Default Credit Specification
ec2_import_client_vpn_client_certificate_revocation_list

Import Client Vpn Client Certificate Revocation List
ec2_import_image

Import Image
ec2_enable_transit_gateway_route_table_propagation

Enable Transit Gateway Route Table Propagation
ecs_put_account_setting

Put Account Setting
ec2_import_snapshot

Import Snapshot
ec2_reset_network_interface_attribute

Reset Network Interface Attribute
ec2_reject_transit_gateway_vpc_attachment

Reject Transit Gateway Vpc Attachment
ec2_modify_instance_capacity_reservation_attributes

Modify Instance Capacity Reservation Attributes
ec2_modify_vpc_endpoint

Modify Vpc Endpoint
ec2_import_volume

Import Volume
ec2_replace_route_table_association

Replace Route Table Association
ec2_modify_vpn_tunnel_options

Modify Vpn Tunnel Options
ec2_purchase_reserved_instances_offering

Purchase Reserved Instances Offering
ecs_create_task_set

Create Task Set
ec2_modify_snapshot_attribute

Modify Snapshot Attribute
ec2_get_managed_prefix_list_entries

Get Managed Prefix List Entries
ec2_enable_vgw_route_propagation

Enable Vgw Route Propagation
ec2_enable_vpc_classic_link_dns_support

Enable Vpc Classic Link Dns Support
ec2_export_client_vpn_client_certificate_revocation_list

Export Client Vpn Client Certificate Revocation List
ec2_get_password_data

Get Password Data
ec2_modify_spot_fleet_request

Modify Spot Fleet Request
ec2_reject_vpc_endpoint_connections

Reject Vpc Endpoint Connections
ecs_delete_account_setting

Delete Account Setting
ec2_purchase_scheduled_instances

Purchase Scheduled Instances
ec2_get_ebs_default_kms_key_id

Get Ebs Default Kms Key Id
ec2_modify_traffic_mirror_filter_rule

Modify Traffic Mirror Filter Rule
ec2_modify_vpc_attribute

Modify Vpc Attribute
ec2_modify_traffic_mirror_session

Modify Traffic Mirror Session
ec2_get_ebs_encryption_by_default

Get Ebs Encryption By Default
ec2_modify_default_credit_specification

Modify Default Credit Specification
ec2_modify_instance_metadata_options

Modify Instance Metadata Options
ec2_modify_instance_placement

Modify Instance Placement
ec2_modify_volume_attribute

Modify Volume Attribute
ec2_register_image

Register Image
ec2_provision_byoip_cidr

Provision Byoip Cidr
ec2_purchase_host_reservation

Purchase Host Reservation
ec2_replace_iam_instance_profile_association

Replace Iam Instance Profile Association
ec2_reject_transit_gateway_peering_attachment

Reject Transit Gateway Peering Attachment
ec2_revoke_security_group_egress

Revoke Security Group Egress
ec2_modify_vpc_endpoint_connection_notification

Modify Vpc Endpoint Connection Notification
ec2_modify_hosts

Modify Hosts
ec2_reset_ebs_default_kms_key_id

Reset Ebs Default Kms Key Id
ec2_modify_vpn_connection

Modify Vpn Connection
ec2_get_transit_gateway_route_table_associations

Get Transit Gateway Route Table Associations
ec2_get_reserved_instances_exchange_quote

Get Reserved Instances Exchange Quote
ec2_replace_transit_gateway_route

Replace Transit Gateway Route
ec2_get_transit_gateway_attachment_propagations

Get Transit Gateway Attachment Propagations
ec2_reject_vpc_peering_connection

Reject Vpc Peering Connection
ecs_delete_attributes

Delete Attributes
ec2_get_transit_gateway_route_table_propagations

Get Transit Gateway Route Table Propagations
ec2_modify_reserved_instances

Modify Reserved Instances
ec2_request_spot_fleet

Request Spot Fleet
ec2_report_instance_status

Report Instance Status
ec2_revoke_client_vpn_ingress

Revoke Client Vpn Ingress
ec2_terminate_client_vpn_connections

Terminate Client Vpn Connections
ec2_modify_address_attribute

Modify Address Attribute
ecs_deregister_task_definition

Deregister Task Definition
ec2_modify_vpn_connection_options

Modify Vpn Connection Options
ec2_reset_snapshot_attribute

Reset Snapshot Attribute
ecs_list_container_instances

List Container Instances
ecs_delete_cluster

Delete Cluster
ecs_delete_capacity_provider

Delete Capacity Provider
ec2_modify_managed_prefix_list

Modify Managed Prefix List
ecs_update_container_agent

Update Container Agent
ec2_modify_availability_zone_group

Modify Availability Zone Group
ec2_modify_ebs_default_kms_key_id

Modify Ebs Default Kms Key Id
ecs_register_container_instance

Register Container Instance
ecs_delete_service

Delete Service
ec2_restore_address_to_classic

Restore Address To Classic
ec2_send_diagnostic_interrupt

Send Diagnostic Interrupt
ec2_modify_launch_template

Modify Launch Template
ec2_modify_id_format

Modify Id Format
ec2_run_scheduled_instances

Run Scheduled Instances
ec2_start_vpc_endpoint_service_private_dns_verification

Start Vpc Endpoint Service Private Dns Verification
ec2_monitor_instances

Monitor Instances
ec2_modify_vpc_endpoint_service_configuration

Modify Vpc Endpoint Service Configuration
ec2_search_local_gateway_routes

Search Local Gateway Routes
ecs_list_services

List Services
ec2_modify_vpc_tenancy

Modify Vpc Tenancy
ec2_modify_identity_id_format

Modify Identity Id Format
ecs_submit_attachment_state_changes

Submit Attachment State Changes
ec2_modify_vpc_endpoint_service_permissions

Modify Vpc Endpoint Service Permissions
ec2_start_instances

Start Instances
ecs_register_task_definition

Register Task Definition
ecs_update_cluster_settings

Update Cluster Settings
ecs_update_capacity_provider

Update Capacity Provider
ec2_terminate_instances

Terminate Instances
ecs_delete_task_set

Delete Task Set
ec2_move_address_to_vpc

Move Address To Vpc
ec2_replace_network_acl_association

Replace Network Acl Association
ec2_reset_fpga_image_attribute

Reset Fpga Image Attribute
ec2_restore_managed_prefix_list_version

Restore Managed Prefix List Version
ecs_describe_task_sets

Describe Task Sets
ec2_modify_image_attribute

Modify Image Attribute
ec2_unassign_ipv6_addresses

Unassign Ipv6 Addresses
ecs_describe_capacity_providers

Describe Capacity Providers
ec2_register_transit_gateway_multicast_group_sources

Register Transit Gateway Multicast Group Sources
ecs_describe_services

Describe Services
ecs_tag_resource

Tag Resource
ec2_reject_transit_gateway_multicast_domain_associations

Reject Transit Gateway Multicast Domain Associations
ec2_request_spot_instances

Request Spot Instances
ec2_release_address

Release Address
ecs_describe_tasks

Describe Tasks
ecs_update_task_set

Update Task Set
ec2_modify_network_interface_attribute

Modify Network Interface Attribute
ec2_modify_volume

Modify Volume
ec2_release_hosts

Release Hosts
ec2_modify_transit_gateway_vpc_attachment

Modify Transit Gateway Vpc Attachment
ecs_put_attributes

Put Attributes
ecs_put_cluster_capacity_providers

Put Cluster Capacity Providers
ec2_modify_vpc_peering_connection_options

Modify Vpc Peering Connection Options
ec2_replace_network_acl_entry

Replace Network Acl Entry
ec2_update_security_group_rule_descriptions_egress

Update Security Group Rule Descriptions Egress
ec2_replace_route

Replace Route
ecs_describe_clusters

Describe Clusters
aws_set_retry_time

Get or set the package settings
ecs_deregister_container_instance

Deregister Container Instance
ecs_describe_task_definition

Describe Task Definition
ec2_update_security_group_rule_descriptions_ingress

Update Security Group Rule Descriptions Ingress
ecs_list_tasks

List Tasks
ec2_reset_address_attribute

Reset Address Attribute
ec2_search_transit_gateway_multicast_groups

Search Transit Gateway Multicast Groups
ecs_put_account_setting_default

Put Account Setting Default
ecs_update_container_instances_state

Update Container Instances State
ecs_submit_task_state_change

Submit Task State Change
ec2_start_network_insights_analysis

Start Network Insights Analysis
ec2_search_transit_gateway_routes

Search Transit Gateway Routes
ecs_list_attributes

List Attributes
ec2_unmonitor_instances

Unmonitor Instances
ecs_stop_task

Stop Task
ec2_register_instance_event_notification_attributes

Register Instance Event Notification Attributes
ecs_list_clusters

List Clusters
ec2_register_transit_gateway_multicast_group_members

Register Transit Gateway Multicast Group Members
ecs_untag_resource

Untag Resource
ecs_create_capacity_provider

Create Capacity Provider
ecs_list_task_definition_families

List Task Definition Families
ec2_withdraw_byoip_cidr

Withdraw Byoip Cidr
ec2_reset_image_attribute

Reset Image Attribute
ec2_reset_instance_attribute

Reset Instance Attribute
ec2_revoke_security_group_ingress

Revoke Security Group Ingress
ec2_unassign_private_ip_addresses

Unassign Private Ip Addresses
ec2_run_instances

Run Instances
ecs_list_task_definitions

List Task Definitions
ecs_create_service

Create Service
ecs_start_task

Start Task
ecs_discover_poll_endpoint

Discover Poll Endpoint
ecs_describe_container_instances

Describe Container Instances
ecs_update_service

Update Service
ecs_create_cluster

Create Cluster
ecs_list_tags_for_resource

List Tags For Resource
ecs_run_task

Run Task
ecs_list_account_settings

List Account Settings
ecs_update_service_primary_task_set

Update Service Primary Task Set
ecs_submit_container_state_change

Submit Container State Change