File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ Note that this example may create resources which cost money. Run `terraform des
44
44
| Name | Type |
45
45
| ------| ------|
46
46
| [ aws_cognito_user_pool.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool ) | resource |
47
+ | [ aws_cognito_user_pool_client.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cognito_user_pool_client ) | resource |
47
48
| [ aws_route53_record.api] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record ) | resource |
48
49
| [ aws_route53_zone.this] ( https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_zone ) | resource |
49
50
| [ random_pet.this] ( https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet ) | resource |
Original file line number Diff line number Diff line change @@ -135,7 +135,8 @@ module "appsync" {
135
135
authentication_type = " AMAZON_COGNITO_USER_POOLS"
136
136
137
137
user_pool_config = {
138
- user_pool_id = aws_cognito_user_pool.this.id
138
+ user_pool_id = aws_cognito_user_pool.this.id
139
+ app_id_client_regex = aws_cognito_user_pool_client.this.id
139
140
}
140
141
}
141
142
}
@@ -264,6 +265,11 @@ resource "aws_cognito_user_pool" "this" {
264
265
name = " user-pool-${ random_pet . this . id } "
265
266
}
266
267
268
+ resource "aws_cognito_user_pool_client" "this" {
269
+ name = " user-pool-client-${ random_pet . this . id } "
270
+ user_pool_id = aws_cognito_user_pool. this . id
271
+ }
272
+
267
273
# module "aws_lambda_function1" {
268
274
# source = "terraform-aws-modules/cloudwatch/aws//examples/fixtures/aws_lambda_function"
269
275
# }
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ output "appsync_api_key_id" {
39
39
output "appsync_api_key_key" {
40
40
description = " Map of API Keys"
41
41
value = module. appsync . appsync_api_key_key
42
+ sensitive = true
42
43
}
43
44
44
45
# Datasources
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ resource "aws_appsync_graphql_api" "this" {
51
51
content {
52
52
default_action = var. user_pool_config [" default_action" ]
53
53
user_pool_id = var. user_pool_config [" user_pool_id" ]
54
- app_id_client_regex = lookup (var. openid_connect_config , " app_id_client_regex" , null )
55
- aws_region = lookup (var. openid_connect_config , " aws_region" , null )
54
+ app_id_client_regex = lookup (var. user_pool_config , " app_id_client_regex" , null )
55
+ aws_region = lookup (var. user_pool_config , " aws_region" , null )
56
56
}
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments