Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Child Modules Needed #343

Open
thinkl33t opened this issue May 24, 2023 · 0 comments
Open

Additional Child Modules Needed #343

thinkl33t opened this issue May 24, 2023 · 0 comments

Comments

@thinkl33t
Copy link
Contributor

thinkl33t commented May 24, 2023

Originally from finos/terraform-aws-cfi-eks#7 (comment)

Broadly speaking, we think, define VPC as a mod with all the features one'd want, with switches in the resources for count so that if var true then deploy element else don't. This provides flexibility for members deploying a VPC but who dont want routing and subnets with it for instance. Example

resource "aws_subnet" "main" {
  count = var.add_subnets == true ? var.num_subnets : 0
...

etc.

In my VPC, I have:

aws_default_security_group
aws_security_group
aws_network_acl

aws_eip
aws_internet_gateway
aws_nat_gateway
aws_route
aws_route_table
aws_route_table_association

aws_subnet
aws_vpc
aws_vpc_endpoint
aws_vpc_endpoint_route_table_association

split into security, routing and core. We would need to associate groups of resources to need so eg no point having a switch allowing a user to not have an endpoint resource, but still have an endpoint route table association.

We should then excise as needed to create separate compliant child mods for these as well (eg a subnet mod) for max flex.

I think also SSH key and VPC peering mods.

Originally posted by @ml4 in finos/terraform-aws-cfi-eks#7 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant