Skip to content

Commit 95340d4

Browse files
committed
minute: add MinuteLoginUrl output with embedded basic auth credentials
Pasting the URL into a browser address bar prompts a basic-auth challenge, forcing users to copy-paste the BasicAuthUsername and BasicAuthPassword outputs separately. The new MinuteLoginUrl output is the same URL with admin:<generated-password>@ already embedded so it loads in one click.
1 parent e35d16b commit 95340d4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

cloudformation/scenarios/minute/cdk/lib/minute-stack.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ export class MinuteStack extends cdk.Stack {
8181
exportName: `${this.stackName}-MinuteUrl`,
8282
});
8383

84+
// Convenience: same URL with credentials embedded so you can paste it
85+
// straight into a browser address bar instead of copy-pasting the
86+
// username and password from the BasicAuth* outputs.
87+
new cdk.CfnOutput(this, 'MinuteLoginUrl', {
88+
description: 'Minute AI URL with basic auth credentials embedded (paste into browser)',
89+
value: `https://admin:${cdn.basicAuthPassword}@${cdn.domainName}`,
90+
});
91+
8492
new cdk.CfnOutput(this, 'CloudWatchLogsUrl', {
8593
description: 'CloudWatch Logs URL',
8694
value: `https://${this.region}.console.aws.amazon.com/cloudwatch/home?region=${this.region}#logsV2:log-groups/log-group/${encodeURIComponent('/ndx-minute')}`,

0 commit comments

Comments
 (0)