Skip to content

Commit e59d7b5

Browse files
dmattiaaknysh
authored andcommitted
Added optional support for ipv6 dns records (#66)
This is related to #64
1 parent e132823 commit e59d7b5

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ Available targets:
172172
| geo_restriction_locations | List of country codes for which CloudFront either to distribute content (whitelist) or not distribute your content (blacklist) | list(string) | `<list>` | no |
173173
| geo_restriction_type | Method that use to restrict distribution of your content by country: `none`, `whitelist`, or `blacklist` | string | `none` | no |
174174
| index_document | Amazon S3 returns this index document when requests are made to the root domain or any of the subfolders | string | `` | no |
175+
| ipv6_enabled | Set to true to enable an AAAA DNS record to be set as well as the A record | bool | `false` | no |
175176
| is_ipv6_enabled | State of CloudFront IPv6 | bool | `true` | no |
176177
| lambda_function_association | A config block that triggers a lambda function with specific actions | object | `<list>` | no |
177178
| log_expiration_days | Number of days after which to expunge the objects | string | `90` | no |

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
| geo_restriction_locations | List of country codes for which CloudFront either to distribute content (whitelist) or not distribute your content (blacklist) | list(string) | `<list>` | no |
3232
| geo_restriction_type | Method that use to restrict distribution of your content by country: `none`, `whitelist`, or `blacklist` | string | `none` | no |
3333
| index_document | Amazon S3 returns this index document when requests are made to the root domain or any of the subfolders | string | `` | no |
34+
| ipv6_enabled | Set to true to enable an AAAA DNS record to be set as well as the A record | bool | `false` | no |
3435
| is_ipv6_enabled | State of CloudFront IPv6 | bool | `true` | no |
3536
| lambda_function_association | A config block that triggers a lambda function with specific actions | object | `<list>` | no |
3637
| log_expiration_days | Number of days after which to expunge the objects | string | `90` | no |

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,12 @@ resource "aws_cloudfront_distribution" "default" {
249249
}
250250

251251
module "dns" {
252-
source = "git::https://github.com/cloudposse/terraform-aws-route53-alias.git?ref=tags/0.3.0"
252+
source = "git::https://github.com/cloudposse/terraform-aws-route53-alias.git?ref=tags/0.4.0"
253253
enabled = var.enabled && length(var.parent_zone_id) > 0 || length(var.parent_zone_name) > 0 ? true : false
254254
aliases = var.aliases
255255
parent_zone_id = var.parent_zone_id
256256
parent_zone_name = var.parent_zone_name
257257
target_dns_name = aws_cloudfront_distribution.default.domain_name
258258
target_zone_id = aws_cloudfront_distribution.default.hosted_zone_id
259+
ipv6_enabled = var.ipv6_enabled
259260
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,4 +361,10 @@ variable "routing_rules" {
361361
type = string
362362
default = ""
363363
description = "A json array containing routing rules describing redirect behavior and when redirects are applied"
364+
}
365+
366+
variable "ipv6_enabled" {
367+
type = bool
368+
default = false
369+
description = "Set to true to enable an AAAA DNS record to be set as well as the A record"
364370
}

0 commit comments

Comments
 (0)