module Cumulus::IAM
Public Class Methods
get_instance_profile_arn(name)
click to toggle source
Public: Get the instance profile arn for a role
name - the name of the role
# File lib/iam/IAM.rb, line 26 def get_instance_profile_arn(name) @@client.get_instance_profile({ instance_profile_name: name }).instance_profile.arn rescue Aws::IAM::Errors::NoSuchEntity nil end
get_role_arn(name)
click to toggle source
Public: Static method that will get the ARN of an IAM
Role
name - the name of the role to get
Returns the String ARN or nil if there is no role
# File lib/iam/IAM.rb, line 15 def get_role_arn(name) @@client.get_role({ role_name: name }).role.arn rescue Aws::IAM::Errors::NoSuchEntity nil end