samples
turbot/flowpipe-samples/aws-ec2-instance-scheduler
Get Involved
Version
AWS EC2 Instance Scheduler
Pipeline for AWS EC2 Instance Scheduling using cron jobs.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run aws_ec2_instance_scheduler.pipeline.aws_ec2_instance_scheduler \ --arg 'schedule_name=<string>' \ --arg 'action=<string>'
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = aws_ec2_instance_scheduler.pipeline.aws_ec2_instance_scheduler args = { schedule_name = <string> action = <string> }}
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
aws_region | string | Yes | The name of the Region. | us-east-1 |
aws_cred | string | Yes | Name for AWS credential to use. If not provided, the default credential will be used. | default |
teams_cred | string | Yes | Name for Teams credential to use. If not provided, the default credential will be used. | default |
team_id | string | Yes | The unique identifier of the team. | 111aaa00-abcd-efgh-1234-000aaa111bbb |
teams_channel_id | string | Yes | The unique identifier for the Teams channel. | 20-9234-20392-2913 |
schedule_name | string | Yes | The name of the tag that is used to identify the schedule. | - |
action | string | Yes | The action to perform on the EC2 instances. Valid values are 'start' and 'stop'. | - |
Outputs
This pipeline has no outputs.