@@ -4,7 +4,7 @@ Installing AWS infrastructure through Terraform scripts
This file explains how to set up the expected infrastructure awaited to implement the JSON API.
The installation is based on Terraform (https://www.terraform.io/)
It expects that by AWS CLI and Terraform have previously been installed and set up correctly.
It expects that both AWS CLI and Terraform have been previously installed and set up correctly.
The AWS Credentials should also have been set up
How it works
...
...
@@ -14,7 +14,7 @@ AWS JSON API server relies on 3 main components, plus the needed IAM roles :
- A lambda function in charge of the translation from JSON API format to dynamoDB objects and managing the relationships and the optional parameters provided in the request
- An API Gateway configured to received the REST HTTP requests and proxying the Lambda
Three Terraform files are available, each one created the needed component and their relationships with each other.
Several Terraform files are available, each one creating the needed component and their relationships with each other.
One this is done, simply run the terraform script :
```
terraform apply
terraform apply -var bucket_name=<bucket name for static web site>
```
For a strange reason I don't understand, the first time you run the terraform command, the mapping for the integration response fails. You have to run the command again to have your complete setup.