Skip to content

Commit

Permalink
add option IamInstanceProfile to CreateLaunchConfiguration for allowi…
Browse files Browse the repository at this point in the history
…ng aws role base AC
  • Loading branch information
xuwang committed Oct 6, 2014
1 parent e7664b3 commit ef2a877
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions autoscaling/autoscaling.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,20 +237,24 @@ func (autoscaling *AutoScaling) CreateAutoScalingGroup(options *CreateAutoScalin

// The CreateLaunchConfiguration request parameters
type CreateLaunchConfiguration struct {
ImageId string
InstanceId string
InstanceType string
KeyName string
Name string
SecurityGroups []string
UserData string
IamInstanceProfile string
ImageId string
InstanceId string
InstanceType string
KeyName string
Name string
SecurityGroups []string
UserData string
}

func (autoscaling *AutoScaling) CreateLaunchConfiguration(options *CreateLaunchConfiguration) (resp *SimpleResp, err error) {
params := makeParams("CreateLaunchConfiguration")

params["LaunchConfigurationName"] = options.Name


if options.IamInstanceProfile != "" {
params["IamInstanceProfile"] = options.IamInstanceProfile
}
if options.ImageId != "" {
params["ImageId"] = options.ImageId
}
Expand Down

0 comments on commit ef2a877

Please sign in to comment.