Datastore
Amazon DCV Access Console persists user data, group data, session templates and the permission data related to them through integrations with external databases. It supports DynamoDB, MariaDB, and MySQL databases. You must set up and manage one of these databases to use Amazon DCV Access Console. If your Amazon DCV Access Console machines are hosted on Amazon EC2, we recommend using DynamoDB as the external database, since it does not require any additional setup.
Note
Additional costs can happen when running an external database. To see information
				on DynamoDB pricing, see Pricing for Provisioned Capacity
Configure the Amazon DCV Access Console to persist on DynamoDB
- 
				
On the host running the Handler component, open
/etc/dcv-access-console-handler/access-console-handler.propertiesin your preferred editor and make the following edits:- 
						
Set
datastore = dynamodb. - 
						
For
dynamodb-regionspecify the AWS Region where you want to store the tables containing the Handler component data. For the list of supported Regions, see DynamoDB service endpoints. - 
						
For
datastore.prefixspecify the prefix that is added to each DynamoDB table (useful to distinguish multiple Handler component using the same account). Only alphanumeric characters, dot, dash, and underscore are allowed. 
 - 
						
 - 
				
Stop the Handler component.
sudo systemctl stop dcv-access-console-handler - 
				
Start the Handler component.
sudo systemctl start dcv-access-console-handlerThe Handler component host must have permission to call the DynamoDB APIs. On Amazon EC2 instances, the credentials are automatically retrieved using the Amazon EC2 metadata service. If you need to specify different credentials, you can set them using one of the supported credential retrieval techniques (such as Java system properties or environment variables). For more information, see Supplying and Retrieving AWS Credentials.
 
Configure the broker to persist on MariaDB/MySQL
- 
				
On the host running the Handler component, open
/etc/dcv-access-console-handler/access-console-handler.propertiesin your preferred editor and make the following edits:- 
						
Set
datastore = mysql. - 
						
Set
jdbc-connection-url = jdbc:mysql://db_endpoint:db_port/db_nameIn this configuration,
db_endpointis the database endpoint,db_portis the database port, anddb_nameis the database name. - 
						
For
datastore.prefixspecify the prefix that is added to each DynamoDB table (useful to distinguish multiple Handler component using the same account). Only alphanumeric characters, dot, dash, and underscore are allowed. 
 - 
						
 - 
				
On the host running the Handler component, open
/etc/dcv-access-console-handler/access-console-handler-secrets.propertiesin your preferred editor and make the following edits:- 
						
For
jdbc-userspecify the name of the user that has access to the database. - 
						
For
jdbc-passwordspecify the password of the user that has access to the database. 
 - 
						
 - 
				
Stop the Handler component.
sudo systemctl stop dcv-access-console-handler - 
				
Start the Handler component.
sudo systemctl start dcv-access-console-handlerNote
The
/etc/dcv-access-console-handler/access-console-handler-secrets.propertiesfile contains sensitive data. By default, its write access is restricted to root and its read access is restricted to root and to the user running the Handler component. By default, this is thedcvaccessconsoleuser.