Skip to content

Commit

Permalink
Automated - Syncing changes in templates from panther-enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
panther-bot-automation committed Jan 16, 2025
1 parent bb9f7c4 commit 310f9cf
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def parse_event_into_creds(event: Mapping[str, str]) -> PantherSnowflakeCredenti
)


def lambda_handler(event: Mapping[str, str], _: Any) -> str:
def lambda_handler(event: Mapping[str, str], _: Any) -> dict:
"""
Lambda entrypoint
"""
Expand All @@ -170,7 +170,16 @@ def lambda_handler(event: Mapping[str, str], _: Any) -> str:
"Failed testing the snowflake credentials! Please check for correctness of host,user,password in the secret"
)
raise
return f"Validation succeeded for the secret. Please report back to your panther rep with this value: '{creds.arn}'"

return {
"statusCode": 200,
"headers": {
"Content-Type": "application/json"
},
"body": {
"message": f"Validation succeeded for the secret. Please report back to your panther rep with this value: '{creds.arn}'"
}
}

print("======SEED CREDS======")
# Check that secret doesn't already exist
Expand Down

0 comments on commit 310f9cf

Please sign in to comment.