Via G. Falcone 5, Pollenza (MC), Italy
+39 0733 203595

Provisioning Playbooks

In the previous article we showed you how we created our infrastructure as code. This article describes how to configure services within our EC2 instances. 

Provision Backend

Let’s start with a bash script to run the playbooks:

Here is the playbook used to configure backend services:

Let’s focus on php configuration tasks.

The following file:


and the following include:


So we’ve just seen how to create the infrastructure, instances and configuration of our application on AWS.

We’ve written everything as code, so we can destroy and recreate our infrastructure very quickly and with different environments.

In the next article we will show you how we automated the management of the names of our services with Route53!

Related Posts

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.