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