From 90a890430c474b285782fca80ac4fa40614a6513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ivanchechen?= Date: Wed, 14 Dec 2022 19:33:28 +0000 Subject: [PATCH] wording --- content/posts/api-gateway-terraform.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/posts/api-gateway-terraform.md b/content/posts/api-gateway-terraform.md index bbc1615..4001205 100644 --- a/content/posts/api-gateway-terraform.md +++ b/content/posts/api-gateway-terraform.md @@ -1,8 +1,8 @@ --- -title: "AWS API Gateway Terraform" +title: "AWS API Gateway with Terraform" date: 2022-12-01T15:30:00-03:00 draft: false -summary: "How to create API Gateway endpoints with Terraform." +summary: "Creating API Gateway endpoints with Terraform." --- Right when we first started to use the AWS API Gateway, one of the things that did bother us was the fact that we had to manage lot of resources spread into 1,000s of lines of a couple of Terraform files, and it was a lot of work that required attention and time, things that are critical in software development as we all know. @@ -10,7 +10,7 @@ Right when we first started to use the AWS API Gateway, one of the things that d So we decided to create a module to help us with this. Big thanks to [Stephano](https://www.linkedin.com/in/stephano-macedo/) who helped me a lot! ## Before -Basically, when we are developing a new API, we need to create a 3 resources in the API Gateway. We need to create a new gateway_resource, a new gateway_method and a new gateway_integration, and therefore connecting all of them using their respectives IDs. +Basically, when we are developing a new API, we need to create a 3 resources in the API Gateway. We need to create a new gateway_resource, a new gateway_method and a new gateway_integration, and then connect all of them using their respectives IDs. Let's suppose a endpoint called `/users/all`. This is a snippet of the code we had before: @@ -235,4 +235,4 @@ We can also add the `WWW-Authenticate` header to the request for example. We tri ## Note This code has not been tested "as is", but it has been tested as part of a bigger project. There is always room for improvements and more possibilities depending on the context, but it's a good start. -There has been a lot of pieces of Terraform code that was omitted, like when we use the declare the `terraform_remote_state` or the `authorizer_id` which you will need if using authorization "CUSTOM". \ No newline at end of file +There has been a lot of pieces of Terraform code that was omitted, like when we use the declare the `terraform_remote_state` or the `authorizer_id` which you will need if using authorization "CUSTOM". \ No newline at end of file