What you'll need to follow this guide: Terraform >12.13 & understanding of basic Terraform usage AWS API Access, preferably with admin-level permissions Bitbucket Repository with Pipelines enabled An EC2 Instance you wish to push your code repository contents to Concept: Using Bitbucket Pipelines and Bitbucket Deploy, we will set up automatic pushes to an EC2 Instance with AWS CodeDeploy. Target EC2 Instance does not need to be publicaly accessible in any way for this approach.