-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathoutputs.tf
19 lines (16 loc) · 1.3 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
output "api_url" {
value = aws_api_gateway_deployment.BeaconApi.invoke_url
description = "URL used to invoke the API."
}
output "cognito_client_id" {
value = var.beacon-enable-auth ? aws_cognito_user_pool_client.BeaconUserPool-client.id : "N/A"
description = "Cognito client Id for user registration and login."
}
output "admin_login_command" {
value = var.beacon-enable-auth ? "aws cognito-idp admin-initiate-auth --user-pool-id ${aws_cognito_user_pool.BeaconUserPool.id} --region ${var.region} --client-id ${aws_cognito_user_pool_client.BeaconUserPool-client.id} --auth-flow ADMIN_USER_PASSWORD_AUTH --auth-parameters USERNAME=${var.beacon-admin-username},PASSWORD=${var.beacon-admin-password} --output json --query AuthenticationResult.IdToken" : "N/A"
description = "Command to sign in an admin"
}
output "guest_login_command" {
value = var.beacon-enable-auth ? "aws cognito-idp admin-initiate-auth --user-pool-id ${aws_cognito_user_pool.BeaconUserPool.id} --region ${var.region} --client-id ${aws_cognito_user_pool_client.BeaconUserPool-client.id} --auth-flow ADMIN_USER_PASSWORD_AUTH --auth-parameters USERNAME=${var.beacon-guest-username},PASSWORD=${var.beacon-guest-password} --output json --query AuthenticationResult.IdToken" : "N/A"
description = "Command to sign in a guest"
}