Switch to cognito user/password authentication. Major code refactor - Fix 2
All checks were successful
AWS Deploy on Push / build (push) Successful in 4m25s

This commit is contained in:
2025-05-16 13:00:09 -05:00
parent c4f19999dc
commit 658f7998ef
4 changed files with 58 additions and 6 deletions

View File

@@ -152,7 +152,8 @@ class IptvUpdaterStack(Stack):
# Adds one or more commands to the userdata object.
userdata.add_commands(
f'echo "COGNITO_USER_POOL_ID={user_pool.user_pool_id}" >> /etc/environment',
f'echo "COGNITO_CLIENT_ID={client.user_pool_client_id}" >> /etc/environment'
f'echo "COGNITO_CLIENT_ID={client.user_pool_client_id}" >> /etc/environment',
f'echo "COGNITO_CLIENT_SECRET={client.user_pool_client_secret}" >> /etc/environment'
)
userdata.add_commands(str(userdata_file, 'utf-8'))