Skip to content

Commit

Permalink
Debug auth
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGalewsky committed Dec 12, 2023
1 parent 2bc5204 commit 9d64a2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion aws/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def generate_policy(principalId, effect, resource, message="", name=None, identi
'user_id': user_id,
'identities': str(identities),
'globus_dependent_token': str(dependent_token),
'user_email': user_email
'user_email': user_email,
'message': message
}
print("AuthResponse", authResponse)
return authResponse
Expand Down
3 changes: 3 additions & 0 deletions infra/mdf/container_lambdas.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ resource "aws_lambda_function" "mdf-connect-containerized-auth" {
architectures = ["x86_64"]
role = aws_iam_role.lambda_execution.arn
timeout = 30
environment {
variables = local.env_vars[each.key]
}
}

resource "aws_lambda_function" "mdf-connect-containerized-submit" {
Expand Down
4 changes: 2 additions & 2 deletions infra/mdf/lambda_environment_vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ variable "prod_env_vars" {
type = map
default = {
DYNAMO_STATUS_TABLE="MDF-Connect-prod"
MDF_SECRETS_NAME="Globus"
MDF_SECRETS_NAME="MDF-Connect-Secrets-prod"
MDF_AWS_REGION="us-east-1"
GDRIVE_EP="f00dfd6c-edf4-4c8b-a4b1-be6ad92a4fbb"
GDRIVE_ROOT="/Shared With Me"
Expand All @@ -25,7 +25,7 @@ variable "test_env_vars" {
type = map
default = {
DYNAMO_STATUS_TABLE="MDF-Connect-test"
MDF_SECRETS_NAME="Globus"
MDF_SECRETS_NAME="MDF-Connect-Secrets-test"
MDF_AWS_REGION="us-east-1"
GDRIVE_EP="f00dfd6c-edf4-4c8b-a4b1-be6ad92a4fbb"
GDRIVE_ROOT="/Shared With Me"
Expand Down

0 comments on commit 9d64a2a

Please sign in to comment.