From 9f448717a06bdfebeaea91222d7e15040302bb6f Mon Sep 17 00:00:00 2001 From: jakeasaurus Date: Wed, 4 Dec 2024 11:16:12 -0700 Subject: [PATCH] minor tweaks --- modules/aws/api_gateway/main.tf | 5 ++++- modules/aws/api_gateway/outputs.tf | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/aws/api_gateway/main.tf b/modules/aws/api_gateway/main.tf index b1806365..3b30bfde 100644 --- a/modules/aws/api_gateway/main.tf +++ b/modules/aws/api_gateway/main.tf @@ -17,7 +17,7 @@ data "aws_region" "current" {} ############################# # API Gateway ############################# -resource "aws_apigatewayv2_api" "example" { +resource "aws_apigatewayv2_api" "api" { #Required name = var.name protocol_type = var.protocol_type @@ -42,4 +42,7 @@ resource "aws_apigatewayv2_api" "example" { version = var.version body = var.body + lifecycle { + ignore_changes = [body] + } } diff --git a/modules/aws/api_gateway/outputs.tf b/modules/aws/api_gateway/outputs.tf index 46482739..2ceed333 100644 --- a/modules/aws/api_gateway/outputs.tf +++ b/modules/aws/api_gateway/outputs.tf @@ -1,3 +1,7 @@ +##################### +# Outputs +##################### + output "id" { description = "The API identifier" value = aws_apigatewayv2_api.example.id