Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
feat: update slack message
Browse files Browse the repository at this point in the history
  • Loading branch information
arantespp committed Sep 16, 2021
1 parent 905c07e commit dcc4f8a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/cli/src/deploy/cicd/lambdas/ecsTaskReport.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ export const getEcsTaskLogsUrl = ({ ecsTaskArn }: { ecsTaskArn: string }) => {
* https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
*/
`https://console.aws.amazon.com/cloudwatch/home?region=${process.env.AWS_REGION}#logsV2:log-groups`,
'/log-group/',
'log-group',
process.env.ECS_TASK_LOGS_LOG_GROUP,
'/log-events',
'log-events',
`ecs/${process.env.ECS_TASK_CONTAINER_NAME}/${ecsTaskId}`.replace(
/\//g,
'%252F',
),
'$3Fstart$3D-43200000',
].join('');
].join('/');

return ecsTaskLogsUrl;
};
Expand Down

0 comments on commit dcc4f8a

Please sign in to comment.