• Stars
    star
    349
  • Rank 121,528 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

pre-commit-terraform

pre-commit git hooks to take care of Terraform configurations 🇺🇦
Shell
3,145
star
2

terraform-best-practices

Terraform Best Practices free ebook translated into 🇬🇧🇦🇪🇧🇦🇧🇷🇫🇷🇬🇪🇩🇪🇬🇷🇮🇱🇮🇳🇮🇩🇮🇹🇰🇷🇵🇱🇷🇴🇨🇳🇪🇸🇹🇷🇺🇦🇵🇰
HCL
1,991
star
3

serverless.tf

serverless.tf is an opinionated open-source framework for developing, building, deploying, and securing serverless applications and infrastructures on AWS using Terraform.
726
star
4

terraform-cost-estimation

Anonymized, secure, and free Terraform cost estimation based on Terraform plan (0.12+) or Terraform state (any version)
jq
679
star
5

terraform-aws-devops

Info about many of my Terraform, AWS, and DevOps projects.
422
star
6

terragrunt-reference-architecture

Terragrunt Reference Architecture (upd: May 2020)
HCL
371
star
7

terraform-best-practices-workshop

Terraform Best Practices - workshop materials
HCL
237
star
8

terraform-docs-as-pdf

Complete Terraform documentation (core + all official providers) as PDF files. Updating nightly.
Shell
201
star
9

awsp

AWS credential profile changer
Shell
91
star
10

you-have-passed-the-certification

I'm glad you have passed the certification! I just don't want to see posts about it in my LinkedIn newsfeed.
JavaScript
77
star
11

terrapin

[not-WIP] Terraform module generator (not ready for its prime time, yet)
Shell
71
star
12

modules.tf-demo

Real modules.tf demo (updated May 2021)
HCL
41
star
13

serverless.tf-playground

serverless.tf playground for examples and experiments
HCL
38
star
14

terraform-deployment-pipeline-talk

Code for my talks about Terraform in deployment pipeline
HCL
33
star
15

terraform-provider-openai

Terraform provider for OpenAI (experimental as hell)
Go
26
star
16

terraform-aws-anything

Content for "Manage any AWS resource with Terraform"
HCL
24
star
17

tfvars-annotations

[not-WIP] Update values in terraform.tfvars using annotations
Go
23
star
18

terrible

[not-WIP] Let's orchestrate Terraform configuration files with Ansible! Terrible!
Makefile
23
star
19

antonbabenko

12
star
20

addo-demo

All code used during my All Day DevOps talk
HCL
7
star
21

terramate-reference-architecture

WIP: Terramate Reference Architecture
HCL
7
star
22

renovatebot-tf-tg-demo

Renovatebot with Terraform and Terragrunt
HCL
5
star
23

.github

Meta repository for all repositories in my account
1
star