February 2020
Intermediate to advanced
404 pages
8h 42m
English
Pausing the theory, let us quickly jump into an example. Our goal is to set up the API Gateway for the previously deployed books API as a target. Follow these steps:
touch $GOPATH/src/github.com/git-user/chapter13/intro/api_gateway.tf
It also links our EC2 instance and API endpoints.
// New API on Amazon API Gatewayresource "aws_api_gateway_rest_api" "test" { name = "EC2Example" description = "Terraform EC2 REST API Example" endpoint_configuration { types = ["REGIONAL"] }}
It takes a few important attributes, ...
Read now
Unlock full access