Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Provisioning API Gateway and connecting it to Ec-2 instance using Terraform

DEV Community·Viktor Vasylkovskyi·26 days ago
#Sb2vXN5H
#creating#adding#api#aws#gateway#fullscreen
Reading 0:00
15s threshold

Previous: Provision SSL Certificate The architecture of our infrastructure is going to change a bit now, as we have to accommodate the API Gateway in between our Ec-2 and the DNS resolution. The overall architecture looks like this: Provision SSL certificate using ACM, for our API Gateway Provision API Gateway itself, and make it proxy requests to EC-2 instance Update Route53 to point our DNS to the Load Balancer Update EC-2 Instance to enable port 80, and update the security group with rule to accept incoming traffic only from API Gateway. Github Repository This guide full code is available in https://github.com/IaC-Toolbox/iac-toolbox-project/tree/main/v5-api-gateway . Feel free to clone it and follow along! Provision SSL Certificate You can follow the previous guide on Provisioning SSL Certificate to provision the SSL certificate using ACM. Ensure that you have the certificate ARN available for use in the API Gateway module.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More