-
Notifications
You must be signed in to change notification settings - Fork 101
/
outputs.tf
95 lines (79 loc) · 3.21 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
output "id" {
description = "The id of the user pool"
value = var.enabled ? aws_cognito_user_pool.pool[0].id : null
}
output "arn" {
description = "The ARN of the user pool"
value = var.enabled ? aws_cognito_user_pool.pool[0].arn : null
}
output "endpoint" {
description = "The endpoint name of the user pool. Example format: cognito-idp.REGION.amazonaws.com/xxxx_yyyyy"
value = var.enabled ? aws_cognito_user_pool.pool[0].endpoint : null
}
output "creation_date" {
description = "The date the user pool was created"
value = var.enabled ? aws_cognito_user_pool.pool[0].creation_date : null
}
output "last_modified_date" {
description = "The date the user pool was last modified"
value = var.enabled ? aws_cognito_user_pool.pool[0].last_modified_date : null
}
output "name" {
description = "The name of the user pool"
value = var.enabled ? aws_cognito_user_pool.pool[0].name : null
}
#
# aws_cognito_user_pool_domain
#
output "domain_aws_account_id" {
description = "The AWS account ID for the user pool owner"
value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.aws_account_id) : null
}
output "domain_cloudfront_distribution" {
description = "The name of the CloudFront distribution"
value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.cloudfront_distribution) : null
}
output "domain_cloudfront_distribution_arn" {
description = "The ARN of the CloudFront distribution"
value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.cloudfront_distribution_arn) : null
}
output "domain_cloudfront_distribution_zone_id" {
description = "The ZoneID of the CloudFront distribution"
value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.cloudfront_distribution_zone_id) : null
}
output "domain_s3_bucket" {
description = "The S3 bucket where the static files for this domain are stored"
value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.s3_bucket) : null
}
output "domain_app_version" {
description = "The app version"
value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.version) : null
}
#
# aws_cognito_user_pool_client
#
output "client_ids" {
description = "The ids of the user pool clients"
value = var.enabled ? aws_cognito_user_pool_client.client.*.id : null
}
output "client_secrets" {
description = " The client secrets of the user pool clients"
value = var.enabled ? aws_cognito_user_pool_client.client.*.client_secret : null
sensitive = true
}
output "client_ids_map" {
description = "The ids map of the user pool clients"
value = var.enabled ? { for k, v in aws_cognito_user_pool_client.client : v.name => v.id } : null
}
output "client_secrets_map" {
description = "The client secrets map of the user pool clients"
value = var.enabled ? { for k, v in aws_cognito_user_pool_client.client : v.name => v.client_secret } : null
sensitive = true
}
#
# aws_cognito_resource_servers
#
output "resource_servers_scope_identifiers" {
description = " A list of all scopes configured in the format identifier/scope_name"
value = var.enabled ? aws_cognito_resource_server.resource.*.scope_identifiers : null
}