mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
use api_endpoint rather than invoke_url in cdn deployment
This commit is contained in:
parent
c18d0f70a8
commit
1e1bd7ead2
2 changed files with 5 additions and 9 deletions
|
|
@ -44,11 +44,7 @@ module "cdn" {
|
||||||
# ---- API Gateway ----
|
# ---- API Gateway ----
|
||||||
{
|
{
|
||||||
origin_type = "api"
|
origin_type = "api"
|
||||||
origin_domain_name = replace(
|
origin_domain_name = data.terraform_remote_state.fast_api.outputs.api_endpoint
|
||||||
data.terraform_remote_state.fast_api.outputs.api_endpoint,
|
|
||||||
"https://",
|
|
||||||
""
|
|
||||||
)
|
|
||||||
origin_id = "api-origin"
|
origin_id = "api-origin"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,10 @@ output "role_name" {
|
||||||
value = module.role.role_name
|
value = module.role.role_name
|
||||||
}
|
}
|
||||||
|
|
||||||
output "api_endpoint" {
|
|
||||||
value = aws_apigatewayv2_stage.this.invoke_url
|
|
||||||
}
|
|
||||||
|
|
||||||
output "domain_name" {
|
output "domain_name" {
|
||||||
value = var.domain_name
|
value = var.domain_name
|
||||||
|
}
|
||||||
|
|
||||||
|
output "api_endpoint" {
|
||||||
|
value = aws_apigatewayv2_stage.this.api_endpoint
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue