quidproquo-deploy-awscdk 0.0.232 → 0.0.233
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/README.md +41 -21
- package/lib/commonjs/constants/index.d.ts +1 -1
- package/lib/commonjs/constants/index.js +1 -1
- package/lib/commonjs/constructs/base/QpqConstructBlock.d.ts +2 -2
- package/lib/commonjs/constructs/base/QpqConstructBlock.js +1 -1
- package/lib/commonjs/constructs/basic/BSQpqLambdaWarmerEventConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/basic/BSQpqLambdaWarmerEventConstruct.js +1 -1
- package/lib/commonjs/constructs/basic/DnsValidatedCertificate.d.ts +2 -2
- package/lib/commonjs/constructs/basic/DnsValidatedCertificate.js +4 -6
- package/lib/commonjs/constructs/basic/Function.d.ts +2 -2
- package/lib/commonjs/constructs/basic/Function.js +4 -4
- package/lib/commonjs/constructs/basic/InfQpqWebserverServiceDomainsConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/basic/InfQpqWebserverServiceDomainsConstruct.js +1 -3
- package/lib/commonjs/constructs/basic/LambdaLayers.d.ts +2 -2
- package/lib/commonjs/constructs/basic/LambdaLayers.js +2 -2
- package/lib/commonjs/constructs/basic/ServiceDomain.js +1 -1
- package/lib/commonjs/constructs/basic/SubdomainName.d.ts +2 -2
- package/lib/commonjs/constructs/basic/SubdomainName.js +1 -1
- package/lib/commonjs/constructs/basic/WebserverRoll.d.ts +1 -1
- package/lib/commonjs/constructs/basic/index.d.ts +2 -2
- package/lib/commonjs/constructs/basic/index.js +2 -2
- package/lib/commonjs/constructs/feature/config/alarm/QpqConfigAwsAlarm.d.ts +1 -1
- package/lib/commonjs/constructs/feature/config/alarm/QpqConfigAwsAlarm.js +1 -1
- package/lib/commonjs/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.js +4 -4
- package/lib/commonjs/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.js +1 -1
- package/lib/commonjs/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.js +3 -3
- package/lib/commonjs/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.js +3 -3
- package/lib/commonjs/constructs/feature/core/index.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/index.js +2 -2
- package/lib/commonjs/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.d.ts +3 -3
- package/lib/commonjs/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.js +3 -10
- package/lib/commonjs/constructs/feature/core/parameter/QpqCoreParameterConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/parameter/QpqCoreParameterConstruct.js +3 -3
- package/lib/commonjs/constructs/feature/core/queue/QpqApiCoreQueueConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/queue/QpqApiCoreQueueConstruct.js +5 -5
- package/lib/commonjs/constructs/feature/core/queue/QpqCoreQueueConstruct.d.ts +3 -3
- package/lib/commonjs/constructs/feature/core/queue/QpqCoreQueueConstruct.js +4 -4
- package/lib/commonjs/constructs/feature/core/queue/index.d.ts +1 -1
- package/lib/commonjs/constructs/feature/core/queue/index.js +1 -1
- package/lib/commonjs/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.js +1 -1
- package/lib/commonjs/constructs/feature/core/secret/QpqCoreSecretConstruct.d.ts +3 -3
- package/lib/commonjs/constructs/feature/core/secret/QpqCoreSecretConstruct.js +2 -2
- package/lib/commonjs/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.js +2 -2
- package/lib/commonjs/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.d.ts +3 -3
- package/lib/commonjs/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.js +6 -15
- package/lib/commonjs/constructs/feature/core/storageDrive/index.d.ts +1 -1
- package/lib/commonjs/constructs/feature/core/storageDrive/index.js +1 -1
- package/lib/commonjs/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.js +1 -1
- package/lib/commonjs/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.js +3 -3
- package/lib/commonjs/constructs/feature/webserver/api/BootstrapQpqWebserverApiConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.js +2 -2
- package/lib/commonjs/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.js +2 -2
- package/lib/commonjs/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.js +1 -1
- package/lib/commonjs/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.d.ts +2 -2
- package/lib/commonjs/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.js +2 -2
- package/lib/commonjs/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.js +5 -5
- package/lib/commonjs/constructs/feature/webserver/index.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/index.js +1 -1
- package/lib/commonjs/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.js +2 -2
- package/lib/commonjs/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.js +1 -1
- package/lib/commonjs/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.js +8 -8
- package/lib/commonjs/constructs/feature/webserver/webEntry/utils/securityHeaders.d.ts +2 -2
- package/lib/commonjs/constructs/feature/webserver/webEntry/utils/securityHeaders.js +2 -2
- package/lib/commonjs/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.js +4 -4
- package/lib/commonjs/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.d.ts +1 -1
- package/lib/commonjs/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.js +2 -2
- package/lib/commonjs/constructs/index.d.ts +1 -1
- package/lib/commonjs/constructs/index.js +1 -1
- package/lib/commonjs/index.d.ts +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/stacks/ApiQpqServiceStack.js +2 -2
- package/lib/commonjs/stacks/BootstrapQpqServiceStack.js +1 -1
- package/lib/commonjs/stacks/InfQpqServiceStack.js +2 -2
- package/lib/commonjs/stacks/WebQpqServiceStack.js +1 -1
- package/lib/commonjs/stacks/base/QpqServiceStack.d.ts +1 -1
- package/lib/commonjs/stacks/base/QpqServiceStack.js +2 -2
- package/lib/commonjs/stacks/index.d.ts +1 -1
- package/lib/commonjs/stacks/index.js +1 -1
- package/lib/commonjs/utils/qpqDeployAwsCdkUtils.d.ts +2 -2
- package/lib/commonjs/utils/qpqDeployAwsCdkUtils.js +3 -4
- package/lib/esm/constants/index.d.ts +1 -1
- package/lib/esm/constants/index.js +1 -1
- package/lib/esm/constructs/base/QpqConstructBlock.d.ts +2 -2
- package/lib/esm/constructs/base/QpqConstructBlock.js +1 -1
- package/lib/esm/constructs/basic/BSQpqLambdaWarmerEventConstruct.d.ts +1 -1
- package/lib/esm/constructs/basic/BSQpqLambdaWarmerEventConstruct.js +2 -2
- package/lib/esm/constructs/basic/DnsValidatedCertificate.d.ts +2 -2
- package/lib/esm/constructs/basic/DnsValidatedCertificate.js +4 -6
- package/lib/esm/constructs/basic/Function.d.ts +2 -2
- package/lib/esm/constructs/basic/Function.js +5 -5
- package/lib/esm/constructs/basic/InfQpqWebserverServiceDomainsConstruct.d.ts +1 -1
- package/lib/esm/constructs/basic/InfQpqWebserverServiceDomainsConstruct.js +1 -3
- package/lib/esm/constructs/basic/LambdaLayers.d.ts +2 -2
- package/lib/esm/constructs/basic/LambdaLayers.js +2 -2
- package/lib/esm/constructs/basic/ServiceDomain.js +1 -1
- package/lib/esm/constructs/basic/SubdomainName.d.ts +2 -2
- package/lib/esm/constructs/basic/SubdomainName.js +1 -1
- package/lib/esm/constructs/basic/WebserverRoll.d.ts +1 -1
- package/lib/esm/constructs/basic/index.d.ts +2 -2
- package/lib/esm/constructs/basic/index.js +2 -2
- package/lib/esm/constructs/feature/config/alarm/QpqConfigAwsAlarm.d.ts +1 -1
- package/lib/esm/constructs/feature/config/alarm/QpqConfigAwsAlarm.js +1 -1
- package/lib/esm/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.js +5 -5
- package/lib/esm/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.js +1 -1
- package/lib/esm/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.js +3 -3
- package/lib/esm/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.js +4 -4
- package/lib/esm/constructs/feature/core/index.d.ts +2 -2
- package/lib/esm/constructs/feature/core/index.js +2 -2
- package/lib/esm/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.d.ts +3 -3
- package/lib/esm/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.js +3 -10
- package/lib/esm/constructs/feature/core/parameter/QpqCoreParameterConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/parameter/QpqCoreParameterConstruct.js +3 -3
- package/lib/esm/constructs/feature/core/queue/QpqApiCoreQueueConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/queue/QpqApiCoreQueueConstruct.js +5 -5
- package/lib/esm/constructs/feature/core/queue/QpqCoreQueueConstruct.d.ts +3 -3
- package/lib/esm/constructs/feature/core/queue/QpqCoreQueueConstruct.js +5 -5
- package/lib/esm/constructs/feature/core/queue/index.d.ts +1 -1
- package/lib/esm/constructs/feature/core/queue/index.js +1 -1
- package/lib/esm/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.js +1 -1
- package/lib/esm/constructs/feature/core/secret/QpqCoreSecretConstruct.d.ts +3 -3
- package/lib/esm/constructs/feature/core/secret/QpqCoreSecretConstruct.js +3 -3
- package/lib/esm/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.js +2 -2
- package/lib/esm/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.d.ts +3 -3
- package/lib/esm/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.js +7 -16
- package/lib/esm/constructs/feature/core/storageDrive/index.d.ts +1 -1
- package/lib/esm/constructs/feature/core/storageDrive/index.js +1 -1
- package/lib/esm/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.js +1 -1
- package/lib/esm/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.js +3 -3
- package/lib/esm/constructs/feature/webserver/api/BootstrapQpqWebserverApiConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.js +2 -2
- package/lib/esm/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.js +2 -2
- package/lib/esm/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.js +1 -1
- package/lib/esm/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.d.ts +2 -2
- package/lib/esm/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.js +2 -2
- package/lib/esm/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.js +5 -5
- package/lib/esm/constructs/feature/webserver/index.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/index.js +1 -1
- package/lib/esm/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.js +2 -2
- package/lib/esm/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.js +1 -1
- package/lib/esm/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.js +9 -9
- package/lib/esm/constructs/feature/webserver/webEntry/utils/securityHeaders.d.ts +2 -2
- package/lib/esm/constructs/feature/webserver/webEntry/utils/securityHeaders.js +2 -2
- package/lib/esm/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.js +4 -4
- package/lib/esm/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.d.ts +1 -1
- package/lib/esm/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.js +2 -2
- package/lib/esm/constructs/index.d.ts +1 -1
- package/lib/esm/constructs/index.js +1 -1
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/stacks/ApiQpqServiceStack.js +2 -2
- package/lib/esm/stacks/BootstrapQpqServiceStack.js +1 -1
- package/lib/esm/stacks/InfQpqServiceStack.js +3 -3
- package/lib/esm/stacks/WebQpqServiceStack.js +1 -1
- package/lib/esm/stacks/base/QpqServiceStack.d.ts +1 -1
- package/lib/esm/stacks/base/QpqServiceStack.js +2 -2
- package/lib/esm/stacks/index.d.ts +1 -1
- package/lib/esm/stacks/index.js +1 -1
- package/lib/esm/utils/qpqDeployAwsCdkUtils.d.ts +2 -2
- package/lib/esm/utils/qpqDeployAwsCdkUtils.js +4 -4
- package/package.json +11 -8
- package/src/constants/index.ts +1 -1
- package/src/constructs/base/QpqConstructBlock.ts +7 -15
- package/src/constructs/basic/BSQpqLambdaWarmerEventConstruct.ts +2 -3
- package/src/constructs/basic/DnsValidatedCertificate.ts +7 -14
- package/src/constructs/basic/Function.ts +6 -7
- package/src/constructs/basic/InfQpqWebserverServiceDomainsConstruct.ts +2 -4
- package/src/constructs/basic/LambdaLayers.ts +7 -12
- package/src/constructs/basic/ServiceDomain.ts +5 -11
- package/src/constructs/basic/SubdomainName.ts +5 -11
- package/src/constructs/basic/WebserverRoll.ts +1 -1
- package/src/constructs/basic/index.ts +2 -2
- package/src/constructs/feature/config/alarm/QpqConfigAwsAlarm.ts +6 -18
- package/src/constructs/feature/core/auth/QpqInfCoreUserDirectoryConstruct.ts +7 -9
- package/src/constructs/feature/core/deployEvents/QpqCoreDeployEventConstruct.ts +3 -4
- package/src/constructs/feature/core/eventBus/QpqCoreEventBusConstruct.ts +5 -10
- package/src/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.ts +6 -5
- package/src/constructs/feature/core/index.ts +2 -2
- package/src/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.ts +11 -33
- package/src/constructs/feature/core/parameter/QpqCoreParameterConstruct.ts +11 -31
- package/src/constructs/feature/core/queue/QpqApiCoreQueueConstruct.ts +8 -9
- package/src/constructs/feature/core/queue/QpqCoreQueueConstruct.ts +8 -12
- package/src/constructs/feature/core/queue/index.ts +1 -1
- package/src/constructs/feature/core/schedule/QpqCoreRecurringScheduleConstruct.ts +3 -4
- package/src/constructs/feature/core/secret/QpqCoreSecretConstruct.ts +13 -39
- package/src/constructs/feature/core/storageDrive/QpqApiCoreStorageDriveConstruct.ts +5 -5
- package/src/constructs/feature/core/storageDrive/QpqCoreStorageDriveConstruct.ts +17 -61
- package/src/constructs/feature/core/storageDrive/index.ts +1 -1
- package/src/constructs/feature/core/virtualNetwork/BootstrapQpqCoreVirtualNetworkConstruct.ts +3 -3
- package/src/constructs/feature/webserver/api/ApiQpqWebserverApiConstruct.ts +4 -7
- package/src/constructs/feature/webserver/api/BootstrapQpqWebserverApiConstruct.ts +3 -7
- package/src/constructs/feature/webserver/apiKey/QpqWebserverApiKeyConstruct.ts +5 -10
- package/src/constructs/feature/webserver/cache/QpqWebServerCacheConstruct.ts +6 -17
- package/src/constructs/feature/webserver/certificate/QpqWebserverCertificateConstruct.ts +2 -2
- package/src/constructs/feature/webserver/domain/QpqWebserverDomainConstruct.ts +4 -5
- package/src/constructs/feature/webserver/domainProxy/WebQpqWebserverDomainProxyConstruct.ts +9 -27
- package/src/constructs/feature/webserver/index.ts +1 -1
- package/src/constructs/feature/webserver/redirect/QpqWebserverSubdomainRedirectConstruct.ts +7 -9
- package/src/constructs/feature/webserver/serviceFunction/QpqWebserverServiceFunctionConstruct.ts +4 -5
- package/src/constructs/feature/webserver/webEntry/WebQpqWebserverWebEntryConstruct.ts +13 -18
- package/src/constructs/feature/webserver/webEntry/utils/securityHeaders.ts +10 -10
- package/src/constructs/feature/webserver/websocket/QpqApiWebserverWebsocketConstruct.ts +6 -7
- package/src/constructs/feature/webserver/websocket/QpqWebserverWebsocketConstruct.ts +7 -16
- package/src/constructs/index.ts +1 -1
- package/src/index.ts +1 -2
- package/src/stacks/ApiQpqServiceStack.ts +22 -30
- package/src/stacks/BootstrapQpqServiceStack.ts +1 -1
- package/src/stacks/InfQpqServiceStack.ts +8 -8
- package/src/stacks/WebQpqServiceStack.ts +8 -16
- package/src/stacks/base/QpqServiceStack.ts +3 -4
- package/src/stacks/index.ts +1 -1
- package/src/utils/qpqDeployAwsCdkUtils.ts +18 -15
package/README.md
CHANGED
|
@@ -1,61 +1,81 @@
|
|
|
1
1
|
# quidproquo-deploy-awscdk
|
|
2
2
|
|
|
3
|
-
The `quidproquo-deploy-awscdk` library is a key component of the quidproquo framework, providing a set of constructs and utilities for deploying
|
|
3
|
+
The `quidproquo-deploy-awscdk` library is a key component of the quidproquo framework, providing a set of constructs and utilities for deploying
|
|
4
|
+
quidproquo-based applications on the AWS Cloud using the AWS CDK (Cloud Development Kit).
|
|
4
5
|
|
|
5
6
|
## WARNING: NOT FOR PRODUCTION
|
|
6
7
|
|
|
7
|
-
**This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to
|
|
8
|
+
**This project is currently under active development and should not be used in production environments. The APIs and functionality are subject to
|
|
9
|
+
change without notice.**
|
|
8
10
|
|
|
9
11
|
## Key Features
|
|
10
12
|
|
|
11
|
-
1. **Construct-based Deployment**: The `quidproquo-deploy-awscdk` library provides a set of custom constructs that encapsulate the deployment of
|
|
13
|
+
1. **Construct-based Deployment**: The `quidproquo-deploy-awscdk` library provides a set of custom constructs that encapsulate the deployment of
|
|
14
|
+
various quidproquo components, such as APIs, queues, storage drives, and more, on the AWS platform.
|
|
12
15
|
|
|
13
|
-
2. **Seamless Integration**: The constructs in this library are designed to work seamlessly with the core quidproquo functionality, ensuring a
|
|
16
|
+
2. **Seamless Integration**: The constructs in this library are designed to work seamlessly with the core quidproquo functionality, ensuring a
|
|
17
|
+
consistent and cohesive development experience.
|
|
14
18
|
|
|
15
|
-
3. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet
|
|
19
|
+
3. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet
|
|
20
|
+
their specific requirements.
|
|
16
21
|
|
|
17
|
-
4. **Automated Provisioning**: The library handles the provisioning of various AWS resources, such as Lambda functions, API Gateways, DynamoDB tables,
|
|
22
|
+
4. **Automated Provisioning**: The library handles the provisioning of various AWS resources, such as Lambda functions, API Gateways, DynamoDB tables,
|
|
23
|
+
and more, based on the quidproquo configuration.
|
|
18
24
|
|
|
19
|
-
5. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is
|
|
25
|
+
5. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is
|
|
26
|
+
efficient and reliable.
|
|
20
27
|
|
|
21
|
-
6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs
|
|
28
|
+
6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs
|
|
29
|
+
and metrics are captured and made available for monitoring and troubleshooting.
|
|
22
30
|
|
|
23
|
-
7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications,
|
|
31
|
+
7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications,
|
|
32
|
+
promoting code reuse and consistency.
|
|
24
33
|
|
|
25
34
|
## Key Concepts
|
|
26
35
|
|
|
27
|
-
1. **Constructs**: Constructs are the fundamental building blocks of the `quidproquo-deploy-awscdk` library. They represent the various AWS resources
|
|
36
|
+
1. **Constructs**: Constructs are the fundamental building blocks of the `quidproquo-deploy-awscdk` library. They represent the various AWS resources
|
|
37
|
+
and configurations required to deploy a quidproquo-based application.
|
|
28
38
|
|
|
29
|
-
2. **Stacks**: Stacks are higher-level constructs that group related resources and configurations together, ensuring a cohesive and organized
|
|
39
|
+
2. **Stacks**: Stacks are higher-level constructs that group related resources and configurations together, ensuring a cohesive and organized
|
|
40
|
+
deployment process.
|
|
30
41
|
|
|
31
|
-
3. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is
|
|
42
|
+
3. **Dependency Management**: The library manages the dependencies between various quidproquo components, ensuring that the deployment process is
|
|
43
|
+
efficient and reliable.
|
|
32
44
|
|
|
33
|
-
4. **Naming Conventions**: The library follows a consistent naming convention for the provisioned AWS resources, ensuring that they are easily
|
|
45
|
+
4. **Naming Conventions**: The library follows a consistent naming convention for the provisioned AWS resources, ensuring that they are easily
|
|
46
|
+
identifiable and traceable.
|
|
34
47
|
|
|
35
|
-
5. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet
|
|
48
|
+
5. **Extensibility**: The library is designed to be highly extensible, allowing developers to create custom constructs or modify existing ones to meet
|
|
49
|
+
their specific requirements.
|
|
36
50
|
|
|
37
|
-
6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs
|
|
51
|
+
6. **Logging and Observability**: The library integrates with the quidproquo logging and observability features, ensuring that deployment-related logs
|
|
52
|
+
and metrics are captured and made available for monitoring and troubleshooting.
|
|
38
53
|
|
|
39
|
-
7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications,
|
|
54
|
+
7. **Reusable Constructs**: The library provides a set of reusable constructs that can be used across multiple quidproquo-based applications,
|
|
55
|
+
promoting code reuse and consistency.
|
|
40
56
|
|
|
41
57
|
## Getting Started
|
|
42
58
|
|
|
43
|
-
To use the `quidproquo-deploy-awscdk` library, you'll need to install the package and its dependencies. You can do this using your preferred package
|
|
59
|
+
To use the `quidproquo-deploy-awscdk` library, you'll need to install the package and its dependencies. You can do this using your preferred package
|
|
60
|
+
manager, such as npm or yarn:
|
|
44
61
|
|
|
45
62
|
```
|
|
46
63
|
npm install quidproquo-deploy-awscdk
|
|
47
64
|
```
|
|
48
65
|
|
|
49
|
-
Once you have the package installed, you can start building your quidproquo-based applications on the AWS platform, leveraging the constructs and
|
|
66
|
+
Once you have the package installed, you can start building your quidproquo-based applications on the AWS platform, leveraging the constructs and
|
|
67
|
+
utilities provided by this library.
|
|
50
68
|
|
|
51
69
|
## Documentation
|
|
52
70
|
|
|
53
|
-
For more detailed information on using the `quidproquo-deploy-awscdk` library, please refer to the
|
|
71
|
+
For more detailed information on using the `quidproquo-deploy-awscdk` library, please refer to the
|
|
72
|
+
[quidproquo-deploy-awscdk documentation](https://github.com/joe-coady/quidproquo/tree/main/packages/quidproquo-deploy-awscdk).
|
|
54
73
|
|
|
55
74
|
## Contributing
|
|
56
75
|
|
|
57
|
-
If you'd like to contribute to the development of `quidproquo-deploy-awscdk`, please refer to the
|
|
76
|
+
If you'd like to contribute to the development of `quidproquo-deploy-awscdk`, please refer to the
|
|
77
|
+
[contributing guidelines](https://github.com/joe-coady/quidproquo/blob/main/CONTRIBUTING.md) for more information.
|
|
58
78
|
|
|
59
79
|
## License
|
|
60
80
|
|
|
61
|
-
`quidproquo-deploy-awscdk` is licensed under the [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
|
|
81
|
+
`quidproquo-deploy-awscdk` is licensed under the [MIT License](https://github.com/joe-coady/quidproquo/blob/main/LICENSE).
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./logging"), exports);
|
|
18
17
|
__exportStar(require("./BootstrapResource"), exports);
|
|
18
|
+
__exportStar(require("./logging"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { QPQConfig } from 'quidproquo-core';
|
|
2
|
+
import { aws_iam } from 'aws-cdk-lib';
|
|
3
|
+
import { IGrantable } from 'aws-cdk-lib/aws-iam';
|
|
2
4
|
import { Construct } from 'constructs';
|
|
3
5
|
import { QpqResource } from './QpqResource';
|
|
4
|
-
import { IGrantable } from 'aws-cdk-lib/aws-iam';
|
|
5
|
-
import { aws_iam } from 'aws-cdk-lib';
|
|
6
6
|
export interface QpqConstructBlockProps {
|
|
7
7
|
awsAccountId: string;
|
|
8
8
|
qpqConfig: QPQConfig;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QpqConstructBlock = void 0;
|
|
4
4
|
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
5
|
-
const constructs_1 = require("constructs");
|
|
6
5
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
6
|
+
const constructs_1 = require("constructs");
|
|
7
7
|
class QpqConstructBlock extends constructs_1.Construct {
|
|
8
8
|
constructor(scope, id, props) {
|
|
9
9
|
super(scope, id);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
2
1
|
import { Construct } from 'constructs';
|
|
2
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
3
3
|
export interface BSQpqLambdaWarmerEventConstructConstructProps extends QpqConstructBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare class BSQpqLambdaWarmerEventConstructConstruct extends QpqConstructBlock {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BSQpqLambdaWarmerEventConstructConstruct = void 0;
|
|
4
4
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
-
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
6
5
|
const constants_1 = require("../../constants");
|
|
6
|
+
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
7
7
|
class BSQpqLambdaWarmerEventConstructConstruct extends QpqConstructBlock_1.QpqConstructBlock {
|
|
8
8
|
constructor(scope, id, props) {
|
|
9
9
|
super(scope, id, props);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aws_certificatemanager, aws_route53 } from 'aws-cdk-lib';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
|
-
import {
|
|
3
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
4
4
|
interface DomainConfig {
|
|
5
5
|
rootDomain: string;
|
|
6
6
|
subDomainNames?: string[];
|
|
@@ -24,10 +24,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.DnsValidatedCertificate = void 0;
|
|
27
|
-
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
28
|
-
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
29
27
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
28
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
30
29
|
const qpqDeployAwsCdkUtils = __importStar(require("../../utils"));
|
|
30
|
+
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
31
31
|
class DnsValidatedCertificate extends QpqConstructBlock_1.QpqConstructBlock {
|
|
32
32
|
constructor(scope, id, props) {
|
|
33
33
|
var _a;
|
|
@@ -39,11 +39,9 @@ class DnsValidatedCertificate extends QpqConstructBlock_1.QpqConstructBlock {
|
|
|
39
39
|
domainName: apexDomain,
|
|
40
40
|
});
|
|
41
41
|
// Generate domain names for all subdomains
|
|
42
|
-
this.domainNames =
|
|
43
|
-
((_a = props.domain.subDomainNames) === null || _a === void 0 ? void 0 : _a.map((subDomain) => `${subDomain}.${apexDomain}`)) || [];
|
|
42
|
+
this.domainNames = ((_a = props.domain.subDomainNames) === null || _a === void 0 ? void 0 : _a.map((subDomain) => `${subDomain}.${apexDomain}`)) || [];
|
|
44
43
|
// Include the apex domain if onRootDomain is true
|
|
45
|
-
if (props.domain.onRootDomain &&
|
|
46
|
-
(!props.domain.subDomainNames || props.domain.subDomainNames.length === 0)) {
|
|
44
|
+
if (props.domain.onRootDomain && (!props.domain.subDomainNames || props.domain.subDomainNames.length === 0)) {
|
|
47
45
|
this.domainNames.unshift(apexDomain);
|
|
48
46
|
}
|
|
49
47
|
// Create the certificate
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aws_ec2, aws_iam, aws_lambda } from 'aws-cdk-lib';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
|
-
import {
|
|
3
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
4
4
|
export interface FunctionProps extends QpqConstructBlockProps {
|
|
5
5
|
functionName?: string;
|
|
6
6
|
srcFilename?: string;
|
|
@@ -27,13 +27,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Function = void 0;
|
|
30
|
-
const
|
|
31
|
-
const
|
|
30
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
31
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
32
32
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
33
33
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
34
|
-
const
|
|
34
|
+
const path_1 = __importDefault(require("path"));
|
|
35
35
|
const constants_1 = require("../../constants");
|
|
36
|
-
const
|
|
36
|
+
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
37
37
|
class Function extends QpqConstructBlock_1.QpqConstructBlock {
|
|
38
38
|
constructor(scope, id, props) {
|
|
39
39
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
2
1
|
import { Construct } from 'constructs';
|
|
2
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
3
3
|
export interface InfQpqWebserverServiceDomainsConstructProps extends QpqConstructBlockProps {
|
|
4
4
|
}
|
|
5
5
|
export declare class InfQpqWebserverServiceDomainsConstruct extends QpqConstructBlock {
|
|
@@ -19,9 +19,7 @@ class InfQpqWebserverServiceDomainsConstruct extends QpqConstructBlock_1.QpqCons
|
|
|
19
19
|
.getOwnedWebsocketSettings(props.qpqConfig)
|
|
20
20
|
.filter((we) => !we.onRootDomain)
|
|
21
21
|
.map((we) => we.rootDomain);
|
|
22
|
-
const uniqueRootDomains = [
|
|
23
|
-
...new Set([...webEntryRootDomains, ...domainProxyRootDomains, ...websocketRootDomains]),
|
|
24
|
-
];
|
|
22
|
+
const uniqueRootDomains = [...new Set([...webEntryRootDomains, ...domainProxyRootDomains, ...websocketRootDomains])];
|
|
25
23
|
for (const rootDomain of uniqueRootDomains) {
|
|
26
24
|
new ServiceDomain_1.ServiceDomainConstruct(this, `domain-${rootDomain}`, {
|
|
27
25
|
awsAccountId: props.awsAccountId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
2
|
-
import { Construct } from 'constructs';
|
|
3
1
|
import { aws_lambda } from 'aws-cdk-lib';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
4
4
|
export interface LambdaLayersProps extends QpqConstructBlockProps {
|
|
5
5
|
}
|
|
6
6
|
export declare class LambdaLayers extends QpqConstructBlock {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LambdaLayers = void 0;
|
|
4
4
|
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
5
|
-
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
6
|
-
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
7
5
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
6
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
7
|
+
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
8
8
|
class LambdaLayers extends QpqConstructBlock_1.QpqConstructBlock {
|
|
9
9
|
constructor(scope, id, props) {
|
|
10
10
|
super(scope, id, props);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ServiceDomainConstruct = void 0;
|
|
4
|
-
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
4
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
6
5
|
const quidproquo_webserver_1 = require("quidproquo-webserver");
|
|
6
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
7
7
|
const base_1 = require("../base");
|
|
8
8
|
class ServiceDomainConstruct extends base_1.QpqConstructBlock {
|
|
9
9
|
constructor(scope, id, props) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aws_apigateway, aws_certificatemanager, aws_route53 } from 'aws-cdk-lib';
|
|
2
2
|
import { Construct } from 'constructs';
|
|
3
|
-
import {
|
|
3
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
4
4
|
export interface SubdomainNameProps extends QpqConstructBlockProps {
|
|
5
5
|
subdomain: string;
|
|
6
6
|
apexDomain: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SubdomainName = void 0;
|
|
4
|
-
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
5
4
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
+
const QpqConstructBlock_1 = require("../base/QpqConstructBlock");
|
|
6
6
|
class SubdomainName extends QpqConstructBlock_1.QpqConstructBlock {
|
|
7
7
|
constructor(scope, id, props) {
|
|
8
8
|
super(scope, id, props);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Construct } from 'constructs';
|
|
2
1
|
import { aws_iam } from 'aws-cdk-lib';
|
|
2
|
+
import { Construct } from 'constructs';
|
|
3
3
|
import { QpqConstructBlock, QpqConstructBlockProps } from '../base/QpqConstructBlock';
|
|
4
4
|
export interface WebserverRollProps extends QpqConstructBlockProps {
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './Function';
|
|
2
|
+
export * from './InfQpqWebserverServiceDomainsConstruct';
|
|
2
3
|
export * from './LambdaLayers';
|
|
3
|
-
export * from './SubdomainName';
|
|
4
4
|
export * from './ServiceDomain';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './SubdomainName';
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Function"), exports);
|
|
18
|
+
__exportStar(require("./InfQpqWebserverServiceDomainsConstruct"), exports);
|
|
18
19
|
__exportStar(require("./LambdaLayers"), exports);
|
|
19
|
-
__exportStar(require("./SubdomainName"), exports);
|
|
20
20
|
__exportStar(require("./ServiceDomain"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./SubdomainName"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AwsAlarmQPQConfigSetting } from 'quidproquo-config-aws';
|
|
1
2
|
import { Construct } from 'constructs';
|
|
2
3
|
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
3
|
-
import { AwsAlarmQPQConfigSetting } from 'quidproquo-config-aws';
|
|
4
4
|
export interface QpqConfigAwsAlarmConstructProps extends QpqConstructBlockProps {
|
|
5
5
|
alarmConfig: AwsAlarmQPQConfigSetting;
|
|
6
6
|
}
|
|
@@ -24,10 +24,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.QpqConfigAwsAlarmConstruct = void 0;
|
|
27
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
27
28
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
28
29
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
29
30
|
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
30
|
-
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
31
31
|
const core_1 = require("../../core");
|
|
32
32
|
function AwsAlarmOperatorToComparisonOperator(operator) {
|
|
33
33
|
switch (operator) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QPQConfig, UserDirectoryQPQConfigSetting } from 'quidproquo-core';
|
|
2
|
-
import {
|
|
2
|
+
import { aws_cognito, aws_iam } from 'aws-cdk-lib';
|
|
3
3
|
import { Construct } from 'constructs';
|
|
4
|
-
import {
|
|
4
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
5
5
|
export interface QpqInfCoreUserDirectoryConstructProps extends QpqConstructBlockProps {
|
|
6
6
|
userDirectoryConfig: UserDirectoryQPQConfigSetting;
|
|
7
7
|
}
|
|
@@ -24,15 +24,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.QpqInfCoreUserDirectoryConstruct = void 0;
|
|
27
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
28
27
|
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
29
|
-
const
|
|
28
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
29
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
30
30
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
31
31
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
32
32
|
const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
|
|
33
|
-
const
|
|
34
|
-
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
33
|
+
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
35
34
|
const DnsValidatedCertificate_1 = require("../../../basic/DnsValidatedCertificate");
|
|
35
|
+
const Function_1 = require("../../../basic/Function");
|
|
36
36
|
class QpqInfCoreUserDirectoryConstruct extends QpqConstructBlock_1.QpqConstructBlock {
|
|
37
37
|
static fromOtherStack(scope, id, qpqConfig, awsAccountId, userDirectoryName) {
|
|
38
38
|
const userPoolId = qpqDeployAwsCdkUtils.importStackValue(quidproquo_actionprocessor_awslambda_1.awsNamingUtils.getCFExportNameUserPoolIdFromConfig(userDirectoryName, qpqConfig));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DeployEventsQPQConfigSetting } from 'quidproquo-core';
|
|
2
|
-
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
3
|
-
import { Construct } from 'constructs';
|
|
4
2
|
import { aws_lambda } from 'aws-cdk-lib';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
5
5
|
export interface QpqCoreDeployEventConstructProps extends QpqConstructBlockProps {
|
|
6
6
|
deployEventConfig: DeployEventsQPQConfigSetting;
|
|
7
7
|
apiLayerVersions?: aws_lambda.ILayerVersion[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QpqCoreDeployEventConstruct = void 0;
|
|
4
|
-
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
5
4
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
5
|
+
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
6
6
|
const Function_1 = require("../../../basic/Function");
|
|
7
7
|
class QpqCoreDeployEventConstruct extends QpqConstructBlock_1.QpqConstructBlock {
|
|
8
8
|
constructor(scope, id, props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventBusQPQConfigSetting, QPQConfig } from 'quidproquo-core';
|
|
2
|
-
import {
|
|
2
|
+
import { aws_iam, aws_sns } from 'aws-cdk-lib';
|
|
3
3
|
import { Construct } from 'constructs';
|
|
4
|
-
import {
|
|
4
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
5
5
|
export interface QpqCoreEventBusConstructProps extends QpqConstructBlockProps {
|
|
6
6
|
eventBusConfig: EventBusQPQConfigSetting;
|
|
7
7
|
}
|
|
@@ -25,11 +25,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.QpqCoreEventBusConstruct = exports.QpqCoreEventBusConstructBase = void 0;
|
|
27
27
|
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
28
|
-
const quidproquo_core_1 = require("quidproquo-core");
|
|
29
28
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
30
|
-
const
|
|
31
|
-
const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
|
|
29
|
+
const quidproquo_core_1 = require("quidproquo-core");
|
|
32
30
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
31
|
+
const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
|
|
32
|
+
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
33
33
|
class QpqCoreEventBusConstructBase extends QpqConstructBlock_1.QpqConstructBlock {
|
|
34
34
|
grantRead(grantee) { }
|
|
35
35
|
grantWrite(grantee) {
|
package/lib/commonjs/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GraphDatabaseQPQConfigSetting, QPQConfig } from 'quidproquo-core';
|
|
2
|
-
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
3
|
-
import { Construct } from 'constructs';
|
|
4
2
|
import { aws_iam } from 'aws-cdk-lib';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
5
4
|
import * as aws_neptune from '@aws-cdk/aws-neptune-alpha';
|
|
5
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
6
6
|
export interface QpqCoreApiGraphDatabaseConstructProps extends QpqConstructBlockProps {
|
|
7
7
|
graphDatabaseConfig: GraphDatabaseQPQConfigSetting;
|
|
8
8
|
}
|
package/lib/commonjs/constructs/feature/core/graphDatabase/QpqCoreApiGraphDatabaseConstruct.js
CHANGED
|
@@ -24,12 +24,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.QpqCoreApiGraphDatabaseConstruct = void 0;
|
|
27
|
-
const
|
|
27
|
+
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
28
28
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
29
29
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
30
|
-
const aws_neptune = __importStar(require("@aws-cdk/aws-neptune-alpha"));
|
|
31
30
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
32
|
-
const
|
|
31
|
+
const aws_neptune = __importStar(require("@aws-cdk/aws-neptune-alpha"));
|
|
32
|
+
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
33
33
|
class QpqCoreApiGraphDatabaseConstruct extends QpqConstructBlock_1.QpqConstructBlock {
|
|
34
34
|
static fromOtherStack(scope, id, qpqConfig, awsAccountId, keyValueStoreName) {
|
|
35
35
|
const tableNameOverride = quidproquo_config_aws_1.qpqConfigAwsUtils.getDynamoTableNameOverrride(keyValueStoreName, qpqConfig);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from './auth';
|
|
2
|
+
export * from './deployEvents';
|
|
2
3
|
export * from './eventBus';
|
|
4
|
+
export * from './graphDatabase';
|
|
3
5
|
export * from './keyValueStore';
|
|
4
6
|
export * from './parameter';
|
|
5
7
|
export * from './queue';
|
|
6
8
|
export * from './schedule';
|
|
7
9
|
export * from './secret';
|
|
8
10
|
export * from './storageDrive';
|
|
9
|
-
export * from './deployEvents';
|
|
10
|
-
export * from './graphDatabase';
|
|
11
11
|
export * from './virtualNetwork';
|
|
@@ -15,13 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./auth"), exports);
|
|
18
|
+
__exportStar(require("./deployEvents"), exports);
|
|
18
19
|
__exportStar(require("./eventBus"), exports);
|
|
20
|
+
__exportStar(require("./graphDatabase"), exports);
|
|
19
21
|
__exportStar(require("./keyValueStore"), exports);
|
|
20
22
|
__exportStar(require("./parameter"), exports);
|
|
21
23
|
__exportStar(require("./queue"), exports);
|
|
22
24
|
__exportStar(require("./schedule"), exports);
|
|
23
25
|
__exportStar(require("./secret"), exports);
|
|
24
26
|
__exportStar(require("./storageDrive"), exports);
|
|
25
|
-
__exportStar(require("./deployEvents"), exports);
|
|
26
|
-
__exportStar(require("./graphDatabase"), exports);
|
|
27
27
|
__exportStar(require("./virtualNetwork"), exports);
|
package/lib/commonjs/constructs/feature/core/keyValueStore/QpqCoreKeyValueStoreConstruct.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { KeyValueStoreQPQConfigSetting,
|
|
2
|
-
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
3
|
-
import { Construct } from 'constructs';
|
|
1
|
+
import { KeyValueStoreQPQConfigSetting, KvsKey, QPQConfig } from 'quidproquo-core';
|
|
4
2
|
import { aws_dynamodb, aws_iam } from 'aws-cdk-lib';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
5
5
|
export interface QpqCoreKeyValueStoreConstructProps extends QpqConstructBlockProps {
|
|
6
6
|
keyValueStoreConfig: KeyValueStoreQPQConfigSetting;
|
|
7
7
|
}
|
|
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.QpqCoreKeyValueStoreConstruct = exports.convertKvsKeyToDynamodbAttribute = exports.convertKvsKeyTypeToDynamodbAttributeType = exports.QpqCoreKeyValueStoreConstructBase = void 0;
|
|
27
|
-
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
28
27
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
29
|
-
const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils/qpqDeployAwsCdkUtils"));
|
|
30
28
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
31
29
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
30
|
+
const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils/qpqDeployAwsCdkUtils"));
|
|
31
|
+
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
32
32
|
class QpqCoreKeyValueStoreConstructBase extends QpqConstructBlock_1.QpqConstructBlock {
|
|
33
33
|
grantRead(grantee) {
|
|
34
34
|
this.table.grantReadData(grantee);
|
|
@@ -111,14 +111,7 @@ class QpqCoreKeyValueStoreConstruct extends QpqCoreKeyValueStoreConstructBase {
|
|
|
111
111
|
if (kvsList.length > 0) {
|
|
112
112
|
role.addToPrincipalPolicy(new aws_cdk_lib_1.aws_iam.PolicyStatement({
|
|
113
113
|
effect: aws_cdk_lib_1.aws_iam.Effect.ALLOW,
|
|
114
|
-
actions: [
|
|
115
|
-
'dynamodb:GetItem',
|
|
116
|
-
'dynamodb:PutItem',
|
|
117
|
-
'dynamodb:Query',
|
|
118
|
-
'dynamodb:Scan',
|
|
119
|
-
'dynamodb:UpdateItem',
|
|
120
|
-
'dynamodb:DeleteItem',
|
|
121
|
-
],
|
|
114
|
+
actions: ['dynamodb:GetItem', 'dynamodb:PutItem', 'dynamodb:Query', 'dynamodb:Scan', 'dynamodb:UpdateItem', 'dynamodb:DeleteItem'],
|
|
122
115
|
resources: kvsList.map((kvs) => kvs.table.tableArn),
|
|
123
116
|
}));
|
|
124
117
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ParameterQPQConfigSetting, QPQConfig } from 'quidproquo-core';
|
|
2
|
+
import { aws_iam, aws_ssm } from 'aws-cdk-lib';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
2
4
|
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
3
5
|
import { QpqResource } from '../../../base/QpqResource';
|
|
4
|
-
import { Construct } from 'constructs';
|
|
5
|
-
import { aws_ssm, aws_iam } from 'aws-cdk-lib';
|
|
6
6
|
export interface QpqCoreParameterConstructProps extends QpqConstructBlockProps {
|
|
7
7
|
parameterConfig: ParameterQPQConfigSetting;
|
|
8
8
|
}
|
|
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.QpqCoreParameterConstruct = exports.QpqCoreParameterConstructBase = void 0;
|
|
27
|
-
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
28
|
-
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
29
|
-
const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
|
|
30
27
|
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
31
28
|
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
29
|
+
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
30
|
+
const qpqDeployAwsCdkUtils = __importStar(require("../../../../utils"));
|
|
31
|
+
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
32
32
|
class QpqCoreParameterConstructBase extends QpqConstructBlock_1.QpqConstructBlock {
|
|
33
33
|
grantRead(grantee) {
|
|
34
34
|
this.stringParameter.grantRead(grantee);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { QueueQPQConfigSetting } from 'quidproquo-core';
|
|
2
|
-
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
3
|
-
import { Construct } from 'constructs';
|
|
4
2
|
import { aws_lambda } from 'aws-cdk-lib';
|
|
3
|
+
import { Construct } from 'constructs';
|
|
4
|
+
import { QpqConstructBlock, QpqConstructBlockProps } from '../../../base/QpqConstructBlock';
|
|
5
5
|
export interface QpqApiCoreQueueConstructProps extends QpqConstructBlockProps {
|
|
6
6
|
queueConfig: QueueQPQConfigSetting;
|
|
7
7
|
apiLayerVersions?: aws_lambda.ILayerVersion[];
|
|
@@ -24,14 +24,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.QpqApiCoreQueueConstruct = void 0;
|
|
27
|
+
const quidproquo_config_aws_1 = require("quidproquo-config-aws");
|
|
27
28
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
28
|
-
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
29
|
-
const QpqCoreQueueConstruct_1 = require("./QpqCoreQueueConstruct");
|
|
30
|
-
const QpqCoreEventBusConstruct_1 = require("../eventBus/QpqCoreEventBusConstruct");
|
|
31
|
-
const Function_1 = require("../../../basic/Function");
|
|
32
29
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
33
30
|
const cdk = __importStar(require("aws-cdk-lib"));
|
|
34
|
-
const
|
|
31
|
+
const QpqConstructBlock_1 = require("../../../base/QpqConstructBlock");
|
|
32
|
+
const Function_1 = require("../../../basic/Function");
|
|
33
|
+
const QpqCoreEventBusConstruct_1 = require("../eventBus/QpqCoreEventBusConstruct");
|
|
34
|
+
const QpqCoreQueueConstruct_1 = require("./QpqCoreQueueConstruct");
|
|
35
35
|
class QpqApiCoreQueueConstruct extends QpqConstructBlock_1.QpqConstructBlock {
|
|
36
36
|
constructor(scope, id, props) {
|
|
37
37
|
super(scope, id, props);
|