CloudFormation Template

Your use of AWS services are subject to your applicable agreement(s) with AWS, including the AWS Service Terms.
Your use of DCV is subject to the DCV end user license agreement.

CloudFormation Templates

Note that this is not a managed instance of DCV on AWS, rather the CloudFormation template is provided so that customers can quickly get up and running with DCV for internal testing before moving on to a production configuration or setup. With this CloudFormation template, you can start deploying your EC2 instances with DCV pre-installed and fully configured. Here are some of the things the template does on your behalf:

  1. Deploy an EC2 instance running with selected AMIs.
  2. Configure the instance for use with DCV
  3. Install and configure DCV
  4. Configure the minimum required set of security groups

This automation template and deployment requires an account on AWS. You can sign up here, if you don't have one already.

Before you begin you need an AWS Identity and Access Management (IAM) account with sufficient permissions to log-on in the AWS Web Console and deploy the CloudFormation template. This account must have the right level of permissions to create all the resources, including an EC2 IAM Role. This level of permissions is typically granted to an IAM user with the AdministratorAccess managed policy.

Deployment procedure:

  1. Click on the template link after reviewing the relevant terms, to land on the first page of the CloudFormation template wizard: "Select Template", and select "Next". If you are not already logged-on in the AWS Web Console, you will be asked to authenticate.
  2. In the "Specify Details" page, you must answer all the questions, and then click "Next"
  3. The third page, "Options", is important only if you do not have the full AdministratorAccess managed policy. Here you can choose an alternate role to continue with the deployment.
  4. The final fourth page "Review" contains a mandatory step: you must check the last checkbox about "Capabilities" to authorize explicitly the deployment of all required resources.
  5. After you click the "Create" button, you land on the main page of CloudFormation with the list of all your stacks. You may need to click the "refresh" button to see the progress of your deployment. Note that the deployment may take several minutes.
  6. When the stack will reach the status "CREATE_COMPLETE", you can access the section "Outputs" where you can find the web URL to access your newly created DCV Instance.
  7. To connect to your session, you can use either an HTML5 compatible web-browser or download from the native client application from the DCV download page
  8. DCV is set up with a self-signed certificate. You have to trust this certificate on your preferred browser in order to preceed to the login form.
  9. To access the instance you can use the username "Administrator" for any Windows instance or the username "dcvuser" for any Linux instance with the password you provided as a parameter on the CloudFormation template.
  10. If you run into an error installing a marketplace AMI like CentOS 7, please agree to the Terms & Conditions on the AMI page before trying the CloudFormation template again.

Modifying the Template

If you want to modify the deployment procedure, you can access the CloudFormation template and have a look at the shell scripts used as pre- and post-install parameters. Access to these files is available only via AWS API calls, or through the command-line interface (AWS CLI). In the following high-level description we will assume you will use the AWS CLI.
First, you'll need to obtain a local copy of the template and the companion scripts:

aws s3 cp s3://nice-dcv-cfn/dcv.template .
aws s3 cp s3://nice-dcv-cfn/dcv-server-install.ps1 .
aws s3 cp s3://nice-dcv-cfn/dcv-server-install.sh .
      

You can use the CloudFormation template and the scripts above as a starting point to personalize the deployment of DCV, for example changing security group defaults or extending it to support alternative AMIs, etc.