The deployment steps for the Pictorial Translator application are the same as the deployment steps of the Rekognition demonstration in Chapter 2, Anatomy of a Modern AI Application; we have included the steps here for completion:
- First, let's tell chalice to perform policy analysis for us by setting autogen_policy to false in the config.json file in the .chalice directory of the project structure:
{
"version": "2.0",
"app_name": "Capabilities",
"stages": {
"dev": {
"autogen_policy": false,
"api_gateway_stage": "api"
}
}
}
- Next, we create a new policy-dev.json file in the .chalice directory to manually specify the AWS services the project needs:
{
"Version": "2012-10-17",
"Statement": [
{
"...