constants.py 1.4 KB

123456789101112131415161718192021222324252627
  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. import os
  7. import platform
  8. # To avoid resource name length issues, potentially verbose pipeline names are capped at 25 chars.
  9. # TODO: consolidate project name formulation for tests and deploy scripts to same place.
  10. MAX_PIPELINE_NAME_LENGTH = 25
  11. # ARN of the IAM role to assume for retrieving temporary AWS credentials
  12. ASSUME_ROLE_ARN = os.environ.get('ASSUME_ROLE_ARN', 'arn:aws:iam::645075835648:role/o3de-automation-tests')
  13. # Name of the AWS project deployed by the CDK applications
  14. AWS_PROJECT_NAME = os.environ.get('O3DE_AWS_PROJECT_NAME').upper() if os.environ.get('O3DE_AWS_PROJECT_NAME') else \
  15. (os.environ.get('BRANCH_NAME', '') + '-' + os.environ.get('PIPELINE_NAME', '')[:MAX_PIPELINE_NAME_LENGTH] + '-' + platform.system()).upper()
  16. # Region for the existing CloudFormation stacks used by the automation tests
  17. AWS_REGION = os.environ.get('O3DE_AWS_DEPLOY_REGION', 'us-east-1')
  18. # Name of the default resource mapping config file used by the automation tests
  19. AWS_RESOURCE_MAPPING_FILE_NAME = 'default_aws_resource_mappings.json'
  20. # Name of the game launcher log
  21. GAME_LOG_NAME = 'Game.log'
  22. # Name of the IAM role session for retrieving temporary AWS credentials
  23. SESSION_NAME = 'o3de-Automation-session'