mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add IAMInstanceProfile support to launch configs
This commit is contained in:
parent
c8282cd615
commit
853069c4e2
3 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ module Fog
|
|||
attribute :arn, :aliases => 'LaunchConfigurationARN'
|
||||
attribute :block_device_mappings, :aliases => 'BlockDeviceMappings'
|
||||
attribute :created_at, :aliases => 'CreatedTime'
|
||||
attribute :iam_instance_profile, :aliases => 'IamInstanceProfile'
|
||||
attribute :image_id, :aliases => 'ImageId'
|
||||
#attribute :instance_monitoring, :aliases => 'InstanceMonitoring'
|
||||
attribute :instance_monitoring, :aliases => 'InstanceMonitoring', :squash => 'Enabled'
|
||||
|
|
|
@ -68,6 +68,8 @@ module Fog
|
|||
@launch_configuration[name] = value
|
||||
when 'KernelId', 'RamdiskId', 'UserData'
|
||||
@launch_configuration[name] = value
|
||||
when 'IamInstanceProfile'
|
||||
@launch_configuration[name] = value
|
||||
|
||||
when 'BlockDeviceMappings'
|
||||
@in_block_device_mappings = false
|
||||
|
|
|
@ -85,6 +85,7 @@ module Fog
|
|||
self.data[:launch_configurations][launch_configuration_name] = {
|
||||
'BlockDeviceMappings' => [],
|
||||
'CreatedTime' => Time.now.utc,
|
||||
'IamInstanceProfile' => nil,
|
||||
'ImageId' => image_id,
|
||||
'InstanceMonitoring' => {'Enabled' => true},
|
||||
'InstanceType' => instance_type,
|
||||
|
|
Loading…
Add table
Reference in a new issue