@openhi/constructs 0.0.151 → 0.0.152

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -18,7 +18,6 @@ import {
18
18
  OPENHI_RESOURCE_URN_SYSTEM,
19
19
  PLACEHOLDER_TENANT_ID,
20
20
  PLACEHOLDER_WORKSPACE_ID,
21
- PLATFORM_SCOPE_TENANT_ID,
22
21
  SEED_DEMO_DATA_CONSUMER_NAME,
23
22
  SEED_DEMO_DATA_USER_POOL_ID_ENV_VAR,
24
23
  demoMembershipId,
@@ -27,7 +26,7 @@ import {
27
26
  demoScenarioIdentifier,
28
27
  import_workflows,
29
28
  openhiResourceIdentifier
30
- } from "./chunk-WGA43MMY.mjs";
29
+ } from "./chunk-SXYY5WHG.mjs";
31
30
  import {
32
31
  OWNING_DELETE_CASCADE_CONSUMER_NAME,
33
32
  OWNING_DELETE_CASCADE_DEFAULT_CONCURRENCY,
@@ -61,7 +60,9 @@ import {
61
60
  import {
62
61
  require_lib
63
62
  } from "./chunk-ZM4GDHHC.mjs";
64
- import "./chunk-AWYZJFPL.mjs";
63
+ import {
64
+ PLATFORM_SCOPE_TENANT_ID
65
+ } from "./chunk-CFJDATDK.mjs";
65
66
  import "./chunk-HQ67J7BP.mjs";
66
67
  import "./chunk-QJDHVMKT.mjs";
67
68
  import "./chunk-MVQWAIMC.mjs";
@@ -2313,7 +2314,7 @@ var SeedDemoDataLambda = class extends Construct13 {
2313
2314
  this.lambda.addToRolePolicy(
2314
2315
  new PolicyStatement3({
2315
2316
  effect: Effect3.ALLOW,
2316
- actions: ["dynamodb:PutItem", "dynamodb:UpdateItem"],
2317
+ actions: ["dynamodb:PutItem", "dynamodb:UpdateItem", "dynamodb:Query"],
2317
2318
  resources: [props.dataStoreTable.tableArn]
2318
2319
  })
2319
2320
  );
@@ -2569,6 +2570,7 @@ var OpenHiDataService = _OpenHiDataService;
2569
2570
 
2570
2571
  // src/services/open-hi-website-service.ts
2571
2572
  var import_config6 = __toESM(require_lib2());
2573
+ import { CfnOutput } from "aws-cdk-lib";
2572
2574
  import { Bucket as Bucket3 } from "aws-cdk-lib/aws-s3";
2573
2575
 
2574
2576
  // src/services/open-hi-rest-api-service.ts
@@ -3157,6 +3159,7 @@ var _OpenHiWebsiteService = class _OpenHiWebsiteService extends OpenHiService {
3157
3159
  const isReleaseBranch = this.branchName === this.defaultReleaseBranch;
3158
3160
  const hostedZone = this.createHostedZone();
3159
3161
  this.fullDomain = this.computeFullDomain(hostedZone);
3162
+ this.createAdminConsoleEndpointOutput();
3160
3163
  const shouldCreateHostingInfra = props.createHostingInfrastructure ?? isReleaseBranch;
3161
3164
  if (shouldCreateHostingInfra) {
3162
3165
  const certificate = this.createCertificate();
@@ -3296,6 +3299,25 @@ var _OpenHiWebsiteService = class _OpenHiWebsiteService extends OpenHiService {
3296
3299
  description: "Full website domain (e.g. www.example.com)"
3297
3300
  });
3298
3301
  }
3302
+ /**
3303
+ * Adds a CloudFormation `AdminConsoleEndpoint` output exposing the
3304
+ * admin-console invocation URL (`https://<fullDomain>`) on every
3305
+ * deploy of this stack — release-branch and per-PR alike. The
3306
+ * configulator `aws-deploy-workflow` filters CFN outputs by the
3307
+ * `Endpoint$` logical-id suffix to surface them in the GitHub
3308
+ * Actions run summary and sticky PR comment, so the logical id is
3309
+ * pinned via {@link CfnOutput.overrideLogicalId} to keep the
3310
+ * literal key stable across synths.
3311
+ */
3312
+ createAdminConsoleEndpointOutput() {
3313
+ const output = new CfnOutput(this, "admin-console-endpoint-output", {
3314
+ value: `https://${this.fullDomain}`,
3315
+ description: "Admin console endpoint for this deploy (https://<fullDomain>). Surfaced by the deploy workflow's sticky PR comment and job summary."
3316
+ });
3317
+ output.overrideLogicalId(
3318
+ _OpenHiWebsiteService.ADMIN_CONSOLE_ENDPOINT_OUTPUT_NAME
3319
+ );
3320
+ }
3299
3321
  /**
3300
3322
  * Creates the StaticContent uploader. Receives the resolved static-hosting
3301
3323
  * bucket from the constructor — on the release-branch deploy this is the
@@ -3362,6 +3384,15 @@ _OpenHiWebsiteService.SERVICE_TYPE = "website";
3362
3384
  * `www-<childZonePrefix>.<zone>`.
3363
3385
  */
3364
3386
  _OpenHiWebsiteService.DEFAULT_DOMAIN_PREFIX = "www";
3387
+ /**
3388
+ * CloudFormation logical key for the admin-console endpoint `CfnOutput`.
3389
+ * The configulator deploy workflow filters outputs whose logical id
3390
+ * matches the `Endpoint$` regex to surface them in the GitHub Actions
3391
+ * run summary and sticky PR comment, so the suffix must be `Endpoint`.
3392
+ * The logical id is pinned via {@link CfnOutput.overrideLogicalId} so
3393
+ * it does not pick up a synth-time hash suffix.
3394
+ */
3395
+ _OpenHiWebsiteService.ADMIN_CONSOLE_ENDPOINT_OUTPUT_NAME = "AdminConsoleEndpoint";
3365
3396
  var OpenHiWebsiteService = _OpenHiWebsiteService;
3366
3397
 
3367
3398
  // src/workflows/control-plane/user-onboarding/provision-default-workspace-lambda.ts