- Newest
- Most votes
- Most comments
I understand you're encountering issues while trying to deploy the AWS-DCV-web-portal from the GitHub repository. The errors you're seeing are related to missing Amazon Machine Images (AMIs) that the Image Builder recipes are trying to use. This is likely because the AMI IDs specified in the code are no longer available or have been deprecated since the last update of the repository.
To resolve this issue, you'll need to update the AMI IDs in the Image Builder recipe configurations. Here's what you can do:
-
Locate the Image Builder recipe files in the repository. Based on the error messages, you'll need to look for files named
image-recipe.tfin the following directories:- modules/connection-gateway/preset-images/amazon-linux-2/
- modules/vdi/preset-images/amazon-linux-2/
- modules/vdi/preset-images/windows-server-2022/
-
In these files, find the AMI ID references (like 'ami-0ab040d0c6b04cf83' and 'ami-0274fd9e256dea7b1').
-
Replace these AMI IDs with current, valid AMI IDs for Amazon Linux 2 and Windows Server 2022 in your target region. You can find the latest AMI IDs in the AWS Console or by using the AWS CLI.
-
After updating the AMI IDs, try deploying the infrastructure again.
If you're not comfortable making these changes yourself, you might want to open an issue on the GitHub repository to alert the maintainers about the outdated AMI IDs. However, as the repository hasn't been updated recently, you may not get an immediate response.
For a more long-term solution, consider modifying the code to use dynamic AMI lookup instead of hardcoded AMI IDs. This would allow the code to always use the latest AMIs without requiring manual updates.
Remember to test thoroughly after making any changes, as updating the base AMIs might introduce compatibility issues with other components of the setup.
Sources
Announcing the NICE DCV Amazon-managed component for EC2 Image Builder | Desktop and Application Streaming
Automating Foundational NICE DCV Infrastructure | Desktop and Application Streaming
Relevant content
asked 2 years ago
