Created
June 9, 2025 08:38
-
-
Save nivleshc/f24ff2293a001fb6d6a89d393ffb12b9 to your computer and use it in GitHub Desktop.
This gist contains code from the file photo_location_map_webpage.tf which is part of the blog-photo-location-map repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create the webpage that will be used to interact with this solution | |
resource "local_file" "index_html" { | |
content = templatefile("${path.module}/tpl/index.tftpl", | |
{ user_pool_id = aws_cognito_user_pool.user_pool.id, | |
client_id = aws_cognito_user_pool_client.user_pool_client.id, | |
api_gw_fetch_object_url = "${aws_api_gateway_stage.stage.invoke_url}/${local.api_gateway_fetch_object_path}${local.cognito_callback_url_suffix}", | |
api_gw_upload_photo_url = "${aws_api_gateway_stage.stage.invoke_url}/${local.api_gateway_upload_photo_path}${local.cognito_callback_url_suffix}", | |
api_gw_regenerate_map_url = "${aws_api_gateway_stage.stage.invoke_url}/${local.api_gateway_regenerate_map_path}${local.cognito_callback_url_suffix}" | |
}) | |
filename = "${path.module}/${local.local_webpage_path}" | |
depends_on = [aws_cognito_user_pool_domain.user_pool_domain] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment