Created
August 14, 2017 16:48
-
-
Save alfredopalhares/1f5c1ea55c0c090ab07ddd87156ebdc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello, | |
I would like to be able to make a custom DSL that is based on set of ther DSL, to further explain myself I will show the problem: | |
We have a base DSL that defines a new VPC on AWS, that code it has all the necessary network settings witha all the subnets settings, DMZ style, security groups, etc | |
Currently we have the base code with all the variables set, so if a team needs to set the new network settings, they will just copy the code, update the ``varibales.tf`` to their needs. | |
This works up to the point when I need to update base terraform syntax, it becomes a tedious and error prone to pass those changes accross all the existent networks. | |
At I woudl like would to make a custom DSL that will wrap all that code, in an example: | |
``` | |
resource "fancy_aws_network" "network" { | |
base_cidr = "172.31.0.0/16" | |
use_dmz = True | |
subnet_per_az = True | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment