Skip to content

Instantly share code, notes, and snippets.

@wobondar
Created May 16, 2018 00:05
Show Gist options
  • Select an option

  • Save wobondar/75cf18fd5441fad781edc52e9d07f9f8 to your computer and use it in GitHub Desktop.

Select an option

Save wobondar/75cf18fd5441fad781edc52e9d07f9f8 to your computer and use it in GitHub Desktop.
AWS API Gateway Terraform trigger for re-deployment whenever it has any changes
resource "aws_api_gateway_deployment" "api_gw_deployment" {
stage_description = "${md5(file("apigateway.tf"))}"
rest_api_id = "${aws_api_gateway_rest_api.api_gw.id}"
stage_name = "production"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment