@takumi-stack/core 1.0.0 → 1.0.1
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/.dist/common/coordinator.d.ts +18 -0
- package/.dist/common/index.d.ts +6 -0
- package/.dist/common/modifier.d.ts +4 -0
- package/.dist/common/naming/get-deploy-config.d.ts +5 -0
- package/.dist/common/naming/get-domain.d.ts +8 -0
- package/.dist/common/naming/get-function-entry.d.ts +3 -0
- package/.dist/common/naming/get-logical-name.d.ts +2 -0
- package/.dist/common/naming/get-resource-name.d.ts +26 -0
- package/.dist/common/naming/get-service-name.d.ts +9 -0
- package/.dist/common/naming/index.d.ts +8 -0
- package/.dist/common/naming/string-parser.d.ts +4 -0
- package/.dist/common/service.d.ts +21 -0
- package/.dist/common/synth/account-mapping.d.ts +2 -0
- package/.dist/common/synth/assume-role.d.ts +17 -0
- package/.dist/common/synth/get-global-props.d.ts +4 -0
- package/.dist/common/synth/get-service-props.d.ts +3 -0
- package/.dist/common/synth/index.d.ts +8 -0
- package/.dist/common/synth/pre-script.d.ts +21 -0
- package/.dist/common/synth/props-types.d.ts +41 -0
- package/.dist/common/synth/synth-error.d.ts +7 -0
- package/.dist/index.d.ts +4 -0
- package/.dist/package.json +43 -0
- package/.dist/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts +3 -0
- package/.dist/prefab/analytics/events/index.d.ts +28 -0
- package/.dist/prefab/analytics/events/index.d.ts.map +1 -0
- package/.dist/prefab/analytics/events/index.js +163 -0
- package/.dist/prefab/analytics/events/index.js.map +1 -0
- package/.dist/prefab/analytics/index.d.ts +2 -0
- package/.dist/prefab/auth/cognito-pool/index.d.ts +57 -0
- package/.dist/prefab/auth/cognito-pool/index.d.ts.map +1 -0
- package/.dist/prefab/auth/cognito-pool/index.js.map +1 -0
- package/.dist/prefab/auth/index.d.ts +2 -0
- package/.dist/prefab/cdn/cdn-api/index.d.ts +34 -0
- package/.dist/prefab/cdn/cdn-api/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-api/index.js +153 -0
- package/.dist/prefab/cdn/cdn-api/index.js.map +1 -0
- package/.dist/prefab/cdn/cdn-asset/index.d.ts +24 -0
- package/.dist/prefab/cdn/cdn-asset/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-asset/index.js +96 -0
- package/.dist/prefab/cdn/cdn-asset/index.js.map +1 -0
- package/.dist/prefab/cdn/cdn-spa/index.d.ts +24 -0
- package/.dist/prefab/cdn/cdn-spa/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-spa/index.js +138 -0
- package/.dist/prefab/cdn/cdn-spa/index.js.map +1 -0
- package/.dist/prefab/cdn/cdn-ssr/index.d.ts +33 -0
- package/.dist/prefab/cdn/cdn-ssr/index.d.ts.map +1 -0
- package/.dist/prefab/cdn/cdn-ssr/index.js +271 -0
- package/.dist/prefab/cdn/cdn-ssr/index.js.map +1 -0
- package/.dist/prefab/cdn/index.d.ts +5 -0
- package/.dist/prefab/compute/fargate/cluster.d.ts +13 -0
- package/.dist/prefab/compute/fargate/cluster.d.ts.map +1 -0
- package/.dist/prefab/compute/fargate/cluster.js.map +1 -0
- package/.dist/prefab/compute/fargate/index.d.ts +3 -0
- package/.dist/prefab/compute/fargate/service.d.ts +45 -0
- package/.dist/prefab/compute/fargate/service.d.ts.map +1 -0
- package/.dist/prefab/compute/fargate/service.js.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.d.ts +31 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.js +53 -0
- package/.dist/prefab/compute/function/api-function/api-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-function.d.ts +22 -0
- package/.dist/prefab/compute/function/api-function/api-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/api-function/api-function.js +44 -0
- package/.dist/prefab/compute/function/api-function/api-function.js.map +1 -0
- package/.dist/prefab/compute/function/api-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/base-function/index.d.ts +33 -0
- package/.dist/prefab/compute/function/base-function/index.d.ts.map +1 -0
- package/.dist/prefab/compute/function/base-function/index.js +70 -0
- package/.dist/prefab/compute/function/base-function/index.js.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-aggregate.d.ts +15 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-function.d.ts +17 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/cognito-function.js.map +1 -0
- package/.dist/prefab/compute/function/cognito-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/cron-function/cron-aggregate.d.ts +14 -0
- package/.dist/prefab/compute/function/cron-function/cron-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cron-function/cron-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.d.ts +15 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.js +24 -0
- package/.dist/prefab/compute/function/cron-function/cron-function.js.map +1 -0
- package/.dist/prefab/compute/function/cron-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.d.ts +9 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.d.ts.map +1 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.js +3 -0
- package/.dist/prefab/compute/function/event-function/EventAggregateParams.js.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-aggregate.d.ts +16 -0
- package/.dist/prefab/compute/function/event-function/event-aggregate.d.ts.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-aggregate.js.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-function.d.ts +14 -0
- package/.dist/prefab/compute/function/event-function/event-function.d.ts.map +1 -0
- package/.dist/prefab/compute/function/event-function/event-function.js.map +1 -0
- package/.dist/prefab/compute/function/event-function/index.d.ts +3 -0
- package/.dist/prefab/compute/function/index.d.ts +8 -0
- package/.dist/prefab/compute/function/queue-function/index.d.ts +22 -0
- package/.dist/prefab/compute/function/queue-function/index.d.ts.map +1 -0
- package/.dist/prefab/compute/function/queue-function/index.js +46 -0
- package/.dist/prefab/compute/function/queue-function/index.js.map +1 -0
- package/.dist/prefab/compute/function/topic-function/index.d.ts +20 -0
- package/.dist/prefab/compute/function/topic-function/index.d.ts.map +1 -0
- package/.dist/prefab/compute/function/topic-function/index.js +23 -0
- package/.dist/prefab/compute/function/topic-function/index.js.map +1 -0
- package/.dist/prefab/compute/index.d.ts +3 -0
- package/.dist/prefab/database/dynamo/index.d.ts +13 -0
- package/.dist/prefab/database/dynamo/index.d.ts.map +1 -0
- package/.dist/prefab/database/dynamo/index.js.map +1 -0
- package/.dist/prefab/database/index.d.ts +4 -0
- package/.dist/prefab/database/rds/handlers/start-cluster/handler.d.ts +2 -0
- package/.dist/prefab/database/rds/handlers/stop-cluster/handler.d.ts +2 -0
- package/.dist/prefab/database/rds/index.d.ts +51 -0
- package/.dist/prefab/database/rds/index.d.ts.map +1 -0
- package/.dist/prefab/database/rds/index.js +223 -0
- package/.dist/prefab/database/rds/index.js.map +1 -0
- package/.dist/prefab/database/timestream/index.d.ts +3 -0
- package/.dist/prefab/database/timestream/timestream-database.d.ts +11 -0
- package/.dist/prefab/database/timestream/timestream-database.d.ts.map +1 -0
- package/.dist/prefab/database/timestream/timestream-database.js.map +1 -0
- package/.dist/prefab/database/timestream/timestream-table.d.ts +21 -0
- package/.dist/prefab/database/timestream/timestream-table.d.ts.map +1 -0
- package/.dist/prefab/database/timestream/timestream-table.js.map +1 -0
- package/.dist/prefab/gateway/alb-public/index.d.ts +41 -0
- package/.dist/prefab/gateway/alb-public/index.d.ts.map +1 -0
- package/.dist/prefab/gateway/alb-public/index.js.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-http.d.ts +27 -0
- package/.dist/prefab/gateway/api-gateway/api-http.d.ts.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-http.js.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-rest.d.ts +23 -0
- package/.dist/prefab/gateway/api-gateway/api-rest.d.ts.map +1 -0
- package/.dist/prefab/gateway/api-gateway/api-rest.js.map +1 -0
- package/.dist/prefab/gateway/api-gateway/index.d.ts +3 -0
- package/.dist/prefab/gateway/app-sync/index.d.ts +31 -0
- package/.dist/prefab/gateway/app-sync/index.d.ts.map +1 -0
- package/.dist/prefab/gateway/app-sync/index.js.map +1 -0
- package/.dist/prefab/gateway/app-sync/resolver-aggregate.d.ts +33 -0
- package/.dist/prefab/gateway/app-sync/resolver-aggregate.d.ts.map +1 -0
- package/.dist/prefab/gateway/app-sync/resolver-aggregate.js.map +1 -0
- package/.dist/prefab/gateway/app-sync/types.d.ts +29 -0
- package/.dist/prefab/gateway/app-sync/types.d.ts.map +1 -0
- package/.dist/prefab/gateway/index.d.ts +4 -0
- package/.dist/prefab/index.d.ts +11 -0
- package/.dist/prefab/integration/event-bus/index.d.ts +18 -0
- package/.dist/prefab/integration/event-bus/index.d.ts.map +1 -0
- package/.dist/prefab/integration/event-bus/index.js.map +1 -0
- package/.dist/prefab/integration/index.d.ts +4 -0
- package/.dist/prefab/integration/queue/index.d.ts +29 -0
- package/.dist/prefab/integration/queue/index.d.ts.map +1 -0
- package/.dist/prefab/integration/queue/index.js.map +1 -0
- package/.dist/prefab/integration/topic/index.d.ts +19 -0
- package/.dist/prefab/integration/topic/index.d.ts.map +1 -0
- package/.dist/prefab/integration/topic/index.js.map +1 -0
- package/.dist/prefab/networking/dns-domain-ref/index.d.ts +14 -0
- package/.dist/prefab/networking/dns-domain-ref/index.d.ts.map +1 -0
- package/.dist/prefab/networking/dns-domain-ref/index.js.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-certificate/index.d.ts +11 -0
- package/.dist/prefab/networking/dns-subdomain-certificate/index.d.ts.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-certificate/index.js.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-hosted-zone/index.d.ts +10 -0
- package/.dist/prefab/networking/dns-subdomain-hosted-zone/index.d.ts.map +1 -0
- package/.dist/prefab/networking/dns-subdomain-hosted-zone/index.js.map +1 -0
- package/.dist/prefab/networking/index.d.ts +6 -0
- package/.dist/prefab/networking/vpc/index.d.ts +18 -0
- package/.dist/prefab/networking/vpc/index.d.ts.map +1 -0
- package/.dist/prefab/networking/vpc/index.js.map +1 -0
- package/.dist/prefab/networking/waf/index.d.ts +12 -0
- package/.dist/prefab/networking/waf/index.d.ts.map +1 -0
- package/.dist/prefab/networking/waf/index.js.map +1 -0
- package/.dist/prefab/storage/bucket/asset-bucket.d.ts +10 -0
- package/.dist/prefab/storage/bucket/asset-bucket.d.ts.map +1 -0
- package/.dist/prefab/storage/bucket/index.d.ts +3 -0
- package/.dist/prefab/storage/bucket/private-bucket.d.ts +32 -0
- package/.dist/prefab/storage/bucket/private-bucket.d.ts.map +1 -0
- package/.dist/prefab/storage/bucket/private-bucket.js.map +1 -0
- package/.dist/prefab/storage/index.d.ts +2 -0
- package/.dist/prefab/utils/config/frontend-env-builder.d.ts +12 -0
- package/.dist/prefab/utils/config/frontend-env-builder.d.ts.map +1 -0
- package/.dist/prefab/utils/config/frontend-env-builder.js.map +1 -0
- package/.dist/prefab/utils/config/index.d.ts +4 -0
- package/.dist/prefab/utils/config/parameter-secret.d.ts +19 -0
- package/.dist/prefab/utils/config/parameter-secret.d.ts.map +1 -0
- package/.dist/prefab/utils/config/parameter-secret.js.map +1 -0
- package/.dist/prefab/utils/config/runtime-secret.d.ts.map +1 -0
- package/.dist/prefab/utils/config/runtime-secret.js.map +1 -0
- package/.dist/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts +2 -0
- package/.dist/prefab/utils/deploy-pipeline/entities/index.d.ts +29 -0
- package/.dist/prefab/utils/deploy-pipeline/index.d.ts +13 -0
- package/.dist/prefab/utils/deploy-pipeline/index.d.ts.map +1 -0
- package/.dist/prefab/utils/deploy-pipeline/index.js.map +1 -0
- package/.dist/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts +6 -0
- package/.dist/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts +3 -0
- package/.dist/prefab/utils/duration.d.ts +2 -0
- package/.dist/prefab/utils/index.d.ts +5 -0
- package/.dist/prefab/utils/ses/index.d.ts +20 -0
- package/.dist/prefab/utils/ses/index.d.ts.map +1 -0
- package/.dist/prefab/utils/ses/index.js.map +1 -0
- package/.dist/script/config-command/bootstrap.d.ts +3 -0
- package/.dist/script/config-command/bootstrap.js +65 -0
- package/.dist/script/config-command/bootstrap.js.map +1 -0
- package/.dist/script/config-command/deploy-spa.d.ts +3 -0
- package/.dist/script/config-command/deploy-spa.d.ts.map +1 -0
- package/.dist/script/config-command/deploy-spa.js +82 -0
- package/.dist/script/config-command/deploy-spa.js.map +1 -0
- package/.dist/script/config-command/deploy.d.ts +3 -0
- package/.dist/script/config-command/deploy.js +26 -0
- package/.dist/script/config-command/deploy.js.map +1 -0
- package/.dist/script/config-command/destroy.d.ts +3 -0
- package/.dist/script/config-command/destroy.js +26 -0
- package/.dist/script/config-command/destroy.js.map +1 -0
- package/.dist/script/config-command/env-ssr.d.ts +3 -0
- package/.dist/script/config-command/env-ssr.js +49 -0
- package/.dist/script/config-command/env-ssr.js.map +1 -0
- package/.dist/script/config-command/invalidation-ssr.d.ts +3 -0
- package/.dist/script/config-command/invalidation-ssr.js +53 -0
- package/.dist/script/config-command/invalidation-ssr.js.map +1 -0
- package/.dist/script/config-command/rds-migration.d.ts +5 -0
- package/.dist/script/config-command/rds-migration.js.map +1 -0
- package/.dist/script/config-command/rds-sync.d.ts +3 -0
- package/.dist/script/config-command/rds-sync.js.map +1 -0
- package/.dist/script/config-command/ssm-connect.d.ts +3 -0
- package/.dist/script/config-command/ssm-connect.js.map +1 -0
- package/.dist/script/config-command/start-spa.d.ts +3 -0
- package/.dist/script/config-command/start-spa.js +53 -0
- package/.dist/script/config-command/start-spa.js.map +1 -0
- package/.dist/script/config-command/start-ssr.d.ts +3 -0
- package/.dist/script/config-command/start-ssr.js +53 -0
- package/.dist/script/config-command/start-ssr.js.map +1 -0
- package/.dist/script/config-command/synth.d.ts +3 -0
- package/.dist/script/config-command/synth.js +26 -0
- package/.dist/script/config-command/synth.js.map +1 -0
- package/.dist/script/index.d.ts +7 -0
- package/.dist/script/index.d.ts.map +1 -0
- package/.dist/script/output-command/create-user.d.ts +9 -0
- package/.dist/script/output-command/create-user.d.ts.map +1 -0
- package/.dist/script/output-command/create-user.js.map +1 -0
- package/.dist/script/output-command/gen-postman-env.d.ts +9 -0
- package/.dist/script/output-command/gen-postman-env.d.ts.map +1 -0
- package/.dist/script/output-command/gen-postman-env.js +55 -0
- package/.dist/script/output-command/gen-postman-env.js.map +1 -0
- package/.dist/tsconfig.tsbuildinfo +1 -0
- package/.prettierignore +10 -0
- package/.prettierrc.json +12 -0
- package/.turbo/turbo-build.log +5 -0
- package/.turbo/turbo-release.log +7 -0
- package/CHANGELOG.md +8 -0
- package/common/coordinator.ts +103 -0
- package/common/index.ts +5 -0
- package/common/modifier.ts +11 -0
- package/common/naming/get-deploy-config.ts +5 -0
- package/common/naming/get-domain.ts +14 -0
- package/common/naming/get-function-entry.ts +11 -0
- package/common/naming/get-logical-name.ts +3 -0
- package/common/naming/get-resource-name.ts +77 -0
- package/common/naming/get-service-name.ts +13 -0
- package/common/naming/index.ts +7 -0
- package/common/naming/string-parser.ts +17 -0
- package/common/service.ts +48 -0
- package/common/synth/account-mapping.ts +16 -0
- package/common/synth/assume-role.ts +39 -0
- package/common/synth/get-global-props.ts +46 -0
- package/common/synth/get-service-props.ts +16 -0
- package/common/synth/index.ts +7 -0
- package/common/synth/pre-script.ts +103 -0
- package/common/synth/props-types.ts +79 -0
- package/common/synth/synth-error.ts +13 -0
- package/index.ts +3 -0
- package/package.json +4 -5
- package/prefab/analytics/events/handlers/ingestion-transform/handler.ts +35 -0
- package/prefab/analytics/events/index.ts +192 -0
- package/prefab/analytics/index.ts +1 -0
- package/prefab/auth/cognito-pool/index.ts +263 -0
- package/prefab/auth/index.ts +1 -0
- package/prefab/cdn/cdn-api/index.ts +169 -0
- package/prefab/cdn/cdn-asset/index.ts +89 -0
- package/prefab/cdn/cdn-spa/index.ts +136 -0
- package/prefab/cdn/cdn-ssr/index.ts +288 -0
- package/prefab/cdn/index.ts +4 -0
- package/prefab/compute/fargate/cluster.ts +24 -0
- package/prefab/compute/fargate/index.ts +2 -0
- package/prefab/compute/fargate/service.ts +130 -0
- package/prefab/compute/function/api-function/api-aggregate.ts +73 -0
- package/prefab/compute/function/api-function/api-function.ts +63 -0
- package/prefab/compute/function/api-function/index.ts +2 -0
- package/prefab/compute/function/base-function/index.ts +102 -0
- package/prefab/compute/function/cognito-function/cognito-aggregate.ts +29 -0
- package/prefab/compute/function/cognito-function/cognito-function.ts +36 -0
- package/prefab/compute/function/cognito-function/index.ts +2 -0
- package/prefab/compute/function/cron-function/cron-aggregate.ts +28 -0
- package/prefab/compute/function/cron-function/cron-function.ts +32 -0
- package/prefab/compute/function/cron-function/index.ts +2 -0
- package/prefab/compute/function/event-function/EventAggregateParams.ts +9 -0
- package/prefab/compute/function/event-function/event-aggregate.ts +33 -0
- package/prefab/compute/function/event-function/event-function.ts +42 -0
- package/prefab/compute/function/event-function/index.ts +2 -0
- package/prefab/compute/function/index.ts +7 -0
- package/prefab/compute/function/queue-function/index.ts +67 -0
- package/prefab/compute/function/topic-function/index.ts +36 -0
- package/prefab/compute/index.ts +2 -0
- package/prefab/database/dynamo/index.ts +113 -0
- package/prefab/database/index.ts +3 -0
- package/prefab/database/rds/handlers/start-cluster/handler.ts +7 -0
- package/prefab/database/rds/handlers/stop-cluster/handler.ts +7 -0
- package/prefab/database/rds/index.ts +248 -0
- package/prefab/database/timestream/index.ts +2 -0
- package/prefab/database/timestream/timestream-database.ts +24 -0
- package/prefab/database/timestream/timestream-table.ts +76 -0
- package/prefab/gateway/alb-public/index.ts +124 -0
- package/prefab/gateway/api-gateway/api-http.ts +71 -0
- package/prefab/gateway/api-gateway/api-rest.ts +93 -0
- package/prefab/gateway/api-gateway/index.ts +2 -0
- package/prefab/gateway/app-sync/index.ts +117 -0
- package/prefab/gateway/app-sync/resolver-aggregate.ts +138 -0
- package/prefab/gateway/app-sync/types.ts +29 -0
- package/prefab/gateway/index.ts +3 -0
- package/prefab/index.ts +10 -0
- package/prefab/integration/event-bus/index.ts +52 -0
- package/prefab/integration/index.ts +3 -0
- package/prefab/integration/queue/index.ts +94 -0
- package/prefab/integration/topic/index.ts +57 -0
- package/prefab/networking/dns-domain-ref/index.ts +32 -0
- package/prefab/networking/dns-subdomain-certificate/index.ts +30 -0
- package/prefab/networking/dns-subdomain-hosted-zone/index.ts +30 -0
- package/prefab/networking/index.ts +5 -0
- package/prefab/networking/vpc/index.ts +39 -0
- package/prefab/networking/waf/index.ts +49 -0
- package/prefab/storage/bucket/asset-bucket.ts +24 -0
- package/prefab/storage/bucket/index.ts +2 -0
- package/prefab/storage/bucket/private-bucket.ts +74 -0
- package/prefab/storage/index.ts +1 -0
- package/prefab/utils/config/frontend-env-builder.ts +30 -0
- package/prefab/utils/config/index.ts +3 -0
- package/prefab/utils/config/parameter-secret.ts +52 -0
- package/prefab/utils/config/runtime-secret.ts +48 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.ts +1 -0
- package/prefab/utils/deploy-pipeline/catalog/integrations/slack.ts +23 -0
- package/prefab/utils/deploy-pipeline/entities/index.ts +23 -0
- package/prefab/utils/deploy-pipeline/handlers/send-to-slack/handler.ts +32 -0
- package/prefab/utils/deploy-pipeline/index.ts +172 -0
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.ts +31 -0
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.ts +38 -0
- package/prefab/utils/deploy-pipeline/platform/send-to-slack.ts +16 -0
- package/prefab/utils/duration.ts +1 -0
- package/prefab/utils/index.ts +4 -0
- package/prefab/utils/ses/index.ts +134 -0
- package/readme.md +78 -0
- package/script/config-command/bootstrap.ts +108 -0
- package/script/config-command/deploy-spa.ts +126 -0
- package/script/config-command/deploy.ts +50 -0
- package/script/config-command/destroy.ts +49 -0
- package/script/config-command/env-ssr.ts +85 -0
- package/script/config-command/invalidation-ssr.ts +88 -0
- package/script/config-command/rds-migration.ts +177 -0
- package/script/config-command/rds-sync.ts +108 -0
- package/script/config-command/ssm-connect.ts +129 -0
- package/script/config-command/start-spa.ts +93 -0
- package/script/config-command/start-ssr.ts +91 -0
- package/script/config-command/synth.ts +50 -0
- package/script/index.ts +86 -0
- package/script/output-command/create-user.ts +89 -0
- package/script/output-command/gen-postman-env.ts +75 -0
- package/tsconfig.json +26 -0
- package/common/coordinator.d.ts +0 -28
- package/common/index.d.ts +0 -6
- package/common/modifier.d.ts +0 -5
- package/common/naming/get-deploy-config.d.ts +0 -9
- package/common/naming/get-domain.d.ts +0 -9
- package/common/naming/get-function-entry.d.ts +0 -4
- package/common/naming/get-logical-name.d.ts +0 -2
- package/common/naming/get-resource-name.d.ts +0 -47
- package/common/naming/get-service-name.d.ts +0 -10
- package/common/naming/index.d.ts +0 -8
- package/common/naming/string-parser.d.ts +0 -4
- package/common/service.d.ts +0 -29
- package/common/synth/account-mapping.d.ts +0 -2
- package/common/synth/assume-role.d.ts +0 -18
- package/common/synth/get-global-props.d.ts +0 -16
- package/common/synth/get-service-props.d.ts +0 -11
- package/common/synth/index.d.ts +0 -8
- package/common/synth/pre-script.d.ts +0 -32
- package/common/synth/props-types.d.ts +0 -60
- package/common/synth/synth-error.d.ts +0 -8
- package/index.d.ts +0 -4
- package/prefab/analytics/events/handlers/ingestion-transform/handler.d.ts +0 -4
- package/prefab/analytics/events/index.d.ts +0 -31
- package/prefab/analytics/events/index.d.ts.map +0 -1
- package/prefab/analytics/events/index.js +0 -163
- package/prefab/analytics/events/index.js.map +0 -1
- package/prefab/analytics/index.d.ts +0 -2
- package/prefab/auth/cognito-pool/index.d.ts +0 -65
- package/prefab/auth/cognito-pool/index.d.ts.map +0 -1
- package/prefab/auth/cognito-pool/index.js.map +0 -1
- package/prefab/auth/index.d.ts +0 -2
- package/prefab/cdn/cdn-api/index.d.ts +0 -38
- package/prefab/cdn/cdn-api/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-api/index.js +0 -153
- package/prefab/cdn/cdn-api/index.js.map +0 -1
- package/prefab/cdn/cdn-asset/index.d.ts +0 -27
- package/prefab/cdn/cdn-asset/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-asset/index.js +0 -96
- package/prefab/cdn/cdn-asset/index.js.map +0 -1
- package/prefab/cdn/cdn-spa/index.d.ts +0 -27
- package/prefab/cdn/cdn-spa/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-spa/index.js +0 -138
- package/prefab/cdn/cdn-spa/index.js.map +0 -1
- package/prefab/cdn/cdn-ssr/index.d.ts +0 -36
- package/prefab/cdn/cdn-ssr/index.d.ts.map +0 -1
- package/prefab/cdn/cdn-ssr/index.js +0 -271
- package/prefab/cdn/cdn-ssr/index.js.map +0 -1
- package/prefab/cdn/index.d.ts +0 -5
- package/prefab/compute/fargate/cluster.d.ts +0 -16
- package/prefab/compute/fargate/cluster.d.ts.map +0 -1
- package/prefab/compute/fargate/cluster.js.map +0 -1
- package/prefab/compute/fargate/index.d.ts +0 -3
- package/prefab/compute/fargate/service.d.ts +0 -49
- package/prefab/compute/fargate/service.d.ts.map +0 -1
- package/prefab/compute/fargate/service.js.map +0 -1
- package/prefab/compute/function/api-function/api-aggregate.d.ts +0 -32
- package/prefab/compute/function/api-function/api-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/api-function/api-aggregate.js +0 -54
- package/prefab/compute/function/api-function/api-aggregate.js.map +0 -1
- package/prefab/compute/function/api-function/api-function.d.ts +0 -22
- package/prefab/compute/function/api-function/api-function.d.ts.map +0 -1
- package/prefab/compute/function/api-function/api-function.js +0 -45
- package/prefab/compute/function/api-function/api-function.js.map +0 -1
- package/prefab/compute/function/api-function/index.d.ts +0 -3
- package/prefab/compute/function/base-function/index.d.ts +0 -33
- package/prefab/compute/function/base-function/index.d.ts.map +0 -1
- package/prefab/compute/function/base-function/index.js +0 -70
- package/prefab/compute/function/base-function/index.js.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts +0 -18
- package/prefab/compute/function/cognito-function/cognito-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-aggregate.js.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-function.d.ts +0 -19
- package/prefab/compute/function/cognito-function/cognito-function.d.ts.map +0 -1
- package/prefab/compute/function/cognito-function/cognito-function.js.map +0 -1
- package/prefab/compute/function/cognito-function/index.d.ts +0 -3
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts +0 -17
- package/prefab/compute/function/cron-function/cron-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/cron-function/cron-aggregate.js.map +0 -1
- package/prefab/compute/function/cron-function/cron-function.d.ts +0 -17
- package/prefab/compute/function/cron-function/cron-function.d.ts.map +0 -1
- package/prefab/compute/function/cron-function/cron-function.js +0 -24
- package/prefab/compute/function/cron-function/cron-function.js.map +0 -1
- package/prefab/compute/function/cron-function/index.d.ts +0 -3
- package/prefab/compute/function/event-function/event-aggregate.d.ts +0 -20
- package/prefab/compute/function/event-function/event-aggregate.d.ts.map +0 -1
- package/prefab/compute/function/event-function/event-aggregate.js.map +0 -1
- package/prefab/compute/function/event-function/event-function.d.ts +0 -14
- package/prefab/compute/function/event-function/event-function.d.ts.map +0 -1
- package/prefab/compute/function/event-function/event-function.js.map +0 -1
- package/prefab/compute/function/event-function/index.d.ts +0 -3
- package/prefab/compute/function/index.d.ts +0 -8
- package/prefab/compute/function/queue-function/index.d.ts +0 -25
- package/prefab/compute/function/queue-function/index.d.ts.map +0 -1
- package/prefab/compute/function/queue-function/index.js +0 -46
- package/prefab/compute/function/queue-function/index.js.map +0 -1
- package/prefab/compute/function/topic-function/index.d.ts +0 -23
- package/prefab/compute/function/topic-function/index.d.ts.map +0 -1
- package/prefab/compute/function/topic-function/index.js +0 -23
- package/prefab/compute/function/topic-function/index.js.map +0 -1
- package/prefab/compute/index.d.ts +0 -3
- package/prefab/database/dynamo/index.d.ts +0 -14
- package/prefab/database/dynamo/index.d.ts.map +0 -1
- package/prefab/database/dynamo/index.js.map +0 -1
- package/prefab/database/index.d.ts +0 -4
- package/prefab/database/rds/handlers/start-cluster/handler.d.ts +0 -2
- package/prefab/database/rds/handlers/stop-cluster/handler.d.ts +0 -2
- package/prefab/database/rds/index.d.ts +0 -54
- package/prefab/database/rds/index.d.ts.map +0 -1
- package/prefab/database/rds/index.js +0 -223
- package/prefab/database/rds/index.js.map +0 -1
- package/prefab/database/timestream/index.d.ts +0 -3
- package/prefab/database/timestream/timestream-database.d.ts +0 -13
- package/prefab/database/timestream/timestream-database.d.ts.map +0 -1
- package/prefab/database/timestream/timestream-database.js.map +0 -1
- package/prefab/database/timestream/timestream-table.d.ts +0 -23
- package/prefab/database/timestream/timestream-table.d.ts.map +0 -1
- package/prefab/database/timestream/timestream-table.js.map +0 -1
- package/prefab/gateway/alb-public/index.d.ts +0 -44
- package/prefab/gateway/alb-public/index.d.ts.map +0 -1
- package/prefab/gateway/alb-public/index.js.map +0 -1
- package/prefab/gateway/api-gateway/api-http.d.ts +0 -27
- package/prefab/gateway/api-gateway/api-http.d.ts.map +0 -1
- package/prefab/gateway/api-gateway/api-http.js.map +0 -1
- package/prefab/gateway/api-gateway/api-rest.d.ts +0 -26
- package/prefab/gateway/api-gateway/api-rest.d.ts.map +0 -1
- package/prefab/gateway/api-gateway/api-rest.js.map +0 -1
- package/prefab/gateway/api-gateway/index.d.ts +0 -3
- package/prefab/gateway/app-sync/index.d.ts +0 -36
- package/prefab/gateway/app-sync/index.d.ts.map +0 -1
- package/prefab/gateway/app-sync/index.js.map +0 -1
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts +0 -33
- package/prefab/gateway/app-sync/resolver-aggregate.d.ts.map +0 -1
- package/prefab/gateway/app-sync/resolver-aggregate.js.map +0 -1
- package/prefab/gateway/app-sync/types.d.ts +0 -29
- package/prefab/gateway/app-sync/types.d.ts.map +0 -1
- package/prefab/gateway/index.d.ts +0 -4
- package/prefab/index.d.ts +0 -11
- package/prefab/integration/event-bus/index.d.ts +0 -20
- package/prefab/integration/event-bus/index.d.ts.map +0 -1
- package/prefab/integration/event-bus/index.js.map +0 -1
- package/prefab/integration/index.d.ts +0 -4
- package/prefab/integration/queue/index.d.ts +0 -29
- package/prefab/integration/queue/index.d.ts.map +0 -1
- package/prefab/integration/queue/index.js.map +0 -1
- package/prefab/integration/topic/index.d.ts +0 -21
- package/prefab/integration/topic/index.d.ts.map +0 -1
- package/prefab/integration/topic/index.js.map +0 -1
- package/prefab/networking/dns-domain-ref/index.d.ts +0 -16
- package/prefab/networking/dns-domain-ref/index.d.ts.map +0 -1
- package/prefab/networking/dns-domain-ref/index.js.map +0 -1
- package/prefab/networking/dns-subdomain-certificate/index.d.ts +0 -13
- package/prefab/networking/dns-subdomain-certificate/index.d.ts.map +0 -1
- package/prefab/networking/dns-subdomain-certificate/index.js.map +0 -1
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts +0 -12
- package/prefab/networking/dns-subdomain-hosted-zone/index.d.ts.map +0 -1
- package/prefab/networking/dns-subdomain-hosted-zone/index.js.map +0 -1
- package/prefab/networking/index.d.ts +0 -6
- package/prefab/networking/vpc/index.d.ts +0 -20
- package/prefab/networking/vpc/index.d.ts.map +0 -1
- package/prefab/networking/vpc/index.js.map +0 -1
- package/prefab/networking/waf/index.d.ts +0 -14
- package/prefab/networking/waf/index.d.ts.map +0 -1
- package/prefab/networking/waf/index.js.map +0 -1
- package/prefab/storage/bucket/asset-bucket.d.ts +0 -12
- package/prefab/storage/bucket/asset-bucket.d.ts.map +0 -1
- package/prefab/storage/bucket/index.d.ts +0 -3
- package/prefab/storage/bucket/private-bucket.d.ts +0 -26
- package/prefab/storage/bucket/private-bucket.d.ts.map +0 -1
- package/prefab/storage/bucket/private-bucket.js.map +0 -1
- package/prefab/storage/index.d.ts +0 -2
- package/prefab/utils/config/frontend-env-builder.d.ts +0 -14
- package/prefab/utils/config/frontend-env-builder.d.ts.map +0 -1
- package/prefab/utils/config/frontend-env-builder.js.map +0 -1
- package/prefab/utils/config/index.d.ts +0 -4
- package/prefab/utils/config/parameter-secret.d.ts +0 -21
- package/prefab/utils/config/parameter-secret.d.ts.map +0 -1
- package/prefab/utils/config/parameter-secret.js.map +0 -1
- package/prefab/utils/config/runtime-secret.d.ts.map +0 -1
- package/prefab/utils/config/runtime-secret.js.map +0 -1
- package/prefab/utils/deploy-pipeline/catalog/integrations/index.d.ts +0 -2
- package/prefab/utils/deploy-pipeline/entities/index.d.ts +0 -29
- package/prefab/utils/deploy-pipeline/index.d.ts +0 -15
- package/prefab/utils/deploy-pipeline/index.d.ts.map +0 -1
- package/prefab/utils/deploy-pipeline/index.js.map +0 -1
- package/prefab/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts +0 -6
- package/prefab/utils/deploy-pipeline/platform/get-slack-payload.d.ts +0 -4
- package/prefab/utils/duration.d.ts +0 -2
- package/prefab/utils/index.d.ts +0 -5
- package/prefab/utils/ses/index.d.ts +0 -22
- package/prefab/utils/ses/index.d.ts.map +0 -1
- package/prefab/utils/ses/index.js.map +0 -1
- package/script/config-command/bootstrap.d.ts +0 -4
- package/script/config-command/bootstrap.js +0 -66
- package/script/config-command/bootstrap.js.map +0 -1
- package/script/config-command/deploy-spa.d.ts +0 -4
- package/script/config-command/deploy-spa.d.ts.map +0 -1
- package/script/config-command/deploy-spa.js +0 -84
- package/script/config-command/deploy-spa.js.map +0 -1
- package/script/config-command/deploy.d.ts +0 -4
- package/script/config-command/deploy.js +0 -26
- package/script/config-command/deploy.js.map +0 -1
- package/script/config-command/destroy.d.ts +0 -4
- package/script/config-command/destroy.js +0 -26
- package/script/config-command/destroy.js.map +0 -1
- package/script/config-command/env-ssr.d.ts +0 -4
- package/script/config-command/env-ssr.js +0 -51
- package/script/config-command/env-ssr.js.map +0 -1
- package/script/config-command/invalidation-ssr.d.ts +0 -4
- package/script/config-command/invalidation-ssr.js +0 -55
- package/script/config-command/invalidation-ssr.js.map +0 -1
- package/script/config-command/rds-migration.d.ts +0 -7
- package/script/config-command/rds-migration.js.map +0 -1
- package/script/config-command/rds-sync.d.ts +0 -4
- package/script/config-command/rds-sync.js.map +0 -1
- package/script/config-command/ssm-connect.d.ts +0 -4
- package/script/config-command/ssm-connect.js.map +0 -1
- package/script/config-command/start-spa.d.ts +0 -4
- package/script/config-command/start-spa.js +0 -55
- package/script/config-command/start-spa.js.map +0 -1
- package/script/config-command/start-ssr.d.ts +0 -4
- package/script/config-command/start-ssr.js +0 -55
- package/script/config-command/start-ssr.js.map +0 -1
- package/script/config-command/synth.d.ts +0 -4
- package/script/config-command/synth.js +0 -26
- package/script/config-command/synth.js.map +0 -1
- package/script/index.d.ts +0 -25
- package/script/index.d.ts.map +0 -1
- package/script/output-command/create-user.d.ts +0 -9
- package/script/output-command/create-user.d.ts.map +0 -1
- package/script/output-command/create-user.js.map +0 -1
- package/script/output-command/gen-postman-env.d.ts +0 -28
- package/script/output-command/gen-postman-env.d.ts.map +0 -1
- package/script/output-command/gen-postman-env.js +0 -56
- package/script/output-command/gen-postman-env.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
- /package/{common → .dist/common}/coordinator.d.ts.map +0 -0
- /package/{common → .dist/common}/coordinator.js +0 -0
- /package/{common → .dist/common}/coordinator.js.map +0 -0
- /package/{common → .dist/common}/index.d.ts.map +0 -0
- /package/{common → .dist/common}/index.js +0 -0
- /package/{common → .dist/common}/index.js.map +0 -0
- /package/{common → .dist/common}/modifier.d.ts.map +0 -0
- /package/{common → .dist/common}/modifier.js +0 -0
- /package/{common → .dist/common}/modifier.js.map +0 -0
- /package/{common → .dist/common}/naming/get-deploy-config.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-deploy-config.js +0 -0
- /package/{common → .dist/common}/naming/get-deploy-config.js.map +0 -0
- /package/{common → .dist/common}/naming/get-domain.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-domain.js +0 -0
- /package/{common → .dist/common}/naming/get-domain.js.map +0 -0
- /package/{common → .dist/common}/naming/get-function-entry.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-function-entry.js +0 -0
- /package/{common → .dist/common}/naming/get-function-entry.js.map +0 -0
- /package/{common → .dist/common}/naming/get-logical-name.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-logical-name.js +0 -0
- /package/{common → .dist/common}/naming/get-logical-name.js.map +0 -0
- /package/{common → .dist/common}/naming/get-resource-name.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-resource-name.js +0 -0
- /package/{common → .dist/common}/naming/get-resource-name.js.map +0 -0
- /package/{common → .dist/common}/naming/get-service-name.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/get-service-name.js +0 -0
- /package/{common → .dist/common}/naming/get-service-name.js.map +0 -0
- /package/{common → .dist/common}/naming/index.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/index.js +0 -0
- /package/{common → .dist/common}/naming/index.js.map +0 -0
- /package/{common → .dist/common}/naming/string-parser.d.ts.map +0 -0
- /package/{common → .dist/common}/naming/string-parser.js +0 -0
- /package/{common → .dist/common}/naming/string-parser.js.map +0 -0
- /package/{common → .dist/common}/service.d.ts.map +0 -0
- /package/{common → .dist/common}/service.js +0 -0
- /package/{common → .dist/common}/service.js.map +0 -0
- /package/{common → .dist/common}/synth/account-mapping.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/account-mapping.js +0 -0
- /package/{common → .dist/common}/synth/account-mapping.js.map +0 -0
- /package/{common → .dist/common}/synth/assume-role.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/assume-role.js +0 -0
- /package/{common → .dist/common}/synth/assume-role.js.map +0 -0
- /package/{common → .dist/common}/synth/get-global-props.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/get-global-props.js +0 -0
- /package/{common → .dist/common}/synth/get-global-props.js.map +0 -0
- /package/{common → .dist/common}/synth/get-service-props.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/get-service-props.js +0 -0
- /package/{common → .dist/common}/synth/get-service-props.js.map +0 -0
- /package/{common → .dist/common}/synth/index.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/index.js +0 -0
- /package/{common → .dist/common}/synth/index.js.map +0 -0
- /package/{common → .dist/common}/synth/pre-script.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/pre-script.js +0 -0
- /package/{common → .dist/common}/synth/pre-script.js.map +0 -0
- /package/{common → .dist/common}/synth/props-types.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/props-types.js +0 -0
- /package/{common → .dist/common}/synth/props-types.js.map +0 -0
- /package/{common → .dist/common}/synth/synth-error.d.ts.map +0 -0
- /package/{common → .dist/common}/synth/synth-error.js +0 -0
- /package/{common → .dist/common}/synth/synth-error.js.map +0 -0
- /package/{index.d.ts.map → .dist/index.d.ts.map} +0 -0
- /package/{index.js → .dist/index.js} +0 -0
- /package/{index.js.map → .dist/index.js.map} +0 -0
- /package/{prefab → .dist/prefab}/analytics/events/handlers/ingestion-transform/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/analytics/events/handlers/ingestion-transform/handler.js +0 -0
- /package/{prefab → .dist/prefab}/analytics/events/handlers/ingestion-transform/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/analytics/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/analytics/index.js +0 -0
- /package/{prefab → .dist/prefab}/analytics/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/auth/cognito-pool/index.js +0 -0
- /package/{prefab → .dist/prefab}/auth/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/auth/index.js +0 -0
- /package/{prefab → .dist/prefab}/auth/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/cdn/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/cdn/index.js +0 -0
- /package/{prefab → .dist/prefab}/cdn/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/cluster.js +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/fargate/service.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/api-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/api-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/api-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/cognito-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/cognito-function.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cognito-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/cron-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/cron-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/event-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/event-function.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/event-function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/function/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/function/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/compute/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/compute/index.js +0 -0
- /package/{prefab → .dist/prefab}/compute/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/dynamo/index.js +0 -0
- /package/{prefab → .dist/prefab}/database/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/index.js +0 -0
- /package/{prefab → .dist/prefab}/database/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/start-cluster/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/start-cluster/handler.js +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/start-cluster/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/stop-cluster/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/stop-cluster/handler.js +0 -0
- /package/{prefab → .dist/prefab}/database/rds/handlers/stop-cluster/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/index.js +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/timestream-database.js +0 -0
- /package/{prefab → .dist/prefab}/database/timestream/timestream-table.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/alb-public/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/api-http.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/api-rest.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/api-gateway/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/resolver-aggregate.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/types.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/app-sync/types.js.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/gateway/index.js +0 -0
- /package/{prefab → .dist/prefab}/gateway/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/index.js +0 -0
- /package/{prefab → .dist/prefab}/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/integration/event-bus/index.js +0 -0
- /package/{prefab → .dist/prefab}/integration/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/integration/index.js +0 -0
- /package/{prefab → .dist/prefab}/integration/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/integration/queue/index.js +0 -0
- /package/{prefab → .dist/prefab}/integration/topic/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/dns-domain-ref/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/dns-subdomain-certificate/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/dns-subdomain-hosted-zone/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/networking/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/networking/vpc/index.js +0 -0
- /package/{prefab → .dist/prefab}/networking/waf/index.js +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/asset-bucket.js +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/asset-bucket.js.map +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/index.js +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/storage/bucket/private-bucket.js +0 -0
- /package/{prefab → .dist/prefab}/storage/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/storage/index.js +0 -0
- /package/{prefab → .dist/prefab}/storage/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/config/frontend-env-builder.js +0 -0
- /package/{prefab → .dist/prefab}/utils/config/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/config/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/config/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/config/parameter-secret.js +0 -0
- /package/{prefab → .dist/prefab}/utils/config/runtime-secret.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/config/runtime-secret.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/catalog/integrations/slack.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/entities/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/entities/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/entities/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/handlers/send-to-slack/handler.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-pipeline-detail.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-pipeline-detail.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-pipeline-detail.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-slack-payload.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-slack-payload.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/get-slack-payload.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.d.ts +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.js +0 -0
- /package/{prefab → .dist/prefab}/utils/deploy-pipeline/platform/send-to-slack.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/duration.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/duration.js +0 -0
- /package/{prefab → .dist/prefab}/utils/duration.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/index.d.ts.map +0 -0
- /package/{prefab → .dist/prefab}/utils/index.js +0 -0
- /package/{prefab → .dist/prefab}/utils/index.js.map +0 -0
- /package/{prefab → .dist/prefab}/utils/ses/index.js +0 -0
- /package/{script → .dist/script}/config-command/bootstrap.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/deploy.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/destroy.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/env-ssr.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/invalidation-ssr.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/rds-migration.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/rds-migration.js +0 -0
- /package/{script → .dist/script}/config-command/rds-sync.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/rds-sync.js +0 -0
- /package/{script → .dist/script}/config-command/ssm-connect.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/ssm-connect.js +0 -0
- /package/{script → .dist/script}/config-command/start-spa.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/start-ssr.d.ts.map +0 -0
- /package/{script → .dist/script}/config-command/synth.d.ts.map +0 -0
- /package/{script → .dist/script}/index.js +0 -0
- /package/{script → .dist/script}/index.js.map +0 -0
- /package/{script → .dist/script}/output-command/create-user.js +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { GetSecretValueCommand, SecretsManagerClient } from '@aws-sdk/client-secrets-manager';
|
|
3
|
+
import { GetParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
|
|
4
|
+
|
|
5
|
+
import { Secret } from '@takumi-stack/sdk';
|
|
6
|
+
import { SpawnOptions, ExecSyncOptions, spawn, execSync } from 'child_process';
|
|
7
|
+
import { log } from 'console';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
BaseEnvName,
|
|
11
|
+
BaseGlobalEnv,
|
|
12
|
+
BaseDeployTargetName,
|
|
13
|
+
BaseGlobalConstConfig,
|
|
14
|
+
BaseGlobalEnvConfig,
|
|
15
|
+
BaseGlobalDeployTargetConfig,
|
|
16
|
+
preScript,
|
|
17
|
+
assumeRole,
|
|
18
|
+
getResourceName,
|
|
19
|
+
} from '../../common';
|
|
20
|
+
|
|
21
|
+
import { ConfigCommand } from '..';
|
|
22
|
+
|
|
23
|
+
export const ssmConnect: ConfigCommand = async <
|
|
24
|
+
GlobalConst,
|
|
25
|
+
AllowedEnv extends BaseEnvName = BaseEnvName,
|
|
26
|
+
GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv,
|
|
27
|
+
DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName,
|
|
28
|
+
>(
|
|
29
|
+
globalConstConfig: BaseGlobalConstConfig<GlobalConst>,
|
|
30
|
+
globalEnvConfig: BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>,
|
|
31
|
+
globalDeployTargetConfig: BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>,
|
|
32
|
+
args: string[]
|
|
33
|
+
): Promise<void> => {
|
|
34
|
+
try {
|
|
35
|
+
log('<< Open session SSM Started >>');
|
|
36
|
+
|
|
37
|
+
const commandArg = args[5] || 'sync';
|
|
38
|
+
|
|
39
|
+
if (!['sync', 'async'].includes(commandArg)) throw new Error('Action not allowed, you can use: sync or async');
|
|
40
|
+
|
|
41
|
+
const { envName, ephemeralEnvName, servicesNamesInput, roleName, accountMap, isSingleProjectAccount } = await preScript(
|
|
42
|
+
globalConstConfig,
|
|
43
|
+
globalEnvConfig,
|
|
44
|
+
globalDeployTargetConfig,
|
|
45
|
+
args
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
log('>> STEP: (1/2) => LOADING CONFIGS');
|
|
49
|
+
const projectName = globalConstConfig.projectName;
|
|
50
|
+
|
|
51
|
+
const account =
|
|
52
|
+
accountMap
|
|
53
|
+
.split(' ')
|
|
54
|
+
.find((a) => a.includes('services'))
|
|
55
|
+
?.split('=')[1] || '';
|
|
56
|
+
const region = globalDeployTargetConfig[envName as AllowedEnv]['services' as DeployTargetName]['region'];
|
|
57
|
+
|
|
58
|
+
const role = await assumeRole({ account, region }, roleName);
|
|
59
|
+
|
|
60
|
+
const getParamName = (name: string) =>
|
|
61
|
+
getResourceName(name, {
|
|
62
|
+
isSingleProjectAccount,
|
|
63
|
+
projectName,
|
|
64
|
+
envName,
|
|
65
|
+
ephemeralEnvName,
|
|
66
|
+
serviceName: servicesNamesInput[0]!,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const ssm = new SSMClient(role);
|
|
70
|
+
const configs = await ssm.send(new GetParameterCommand({ Name: getParamName('config') }));
|
|
71
|
+
|
|
72
|
+
if (!configs.Parameter?.Value) throw new Error('Invalid Config');
|
|
73
|
+
const { clusterSecretArn, ec2InstanceId, publicAccess } = JSON.parse(configs.Parameter?.Value);
|
|
74
|
+
|
|
75
|
+
if (publicAccess) throw new Error('Action not allowed, this RDS has public access');
|
|
76
|
+
|
|
77
|
+
const sm: SecretsManagerClient = new SecretsManagerClient(role);
|
|
78
|
+
const response = await sm.send(
|
|
79
|
+
new GetSecretValueCommand({
|
|
80
|
+
SecretId: clusterSecretArn,
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
const DbSecrets: Secret['payload'] = JSON.parse(response.SecretString!);
|
|
85
|
+
const { host, port } = DbSecrets;
|
|
86
|
+
const localPort = 1432;
|
|
87
|
+
|
|
88
|
+
log('>> STEP: (2/2) => STARTING SESSION');
|
|
89
|
+
|
|
90
|
+
const command = `aws ssm start-session --region ${region} --target ${ec2InstanceId} --document-name AWS-StartPortForwardingSessionToRemoteHost --parameters host="${host}",portNumber="${port}",localPortNumber="${localPort}"`;
|
|
91
|
+
|
|
92
|
+
const parts = command.split(' ');
|
|
93
|
+
const cmdAsync = parts[0];
|
|
94
|
+
const argsAsync = parts.splice(1);
|
|
95
|
+
|
|
96
|
+
const spawnOptions: SpawnOptions = {
|
|
97
|
+
stdio: 'ignore',
|
|
98
|
+
detached: true,
|
|
99
|
+
cwd: `${process.cwd()}`,
|
|
100
|
+
env: {
|
|
101
|
+
...process.env,
|
|
102
|
+
AWS_ACCESS_KEY_ID: role.credentials.accessKeyId,
|
|
103
|
+
AWS_SECRET_ACCESS_KEY: role.credentials.secretAccessKey,
|
|
104
|
+
AWS_SESSION_TOKEN: role.credentials.sessionToken,
|
|
105
|
+
AWS_REGION: role.region,
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const execOptions: ExecSyncOptions = {
|
|
110
|
+
stdio: 'inherit',
|
|
111
|
+
cwd: `${process.cwd()}`,
|
|
112
|
+
env: {
|
|
113
|
+
...process.env,
|
|
114
|
+
AWS_ACCESS_KEY_ID: role.credentials.accessKeyId,
|
|
115
|
+
AWS_SECRET_ACCESS_KEY: role.credentials.secretAccessKey,
|
|
116
|
+
AWS_SESSION_TOKEN: role.credentials.sessionToken,
|
|
117
|
+
AWS_REGION: role.region,
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
if (commandArg == 'async') spawn(cmdAsync!, argsAsync, spawnOptions).unref();
|
|
122
|
+
else execSync(command, execOptions);
|
|
123
|
+
|
|
124
|
+
console.log('SSM Connected! ✅');
|
|
125
|
+
} catch (error: any) {
|
|
126
|
+
console.log(error);
|
|
127
|
+
process.exit(1);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { GetParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
|
|
3
|
+
|
|
4
|
+
import { execSync } from 'child_process';
|
|
5
|
+
import { writeFileSync } from 'fs';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
BaseEnvName,
|
|
9
|
+
BaseGlobalEnv,
|
|
10
|
+
BaseDeployTargetName,
|
|
11
|
+
BaseGlobalConstConfig,
|
|
12
|
+
BaseGlobalEnvConfig,
|
|
13
|
+
BaseGlobalDeployTargetConfig,
|
|
14
|
+
preScript,
|
|
15
|
+
assumeRole,
|
|
16
|
+
getResourceName,
|
|
17
|
+
} from '../../common';
|
|
18
|
+
|
|
19
|
+
import { ConfigCommand } from '..';
|
|
20
|
+
|
|
21
|
+
export const startSPA: ConfigCommand = async <
|
|
22
|
+
GlobalConst,
|
|
23
|
+
AllowedEnv extends BaseEnvName = BaseEnvName,
|
|
24
|
+
GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv,
|
|
25
|
+
DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName,
|
|
26
|
+
>(
|
|
27
|
+
globalConstConfig: BaseGlobalConstConfig<GlobalConst>,
|
|
28
|
+
globalEnvConfig: BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>,
|
|
29
|
+
globalDeployTargetConfig: BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>,
|
|
30
|
+
args: string[]
|
|
31
|
+
): Promise<void> => {
|
|
32
|
+
try {
|
|
33
|
+
console.log('<< Start SPA Script >>');
|
|
34
|
+
|
|
35
|
+
const yarnCommand = args[5] || 'start';
|
|
36
|
+
|
|
37
|
+
const { envName, ephemeralEnvName, servicesNamesInput, envNameInput, roleName, accountMap, isSingleProjectAccount } = await preScript(
|
|
38
|
+
globalConstConfig,
|
|
39
|
+
globalEnvConfig,
|
|
40
|
+
globalDeployTargetConfig,
|
|
41
|
+
args
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
console.log('>> STEP: (1/3) => LOADING CONFIGS');
|
|
45
|
+
const projectName = globalConstConfig.projectName;
|
|
46
|
+
|
|
47
|
+
const account =
|
|
48
|
+
accountMap
|
|
49
|
+
.split(' ')
|
|
50
|
+
.find((a) => a.includes('services'))
|
|
51
|
+
?.split('=')[1] || '';
|
|
52
|
+
|
|
53
|
+
const region = globalDeployTargetConfig[envName as AllowedEnv]['services' as DeployTargetName]['region'];
|
|
54
|
+
|
|
55
|
+
const role = await assumeRole({ account, region }, roleName);
|
|
56
|
+
|
|
57
|
+
console.log('>> STEP: (2/3) => RENDERING ENV');
|
|
58
|
+
const getParamName = (name: string) =>
|
|
59
|
+
getResourceName(name, {
|
|
60
|
+
projectName,
|
|
61
|
+
envName,
|
|
62
|
+
ephemeralEnvName,
|
|
63
|
+
isSingleProjectAccount,
|
|
64
|
+
serviceName: servicesNamesInput[0]!,
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
const ssm = new SSMClient(role);
|
|
68
|
+
|
|
69
|
+
const deployConfig = await ssm.send(new GetParameterCommand({ Name: getParamName('config') }));
|
|
70
|
+
|
|
71
|
+
if (!deployConfig.Parameter?.Value) throw new Error('Invalid Config');
|
|
72
|
+
const { baseDir } = JSON.parse(deployConfig.Parameter?.Value);
|
|
73
|
+
|
|
74
|
+
const calculatedEnv = await ssm.send(new GetParameterCommand({ Name: getParamName('env-calculated') }));
|
|
75
|
+
if (!calculatedEnv.Parameter?.Value) throw new Error('Invalid CalculatedEnv');
|
|
76
|
+
|
|
77
|
+
const manualEnv = await ssm.send(new GetParameterCommand({ Name: getParamName('env-manual') }));
|
|
78
|
+
if (!manualEnv.Parameter?.Value) throw new Error('Invalid CalculatedEnv');
|
|
79
|
+
|
|
80
|
+
const envFile = `${calculatedEnv.Parameter?.Value}\n${manualEnv.Parameter?.Value}`;
|
|
81
|
+
|
|
82
|
+
writeFileSync(`${process.cwd()}/${baseDir}/.env.${envNameInput}`, envFile);
|
|
83
|
+
|
|
84
|
+
console.log('>> STEP: (3/3) => STARTING');
|
|
85
|
+
|
|
86
|
+
const command = `yarn && yarn ${yarnCommand} ${envNameInput}`;
|
|
87
|
+
|
|
88
|
+
execSync(command, { stdio: 'inherit', cwd: `${process.cwd()}/${baseDir}` });
|
|
89
|
+
} catch (error: any) {
|
|
90
|
+
console.log(error);
|
|
91
|
+
process.exit(1);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { GetParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
|
|
3
|
+
|
|
4
|
+
import { execSync } from 'child_process';
|
|
5
|
+
import { writeFileSync } from 'fs';
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
BaseEnvName,
|
|
9
|
+
BaseGlobalEnv,
|
|
10
|
+
BaseDeployTargetName,
|
|
11
|
+
BaseGlobalConstConfig,
|
|
12
|
+
BaseGlobalEnvConfig,
|
|
13
|
+
BaseGlobalDeployTargetConfig,
|
|
14
|
+
preScript,
|
|
15
|
+
assumeRole,
|
|
16
|
+
getResourceName,
|
|
17
|
+
} from '../../common';
|
|
18
|
+
|
|
19
|
+
import { ConfigCommand } from '..';
|
|
20
|
+
|
|
21
|
+
export const startSSR: ConfigCommand = async <
|
|
22
|
+
GlobalConst,
|
|
23
|
+
AllowedEnv extends BaseEnvName = BaseEnvName,
|
|
24
|
+
GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv,
|
|
25
|
+
DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName,
|
|
26
|
+
>(
|
|
27
|
+
globalConstConfig: BaseGlobalConstConfig<GlobalConst>,
|
|
28
|
+
globalEnvConfig: BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>,
|
|
29
|
+
globalDeployTargetConfig: BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>,
|
|
30
|
+
args: string[]
|
|
31
|
+
): Promise<void> => {
|
|
32
|
+
try {
|
|
33
|
+
console.log('<< Start SSR Script >>');
|
|
34
|
+
|
|
35
|
+
const yarnCommand = args[5] || 'start';
|
|
36
|
+
|
|
37
|
+
const { envName, ephemeralEnvName, servicesNamesInput, envNameInput, roleName, accountMap, isSingleProjectAccount } = await preScript(
|
|
38
|
+
globalConstConfig,
|
|
39
|
+
globalEnvConfig,
|
|
40
|
+
globalDeployTargetConfig,
|
|
41
|
+
args
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
console.log('>> STEP: (1/3) => LOADING CONFIGS');
|
|
45
|
+
const projectName = globalConstConfig.projectName;
|
|
46
|
+
|
|
47
|
+
const account =
|
|
48
|
+
accountMap
|
|
49
|
+
.split(' ')
|
|
50
|
+
.find((a) => a.includes('services'))
|
|
51
|
+
?.split('=')[1] || '';
|
|
52
|
+
|
|
53
|
+
const region = globalDeployTargetConfig[envName as AllowedEnv]['services' as DeployTargetName]['region'];
|
|
54
|
+
|
|
55
|
+
const role = await assumeRole({ account, region }, roleName);
|
|
56
|
+
|
|
57
|
+
console.log('>> STEP: (2/3) => RENDERING ENV');
|
|
58
|
+
|
|
59
|
+
const getParamName = (name: string) =>
|
|
60
|
+
getResourceName(name, {
|
|
61
|
+
isSingleProjectAccount,
|
|
62
|
+
projectName,
|
|
63
|
+
envName,
|
|
64
|
+
ephemeralEnvName,
|
|
65
|
+
serviceName: servicesNamesInput[0]!,
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const ssm = new SSMClient(role);
|
|
69
|
+
const deployConfig = await ssm.send(new GetParameterCommand({ Name: getParamName('config') }));
|
|
70
|
+
|
|
71
|
+
if (!deployConfig.Parameter?.Value) throw new Error('Invalid Config');
|
|
72
|
+
const { baseDir } = JSON.parse(deployConfig.Parameter?.Value);
|
|
73
|
+
|
|
74
|
+
const calculatedEnv = await ssm.send(new GetParameterCommand({ Name: getParamName('env-calculated') }));
|
|
75
|
+
if (!calculatedEnv.Parameter?.Value) throw new Error('Invalid CalculatedEnv');
|
|
76
|
+
|
|
77
|
+
const manualEnv = await ssm.send(new GetParameterCommand({ Name: getParamName('env-manual') }));
|
|
78
|
+
if (!manualEnv.Parameter?.Value) throw new Error('Invalid CalculatedEnv');
|
|
79
|
+
|
|
80
|
+
const envFile = `${calculatedEnv.Parameter?.Value}\n${manualEnv.Parameter?.Value}`;
|
|
81
|
+
|
|
82
|
+
writeFileSync(`${process.cwd()}/${baseDir}/.env.${envNameInput}`, envFile);
|
|
83
|
+
console.log('>> STEP: (3/3) => STARTING');
|
|
84
|
+
|
|
85
|
+
const command = `yarn ${yarnCommand} ${envNameInput}`;
|
|
86
|
+
execSync(command, { stdio: 'inherit', cwd: `${process.cwd()}/${baseDir}` });
|
|
87
|
+
} catch (error: any) {
|
|
88
|
+
console.log(error);
|
|
89
|
+
process.exit(1);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { execSync } from 'child_process';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
BaseEnvName,
|
|
6
|
+
BaseGlobalEnv,
|
|
7
|
+
BaseDeployTargetName,
|
|
8
|
+
BaseGlobalConstConfig,
|
|
9
|
+
BaseGlobalEnvConfig,
|
|
10
|
+
BaseGlobalDeployTargetConfig,
|
|
11
|
+
preScript,
|
|
12
|
+
} from '../../common';
|
|
13
|
+
|
|
14
|
+
import { ConfigCommand } from '..';
|
|
15
|
+
|
|
16
|
+
export const synth: ConfigCommand = async <
|
|
17
|
+
GlobalConst,
|
|
18
|
+
AllowedEnv extends BaseEnvName = BaseEnvName,
|
|
19
|
+
GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv,
|
|
20
|
+
DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName,
|
|
21
|
+
>(
|
|
22
|
+
globalConstConfig: BaseGlobalConstConfig<GlobalConst>,
|
|
23
|
+
globalEnvConfig: BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>,
|
|
24
|
+
globalDeployTargetConfig: BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>,
|
|
25
|
+
args: string[]
|
|
26
|
+
): Promise<void> => {
|
|
27
|
+
try {
|
|
28
|
+
console.log('<< Deploy Started >>');
|
|
29
|
+
|
|
30
|
+
const { envNameInput, roleName, outputFile, servicesNames, accountMap } = await preScript(
|
|
31
|
+
globalConstConfig,
|
|
32
|
+
globalEnvConfig,
|
|
33
|
+
globalDeployTargetConfig,
|
|
34
|
+
args
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const command = `npx cdk synth \
|
|
38
|
+
--require-approval='never' \
|
|
39
|
+
--cloudformation-execution-policies=arn:aws:iam::aws:policy/AdministratorAccess \
|
|
40
|
+
--context env=${envNameInput} \
|
|
41
|
+
--context assume-role-credentials:writeIamRoleName=${roleName} \
|
|
42
|
+
--context assume-role-credentials:readIamRoleName=${roleName} \
|
|
43
|
+
--outputs-file ${outputFile} \
|
|
44
|
+
${accountMap} ${servicesNames}`;
|
|
45
|
+
|
|
46
|
+
execSync(command, { stdio: 'inherit', env: process.env });
|
|
47
|
+
} catch (error: any) {
|
|
48
|
+
process.exit(1);
|
|
49
|
+
}
|
|
50
|
+
};
|
package/script/index.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseEnvName,
|
|
3
|
+
BaseGlobalEnv,
|
|
4
|
+
BaseDeployTargetName,
|
|
5
|
+
BaseGlobalConstConfig,
|
|
6
|
+
BaseGlobalEnvConfig,
|
|
7
|
+
BaseGlobalDeployTargetConfig,
|
|
8
|
+
} from '../common';
|
|
9
|
+
|
|
10
|
+
import { bootstrap } from './config-command/bootstrap';
|
|
11
|
+
import { deploy } from './config-command/deploy';
|
|
12
|
+
import { deploySPA } from './config-command/deploy-spa';
|
|
13
|
+
import { destroy } from './config-command/destroy';
|
|
14
|
+
import { envSSR } from './config-command/env-ssr';
|
|
15
|
+
import { invalidationSSR } from './config-command/invalidation-ssr';
|
|
16
|
+
import { rdsMigration } from './config-command/rds-migration';
|
|
17
|
+
import { rdsSync } from './config-command/rds-sync';
|
|
18
|
+
import { ssmConnect } from './config-command/ssm-connect';
|
|
19
|
+
import { startSPA } from './config-command/start-spa';
|
|
20
|
+
import { startSSR } from './config-command/start-ssr';
|
|
21
|
+
import { synth } from './config-command/synth';
|
|
22
|
+
import { createUser } from './output-command/create-user';
|
|
23
|
+
import { genPostmanEnv } from './output-command/gen-postman-env';
|
|
24
|
+
|
|
25
|
+
export type ConfigCommand<
|
|
26
|
+
GlobalConst = any,
|
|
27
|
+
AllowedEnv extends BaseEnvName = BaseEnvName,
|
|
28
|
+
GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv,
|
|
29
|
+
DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName,
|
|
30
|
+
> = (
|
|
31
|
+
globalConstConfig: BaseGlobalConstConfig<GlobalConst>,
|
|
32
|
+
globalEnvConfig: BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>,
|
|
33
|
+
globalDeployTargetConfig: BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>,
|
|
34
|
+
args: string[]
|
|
35
|
+
) => Promise<void>;
|
|
36
|
+
|
|
37
|
+
export type SignatureType = 'config' | 'output';
|
|
38
|
+
|
|
39
|
+
export const getCommandSignature = (command: string): SignatureType => {
|
|
40
|
+
const ops: Record<string, SignatureType> = {
|
|
41
|
+
deploy: 'config',
|
|
42
|
+
synth: 'config',
|
|
43
|
+
bootstrap: 'config',
|
|
44
|
+
destroy: 'config',
|
|
45
|
+
'deploy-spa': 'config',
|
|
46
|
+
'start-spa': 'config',
|
|
47
|
+
'invalidation-ssr': 'config',
|
|
48
|
+
'env-ssr': 'config',
|
|
49
|
+
'start-ssr': 'config',
|
|
50
|
+
'ssm-connect': 'config',
|
|
51
|
+
'rds-sync': 'config',
|
|
52
|
+
'rds-migration': 'config',
|
|
53
|
+
'create-user': 'output',
|
|
54
|
+
'gen-postman-env': 'output',
|
|
55
|
+
};
|
|
56
|
+
if (!ops[command]) throw new Error('Missing command');
|
|
57
|
+
return ops[command];
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const executeConfigCommand = (command: string): any => {
|
|
61
|
+
const ops: Record<string, ConfigCommand> = {
|
|
62
|
+
deploy: deploy,
|
|
63
|
+
synth: synth,
|
|
64
|
+
bootstrap: bootstrap,
|
|
65
|
+
destroy: destroy,
|
|
66
|
+
'deploy-spa': deploySPA,
|
|
67
|
+
'start-spa': startSPA,
|
|
68
|
+
'invalidation-ssr': invalidationSSR,
|
|
69
|
+
'env-ssr': envSSR,
|
|
70
|
+
'start-ssr': startSSR,
|
|
71
|
+
'ssm-connect': ssmConnect,
|
|
72
|
+
'rds-sync': rdsSync,
|
|
73
|
+
'rds-migration': rdsMigration,
|
|
74
|
+
};
|
|
75
|
+
if (!ops[command]) throw new Error('Missing command');
|
|
76
|
+
return ops[command];
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export const executeOutputCommand = (command: string): any => {
|
|
80
|
+
const ops: Record<string, any> = {
|
|
81
|
+
'create-user': createUser,
|
|
82
|
+
'gen-postman-env': genPostmanEnv,
|
|
83
|
+
};
|
|
84
|
+
if (!ops[command]) throw new Error('Missing command');
|
|
85
|
+
return ops[command];
|
|
86
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { AdminConfirmSignUpCommand, CognitoIdentityProviderClient, SignUpCommand } from '@aws-sdk/client-cognito-identity-provider';
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
assumeRole,
|
|
6
|
+
BaseDeployTargetName,
|
|
7
|
+
BaseEnvName,
|
|
8
|
+
BaseGlobalConstConfig,
|
|
9
|
+
BaseGlobalDeployTargetConfig,
|
|
10
|
+
BaseGlobalEnv,
|
|
11
|
+
BaseGlobalEnvConfig,
|
|
12
|
+
getServiceName,
|
|
13
|
+
preScript,
|
|
14
|
+
} from '../../common';
|
|
15
|
+
|
|
16
|
+
export const createUser = async <
|
|
17
|
+
GlobalConst,
|
|
18
|
+
AllowedEnv extends BaseEnvName = BaseEnvName,
|
|
19
|
+
GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv,
|
|
20
|
+
DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName,
|
|
21
|
+
>(
|
|
22
|
+
globalConstConfig: BaseGlobalConstConfig<GlobalConst>,
|
|
23
|
+
globalEnvConfig: BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>,
|
|
24
|
+
globalDeployTargetConfig: BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>,
|
|
25
|
+
output: Record<string, Record<string, string>>,
|
|
26
|
+
args: string[]
|
|
27
|
+
): Promise<void> => {
|
|
28
|
+
try {
|
|
29
|
+
console.log('<< Create Cognito User >>');
|
|
30
|
+
|
|
31
|
+
console.log('>> STEP: (1/3) => LOADING CONFIGS');
|
|
32
|
+
const name = args[4];
|
|
33
|
+
const password = args[5];
|
|
34
|
+
const postfix = args[6];
|
|
35
|
+
const tenant = args[7];
|
|
36
|
+
|
|
37
|
+
const email = `${name}+${postfix}@sinapsis.co`;
|
|
38
|
+
|
|
39
|
+
const { envNameInput, roleName, accountMap, envName } = await preScript(globalConstConfig, globalEnvConfig, globalDeployTargetConfig, args);
|
|
40
|
+
|
|
41
|
+
const identityServiceKey = getServiceName('Identity', {
|
|
42
|
+
envName: envNameInput,
|
|
43
|
+
projectName: globalConstConfig.projectName,
|
|
44
|
+
});
|
|
45
|
+
if (!identityServiceKey) throw new Error('Missing Service. Please deploy it in order to run this command: yarn deploy [env] Identity');
|
|
46
|
+
const clientIdKey = Object.keys(output[identityServiceKey]!).find((w) => w.startsWith('CognitoAuthPoolPrefabUserPoolClient'));
|
|
47
|
+
const userPoolIdKey = Object.keys(output[identityServiceKey]!).find((w) => w.startsWith('CognitoAuthPoolPrefabUserPoolId'));
|
|
48
|
+
if (!clientIdKey || !userPoolIdKey) throw new Error('Missing output');
|
|
49
|
+
|
|
50
|
+
const clientId = output[identityServiceKey]![clientIdKey];
|
|
51
|
+
const userPoolId = output[identityServiceKey]![userPoolIdKey];
|
|
52
|
+
|
|
53
|
+
const account =
|
|
54
|
+
accountMap
|
|
55
|
+
.split(' ')
|
|
56
|
+
.find((a) => a.includes('services'))
|
|
57
|
+
?.split('=')[1] || '';
|
|
58
|
+
const region = globalDeployTargetConfig[envName]['services' as DeployTargetName]['region'];
|
|
59
|
+
|
|
60
|
+
const role = await assumeRole({ account, region }, roleName);
|
|
61
|
+
|
|
62
|
+
const cognito = new CognitoIdentityProviderClient(role);
|
|
63
|
+
|
|
64
|
+
const att = [
|
|
65
|
+
{ Name: 'email', Value: email },
|
|
66
|
+
{ Name: 'given_name', Value: name },
|
|
67
|
+
{ Name: 'family_name', Value: name },
|
|
68
|
+
];
|
|
69
|
+
if (tenant) {
|
|
70
|
+
const [name, value] = tenant.split('@');
|
|
71
|
+
att.push({ Name: `custom:${name}`, Value: value });
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
console.log('>> STEP: (2/3) => SIGN UP');
|
|
75
|
+
await cognito.send(
|
|
76
|
+
new SignUpCommand({
|
|
77
|
+
ClientId: clientId,
|
|
78
|
+
Username: email,
|
|
79
|
+
Password: password,
|
|
80
|
+
UserAttributes: att,
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
console.log('>> STEP: (3/3) => CONFIRM SIGN UP');
|
|
84
|
+
await cognito.send(new AdminConfirmSignUpCommand({ UserPoolId: userPoolId, Username: email }));
|
|
85
|
+
} catch (error: any) {
|
|
86
|
+
console.log(error);
|
|
87
|
+
process.exit(1);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import {
|
|
3
|
+
BaseDeployTargetName,
|
|
4
|
+
BaseEnvName,
|
|
5
|
+
BaseGlobalConstConfig,
|
|
6
|
+
BaseGlobalDeployTargetConfig,
|
|
7
|
+
BaseGlobalEnv,
|
|
8
|
+
BaseGlobalEnvConfig,
|
|
9
|
+
getServiceName,
|
|
10
|
+
preScript,
|
|
11
|
+
} from '../../common';
|
|
12
|
+
|
|
13
|
+
export const genPostmanEnv = async <
|
|
14
|
+
GlobalConst,
|
|
15
|
+
AllowedEnv extends BaseEnvName = BaseEnvName,
|
|
16
|
+
GlobalEnv extends BaseGlobalEnv = BaseGlobalEnv,
|
|
17
|
+
DeployTargetName extends BaseDeployTargetName = BaseDeployTargetName,
|
|
18
|
+
>(
|
|
19
|
+
globalConstConfig: BaseGlobalConstConfig<GlobalConst>,
|
|
20
|
+
globalEnvConfig: BaseGlobalEnvConfig<AllowedEnv, GlobalEnv>,
|
|
21
|
+
globalDeployTargetConfig: BaseGlobalDeployTargetConfig<AllowedEnv, DeployTargetName>,
|
|
22
|
+
output: Record<string, Record<string, string>>,
|
|
23
|
+
args: string[]
|
|
24
|
+
): Promise<void> => {
|
|
25
|
+
try {
|
|
26
|
+
console.log('<< Gen Postman Env >>');
|
|
27
|
+
|
|
28
|
+
const { envNameInput } = await preScript(globalConstConfig, globalEnvConfig, globalDeployTargetConfig, args);
|
|
29
|
+
|
|
30
|
+
const identityServiceKey = getServiceName('Identity', {
|
|
31
|
+
envName: envNameInput,
|
|
32
|
+
projectName: globalConstConfig.projectName,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const clientIdKey = Object.keys(output[identityServiceKey]!).find((w) => w.startsWith('CognitoAuthPoolPrefabUserPoolClient'));
|
|
36
|
+
|
|
37
|
+
const cdnApiServiceKey = getServiceName('CdnApi', {
|
|
38
|
+
envName: envNameInput,
|
|
39
|
+
projectName: globalConstConfig.projectName,
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const apiUrlKey = Object.keys(output[cdnApiServiceKey]!).find((w) => w.startsWith('CdnApiPrefabapiDomain'));
|
|
43
|
+
if (!clientIdKey || !apiUrlKey) throw new Error('Missing output');
|
|
44
|
+
|
|
45
|
+
const postmanEnv = {
|
|
46
|
+
name: `${globalConstConfig.projectName}-${envNameInput}`,
|
|
47
|
+
values: [
|
|
48
|
+
{
|
|
49
|
+
key: 'baseUrl',
|
|
50
|
+
value: `https://${output[cdnApiServiceKey]![apiUrlKey]}`,
|
|
51
|
+
enabled: true,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: 'cognitoClientId',
|
|
55
|
+
value: output[identityServiceKey]![clientIdKey],
|
|
56
|
+
enabled: true,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: 'cognitoUser',
|
|
60
|
+
value: 'andres+test@sinapsis.co',
|
|
61
|
+
enabled: true,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: 'cognitoPassword',
|
|
65
|
+
value: '4tn34n2ewc-23r23',
|
|
66
|
+
enabled: true,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
};
|
|
70
|
+
console.log(JSON.stringify(postmanEnv, null, 2));
|
|
71
|
+
} catch (error: any) {
|
|
72
|
+
console.log(error);
|
|
73
|
+
process.exit(1);
|
|
74
|
+
}
|
|
75
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"exclude": ["node_modules/**/*", ".dist"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"experimentalDecorators": true,
|
|
5
|
+
"emitDecoratorMetadata": true,
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"allowJs": true,
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"moduleDetection": "force",
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noUncheckedIndexedAccess": true,
|
|
14
|
+
"noImplicitOverride": true,
|
|
15
|
+
"target": "es2022",
|
|
16
|
+
"lib": ["es2022"],
|
|
17
|
+
"module": "NodeNext",
|
|
18
|
+
/* Monorepo Lib */
|
|
19
|
+
"noEmit": false,
|
|
20
|
+
"sourceMap": true,
|
|
21
|
+
"declaration": true,
|
|
22
|
+
"composite": true,
|
|
23
|
+
"declarationMap": true,
|
|
24
|
+
"outDir": ".dist"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/common/coordinator.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { App } from 'aws-cdk-lib';
|
|
2
|
-
import { Construct } from 'constructs';
|
|
3
|
-
|
|
4
|
-
import * as propsTypes from './synth/props-types';
|
|
5
|
-
import { ServiceStack } from './service';
|
|
6
|
-
|
|
7
|
-
export declare class Coordinator<
|
|
8
|
-
GlobalConstConfig extends propsTypes.BaseGlobalConstConfig = propsTypes.BaseGlobalConstConfig,
|
|
9
|
-
AllowedEnvName extends propsTypes.BaseEnvName = propsTypes.BaseEnvName,
|
|
10
|
-
GlobalEnv extends propsTypes.BaseGlobalEnv = propsTypes.BaseGlobalEnv,
|
|
11
|
-
GlobalDeployTarget extends propsTypes.BaseGlobalDeployTarget = propsTypes.BaseGlobalDeployTarget,
|
|
12
|
-
> extends App {
|
|
13
|
-
scope: Construct;
|
|
14
|
-
globalProps: propsTypes.BaseGlobalProps<GlobalConstConfig, GlobalEnv, GlobalDeployTarget>;
|
|
15
|
-
private serviceList;
|
|
16
|
-
private services;
|
|
17
|
-
constructor(
|
|
18
|
-
globalConstConfig: GlobalConstConfig,
|
|
19
|
-
globalEnvConfig: propsTypes.BaseGlobalEnvConfig<AllowedEnvName, GlobalEnv>,
|
|
20
|
-
globalDeployTargetConfig: propsTypes.BaseGlobalDeployTargetConfig<AllowedEnvName, propsTypes.BaseDeployTargetName>
|
|
21
|
-
);
|
|
22
|
-
addService(service: ServiceStack): void;
|
|
23
|
-
build(): void;
|
|
24
|
-
private orderDependencies;
|
|
25
|
-
}
|
|
26
|
-
export declare function DepCheck(): (target: any, propertyKey: any) => void;
|
|
27
|
-
export declare class ServiceDependencies {}
|
|
28
|
-
//# sourceMappingURL=coordinator.d.ts.map
|
package/common/index.d.ts
DELETED
package/common/modifier.d.ts
DELETED