File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -68,17 +68,17 @@ async function run() {
68
68
}
69
69
const { awsAccountAlias, awsAccountId } = await getAccountInformation();
70
70
const region = codeDeploy.config.region;
71
- const linkToLogIn = 'https://aws.byu.edu/';
72
- const linkToDeployment = `https://${region}.console.aws.amazon.com/codesuite/codedeploy/deployments/${deployment.deploymentId}?region=${region}`;
71
+ const iamRole = `PowerUser-${awsAccountId}`;
72
+ const destinationUrl = `https://${region}.console.aws.amazon.com/codesuite/codedeploy/deployments/${deployment.deploymentId}?region=${region}`;
73
+ const shortcutLink = `https://byulogin.awsapps.com/start/#/console?account_id=${encodeURIComponent(awsAccountId)}&role_name=${encodeURIComponent(iamRole)}&destination=${encodeURIComponent(destinationUrl)}`;
73
74
core.info(`Started deployment.
74
75
75
76
Deployment ID: ${deployment.deploymentId}
76
77
AWS Account: ${awsAccountAlias} (${awsAccountId})
77
78
Region: ${region}
78
79
79
- To view the progress of this deployment:
80
- • Log into the ${awsAccountAlias} AWS account at ${linkToLogIn}
81
- • Go to ${linkToDeployment}`);
80
+ To log in and view the progress of this deployment, click here:
81
+ ${shortcutLink}`);
82
82
await codeDeploy
83
83
.waitFor('deploymentSuccessful', {
84
84
deploymentId: deployment.deploymentId
Original file line number Diff line number Diff line change @@ -39,17 +39,17 @@ async function run(): Promise<void> {
39
39
40
40
const { awsAccountAlias, awsAccountId} = await getAccountInformation ( )
41
41
const region = codeDeploy . config . region
42
- const linkToLogIn = 'https://aws.byu.edu/'
43
- const linkToDeployment = `https://${ region } .console.aws.amazon.com/codesuite/codedeploy/deployments/${ deployment . deploymentId } ?region=${ region } `
42
+ const iamRole = `PowerUser-${ awsAccountId } `
43
+ const destinationUrl = `https://${ region } .console.aws.amazon.com/codesuite/codedeploy/deployments/${ deployment . deploymentId } ?region=${ region } `
44
+ const shortcutLink = `https://byulogin.awsapps.com/start/#/console?account_id=${ encodeURIComponent ( awsAccountId ) } &role_name=${ encodeURIComponent ( iamRole ) } &destination=${ encodeURIComponent ( destinationUrl ) } `
44
45
core . info ( `Started deployment.
45
46
46
47
Deployment ID: ${ deployment . deploymentId }
47
48
AWS Account: ${ awsAccountAlias } (${ awsAccountId } )
48
49
Region: ${ region }
49
50
50
- To view the progress of this deployment:
51
- • Log into the ${ awsAccountAlias } AWS account at ${ linkToLogIn }
52
- • Go to ${ linkToDeployment } ` )
51
+ To log in and view the progress of this deployment, click here:
52
+ ${ shortcutLink } `)
53
53
54
54
await codeDeploy
55
55
. waitFor ( 'deploymentSuccessful' , {
You can’t perform that action at this time.
0 commit comments