library
turbot/aws
OverviewPipelines
0
Triggers
0
Variables
GitHub

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
regionstringYesThe name of the Region.-
credstringYesName for credentials to use. If not provided, the default credentials will be used.default
instance_idstringYesThe ID of the instance.-
iam_instance_profilestringYesThe IAM instance profile.-

Outputs

NameDescription
iam_instance_profile_associationThe IAM instance profile association.