Skip to content

Commit

Permalink
Add SSm permission
Browse files Browse the repository at this point in the history
  • Loading branch information
addis-samtek committed Jan 14, 2025
1 parent cf69baf commit 61a13af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions solution/backend/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def setup_environment():
logger.debug("Setting up environment variables from SSM parameters")
for env_var, param_name in ssm_params.items():
try:
logger.debug(f"DB_PASSWORD length: {len(os.environ['DJANGO_USERNAME'])}")

os.environ[env_var] = get_ssm_parameter(param_name)
logger.debug(f"Set environment variable: {env_var}")
except Exception as e:
Expand Down

0 comments on commit 61a13af

Please sign in to comment.