Class: Chef::Resource::AwsIamInstanceProfile

Inherits:
Provisioning::AWSDriver::AWSResource show all
Defined in:
lib/chef/resource/aws_iam_instance_profile.rb

Overview

An AWS IAM instance profile, a container for an IAM role that you can use to pass role information to an EC2 instance when the instance starts..

‘name` is unique for an AWS account.

API documentation for the AWS Ruby SDK for IAM instance profiles (and the object returned from ‘aws_object`) can be found here:

Constant Summary

Constants inherited from Provisioning::AWSDriver::AWSResource

Provisioning::AWSDriver::AWSResource::NOT_PASSED

Instance Method Summary collapse

Methods inherited from Provisioning::AWSDriver::AWSResource

#action, #action=, #aws_object_id, get_aws_object, get_aws_object_id, #initialize, lookup_options

Methods inherited from Provisioning::AWSDriver::SuperLWRP

#_pv_is, attribute, lazy

Constructor Details

This class inherits a constructor from Chef::Provisioning::AWSDriver::AWSResource

Instance Method Details

#aws_objectObject



30
31
32
33
# File 'lib/chef/resource/aws_iam_instance_profile.rb', line 30

def aws_object
  result = driver.iam_resource.instance_profile(name)
  result && result.exists? ? result : nil
end