library
turbot/aws
Get Involved
Version
Pipeline: Launch EC2 Instances
Launches an Amazon EC2 instance.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run aws.pipeline.run_ec2_instances \ --arg 'region=<string>' \ --arg 'instance_type=<string>' \ --arg 'image_id=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = aws.pipeline.run_ec2_instances args = { region = <string> instance_type = <string> image_id = <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_type | string | Yes | The EC2 instance type (e.g., t2.micro). | - |
image_id | string | Yes | The ID of the Amazon Machine Image (AMI) to launch. | - |
count | string | Yes | The number of instances to launch. | 1 |
Outputs
Name | Description |
---|---|
instances | The launched EC2 instances. |
Tags
recommended = true