diff --git a/README.md b/README.md index b644ea3..38f7884 100644 --- a/README.md +++ b/README.md @@ -107,13 +107,13 @@ ordered_cache_behavior = [{ | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.5.7 | -| [aws](#requirement\_aws) | >= 5.83 | +| [aws](#requirement\_aws) | >= 6.3 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.83 | +| [aws](#provider\_aws) | >= 6.3 | ## Modules @@ -137,6 +137,7 @@ No modules. | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [aliases](#input\_aliases) | Extra CNAMEs (alternate domain names), if any, for this distribution. | `list(string)` | `null` | no | +| [anycast\_ip\_list\_id](#input\_anycast\_ip\_list\_id) | The ID of the anycast static IP list to use for this distribution | `string` | `null` | no | | [comment](#input\_comment) | Any comments you want to include about the distribution. | `string` | `null` | no | | [continuous\_deployment\_policy\_id](#input\_continuous\_deployment\_policy\_id) | Identifier of a continuous deployment policy. This argument should only be set on a production distribution. | `string` | `null` | no | | [create\_distribution](#input\_create\_distribution) | Controls if CloudFront distribution should be created | `bool` | `true` | no | diff --git a/examples/complete/README.md b/examples/complete/README.md index d2b2039..623ec28 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -28,7 +28,7 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.5.7 | -| [aws](#requirement\_aws) | >= 5.83 | +| [aws](#requirement\_aws) | >= 6.3 | | [null](#requirement\_null) | >= 2.0 | | [random](#requirement\_random) | >= 2.0 | @@ -36,7 +36,7 @@ Note that this example may create resources which cost money. Run `terraform des | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.83 | +| [aws](#provider\_aws) | >= 6.3 | | [null](#provider\_null) | >= 2.0 | | [random](#provider\_random) | >= 2.0 | diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf index e69fcd0..393613b 100644 --- a/examples/complete/versions.tf +++ b/examples/complete/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.83" + version = ">= 6.3" } random = { source = "hashicorp/random" diff --git a/main.tf b/main.tf index f773d7e..20eec6d 100644 --- a/main.tf +++ b/main.tf @@ -54,6 +54,7 @@ resource "aws_cloudfront_distribution" "this" { count = var.create_distribution ? 1 : 0 aliases = var.aliases + anycast_ip_list_id = var.anycast_ip_list_id comment = var.comment continuous_deployment_policy_id = var.continuous_deployment_policy_id default_root_object = var.default_root_object diff --git a/variables.tf b/variables.tf index afeec33..0da7112 100644 --- a/variables.tf +++ b/variables.tf @@ -48,6 +48,12 @@ variable "aliases" { default = null } +variable "anycast_ip_list_id" { + description = "The ID of the anycast static IP list to use for this distribution" + type = string + default = null +} + variable "comment" { description = "Any comments you want to include about the distribution." type = string diff --git a/versions.tf b/versions.tf index 5ce9aba..fd053a1 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.83" + version = ">= 6.3" } } }