Skip to content

Commit

Permalink
updating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Renê Barbosa committed Jun 10, 2024
1 parent cef9693 commit 75d0ffc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ Note that this example may create resources which cost money. Run `terraform des
| <a name="module_delegation_sets"></a> [delegation\_sets](#module\_delegation\_sets) | ../../modules/delegation-sets | n/a |
| <a name="module_disabled_records"></a> [disabled\_records](#module\_disabled\_records) | ../../modules/records | n/a |
| <a name="module_disabled_resolver_endpoints"></a> [disabled\_resolver\_endpoints](#module\_disabled\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a |
| <a name="module_inbound_resolver_endpoints"></a> [inbound\_resolver\_endpoints](#module\_inbound\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a |
| <a name="module_outbound_resolver_endpoints"></a> [outbound\_resolver\_endpoints](#module\_outbound\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a |
| <a name="module_records"></a> [records](#module\_records) | ../../modules/records | n/a |
| <a name="module_records_with_full_names"></a> [records\_with\_full\_names](#module\_records\_with\_full\_names) | ../../modules/records | n/a |
| <a name="module_resolver_endpoints"></a> [resolver\_endpoints](#module\_resolver\_endpoints) | ../../modules/resolver-endpoints | n/a |
| <a name="module_resolver_rule_associations"></a> [resolver\_rule\_associations](#module\_resolver\_rule\_associations) | ../../modules/resolver-rule-associations | n/a |
| <a name="module_s3_bucket"></a> [s3\_bucket](#module\_s3\_bucket) | terraform-aws-modules/s3-bucket/aws | n/a |
| <a name="module_terragrunt"></a> [terragrunt](#module\_terragrunt) | ../../modules/records | n/a |
Expand Down
23 changes: 22 additions & 1 deletion examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ module "resolver_rule_associations" {
}
}

module "resolver_endpoints" {
module "inbound_resolver_endpoints" {
source = "../../modules/resolver-endpoints"

name = "example1"
Expand All @@ -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
]
}

###################
Expand Down

0 comments on commit 75d0ffc

Please sign in to comment.