Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeasaurus committed Dec 4, 2024
1 parent 19014a2 commit 9f44871
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/aws/api_gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,4 +42,7 @@ resource "aws_apigatewayv2_api" "example" {
version = var.version
body = var.body

lifecycle {
ignore_changes = [body]
}
}
4 changes: 4 additions & 0 deletions modules/aws/api_gateway/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#####################
# Outputs
#####################

output "id" {
description = "The API identifier"
value = aws_apigatewayv2_api.example.id
Expand Down

0 comments on commit 9f44871

Please sign in to comment.