library
turbot/aws
Get Involved
Version
Pipeline: Associate IAM to EC2 Instance Profile
Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run aws.pipeline.associate_iam_ec2_instance_profile \ --arg 'region=<string>' \ --arg 'instance_id=<string>' \ --arg 'iam_instance_profile=<string>'Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = aws.pipeline.associate_iam_ec2_instance_profile args = { region = <string> instance_id = <string> iam_instance_profile = <string> }}Params
| Name | Type | Required | Description | Default |
|---|---|---|---|---|
| region | string | Yes | The name of the Region. | - |
| conn | connection.aws | Yes | Name of AWS connection to use. If not provided, the default AWS connection will be used. | connection.aws.default |
| instance_id | string | Yes | The ID of the instance. | - |
| iam_instance_profile | string | Yes | The IAM instance profile. | - |
Outputs
| Name | Description |
|---|---|
| iam_instance_profile_association | The IAM instance profile association. |