Convert string to byte array

This commit is contained in:
Jeremy Carroll 2013-08-07 15:20:49 -07:00
parent 4f02c506e9
commit 746ac9dee4
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func (s *StepRunSourceInstance) Run(state map[string]interface{}) multistep.Step
KeyName: keyName, KeyName: keyName,
ImageId: s.SourceAMI, ImageId: s.SourceAMI,
InstanceType: s.InstanceType, InstanceType: s.InstanceType,
UserData: s.UserData, UserData: []byte(s.UserData),
MinCount: 0, MinCount: 0,
MaxCount: 0, MaxCount: 0,
SecurityGroups: []ec2.SecurityGroup{ec2.SecurityGroup{Id: securityGroupId}}, SecurityGroups: []ec2.SecurityGroup{ec2.SecurityGroup{Id: securityGroupId}},