library
turbot/aws
OverviewPipelines
0
Triggers
0
Variables
GitHub

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

NameTypeRequiredDescriptionDefault
region
string
YesThe name of the Region.-
conn
connection.aws
YesName of AWS connection to use. If not provided, the default AWS connection will be used.connection.aws.default
instance_id
string
YesThe ID of the instance.-
iam_instance_profile
string
YesThe IAM instance profile.-

Outputs

NameDescription
iam_instance_profile_associationThe IAM instance profile association.