Skip to content

Unable to license DCV

0

Hello! I've just set up DCV on a Windows Server 2025 AMI. My SG has access to the internet via HTTPS, I've updated the appropriate role to have permissions to the dcv-license S3 bucket in my region (though I still get an Access Denied error when accessing via AWS Tools for Powershell...), I've installed EC2Launch v2 (even though this was a quick launch AMI), and I'm still getting a No License error when I connect. I'm not understanding why it's not working (especially with the "Access Denied" error and the tokens used with IMDSv2)), so any assistance would be greatly appreciated. Thank you!

asked a year ago508 views
1 Answer
0

It appears you're experiencing licensing issues with Amazon DCV on your Windows Server instance. Let me help troubleshoot this problem.

When running Amazon DCV on an EC2 instance, you don't need a separate license server as DCV automatically detects it's running on EC2 and connects to an S3 bucket to verify license availability. However, several requirements must be met:

  1. Your instance must be able to reach the Amazon S3 endpoint. Since you mentioned your security group has HTTPS access to the internet, this should be covered. Alternatively, if internet access is restricted, you could configure a gateway VPC endpoint for your VPC with appropriate outbound rules.

  2. The instance must have the correct IAM permissions. The IAM role attached to your EC2 instance needs an S3 access policy that looks like:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::dcv-license.YOUR-REGION/*"
}
]
}

Make sure you've replaced "YOUR-REGION" with your actual AWS region.

  1. For Windows instances specifically, access to the instance metadata service is required. You mentioned installing EC2Launch v2, which is good, but you might want to verify it's properly configured.

The "Access Denied" error when using AWS Tools for PowerShell suggests there might be an issue with the IAM permissions. Double-check that:

  • The IAM role is correctly attached to your instance
  • The policy has the correct region specified
  • There are no typos in the resource ARN

If you've verified all these settings and the issue persists, it's possible there might be a problem with the DCV license bucket in your specific region. Some newer AWS regions might not have the DCV license bucket fully set up yet.

As a troubleshooting step, you could try forcing a license reload with the command dcv reload-licenses run as administrator.
Sources
Step 2: License the Amazon DCV Server - Amazon DCV
DCV - No license available from eu-south-2 region | AWS re:Post
Updating the production license - Amazon DCV

answered a year ago
AWS
SUPPORT ENGINEER
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.