-
Notifications
You must be signed in to change notification settings - Fork 151
/
outputs.tf
56 lines (45 loc) · 1.93 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
output "upload_bucket_id" {
value = module.statics_deploy.upload_bucket_id
}
output "api_endpoint" {
description = "API endpoint that is used by the CLI."
value = module.api.api_endpoint
}
output "api_endpoint_access_policy_arn" {
description = "ARN of the policy that grants access to the API endpoint."
value = module.api.api_endpoint_access_policy_arn
}
##################################
# Internal CloudFront distribution
##################################
output "cloudfront_domain_name" {
description = "Domain of the main CloudFront distribution (When created)."
value = var.cloudfront_create_distribution ? module.cloudfront_main[0].cloudfront_domain_name : null
}
output "cloudfront_hosted_zone_id" {
description = "Zone id of the main CloudFront distribution (When created)."
value = var.cloudfront_create_distribution ? module.cloudfront_main[0].cloudfront_hosted_zone_id : null
}
##################################
# External CloudFront distribution
##################################
output "cloudfront_default_root_object" {
description = "Preconfigured root object the CloudFront distribution should use."
value = local.cloudfront_default_root_object
}
output "cloudfront_default_cache_behavior" {
description = "Preconfigured default cache behavior the CloudFront distribution should use."
value = local.cloudfront_default_behavior
}
output "cloudfront_ordered_cache_behaviors" {
description = "Preconfigured ordered cache behaviors the CloudFront distribution should use."
value = local.cloudfront_ordered_cache_behaviors
}
output "cloudfront_origins" {
description = "Preconfigured origins the CloudFront distribution should use."
value = local.cloudfront_origins
}
output "cloudfront_custom_error_response" {
description = "Preconfigured custom error response the CloudFront distribution should use."
value = local.cloudfront_custom_error_response
}