Skip to content

AWS-DCV-web-portal related modification request

0

hello. We are currently trying to develop SAAS through AWS-dcv-web-portal github.

Currently Link: https://xn--github-2c8w.com/aws-samples/dcv-web-portal I tried to fork and use the github link, but the last update was listed as last year, so the following error occurred.

 Error: creating Image Builder Image Recipe: ResourceNotFoundException: The following required resource 'Image' cannot be found: 'ami-0ab040d0c6b04cf83'.
│ 
│   with module.connection_gateway.module.image_builder.aws_imagebuilder_image_recipe.connection_gateway_image_builder_recipe,
│   on modules/connection-gateway/preset-images/amazon-linux-2/image-recipe.tf line 5, in resource "aws_imagebuilder_image_recipe" "connection_gateway_image_builder_recipe":
│    5: resource "aws_imagebuilder_image_recipe" "connection_gateway_image_builder_recipe" {
│ 
╵
╷
│ Error: creating Image Builder Image Recipe: ResourceNotFoundException: The following required resource 'Image' cannot be found: 'ami-0ab040d0c6b04cf83'.
│ 
│   with module.vdi.module.amazon_linux_2_image.aws_imagebuilder_image_recipe.vdi_image_builder_recipe,
│   on modules/vdi/preset-images/amazon-linux-2/image-recipe.tf line 4, in resource "aws_imagebuilder_image_recipe" "vdi_image_builder_recipe":
│    4: resource "aws_imagebuilder_image_recipe" "vdi_image_builder_recipe" {
│ 
╵
╷
│ Error: creating Image Builder Image Recipe: ResourceNotFoundException: The following required resource 'Image' cannot be found: 'ami-0274fd9e256dea7b1'.
│ 
│   with module.vdi.module.windows_server_2022_image.aws_imagebuilder_image_recipe.vdi_image_builder_recipe,
│   on modules/vdi/preset-images/windows-server-2022/image-recipe.tf line 4, in resource "aws_imagebuilder_image_recipe" "vdi_image_builder_recipe":
│    4: resource "aws_imagebuilder_image_recipe" "vdi_image_builder_recipe" {

Jeromevdl is in charge of development. Is it possible to update the Winodw/Amazon Linux AMI code from the existing code?

I would really appreciate it if you could resolve this issue quickly.

thank you

asked 2 years ago125 views

1 Answer
0

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:

  1. Locate the Image Builder recipe files in the repository. Based on the error messages, you'll need to look for files named image-recipe.tf in 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/
  2. In these files, find the AMI ID references (like 'ami-0ab040d0c6b04cf83' and 'ami-0274fd9e256dea7b1').

  3. 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.

  4. 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

answered 2 years ago

EXPERT

reviewed 2 years 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.