Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdeak/bootstrap-app-action
Github action for provisioning resources on AWS for an application
https://github.com/rdeak/bootstrap-app-action
Last synced: about 1 month ago
JSON representation
Github action for provisioning resources on AWS for an application
- Host: GitHub
- URL: https://github.com/rdeak/bootstrap-app-action
- Owner: rdeak
- License: mit
- Created: 2024-08-05T12:47:36.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-05T20:40:35.000Z (5 months ago)
- Last Synced: 2024-08-05T23:51:10.975Z (5 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bootstrap App Action
Github action for provisioning resources on AWS for an application
## Inputs
| Name | Description | Required |
|----------------------|-------------------------------------------------------|----------|
| `name` | Configuration name, used for backend name. | `true` |
| `aws_s3_bucket_name` | Name of S3 bucket where Terraform state is persisted. | `true` |
| `aws_region` | Target AWS Region. | `true` |
| `context` | Terraform working directory. | `false` |## Example usage
To use this action in your workflow, add the following steps to your `.github/workflows` file:
```yaml
name: Provision resourceson:
push:
branches:
- mainjobs:
deploy:
runs-on: ubuntu-lateststeps:
- name: Checkout code
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.aws_account_id }}:role/${{ secrets.aws_role_name }}
aws-region: ${{ inputs.aws_region }}
- name: Provision resources
uses: rdeak/bootstrap-app-action@v1
with:
name: my-app
aws_s3_bucket_name: my-terraform-bucket
aws_region: us-west-2
context: .deploy
```## License
This project is licensed under the terms of the MIT license.