cloudposse / terraform-aws-ec2-client-vpn

https://cloudposse.com/accelerate
Apache License 2.0
44 stars 27 forks source link

Creating EC2 Client VPN Endpoint - InvalidParameterValue - Certificate does not have a domain #78

Closed sprijk closed 1 year ago

sprijk commented 1 year ago

Describe the Bug

When using a very slim config:

module "ec2_client_vpn" {
  source  = "cloudposse/ec2-client-vpn/aws"
  version = "0.16.0"

  vpc_id = local.vpc_id
  client_cidr             = local.vpc_cidr_block
  organization_name       = "some-org-name"
  logging_enabled         = false
  associated_subnets      = local.vpc_private_subnets
  logging_stream_name     = "some-orgs-ec2-client-vpn"
}

I get this error:

│ Error: creating EC2 Client VPN Endpoint: InvalidParameterValue: Certificate arn:aws:acm:eu-west-1:XXXXX:certificate/963ae7a1-09c8-4181-a44e-b749b9001454 does not have a domain
│       status code: 400, request id: 1ad0f5dc-9c2c-4a03-bc2f-8f87dad57ca0
│ 
│   with module.ec2_client_vpn.aws_ec2_client_vpn_endpoint.default[0],
│   on .terraform/modules/ec2_client_vpn/main.tf line 152, in resource "aws_ec2_client_vpn_endpoint" "default":
│  152: resource "aws_ec2_client_vpn_endpoint" "default" {
│ 

Expected Behavior

Create the EC2 VPN Client

Steps to Reproduce

Apply the above terraform code

Screenshots

No response

Environment

No response

Additional Context

No response

sprijk commented 1 year ago

Duplicate of #57