Skip to content

Commit

Permalink
Merge pull request #12 from ryandub/fix-apig-deployments
Browse files Browse the repository at this point in the history
Add hash of swagger file to API Gateway deployment to ensure updates
  • Loading branch information
ryandub authored Nov 3, 2017
2 parents d3174a1 + 1d6f956 commit f3574d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/apigateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ resource "aws_api_gateway_deployment" "stage" {

rest_api_id = "${aws_api_gateway_rest_api.api.id}"
stage_name = "${var.stage}"

variables = {
"version" = "${md5(data.template_file.swagger_file.rendered)}"
}

}

data "aws_acm_certificate" "ssl_cert" {
Expand Down

0 comments on commit f3574d8

Please sign in to comment.