Skip to content

Commit

Permalink
cognito replace
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhv12 committed Dec 8, 2023
1 parent 070a931 commit 0f71660
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions infra/module/1-cloud-run.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "google_cloud_run_service" "default" {
name = "COGNITO_CLIENT_SECRET"
value = var.aws_cognito_client_secret
}
env { # todo pass url of cloud run service
env {
name = "COGNITO_REDIRECT_URI"
value = var.aws_cognito_redirect_url
}
Expand All @@ -64,10 +64,9 @@ resource "google_cloud_run_service" "default" {
name = "REDIS_TTL"
value = var.redis_ttl
}
# Optional: Adjust CPU and memory allocations for cost optimization
resources {
limits = {
cpu = "1" # 0.5 vCPUs, adjust as needed
cpu = "1"
memory = "2Gi" # 256 MB, adjust as needed
}
}
Expand Down
2 changes: 1 addition & 1 deletion infra/module/4-cognito.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ resource "aws_cognito_user_pool_client" "client" {
}

resource "aws_cognito_user_pool_domain" "domain" {
domain = "redjingles1112" # Replace with your desired domain prefix
domain = "redjingles"
user_pool_id = aws_cognito_user_pool.cognito_pool.id
}

Expand Down

0 comments on commit 0f71660

Please sign in to comment.