adding GH action for increasing disk space of an EC2 instance #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Increase Node Disk | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
network: | ||
type: environment | ||
description: "Whether updating a testnet or mainnet node" | ||
required: true | ||
aws_region: | ||
description: "Location of EC2 instance to modify" | ||
required: true | ||
instance_name: | ||
description: "The name of the EC2 instance" | ||
required: true | ||
disk_size: | ||
description: "The total size of the disk desired" | ||
required: true | ||
jobs: | ||
increase-disk: | ||
uses: dawidd6/action-ansible-playbook@v2 | ||
with: | ||
# Required, playbook filepath | ||
playbook: ec2-set-volume-size.yml | ||
# Optional, directory where playbooks live | ||
directory: ./scripts/ansible/aws | ||
# Optional, additional flags to pass to ansible-playbook | ||
options: | | ||
--inventory .hosts | ||
--extra-vars aws_region="${{github.event.inputs.aws_region}}" aws_secret_key="${{github.env.secret.AWS_SECRET_KEY}}" aws_key_id="${{github.env.secret.AWS_ACCESS_KEY_ID}}" name="${{github.event.inputs.instance_name}}" volume_size="${{github.event.inputs.disk_size}}" |