library
turbot/aws
OverviewPipelines
0
Triggers
0
Variables
GitHub

Modify EC2 Instance Metadata Options

Modify the instance metadata parameters on a running or stopped instance.

Run the pipeline

To run this pipeline from your terminal:

flowpipe pipeline run aws.pipeline.modify_ec2_instance_metadata_options \
--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.modify_ec2_instance_metadata_options
args = {
region = <string>
instance_id = <string>
}
}

Params

NameTypeRequiredDefaultDescription
http_endpointstringNo-Enables or disables the HTTP metadata endpoint on your instances.
regionstringYes-The name of the Region.
credstringYesdefaultName for credentials to use. If not provided, the default credentials will be used.
instance_idstringYes-The ID of the EC2 instance.
http_tokensstringNo-IMDSv2 uses token-backed sessions. Set the use of HTTP tokens to optional (in other words, set the use of IMDSv2 to optional ) or required (in other words, set the use of IMDSv2 to required).

Outputs

NameDescription
instance_metadata_optionsThe metadata options for the instance.