1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

add IamInstanceProfile abilitie

This commit is contained in:
Topper Bowers 2012-12-27 11:14:17 -05:00
parent 9aec2ceb7b
commit 44e77559cc

View file

@ -29,9 +29,14 @@ module Fog
attribute :monitoring, :aliases => 'LaunchSpecification.Monitoring'
attribute :block_device_mapping, :aliases => 'LaunchSpecification.BlockDeviceMapping'
attribute :subnet_id, :aliases => 'LaunchSpecification.SubnetId'
attribute :iam_instance_profile, :aliases => 'LaunchSpecification.IamInstanceProfile'
attribute :tags, :aliases => 'tagSet'
attribute :fault, :squash => 'message'
attribute :user_data
attr_writer :iam_instance_profile_name, :iam_instance_profile_arn
def initialize(attributes={})
self.groups ||= ["default"]
@ -89,6 +94,8 @@ module Fog
'LaunchSpecification.SecurityGroup' => groups,
'LaunchSpecification.UserData' => user_data,
'LaunchSpecification.SubnetId' => subnet_id,
'LaunchSpecification.IamInstanceProfile.Arn' => @iam_instance_profile_arn,
'LaunchSpecification.IamInstanceProfile.Name' => @iam_instance_profile_name,
'Type' => request_type,
'ValidFrom' => valid_from,
'ValidUntil' => valid_until }