Creating Client VPN Endpoint failing through CLI and Powershell

0

I'm trying to create a new Client VPN Endpoint either through the CLI or Powershell and I'm getting the same error for both - "An internal error has occurred"

Here are the calls I'm trying (changed arn, Id's, and ip's to protect the innocent):
Powershell:

$authOption = New-Object 'Amazon.EC2.Model.ClientVpnAuthenticationRequest'
$authOption.Type = "string"
$authOption.ActiveDirectory = New-Object 'Amazon.EC2.Model.DirectoryServiceAuthenticationRequest'
$authOption.ActiveDirectory.DirectoryId = "d-0000000cc99"
$createVpnResponse = New-EC2ClientVpnEndpoint -ClientCidrBlock "10.21.20.0/22" -ServerCertificateArn "arn:aws:acm:us-east-1:999999999999:certificate/9999999a-9999-9999-9999-999999999999" -AuthenticationOption $authOption -DnsServer @("10.10.10.200", "10.10.11.200") -Description "Client VPN for employees to connect into the VPC." -ConnectionLogOptions_Enabled $false -Verbose

CLI:

aws ec2 create-client-vpn-endpoint --client-cidr-block 10.21.20.0/22 --server-certificate-arn arn:aws:acm:us-east-1:999999999999:certificate/9999999a-9999-9999-9999-999999999999 --authentication-options "Type=string,ActiveDirectory={DirectoryId=d-0000000cc99}" --connection-log-options "Enabled=false" --dns-servers "10.10.10.200" "10.10.11.200" --description "Client VPN for employees to connect into the Corp VPC."

This is the error I keep getting:

New-EC2ClientVpnEndpoint : An internal error has occurred
At C:\Batch\AWS_CreateVPN.ps1:19 char:22
+ $createVpnResponse = New-EC2ClientVpnEndpoint `
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Amazon.PowerShe...nEndpointCmdlet:NewEC2ClientVpnEndpointCmdlet) [New-EC2ClientVpnEndpoint], InvalidOperationException
    + FullyQualifiedErrorId : Amazon.EC2.AmazonEC2Exception,Amazon.PowerShell.Cmdlets.EC2.NewEC2ClientVpnEndpointCmdlet

Does anyone have any ideas on what the issue is? I think I had the CLI version working in the past but today I updated to the latest version of the AWS Tools for Windows to get the Powershell cmdlets and now nothing is working. I'm not sure if I'm missing something or if it's an issue with the cmdlet/cli or on the AWS end. I am able to create the VPN through the console.

질문됨 5년 전216회 조회
1개 답변
0

Not needed anymore. Billing is done by active associations so we decided not to create a new Endpoint and are just creating the association as needed instead which works great.

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠