Now that your AWS account, internet domain and certificate are prepared, you are ready to deploy the Veraison services into AWS.
This process is highly automated, but will take between 30 to 60 minutes, as several resources need to be created in AWS.
The deployment process is documented in Veraison’s GitHub repository .
You can follow the instructions below to deploy the Veraison services into AWS:
Use the Bootstrap process first to clone the Veraison source code from GitHub and set up your build environment. This will take care of installing the dependencies that you need on your development machine.
cd $HOME
git clone https://github.com/veraison/services.git
cd services/deployments/aws
make bootstrap
Once your build environment is bootstrapped, you will use the Quickstart procedure to provide some AWS configuration and create the deployment.
You’ll provide AWS-specific settings, including the IDs for your VPC and subnets, and the CIDR block allowed access to the deployment. In this deployment, you will use misc/arm.cfg
file for example. Make sure you update VERAISON_AWS_REGION
to the same region where you created your AWS certificate for your new domain.VERAISON_AWS_DNS_NAME
needs to match the domain name you chose.
Once the account-specific config file is created, define AWS_ACCOUNT_CFG
environment variable to point to it and then create the deployment.
source env/env.bash
export AWS_ACCOUNT_CFG=misc/arm.cfg # replace with path to your config
make deploy
You do not need to use the end-to-end flow as described in the document. Later in this Learning Path, you will perform some additional steps to prepare and use the Veraison services.
The rest of the document provides additional information about how to manage the deployment, but you don’t need this now.
In the command shell where you ran the steps above, run the following command:
veraison status
This command outputs a status report for the deployment. If successful, it includes information about:
created
.Use the following command to test the REST API endpoint of the verification service. Remember to substitute example-veraison.com
with the domain name that you used in the initial step, but you will need to keep the services
prefix as shown.
curl https://services.example-veraison.com:8443/.well-known/veraison/verification
If it succeeds, this command produces some JSON output, including the EAR verification key.
Use the following command to test the REST API endpoint of the endorsement provisioning service. Remember to substitute example-veraison.com
with the domain name that you used in the initial step.
curl https://services.example-veraison.com:9443/.well-known/veraison/provisioning
This command produces JSON output containing the list of supported media types for endorsement.
Your Veraison services are now successfully deployed - you’re ready for the next step.