package
1.3.1
Repository: https://github.com/ckeyer/aws-sdk-go.git
Documentation: pkg.go.dev

# README

Example

filter_ec2_by_tag is an example using the AWS SDK for Go to list ec2 instaces that match provided tag name filter.

Usage

The example uses the the bucket name provided, and lists all object keys in a bucket.

go run filter_ec2_by_tag.go <name_filter>

Output:

listing instances with tag vpn in: us-east-1
[{
  Instances: [{
      AmiLaunchIndex: 0,
      Architecture: "x86_64",
      BlockDeviceMappings: [{
          DeviceName: "/dev/xvda",
          Ebs: {
            AttachTime: 2016-07-06 18:04:53 +0000 UTC,
            DeleteOnTermination: true,
            Status: "attached",
            VolumeId: "vol-xxxx"
          }
        }],
      ...