Here I am printing my snapshots. I posted below what I would like the snapshot print out to look like, and would also like to be able to print individual snapshots. I am not sure how to do this any help would be great.
svc := ec2.New(&aws.Config{Region: "us-east-1"})
params := &ec2.DescribeSnapshotsInput{
OwnerIDs: []*string{
aws.String("130300684064"),
},
}
b, err2 := svc.DescribeSnapshots(params)
if err2 != nil {
panic(err2)
}
fmt.Printf(awsutil.StringValue(b))
Here is what gets outputted: http://imgur.com/3MnBNXI This is what I would like to be output:
{
Snapshots:
----0
Description: "Snapshot from MULTI",
Encrypted: false,
OwnerID: "130300684064",
Progress: "100%!"(MISSING),
SnapshotID: "snap-81b1dff6",
StartTime: 2015-07-21 18:41:54 +0000 UTC,
State: "completed",
VolumeID: "vol-5121ebaa",
VolumeSize: 1
},{
----1
Description: "Snapshot from MULTI",
Encrypted: false,
OwnerID: "130300684064",
Progress: "100%!"(MISSING),
SnapshotID: "snap-08352a7f",
StartTime: 2015-07-21 18:41:54 +0000 UTC,
State: "completed",
VolumeID: "vol-9b21eb60",
VolumeSize: 1
},{
----2
Description: "Snapshot from MULTI",
Encrypted: false,
OwnerID: "130300684064",
Progress: "100%!"(MISSING),
SnapshotID: "snap-768ffb00",
StartTime: 2015-07-21 18:41:54 +0000 UTC,
State: "completed",
VolumeID: "vol-5620eaad",
VolumeSize: 1
}]
Full code here: http://pastebin.com/QgmV6kRj