Skip to content

Commit

Permalink
🐛 FIX: BLUE_CNAME_CONFIG_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
caiovfernandes committed Apr 16, 2023
1 parent 9662472 commit fec1da2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clone_blue_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/swap_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fec1da2

Please sign in to comment.