Code in this repository is used for generating infrastructure as Terraform configurations from visual diagrams created using Cloudcraft.
- Sign up for a free account with Cloudcraft.
- Draw AWS architecture in web-browser (you can import live AWS resources, too).
- Click "Export" and "Terraform code export" at the top right side.
- Download archive and extract it locally.
- Follow step-by-step instructions in
README.md
which you can find inside of it.
In modules.tf-demo repository you can see the exact configuration code generated from sample "Web App Reference Architecture".
This project was partially sponsored by Cloudcraft - the best way to draw AWS diagrams.
Become a sponsor to @antonbabenko on GitHub.
This project is Python 3.8 serverless application written using serverless.tf framework and open-source components (Terraform AWS modules).
Terraform is used to provision infrastructure resources as well as packaging artifacts and to do the deployments (check out serverless.tf for more details).
Source code is located in src/handler.py
.
Go to directory terraform
, verify/update file terraform.tfvars
and run:
$ terraform init # Download required Terraform providers and modules
$ terraform apply # Create or update infrastructure resources or do a new deployment of Lambda function (if source code has changed)
When infrastructure is created, you should be able to POST
using httpie or curl
like this:
$ http --print Hhb --all --follow https://dev-d2c.modules.tf @test_fixtures/input/blueprint_my.json
This project exists thanks to all the people who contribute.
Become a financial contributor and help us sustain our community. [Contribute]
Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]
This work is licensed under MIT License. See LICENSE for full details.
Copyright (c) 2018-2021 Anton Babenko