Beispiel #1
0
func tagSnapshot(instId, snapId string, tags []ec2.Tag, c *ec2.EC2) {
	defer wg.Done()
	_, err := c.CreateTags([]string{snapId}, tags)
	if err != nil {
		log.Printf("failed to tag snaptshot %s for instance %s, error: %s", snapId, instId, err)
	}
	trimSnapshots(instId, c)
}