|
1 | 1 | output "id" {
|
2 | 2 | description = "The id of the user pool"
|
3 |
| - value = var.create_user_pool ? aws_cognito_user_pool.pool[0].id : null |
| 3 | + value = var.enabled ? aws_cognito_user_pool.pool[0].id : null |
4 | 4 | }
|
5 | 5 |
|
6 | 6 | output "arn" {
|
7 | 7 | description = "The ARN of the user pool"
|
8 |
| - value = var.create_user_pool ? aws_cognito_user_pool.pool[0].arn : null |
| 8 | + value = var.enabled ? aws_cognito_user_pool.pool[0].arn : null |
9 | 9 | }
|
10 | 10 |
|
11 | 11 | output "endpoint" {
|
12 | 12 | description = "The endpoint name of the user pool. Example format: cognito-idp.REGION.amazonaws.com/xxxx_yyyyy"
|
13 |
| - value = var.create_user_pool ? aws_cognito_user_pool.pool[0].endpoint : null |
| 13 | + value = var.enabled ? aws_cognito_user_pool.pool[0].endpoint : null |
14 | 14 | }
|
15 | 15 |
|
16 | 16 | output "creation_date" {
|
17 | 17 | description = "The date the user pool was created"
|
18 |
| - value = var.create_user_pool ? aws_cognito_user_pool.pool[0].creation_date : null |
| 18 | + value = var.enabled ? aws_cognito_user_pool.pool[0].creation_date : null |
19 | 19 | }
|
20 | 20 |
|
21 | 21 | output "last_modified_date" {
|
22 | 22 | description = "The date the user pool was last modified"
|
23 |
| - value = var.create_user_pool ? aws_cognito_user_pool.pool[0].last_modified_date : null |
| 23 | + value = var.enabled ? aws_cognito_user_pool.pool[0].last_modified_date : null |
24 | 24 | }
|
25 | 25 |
|
26 | 26 | #
|
27 | 27 | # aws_cognito_user_pool_domain
|
28 | 28 | #
|
29 | 29 | output "domain_aws_account_id" {
|
30 | 30 | description = "The AWS account ID for the user pool owner"
|
31 |
| - value = var.create_user_pool ? join("", aws_cognito_user_pool_domain.domain.*.aws_account_id) : null |
| 31 | + value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.aws_account_id) : null |
32 | 32 | }
|
33 | 33 |
|
34 | 34 | output "domain_cloudfront_distribution_arn" {
|
35 | 35 | description = "The ARN of the CloudFront distribution"
|
36 |
| - value = var.create_user_pool ? join("", aws_cognito_user_pool_domain.domain.*.cloudfront_distribution_arn) : null |
| 36 | + value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.cloudfront_distribution_arn) : null |
37 | 37 | }
|
38 | 38 |
|
39 | 39 | output "domain_s3_bucket" {
|
40 | 40 | description = "The S3 bucket where the static files for this domain are stored"
|
41 |
| - value = var.create_user_pool ? join("", aws_cognito_user_pool_domain.domain.*.s3_bucket) : null |
| 41 | + value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.s3_bucket) : null |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | output "domain_app_version" {
|
45 | 45 | description = "The app version"
|
46 |
| - value = var.create_user_pool ? join("", aws_cognito_user_pool_domain.domain.*.version) : null |
| 46 | + value = var.enabled ? join("", aws_cognito_user_pool_domain.domain.*.version) : null |
47 | 47 | }
|
48 | 48 |
|
49 | 49 | #
|
50 | 50 | # aws_cognito_user_pool_client
|
51 | 51 | #
|
52 | 52 | output "client_ids" {
|
53 | 53 | description = "The ids of the user pool clients"
|
54 |
| - value = var.create_user_pool ? aws_cognito_user_pool_client.client.*.id : null |
| 54 | + value = var.enabled ? aws_cognito_user_pool_client.client.*.id : null |
55 | 55 | }
|
56 | 56 |
|
57 | 57 | output "client_secrets" {
|
58 | 58 | description = " The client secrets of the user pool clients"
|
59 |
| - value = var.create_user_pool ? aws_cognito_user_pool_client.client.*.client_secret : null |
| 59 | + value = var.enabled ? aws_cognito_user_pool_client.client.*.client_secret : null |
60 | 60 | }
|
61 | 61 |
|
62 | 62 | #
|
63 | 63 | # aws_cognito_resource_servers
|
64 | 64 | #
|
65 | 65 | output "resource_servers_scope_identifiers" {
|
66 | 66 | description = " A list of all scopes configured in the format identifier/scope_name"
|
67 |
| - value = var.create_user_pool ? aws_cognito_resource_server.resource.*.scope_identifiers : null |
| 67 | + value = var.enabled ? aws_cognito_resource_server.resource.*.scope_identifiers : null |
68 | 68 | }
|
0 commit comments