Skip to content

marshyski/terraform-fabric

Repository files navigation

terraform-fabric

Using Terraform with Python Fabric on AWS

Problems Solved

  • Wait for user account to be created on server before running Fabric tasks. Terraform doesn't have this feature in it's provisioners.

  • Get away from writing Python boto scripts, or bash scripts using CLI tools.

  • Manage states of infrastructure with a cloud agnostic approach.

  • Sequential tasks for complex deployments, or wait till CM tools like Puppet to finish it's bootstrapping activities.

Run

terraform apply

fab wait test

Fill Out These Files

configurations.py: (SSH location, login username)

KEY_FILE = '/Users/marcinot/ssh/default-ssh.pem'
USERNAME = 'default-ssh'

terraform.tfvars: (AWS keys)

access_key = ""
secret_key = ""

About

Using Terraform with Python Fabric on AWS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages