Skip to content

Commit

Permalink
Use admin access for deep links
Browse files Browse the repository at this point in the history
  • Loading branch information
farski committed Aug 8, 2024
1 parent 42d58f9 commit eb5f9ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/status-change-slack-notifications/stack-change.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function message(event) {
const { region } = event;
const stackUrl = `https://${region}.console.aws.amazon.com/cloudformation/home?region=${region}#/stacks/stackinfo?stackId=${stackId}`;

const deepLinkRoleName = "ViewOnlyAccess";
const deepLinkRoleName = "AdministratorAccess";
const urlEncodedStackUrl = encodeURIComponent(stackUrl);
const deepStackUrl = `https://d-906713e952.awsapps.com/start/#/console?account_id=${event.account}&role_name=${deepLinkRoleName}&destination=${urlEncodedStackUrl}`;

Expand Down
2 changes: 1 addition & 1 deletion src/status-change-slack-notifications/stack-set-change.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function message(event) {
const { region } = event;
const stackUrl = `https://${region}.console.aws.amazon.com/cloudformation/home?region=${region}#/stacksets/${stackSetID}/info`;

const deepLinkRoleName = "ViewOnlyAccess";
const deepLinkRoleName = "AdministratorAccess";
const urlEncodedStackUrl = encodeURIComponent(stackUrl);
const deepStackUrl = `https://d-906713e952.awsapps.com/start/#/console?account_id=${event.account}&role_name=${deepLinkRoleName}&destination=${urlEncodedStackUrl}`;

Expand Down

0 comments on commit eb5f9ff

Please sign in to comment.