Rapha-Borges / CloudFormation

How to use GitHub Actions to create and delete a CloudFormation stack
0 stars 0 forks source link

Studing CloudFormation with GitHub Actions

This repository is a study of how to use GitHub Actions to create and delete a CloudFormation stack.

Manual Creation

The stack can be created manually using Manual Deploy GitHub Actions workflow using the deploy-manual.yml file.

Manual Deploy

Issue Creation

I also implemented an issue creation workflow that can be triggered by label event. This is not a traditional way, but it demonstrates the flexibility of the project. The idea is to create an issue with the resource to be deployed and add the approved label to trigger the deployment. The workflow file is available at deploy-issue.yml.

Users steps:

New Issue

SRE/DevOps steps:

Add Label

Automated steps:

Comment

Manual Deletion

The stack can be deleted manually using Manual Delete GitHub Actions workflow using the delete-manual.yaml file.

Manual Delete

Stack Created with GitHub Actions

Stack Deleted with GitHub Actions

Linting

The repository is using cfn-lint to validate the CloudFormation template. The lint workflow is available at lint.yml file.

This workflow will be triggered by a push event on the files/** path and will validate the CloudFormation template.