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 'iam_instance_profile=<string>' \
--arg 'region=<string>' \
--arg 'instance_id=<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 = {
iam_instance_profile = <string>
region = <string>
instance_id = <string>
}
}

Params

NameTypeRequiredDescriptionDefault
iam_instance_profilestringYesThe IAM instance profile.-
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.-

Outputs

NameDescription
iam_instance_profile_associationThe IAM instance profile association.