diff --git a/src/clone_blue_environment.py b/src/clone_blue_environment.py index cd9ffa4..1854294 100644 --- a/src/clone_blue_environment.py +++ b/src/clone_blue_environment.py @@ -26,7 +26,7 @@ def main(BLUE_ENV_NAME, GREEN_ENV_NAME, BEANSTALK_APP_NAME, S3_ARTIFACTS_BUCKET, #Create a CNAME Config file BlueEnvCname=(blue_env_info['Environments'][0]['CNAME']) BlueEnvCnameFile = {'BlueEnvUrl': BlueEnvCname} - file_name = "src/blue_cname.json" + file_name = "blue_green_assets/blue_cname.json" response = s3client.put_object(Bucket=S3_ARTIFACTS_BUCKET, Key=file_name, Body=json.dumps(BlueEnvCnameFile)) print("Created a new CNAME file at S3") diff --git a/src/swap_environment.py b/src/swap_environment.py index 76373a3..5d06553 100644 --- a/src/swap_environment.py +++ b/src/swap_environment.py @@ -10,7 +10,7 @@ def main(BLUE_ENV_NAME, GREEN_ENV_NAME, S3_ARTIFACTS_BUCKET, BEANSTALK_APP_NAME, route53_client = boto_authenticated_client.client('route53', region_name='ap-southeast-2') ssm_client = boto_authenticated_client.client('ssm', region_name='ap-southeast-2') - BLUE_CNAME_CONFIG_FILE = "src/blue_cname.json" + BLUE_CNAME_CONFIG_FILE = "blue_green_assets/blue_cname.json" blue_env_url = get_env_address(BLUE_CNAME_CONFIG_FILE, S3_ARTIFACTS_BUCKET, s3client) print("Blue env URL: " + str(blue_env_url))