From 7a50a6b08591ec181f5f59c3410f6056c94c6ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ivanchechen?= Date: Sun, 4 Dec 2022 15:51:34 +0000 Subject: [PATCH] wording --- config.yml | 2 +- content/posts/api-gateway-terraform.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.yml b/config.yml index e1b3dea..7183dbb 100644 --- a/config.yml +++ b/config.yml @@ -3,7 +3,7 @@ params: ShowCodeCopyButtons: true homeInfoParams: Title: Hello there! - Content: Nada muito útil por aqui, só alguns projetos mesmo. + Content: Nothing good around here, maybe you misclicked. socialIcons: - name: "Instagram" diff --git a/content/posts/api-gateway-terraform.md b/content/posts/api-gateway-terraform.md index 456cc58..bbc1615 100644 --- a/content/posts/api-gateway-terraform.md +++ b/content/posts/api-gateway-terraform.md @@ -5,7 +5,7 @@ draft: false summary: "How to create 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. +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. 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! @@ -232,7 +232,7 @@ For one endpoint, we went from having to manage 15 lines splitted in 3 files to ## WWW-Authenticate header We can also add the `WWW-Authenticate` header to the request for example. We tried to do that by adding it to the files properly, but it didn't work. The reason was that the API Gateway was not passing the `WWW-Authenticate` to our API, and that's because of the name of the header. You can call it `WWW-Authenticate-Header` for example and it will work. -## Disclaimer +## 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