-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Using the module with an existing Route53 zone | ||
|
||
If you already have a Route53 hosted zone for the domain, the `aws_route53_zone` data source should be used to find the zone ID. | ||
|
||
```hcl | ||
data "aws_route53_zone" "zone" { | ||
name = "example.com." | ||
} | ||
module "route53_o365" { | ||
source = "tiguard/route53-o365/aws" | ||
domain = "example.com" | ||
zone_id = "${data.aws_route53_zone.zone.zone_id}" | ||
ms_txt = "ms12345678" | ||
enable_exchange = true | ||
enable_sfb = true | ||
enable_mdm = true | ||
} | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Using the module with a new Route53 zone | ||
|
||
If you're creating a new Route53 hosted zone for the domain, the `aws_route53_zone` resource can pass the new zone ID to the module. | ||
|
||
```hcl | ||
resource "aws_route53_zone" "zone" { | ||
name = "example.com" | ||
} | ||
module "route53_o365" { | ||
source = "tiguard/route53-o365/aws" | ||
domain = "example.com" | ||
zone_id = "${aws_route53_zone.zone.zone_id}" | ||
ms_txt = "ms12345678" | ||
enable_exchange = true | ||
enable_sfb = true | ||
enable_mdm = true | ||
} | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
output "mx_record" { | ||
value = "${replace("${data.template_file.mx_record.rendered}", "/^10./", "")}" | ||
description = "The DNS name of the specific Office 365 mail server for the domain." | ||
value = "${replace("${data.template_file.mx_record.rendered}", "/^10./", "")}" | ||
} |
File renamed without changes.