Difference between revisions of "Aws ec2 create-client-vpn-endpoint"

From wikieduonline
Jump to navigation Jump to search
Line 22: Line 22:
 
         "Code": "pending-associate"
 
         "Code": "pending-associate"
 
     },
 
     },
     "DnsName": "cvpn-endpoint-123456789123abcde.prod.clientvpn.ap-south-1.amazonaws.com"
+
     "DnsName": "cvpn-endpoint-123456789123abcde.prod.[[clientvpn]].ap-south-1.amazonaws.com"
 
  }
 
  }
  

Revision as of 16:13, 1 November 2021

aws ec2 create-client-vpn-endpoint

 --authentication-options Type= [ directory-service-authentication | certificate-authentication | federated-authentication ]
Syntax:
Type=StringWithAnyof3AvailableTypes,ActiveDirectory={DirectoryId=string},MutualAuthentication={ClientRootCertificateChainArn=string},FederatedAuthentication={SAMLProviderArn=string,SelfServiceSAMLProviderArn=string} ...

Example

aws ec2 create-client-vpn-endpoint \
    --client-cidr-block "172.31.0.0/16" \
    --server-certificate-arn arn:aws:acm:ap-south-1:123456789012:certificate/a1b2c3d4-5678-90ab-cdef-11111EXAMPLE \
    --authentication-options Type=certificate-authentication,MutualAuthentication={ClientRootCertificateChainArn=arn:aws:acm:ap-south- 1:123456789012:certificate/a1b2c3d4-5678-90ab-cdef-22222EXAMPLE} \
    --connection-log-options Enabled=false


Output:

{
   "ClientVpnEndpointId": "cvpn-endpoint-123456789123abcde",
   "Status": {
       "Code": "pending-associate"
   },
   "DnsName": "cvpn-endpoint-123456789123abcde.prod.clientvpn.ap-south-1.amazonaws.com"
}

Related

See also

Advertising: