aws-sdk-go: Index | Files | Directories

package ec2

import ""

Package ec2 provides the client and types for making API requests to Amazon Elastic Compute Cloud.

Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster.

To learn more, see the following resources:

* Amazon EC2: AmazonEC2 product page (, Amazon
EC2 documentation (

* Amazon EBS: Amazon EBS product page (, Amazon
EBS documentation (

* Amazon VPC: Amazon VPC product page (, Amazon
VPC documentation (

* AWS VPN: AWS VPN product page (, AWS VPN documentation

See for more information on this service.

See ec2 package documentation for more information.

Using the Client

To contact Amazon Elastic Compute Cloud with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK.

See aws.Config documentation for more information on configuring SDK clients.

See the Amazon Elastic Compute Cloud client EC2 for more information on creating client for this service.


The documentation displayed here is incomplete. Use the godoc command to read the complete documentation.

Package Files

api.go customizations.go doc.go errors.go service.go waiters.go


ec2ifacePackage ec2iface provides an interface to enable mocking the Amazon Elastic Compute Cloud service client for testing your code.

Package ec2 imports 11 packages (graph) and is imported by 2257 packages. Updated 2020-08-06. Refresh now. Tools for package owners.