Added SSL cert generation and installation. Moved variables to ENV
All checks were successful
AWS Deploy on Push / build (push) Successful in 4m15s
All checks were successful
AWS Deploy on Push / build (push) Successful in 4m15s
This commit is contained in:
23
app.py
23
app.py
@@ -1,7 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import aws_cdk as cdk
|
||||
from infrastructure.stack import IptvUpdaterStack
|
||||
|
||||
app = cdk.App()
|
||||
IptvUpdaterStack(app, "IptvUpdater")
|
||||
|
||||
# Read environment variables for FreeDNS credentials
|
||||
freedns_user = os.environ.get("FREEDNS_User")
|
||||
freedns_password = os.environ.get("FREEDNS_Password")
|
||||
domain_name = os.environ.get("DOMAIN_NAME")
|
||||
|
||||
if not freedns_user or not freedns_password:
|
||||
raise ValueError("FREEDNS_User and FREEDNS_Password environment variables must be set.")
|
||||
|
||||
if not domain_name:
|
||||
raise ValueError("DOMAIN_NAME environment variable must be set.")
|
||||
|
||||
IptvUpdaterStack(app, "IptvUpdaterStack",
|
||||
freedns_user=freedns_user,
|
||||
freedns_password=freedns_password,
|
||||
domain_name=domain_name,
|
||||
# If you don't specify 'env', the stack will be deployed to the account and region that are
|
||||
# configured in your AWS CLI profile. Defaulting to the environment where the CLI is configured.
|
||||
# env=cdk.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'), region=os.getenv('CDK_DEFAULT_REGION')),
|
||||
)
|
||||
|
||||
app.synth()
|
||||
Reference in New Issue
Block a user