Terraform Module for Creating AWS REST API

Hello!

I am in the process of creating a REST API and was wondering if there is a specific Terraform module available to help with that. I have already looked through the Terraform registry and found a module that supports creating HTTP and WebSocket APIs (Terraform Registry), but I couldn’t find one for creating a REST API.

Is there any particular reason why Terraform doesn’t seem to provide a module for creating REST APIs? Or is there a module that I might have missed? If so, could you please share it with me?

Thank you

@gmohanprasath1322 If you look at the aws_apigatewayv2_api resource, there is a note indicating that you should use v1 resources for REST APIs instead:

Amazon API Gateway Version 2 resources are used for creating and deploying WebSocket and HTTP APIs. To create and deploy REST APIs, use Amazon API Gateway Version 1 resources.

@acwwat Yes, I can create a REST API using Amazon API Gateway Version 1 (Terraform Registry). However, I am looking for any predefined Terraform modules that can simplify the process of creating the REST API.

If you do a simple search in the Terraform Registry, there are a few options with the more popular ones being this and this.