app.py 822 B

123456789101112131415161718192021222324252627282930
  1. """
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. """
  6. # !/usr/bin/env python3
  7. from aws_cdk import (
  8. App,
  9. Environment
  10. )
  11. from aws_client_auth.client_auth_stack import AWSClientAuthStack
  12. import os
  13. """Configuration"""
  14. REGION = os.environ.get('O3DE_AWS_DEPLOY_REGION', os.environ['CDK_DEFAULT_REGION'])
  15. ACCOUNT = os.environ.get('O3DE_AWS_DEPLOY_ACCOUNT', os.environ['CDK_DEFAULT_ACCOUNT'])
  16. # Set the common prefix to group stacks in a project together.
  17. PROJECT_NAME = os.environ.get('O3DE_AWS_PROJECT_NAME', f'O3DE-AWS-PROJECT').upper()
  18. env = Environment(account=ACCOUNT, region=REGION)
  19. app = App()
  20. AWSClientAuthStack(app, PROJECT_NAME, env=env)
  21. app.synth()