quidproquo-deploy-awscdk 0.0.62 → 0.0.63

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.
@@ -46,7 +46,7 @@ class QpqWebserverWebEntryConstruct extends QpqConstruct_1.QpqConstruct {
46
46
  let originBucket = null;
47
47
  if (!this.setting.storageDrive.sourceStorageDrive) {
48
48
  originBucket = new aws_cdk_lib_1.aws_s3.Bucket(this, 'bucket', {
49
- bucketName: this.qpqResourceName(`${props.setting.name}-web-entry`),
49
+ bucketName: this.qpqResourceName(`${props.setting.name}`, 'we'),
50
50
  // Disable public access to this bucket, CloudFront will do that
51
51
  publicReadAccess: false,
52
52
  blockPublicAccess: aws_cdk_lib_1.aws_s3.BlockPublicAccess.BLOCK_ALL,
@@ -12,7 +12,7 @@ class SubdomainName extends QpqConstruct_1.QpqConstruct {
12
12
  });
13
13
  const certificate = new aws_cdk_lib_1.aws_certificatemanager.Certificate(this, 'certificate', {
14
14
  domainName: newDomainName,
15
- certificateName: this.qpqResourceName(props.subdomain),
15
+ certificateName: this.qpqResourceName(props.subdomain, 'cert'),
16
16
  validation: aws_cdk_lib_1.aws_certificatemanager.CertificateValidation.fromDns(apexHostedZone),
17
17
  });
18
18
  this.domainName = new aws_cdk_lib_1.aws_apigateway.DomainName(this, 'domain-name', {
@@ -11,5 +11,5 @@ export declare class QpqConstructBase extends Construct {
11
11
  apiLayerVersions?: aws_lambda.ILayerVersion[];
12
12
  constructor(scope: Construct, id: string, props: QpqConstructBaseProps);
13
13
  resourceName(name: string): string;
14
- qpqResourceName(name: string): string;
14
+ qpqResourceName(name: string, resourceType: string): string;
15
15
  }
@@ -13,8 +13,8 @@ class QpqConstructBase extends constructs_1.Construct {
13
13
  resourceName(name) {
14
14
  return quidproquo_actionprocessor_awslambda_1.awsNamingUtils.getConfigRuntimeResourceName(name, this.qpqConfig);
15
15
  }
16
- qpqResourceName(name) {
17
- return quidproquo_actionprocessor_awslambda_1.awsNamingUtils.getQpqRuntimeResourceName(name, this.qpqConfig);
16
+ qpqResourceName(name, resourceType) {
17
+ return quidproquo_actionprocessor_awslambda_1.awsNamingUtils.getQpqRuntimeResourceName(name, this.qpqConfig, resourceType);
18
18
  }
19
19
  }
20
20
  exports.QpqConstructBase = QpqConstructBase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quidproquo-deploy-awscdk",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.js",
@@ -39,7 +39,7 @@ export class QpqWebserverWebEntryConstruct extends QpqConstruct<WebEntryQPQWebSe
39
39
 
40
40
  if (!this.setting.storageDrive.sourceStorageDrive) {
41
41
  originBucket = new aws_s3.Bucket(this, 'bucket', {
42
- bucketName: this.qpqResourceName(`${props.setting.name}-web-entry`),
42
+ bucketName: this.qpqResourceName(`${props.setting.name}`, 'we'),
43
43
  // Disable public access to this bucket, CloudFront will do that
44
44
  publicReadAccess: false,
45
45
  blockPublicAccess: aws_s3.BlockPublicAccess.BLOCK_ALL,
@@ -26,7 +26,7 @@ export class SubdomainName extends QpqConstruct<any> {
26
26
 
27
27
  const certificate = new aws_certificatemanager.Certificate(this, 'certificate', {
28
28
  domainName: newDomainName,
29
- certificateName: this.qpqResourceName(props.subdomain),
29
+ certificateName: this.qpqResourceName(props.subdomain, 'cert'),
30
30
  validation: aws_certificatemanager.CertificateValidation.fromDns(apexHostedZone),
31
31
  });
32
32
 
@@ -26,7 +26,7 @@ export class QpqConstructBase extends Construct {
26
26
  return awsNamingUtils.getConfigRuntimeResourceName(name, this.qpqConfig);
27
27
  }
28
28
 
29
- qpqResourceName(name: string) {
30
- return awsNamingUtils.getQpqRuntimeResourceName(name, this.qpqConfig);
29
+ qpqResourceName(name: string, resourceType: string) {
30
+ return awsNamingUtils.getQpqRuntimeResourceName(name, this.qpqConfig, resourceType);
31
31
  }
32
32
  }