From 75d0ffc572ed8fbda89e5fbf87641cc373c3264d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=AA=20Barbosa?= Date: Mon, 10 Jun 2024 09:26:04 -0300 Subject: [PATCH] updating examples --- examples/complete/README.md | 3 ++- examples/complete/main.tf | 23 ++++++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/examples/complete/README.md b/examples/complete/README.md index aa34918..dbf6259 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -38,9 +38,10 @@ Note that this example may create resources which cost money. Run `terraform des | [delegation\_sets](#module\_delegation\_sets) | ../../modules/delegation-sets | n/a | | [disabled\_records](#module\_disabled\_records) | ../../modules/records | n/a | | [disabled\_resolver\_endpoints](#module\_disabled\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a | +| [inbound\_resolver\_endpoints](#module\_inbound\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a | +| [outbound\_resolver\_endpoints](#module\_outbound\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a | | [records](#module\_records) | ../../modules/records | n/a | | [records\_with\_full\_names](#module\_records\_with\_full\_names) | ../../modules/records | n/a | -| [resolver\_endpoints](#module\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a | | [resolver\_rule\_associations](#module\_resolver\_rule\_associations) | ../../modules/resolver-rule-associations | n/a | | [s3\_bucket](#module\_s3\_bucket) | terraform-aws-modules/s3-bucket/aws | n/a | | [terragrunt](#module\_terragrunt) | ../../modules/records | n/a | diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 74fd72f..c5642cb 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -285,7 +285,7 @@ module "resolver_rule_associations" { } } -module "resolver_endpoints" { +module "inbound_resolver_endpoints" { source = "../../modules/resolver-endpoints" name = "example1" @@ -298,6 +298,27 @@ module "resolver_endpoints" { security_group_ingress_cidr_blocks = [ module.vpc2.vpc_cidr_block ] + security_group_egress_cidr_blocks = [ + module.vpc2.vpc_cidr_block + ] +} + +module "outbound_resolver_endpoints" { + source = "../../modules/resolver-endpoints" + + name = "example2" + direction = "OUTBOUND" + protocols = ["Do53", "DoH"] + subnet_ids = module.vpc1.private_subnets + + vpc_id = module.vpc1.vpc_id + security_group_name_prefix = "example2-sg-" + security_group_ingress_cidr_blocks = [ + module.vpc1.vpc_cidr_block + ] + security_group_egress_cidr_blocks = [ + module.vpc2.vpc_cidr_block + ] } ###################