@@ -11,6 +11,10 @@ resource "aws_api_gateway_gateway_response" "response_4xx" {
1111 " gatewayresponse.header.Strict-Transport-Security" = " 'max-age=31536000; includeSubDomains'"
1212 " gatewayresponse.header.X-Content-Type-Options" = " 'nosniff'"
1313 }
14+
15+ lifecycle {
16+ ignore_changes = [response_templates ]
17+ }
1418}
1519
1620resource "aws_api_gateway_gateway_response" "response_5xx" {
@@ -22,6 +26,10 @@ resource "aws_api_gateway_gateway_response" "response_5xx" {
2226 " gatewayresponse.header.Strict-Transport-Security" = " 'max-age=31536000; includeSubDomains'"
2327 " gatewayresponse.header.X-Content-Type-Options" = " 'nosniff'"
2428 }
29+
30+ lifecycle {
31+ ignore_changes = [response_templates ]
32+ }
2533}
2634
2735resource "aws_api_gateway_gateway_response" "unauthorized" {
@@ -34,6 +42,10 @@ resource "aws_api_gateway_gateway_response" "unauthorized" {
3442 " gatewayresponse.header.Strict-Transport-Security" = " 'max-age=31536000; includeSubDomains'"
3543 " gatewayresponse.header.X-Content-Type-Options" = " 'nosniff'"
3644 }
45+
46+ lifecycle {
47+ ignore_changes = [response_templates ]
48+ }
3749}
3850
3951resource "aws_api_gateway_gateway_response" "access_denied" {
@@ -46,6 +58,10 @@ resource "aws_api_gateway_gateway_response" "access_denied" {
4658 " gatewayresponse.header.Strict-Transport-Security" = " 'max-age=31536000; includeSubDomains'"
4759 " gatewayresponse.header.X-Content-Type-Options" = " 'nosniff'"
4860 }
61+
62+ lifecycle {
63+ ignore_changes = [response_templates ]
64+ }
4965}
5066
5167resource "aws_api_gateway_gateway_response" "throttled" {
@@ -58,4 +74,8 @@ resource "aws_api_gateway_gateway_response" "throttled" {
5874 " gatewayresponse.header.Strict-Transport-Security" = " 'max-age=31536000; includeSubDomains'"
5975 " gatewayresponse.header.X-Content-Type-Options" = " 'nosniff'"
6076 }
77+
78+ lifecycle {
79+ ignore_changes = [response_templates ]
80+ }
6181}
0 commit comments