File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ resource "aws_api_gateway_deployment" "api" {
13
13
rest_api_id = " ${ aws_api_gateway_rest_api . hexagonal-lambda . id } "
14
14
stage_name = " ${ var . deploy } "
15
15
16
+ depends_on = [
17
+ " module.get-hex-endpoint" ,
18
+ " module.post-up-endpoint" ,
19
+ ]
20
+
16
21
# https://medium.com/coryodaniel/til-forcing-terraform-to-deploy-a-aws-api-gateway-deployment-ed36a9f60c1a
17
22
variables {
18
23
deployed_at = " ${ timestamp ()} "
Original file line number Diff line number Diff line change 1
1
output "api_url" {
2
- value = " https:// ${ aws_api_gateway_rest_api . hexagonal-lambda . id } .execute-api. ${ var . region } .amazonaws.com/ ${ aws_api_gateway_deployment . api . stage_name } "
2
+ value = " ${ aws_api_gateway_deployment . api . invoke_url } "
3
3
}
4
4
5
5
output "api_id" {
You can’t perform that action at this time.
0 commit comments