Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment URLs for CodeDeploy always redirect to us-east-2 #532

Open
tristanhill-iris opened this issue Dec 5, 2023 · 0 comments
Open

Comments

@tristanhill-iris
Copy link

When using CodeDeploy with this action, the resulting deployment link seems to always redirect to the us-east-2 region, despite having the correct region in the URL.

This does not occur for non-CodeDeploy deployment URLs -- the link to the EC2 console leads to the correct region.

Example URL that always redirects to us-east-2:
https://console.aws.amazon.com/codesuite/codedeploy/deployments/DEPLOYMENT_ID?region=eu-central-1

This redirects to https://us-east-2.console.aws.amazon.com/codesuite/codedeploy/deployments/DEPLOYMENT_ID even if the user had previously been in the eu-central-1 region. This leads to confusion from the resulting DeploymentDoesNotExistException (until the user realizes they're in the wrong region now).

This URL is constructed by this line of code:

core.info(`Deployment started. Watch this deployment's progress in the AWS CodeDeploy console: https://console.aws.amazon.com/codesuite/codedeploy/deployments/${createDeployResponse.deploymentId}?region=${aws.config.region}`);

I am not sure why the other URL created for non-CodeDeploy in

core.info(`Deployment started. Watch this deployment's progress in the Amazon ECS console: https://${consoleHostname}/ecs/home?region=${aws.config.region}#/clusters/${clusterName}/services/${service}/events`);
does not have the same problem for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant