instance_profiles
Used to retrieve a list of instance_profiles
in a region or create a instance_profiles
resource, use instance_profile
to operate on an individual resource.
Overview
Name | instance_profiles |
Type | Resource |
Description | Creates a new instance profile. For information about instance profiles, see [Using instance profiles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2_instance-profiles.html).<br/> For information about the number of instance profiles you can create, see [object quotas](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html) in the *User Guide*. |
Id | aws.iam.instance_profiles |
Fields
Name | Datatype | Description |
---|---|---|
instance_profile_name | string | The name of the instance profile to create.<br/> This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@- |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | data__DesiredState, region |
list_resource | SELECT | region |
SELECT
Example
SELECT
region,
instance_profile_name
FROM aws.iam.instance_profiles
Permissions
To operate on the instance_profiles
resource, the following permissions are required:
Create
iam:CreateInstanceProfile,
iam:PassRole,
iam:AddRoleToInstanceProfile,
iam:GetInstanceProfile
List
iam:ListInstanceProfiles