DigitalOcean Infrastructure as Code (CODE)

Sep 26, 2018

Description

Demo project demonstrating how define your DigitalOcean infrastructure as code.

Project URL

Installation

git clone https://github.com/damyanbogoev/do-iac.git

Usage

# initializing the project
terraform init

# validating the nodes configurations for tor1 data center, production environment
make validate dc=tor1 env=production op=nodes

# debugging the nodes configurations for tor1 data center, production environment
make debug dc=tor1 env=production op=nodes

# applying the nodes configurations on tor1 data center, production environment
make deploy dc=tor1 env=production op=nodes

# destroying the nodes infrastructure on tor1 data center, production environment
make destroy dc=tor1 env=production op=nodes

Supported arguments values:

  • dc: fra1, tor1
  • env: staging, production
  • op: dns, lb, nodes

Changelog

1.0

  • support for multiple data centers and deployment environments
  • dns setup
  • bastion setup
  • public load-balancers setup
  • compute nodes setup
  • security through firewalls

License

The demo project is released under the MIT License, see LICENSE.

Buy Me A Coffee