Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http2and3 http_version gives validation error #259

Open
stadskle opened this issue Feb 22, 2023 · 0 comments
Open

http2and3 http_version gives validation error #259

stadskle opened this issue Feb 22, 2023 · 0 comments

Comments

@stadskle
Copy link

stadskle commented Feb 22, 2023

When attempting to enable http3 I get the following validation error on terraform apply:

Error: expected http_version to be one of [http1.1 http2], got http2and3
│
│   with module.static_site.module.static_web_site.aws_cloudfront_distribution.default[0],
│   on .terraform/modules/static_site.static_web_site/main.tf line 380, in resource "aws_cloudfront_distribution" "default":
│  380:   http_version        = var.http_version

Environment:

$ terraform --version
Terraform v1.3.9
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v4.24.0
+ provider registry.terraform.io/hashicorp/local v2.3.0
+ provider registry.terraform.io/hashicorp/random v3.4.3
+ provider registry.terraform.io/hashicorp/time v0.9.1

My code:

module "static_web_site" {
  source  = "cloudposse/cloudfront-s3-cdn/aws"
  # Cloud Posse recommends pinning every module to a specific version
  version = "0.86.0"

  namespace                = "test"
  stage                    = var.environment
  name                     = "static"
  aliases                  = [var.alias]
  dns_alias_enabled        = true
  parent_zone_name         = var.parent_zone_name
  acm_certificate_arn      = var.acm_arn
  minimum_protocol_version = "TLSv1.2_2021"
  versioning_enabled       = false
  http_version             = "http2and3"
  allowed_methods          = ["GET", "HEAD"]
  max_ttl                  = 3600
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant