AWS CloudFormation allows developers to manage infrastructure resources in Amazon Cloud Services across all regions and accounts with a single text file. The new CloudFormation action in Buddy lets you easily deploy, update and remove CF stacks. For example, you can create a pipeline that will perform the following for every pull request:
- Provision infrastructure in your AWS account with a CF template file
- Deploy your application to the server
- Start the application
- Run integration tests
- Clean up the CF stack once everything is over
Configuring AWS CloudFormation
The action can be found in the AWS section of Buddy's action roster:
If you haven't used Amazon actions before, you will be asked for access and secret keys to your AWS account. Make sure the IAM user who is adding the integration is allowed to access the resources that you want to provision with CloudFormation.
With the integration added, you can now configure the action details. The most important are:
- stack name
- method to run (create / update / deploy / delete)
- path to the template file (must be uploaded to the repository)
Once you select the template and proceed, a new view will appear. There you can modify the AWS CLI commands generated by the previous step, add new ones, and fill in any other missing parameters.
From now on, Buddy will automatically provision your AWS infrastructure for integration tests on every pipeline execution. Of course, this is just an example - it is you who decide how and where to use it.
In the nearest future we are going to add dedicated integrations for Ansible and Terraform. Stay tuned for more info!
You use lots of tools to get web & app development done. Buddy creates more time in your day by helping you automate those tools.