Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created March 23, 2025 03:44
Show Gist options
  • Save nivleshc/50e8f26a71077d32a06647cccf3266e5 to your computer and use it in GitHub Desktop.
Save nivleshc/50e8f26a71077d32a06647cccf3266e5 to your computer and use it in GitHub Desktop.
This gist contains code from the file cognito.tf which is part of the blog-photo-location-map repository.
output "cognito_ui_url" {
value = "https://${aws_cognito_user_pool.user_pool.domain}.auth.${local.region}.amazoncognito.com/login?client_id=${aws_cognito_user_pool_client.user_pool_client.id}&response_type=code&scope=openid&redirect_uri=${tolist(aws_cognito_user_pool_client.user_pool_client.callback_urls)[0]}"
depends_on = [aws_cognito_user_pool.user_pool]
}
output "cognito_user_pool_id" {
value = aws_cognito_user_pool.user_pool.id
}
output "cognito_user_pool_client_id" {
value = aws_cognito_user_pool_client.user_pool_client.id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment