Ansible: Testing AWS Deployments using Localstack

Testing of playbooks for AWS deployments can be a challenge for an application developer. Within controlled environments, playbooks are generally executed via workflows/pipelines managed by DevOps teams.

The combination of Localstack and Ansible provides an app developer the capability for preliminary local/mock testing of playbooks without incurring AWS billing costs.

With the above context in mind, the following describes a procedure for local testing of AWS-based playbooks with Localstack.