instance_profile#
- async idem_aws.exec.aws.iam.instance_profile.get(hub, ctx, name, resource_id: str = None)[source]#
Provides details about a specific instance profile as a data-source
- Parameters:
- Returns:
Returns the instance profile
- Return type:
Examples
Calling this exec module function from the cli:
idem exec aws.iam.instance_profile.get name="name" resource_id="resource_id"
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.iam.instance_profile.get - kwargs: name: name resource_id: resource_id
- async idem_aws.exec.aws.iam.instance_profile.update_instance_profile_tags(hub, ctx, instance_profile_name: str, old_tags: Dict[str, Any], new_tags: Dict[str, Any])[source]#
Update tags of AWS IAM Instance Profile
TODO - this method might fail with localstack but is successful with a real AWS account
- Parameters:
- Returns:
Tags after the update
- Return type:
Examples
Calling this exec module function from the cli:
idem exec aws.iam.instance_profile.update_instance_profile_tags instance_profile_name="name" old_tags='{}' new_tags='{}'
Using in a state:
my_unmanaged_resource: exec.run: - path: aws.iam.instance_profile.update_instance_profile_tags - kwargs: instance_profile_name: name old_tags: old_tag: old_val new_tags: new_tag: new_val