Convert string to byte array
This commit is contained in:
parent
4f02c506e9
commit
746ac9dee4
|
@ -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}},
|
||||||
|
|
Loading…
Reference in New Issue