diff --git a/pkg/backup/util/aws_ebs.go b/pkg/backup/util/aws_ebs.go index 291caeb061..8656987ab6 100644 --- a/pkg/backup/util/aws_ebs.go +++ b/pkg/backup/util/aws_ebs.go @@ -159,8 +159,9 @@ func (e *EC2Session) AddTags(resourcesTags map[string]TagMap) error { tagMap := resourcesTags[resourceID] var tags []*ec2.Tag for tag := range tagMap { + tagKey := tag value := tagMap[tag] - tags = append(tags, &ec2.Tag{Key: &tag, Value: &value}) + tags = append(tags, &ec2.Tag{Key: &tagKey, Value: &value}) } // Create the input for adding the tag