Changed project name to be IPTV Manager Service
All checks were successful
AWS Deploy on Push / build (push) Successful in 8m29s

This commit is contained in:
2025-05-29 16:09:52 -05:00
parent e25f8c1ecd
commit eaab1ef998
22 changed files with 202 additions and 138 deletions

View File

@@ -15,8 +15,8 @@ async def lifespan(app: FastAPI):
app = FastAPI(
lifespan=lifespan,
title="IPTV Updater API",
description="API for IPTV Updater service",
title="IPTV Manager API",
description="API for IPTV Manager service",
version="1.0.0",
)
@@ -60,7 +60,7 @@ app.openapi = custom_openapi
@app.get("/")
async def root():
return {"message": "IPTV Updater API"}
return {"message": "IPTV Manager API"}
# Include routers

View File

@@ -19,16 +19,16 @@ def get_db_credentials():
ssm = boto3.client("ssm", region_name=AWS_REGION)
try:
host = ssm.get_parameter(Name="/iptv-updater/DB_HOST", WithDecryption=True)[
host = ssm.get_parameter(Name="/iptv-manager/DB_HOST", WithDecryption=True)[
"Parameter"
]["Value"]
user = ssm.get_parameter(Name="/iptv-updater/DB_USER", WithDecryption=True)[
user = ssm.get_parameter(Name="/iptv-manager/DB_USER", WithDecryption=True)[
"Parameter"
]["Value"]
password = ssm.get_parameter(
Name="/iptv-updater/DB_PASSWORD", WithDecryption=True
Name="/iptv-manager/DB_PASSWORD", WithDecryption=True
)["Parameter"]["Value"]
dbname = ssm.get_parameter(Name="/iptv-updater/DB_NAME", WithDecryption=True)[
dbname = ssm.get_parameter(Name="/iptv-manager/DB_NAME", WithDecryption=True)[
"Parameter"
]["Value"]
return f"postgresql://{user}:{password}@{host}/{dbname}"