Skip to content

Commit d79ac74

Browse files
authored
Merge pull request #217 from co-cddo/feat/minute-login-url-output
minute: add MinuteLoginUrl output with embedded basic auth
2 parents e35d16b + 95340d4 commit d79ac74

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)