Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Added prevent_destroy to rest_api (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
1337blue authored Apr 7, 2020
1 parent 058b0d5 commit b140cb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ resource "aws_api_gateway_rest_api" "api" {
name = "${var.name}"
description = "${var.name} API Integration"
body = "${var.definition}"

lifecycle {
prevent_destroy = true
}
}

# Deploy on change
Expand Down

0 comments on commit b140cb4

Please sign in to comment.