library
turbot/aws
Get Involved
Version
Pipeline: Terminate EC2 Instances
Terminates one or more Amazon EC2 instances.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run aws.pipeline.terminate_ec2_instances \ --arg 'region=<string>' \ --arg 'instance_ids=<list(string)>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = aws.pipeline.terminate_ec2_instances args = { region = <string> instance_ids = <list(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_ids | list(string) | Yes | A list of EC2 instance IDs to terminate. | - |
Outputs
Name | Description |
---|---|
instances | Information about the terminated instances. |