Need help with modules.tf-lambda?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

antonbabenko
292 Stars 45 Forks MIT License 116 Commits 15 Opened issues

Description

Infrastructure as code generator - from visual diagrams created with Cloudcraft.co to Terraform

Services available

!
?

Need anything else?

Contributors list

# 7,363
Symfony
PHP
Amazon ...
aws-vpc
108 commits
# 1,222
GraphQL
MongoDB
Markdow...
render-...
4 commits
# 61,204
aws-lam...
terrafo...
npm
TypeScr...
1 commit
# 5,955
gc
wechat-...
mac
alfred
1 commit
# 554,302
Python
aws-lam...
Terrafo...
infrast...
1 commit
# 105,285
aws-lam...
Terrafo...
C++
tree-si...
1 commit
# 352,292
aws-lam...
Terrafo...
terrafo...
Haskell
1 commit

Diagrams to code (d2c) - Infrastructure as code generator - from visual diagrams to Terraform

Financial Contributors on Open Collective MIT license @antonbabenko

modules.tf - Infrastructure as code generator - from visual diagrams to Terraform

Code in this repository is used for generating infrastructure as Terraform configurations from visual diagrams created using Cloudcraft.

How can I try this?

  1. Sign up for a free account with Cloudcraft.
  2. Draw AWS architecture in web-browser (you can import live AWS resources, too).
  3. Click "Export" and "Terraform code export" at the top right side.
  4. Download archive and extract it locally.
  5. Follow step-by-step instructions in
    README.md
    which you can find inside of it.

How do the generated Terraform configurations look like?

In modules.tf-demo repository you can see the exact configuration code generated from sample "Web App Reference Architecture".

Original infrastructure

Web App Reference Architecture

Recording of complete code execution

modules.tf demo - November 2019

Supporters

Cloudcraft - the best way to draw AWS diagrams

This project was partially sponsored by Cloudcraft - the best way to draw AWS diagrams.

Become a sponsor to @antonbabenko on GitHub.

@antonbabenko @antonbabenko modules.tf-lambda

Developer's guide

This project is Python 3.8 serverless application written using serverless.tf framework and open-source components (Terraform AWS modules).

Notes for developers

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

Contributors

Code Contributors

This project exists thanks to all the people who contribute.

Financial Contributors

Become a financial contributor and help us sustain our community. [Contribute]

Individuals

Organizations

Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]

License

This work is licensed under MIT License. See LICENSE for full details.

Copyright (c) 2018-2021 Anton Babenko

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.