@aws-amplify/cli-internal-gen2-migration-experimental-alpha 0.6.0 → 0.7.0
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/CHANGELOG.md +16 -0
- package/adr/001-refactor-gen2-migration-generate.md +413 -0
- package/adr/002-refactor-gen2-migration-refactor.md +593 -0
- package/adr/003-gen2-migration-assess.md +414 -0
- package/adr/004-gen2-migration-validation-modeling.md +336 -0
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.7.0.tgz +0 -0
- package/bin/amplify +1 -1
- package/lib/commands/drift-detection/detect-local-drift.d.ts +1 -2
- package/lib/commands/drift-detection/detect-local-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-local-drift.js +19 -6
- package/lib/commands/drift-detection/detect-local-drift.js.map +1 -1
- package/lib/commands/drift-detection/detect-stack-drift.d.ts +20 -9
- package/lib/commands/drift-detection/detect-stack-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-stack-drift.js +121 -151
- package/lib/commands/drift-detection/detect-stack-drift.js.map +1 -1
- package/lib/commands/drift-detection/detect-template-drift.d.ts +8 -21
- package/lib/commands/drift-detection/detect-template-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-template-drift.js +81 -89
- package/lib/commands/drift-detection/detect-template-drift.js.map +1 -1
- package/lib/commands/drift-detection/index.d.ts +2 -3
- package/lib/commands/drift-detection/index.d.ts.map +1 -1
- package/lib/commands/drift-detection/index.js +1 -3
- package/lib/commands/drift-detection/index.js.map +1 -1
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts +0 -1
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/amplify-config-service.js +0 -16
- package/lib/commands/drift-detection/services/amplify-config-service.js.map +1 -1
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts +2 -4
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/cloudformation-service.js +7 -11
- package/lib/commands/drift-detection/services/cloudformation-service.js.map +1 -1
- package/lib/commands/drift-detection/services/drift-formatter.d.ts +3 -70
- package/lib/commands/drift-detection/services/drift-formatter.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/drift-formatter.js +148 -603
- package/lib/commands/drift-detection/services/drift-formatter.js.map +1 -1
- package/lib/commands/drift-detection/services/index.d.ts +1 -2
- package/lib/commands/drift-detection/services/index.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/index.js +2 -4
- package/lib/commands/drift-detection/services/index.js.map +1 -1
- package/lib/commands/drift.d.ts +7 -18
- package/lib/commands/drift.d.ts.map +1 -1
- package/lib/commands/drift.js +71 -172
- package/lib/commands/drift.js.map +1 -1
- package/lib/commands/gen2-migration/_infra/aws-clients.d.ts +31 -0
- package/lib/commands/gen2-migration/_infra/aws-clients.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/aws-clients.js +64 -0
- package/lib/commands/gen2-migration/_infra/aws-clients.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/categories.d.ts +2 -0
- package/lib/commands/gen2-migration/_infra/categories.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/categories.js +32 -0
- package/lib/commands/gen2-migration/_infra/categories.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.d.ts +52 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.js +21 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/operation.d.ts +16 -0
- package/lib/commands/gen2-migration/_infra/operation.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/operation.js +3 -0
- package/lib/commands/gen2-migration/_infra/operation.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/plan.d.ts +21 -0
- package/lib/commands/gen2-migration/_infra/plan.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/plan.js +111 -0
- package/lib/commands/gen2-migration/_infra/plan.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/planner.d.ts +5 -0
- package/lib/commands/gen2-migration/_infra/planner.d.ts.map +1 -0
- package/lib/commands/gen2-migration/{generate/custom-resources/types.js → _infra/planner.js} +1 -1
- package/lib/commands/gen2-migration/_infra/planner.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.d.ts +25 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.js +115 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/stateful-resources.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/stateful-resources.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/step.d.ts +15 -0
- package/lib/commands/gen2-migration/_infra/step.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/step.js +13 -0
- package/lib/commands/gen2-migration/_infra/step.js.map +1 -0
- package/lib/commands/gen2-migration/{_validations.d.ts → _infra/validations.d.ts} +6 -7
- package/lib/commands/gen2-migration/_infra/validations.d.ts.map +1 -0
- package/lib/commands/gen2-migration/{_validations.js → _infra/validations.js} +24 -60
- package/lib/commands/gen2-migration/_infra/validations.js.map +1 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.js +15 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/assessment.d.ts +42 -0
- package/lib/commands/gen2-migration/assess/assessment.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/assessment.js +118 -0
- package/lib/commands/gen2-migration/assess/assessment.js.map +1 -0
- package/lib/commands/gen2-migration/assess/assessor.d.ts +5 -0
- package/lib/commands/gen2-migration/assess/assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/{generate/types.js → assess/assessor.js} +1 -1
- package/lib/commands/gen2-migration/assess/assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.js +30 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.js +24 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.d.ts +12 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.js +40 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.js +19 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.js +15 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.js +15 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess.d.ts +9 -0
- package/lib/commands/gen2-migration/assess.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess.js +80 -0
- package/lib/commands/gen2-migration/assess.js.map +1 -0
- package/lib/commands/gen2-migration/decommission.d.ts +6 -5
- package/lib/commands/gen2-migration/decommission.d.ts.map +1 -1
- package/lib/commands/gen2-migration/decommission.js +82 -25
- package/lib/commands/gen2-migration/decommission.js.map +1 -1
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.d.ts +32 -0
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.js +136 -0
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.js.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/files.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/_infra/files.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/{codegen-head/directory_exists.js → _infra/files.js} +4 -5
- package/lib/commands/gen2-migration/generate/_infra/files.js.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.d.ts +40 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.js +198 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.js.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.d.ts +24 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.js +128 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.d.ts +18 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.js +126 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis-cfn-converter.d.ts +33 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis-cfn-converter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/{unsupported/cdk-from-cfn.js → amplify/analytics/kinesis-cfn-converter.js} +94 -52
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis-cfn-converter.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.js +69 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.d.ts +18 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.js +68 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.d.ts +24 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.js +233 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.d.ts +78 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.js +491 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.d.ts +15 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.js +75 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.d.ts +13 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.js +33 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.d.ts +22 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.js +150 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/{custom-resources/transformer → amplify/custom-resources}/amplify-helper-transformer.d.ts +4 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/amplify-helper-transformer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/amplify-helper-transformer.js +333 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/amplify-helper-transformer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.d.ts +17 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.js +190 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.d.ts +15 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.js +112 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.d.ts +22 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.js +167 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.d.ts +49 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.js +626 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.d.ts +21 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.js +105 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.d.ts +49 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.js +239 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.js +70 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.d.ts +13 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.js +161 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.d.ts +8 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.js +28 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.d.ts +15 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.js +162 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.d.ts +51 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.js +269 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.js +96 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.d.ts +30 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.js +90 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.d.ts +22 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.js +132 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.d.ts +31 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.js +137 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.d.ts +8 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.js +45 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.d.ts +9 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.js +112 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.d.ts +6 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.js +45 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.d.ts +12 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.js +83 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate.d.ts +6 -5
- package/lib/commands/gen2-migration/generate.d.ts.map +1 -1
- package/lib/commands/gen2-migration/generate.js +232 -17
- package/lib/commands/gen2-migration/generate.js.map +1 -1
- package/lib/commands/gen2-migration/lock.d.ts +10 -6
- package/lib/commands/gen2-migration/lock.d.ts.map +1 -1
- package/lib/commands/gen2-migration/lock.js +182 -64
- package/lib/commands/gen2-migration/lock.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.js +19 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.d.ts +21 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.js +87 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.js +44 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.d.ts +11 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.js +33 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn.d.ts +41 -0
- package/lib/commands/gen2-migration/refactor/cfn.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn.js +337 -0
- package/lib/commands/gen2-migration/refactor/cfn.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/index.d.ts +1 -1
- package/lib/commands/gen2-migration/refactor/index.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/index.js +1 -1
- package/lib/commands/gen2-migration/refactor/index.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts +23 -11
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js +53 -45
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts +2 -11
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js +89 -123
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts +2 -7
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js +6 -22
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts +8 -12
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js +105 -127
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts +2 -8
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js +36 -41
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.d.ts +3 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.js +18 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.d.ts +13 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.js +39 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.d.ts +8 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.js +18 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.d.ts +10 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.js +36 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/utils.d.ts +1 -1
- package/lib/commands/gen2-migration/refactor/utils.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/utils.js +2 -2
- package/lib/commands/gen2-migration/refactor/utils.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.d.ts +52 -0
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.js +212 -0
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.d.ts +15 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.js +148 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.d.ts +13 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.js +123 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.js.map +1 -0
- package/lib/commands/gen2-migration/refactor.d.ts +11 -0
- package/lib/commands/gen2-migration/refactor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor.js +189 -0
- package/lib/commands/gen2-migration/refactor.js.map +1 -0
- package/lib/commands/gen2-migration.d.ts +0 -12
- package/lib/commands/gen2-migration.d.ts.map +1 -1
- package/lib/commands/gen2-migration.js +82 -111
- package/lib/commands/gen2-migration.js.map +1 -1
- package/package.json +21 -12
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.6.0.tgz +0 -0
- package/lib/commands/drift-detection/services/file-service.d.ts +0 -7
- package/lib/commands/drift-detection/services/file-service.d.ts.map +0 -1
- package/lib/commands/drift-detection/services/file-service.js +0 -53
- package/lib/commands/drift-detection/services/file-service.js.map +0 -1
- package/lib/commands/gen2-migration/_step.d.ts +0 -17
- package/lib/commands/gen2-migration/_step.d.ts.map +0 -1
- package/lib/commands/gen2-migration/_step.js +0 -16
- package/lib/commands/gen2-migration/_step.js.map +0 -1
- package/lib/commands/gen2-migration/_validations.d.ts.map +0 -1
- package/lib/commands/gen2-migration/_validations.js.map +0 -1
- package/lib/commands/gen2-migration/cleanup.d.ts +0 -8
- package/lib/commands/gen2-migration/cleanup.d.ts.map +0 -1
- package/lib/commands/gen2-migration/cleanup.js +0 -21
- package/lib/commands/gen2-migration/cleanup.js.map +0 -1
- package/lib/commands/gen2-migration/clone.d.ts +0 -8
- package/lib/commands/gen2-migration/clone.d.ts.map +0 -1
- package/lib/commands/gen2-migration/clone.js +0 -21
- package/lib/commands/gen2-migration/clone.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.d.ts +0 -24
- package/lib/commands/gen2-migration/generate/adapters/auth/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.js +0 -297
- package/lib/commands/gen2-migration/generate/adapters/auth/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.js +0 -140
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/data/index.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/adapters/data/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/data/index.js +0 -17
- package/lib/commands/gen2-migration/generate/adapters/data/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.js +0 -43
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.js +0 -34
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/index.d.ts +0 -18
- package/lib/commands/gen2-migration/generate/adapters/functions/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/index.js +0 -85
- package/lib/commands/gen2-migration/generate/adapters/functions/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/project/index.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/project/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/project/index.js +0 -7
- package/lib/commands/gen2-migration/generate/adapters/project/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.d.ts +0 -31
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.js +0 -34
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.js +0 -181
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/index.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/adapters/storage/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/index.js +0 -10
- package/lib/commands/gen2-migration/generate/adapters/storage/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.d.ts +0 -25
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.js +0 -76
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.js +0 -125
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.d.ts +0 -91
- package/lib/commands/gen2-migration/generate/backend/synthesizer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.js +0 -1014
- package/lib/commands/gen2-migration/generate/backend/synthesizer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.js +0 -777
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.d.ts +0 -14
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.js +0 -82
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.js +0 -11
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.d.ts +0 -7
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.js +0 -80
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.d.ts +0 -13
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.js +0 -59
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.d.ts +0 -24
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.js +0 -167
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.d.ts +0 -21
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.js +0 -135
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.d.ts +0 -23
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.js +0 -181
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.d.ts +0 -12
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.js +0 -157
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.js +0 -48
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.d.ts +0 -11
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.js +0 -38
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.d.ts +0 -13
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.js +0 -498
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.d.ts +0 -47
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.js +0 -222
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.js +0 -59
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.js +0 -90
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.d.ts +0 -14
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.js +0 -100
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.js +0 -69
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/format.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/codegen-head/format.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/format.js +0 -66
- package/lib/commands/gen2-migration/generate/codegen-head/format.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/logger.d.ts +0 -15
- package/lib/commands/gen2-migration/generate/codegen-head/logger.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/logger.js +0 -14
- package/lib/commands/gen2-migration/generate/codegen-head/logger.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/printer.d.ts +0 -26
- package/lib/commands/gen2-migration/generate/codegen-head/printer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/printer.js +0 -103
- package/lib/commands/gen2-migration/generate/codegen-head/printer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.d.ts +0 -13
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.js +0 -66
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.js +0 -97
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.d.ts +0 -26
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.js +0 -269
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.d.ts +0 -7
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.js +0 -84
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.js +0 -105
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.js +0 -88
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.js +0 -36
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.js +0 -81
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.d.ts +0 -15
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.js +0 -35
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.js +0 -66
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.js +0 -178
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/types.d.ts +0 -38
- package/lib/commands/gen2-migration/generate/custom-resources/types.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/types.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/analytics/index.d.ts +0 -9
- package/lib/commands/gen2-migration/generate/generators/analytics/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/analytics/index.js +0 -40
- package/lib/commands/gen2-migration/generate/generators/analytics/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.d.ts +0 -107
- package/lib/commands/gen2-migration/generate/generators/auth/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.js +0 -313
- package/lib/commands/gen2-migration/generate/generators/auth/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.js +0 -566
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.d.ts +0 -35
- package/lib/commands/gen2-migration/generate/generators/data/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.js +0 -185
- package/lib/commands/gen2-migration/generate/generators/data/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/generators/data/index.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.test.js +0 -47
- package/lib/commands/gen2-migration/generate/generators/data/index.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/index.d.ts +0 -53
- package/lib/commands/gen2-migration/generate/generators/functions/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/index.js +0 -125
- package/lib/commands/gen2-migration/generate/generators/functions/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.d.ts +0 -6
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.js +0 -16
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.js +0 -106
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.js +0 -120
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/access.d.ts +0 -4
- package/lib/commands/gen2-migration/generate/generators/storage/access.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/access.js +0 -73
- package/lib/commands/gen2-migration/generate/generators/storage/access.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/index.d.ts +0 -37
- package/lib/commands/gen2-migration/generate/generators/storage/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/index.js +0 -78
- package/lib/commands/gen2-migration/generate/generators/storage/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/npm_package/renderer.d.ts +0 -27
- package/lib/commands/gen2-migration/generate/npm_package/renderer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/npm_package/renderer.js +0 -28
- package/lib/commands/gen2-migration/generate/npm_package/renderer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/render_pipeline.d.ts +0 -9
- package/lib/commands/gen2-migration/generate/render_pipeline.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/render_pipeline.js +0 -15
- package/lib/commands/gen2-migration/generate/render_pipeline.js.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.d.ts +0 -7
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.js +0 -17
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.js.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/package_json.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/renderers/package_json.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/package_json.js +0 -15
- package/lib/commands/gen2-migration/generate/renderers/package_json.js.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.d.ts +0 -11
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.js +0 -22
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.js.map +0 -1
- package/lib/commands/gen2-migration/generate/resource/resource.d.ts +0 -20
- package/lib/commands/gen2-migration/generate/resource/resource.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/resource/resource.js +0 -60
- package/lib/commands/gen2-migration/generate/resource/resource.js.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.js +0 -6
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.js.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.d.ts +0 -4
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.js +0 -22
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/todo_error.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/todo_error.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/todo_error.js +0 -11
- package/lib/commands/gen2-migration/generate/todo_error.js.map +0 -1
- package/lib/commands/gen2-migration/generate/ts_factory_utils.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/ts_factory_utils.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/ts_factory_utils.js +0 -10
- package/lib/commands/gen2-migration/generate/ts_factory_utils.js.map +0 -1
- package/lib/commands/gen2-migration/generate/types.d.ts +0 -4
- package/lib/commands/gen2-migration/generate/types.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/types.js.map +0 -1
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.d.ts +0 -26
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts +0 -5
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js +0 -76
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts +0 -6
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js +0 -52
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts +0 -40
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js +0 -321
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts +0 -48
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js +0 -513
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/refactor.d.ts +0 -19
- package/lib/commands/gen2-migration/refactor/refactor.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/refactor.js +0 -241
- package/lib/commands/gen2-migration/refactor/refactor.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/types.d.ts +0 -128
- package/lib/commands/gen2-migration/refactor/types.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/types.js +0 -59
- package/lib/commands/gen2-migration/refactor/types.js.map +0 -1
- package/lib/commands/gen2-migration/shift.d.ts +0 -8
- package/lib/commands/gen2-migration/shift.d.ts.map +0 -1
- package/lib/commands/gen2-migration/shift.js +0 -21
- package/lib/commands/gen2-migration/shift.js.map +0 -1
- package/lib/commands/gen2-migration/stateful-resources.d.ts.map +0 -1
- package/lib/commands/gen2-migration/stateful-resources.js.map +0 -1
- /package/lib/commands/gen2-migration/{stateful-resources.d.ts → _infra/stateful-resources.d.ts} +0 -0
- /package/lib/commands/gen2-migration/{stateful-resources.js → _infra/stateful-resources.js} +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AmplifyClient, BackendEnvironment } from '@aws-sdk/client-amplify';
|
|
2
|
-
export declare class BackendEnvironmentResolver {
|
|
3
|
-
private appId;
|
|
4
|
-
private envName;
|
|
5
|
-
private amplifyClient;
|
|
6
|
-
constructor(appId: string, envName: string, amplifyClient: AmplifyClient);
|
|
7
|
-
private selectedEnvironment;
|
|
8
|
-
selectBackendEnvironment: () => Promise<BackendEnvironment | undefined>;
|
|
9
|
-
getAllBackendEnvironments: () => Promise<BackendEnvironment[]>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=backend_environment_selector.d.ts.map
|
package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backend_environment_selector.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/backend_environment_selector.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAgE,MAAM,yBAAyB,CAAC;AAG1I,qBAAa,0BAA0B;IACzB,OAAO,CAAC,KAAK;IAAU,OAAO,CAAC,OAAO;IAAU,OAAO,CAAC,aAAa;gBAA7D,KAAK,EAAE,MAAM,EAAU,OAAO,EAAE,MAAM,EAAU,aAAa,EAAE,aAAa;IAChG,OAAO,CAAC,mBAAmB,CAAiC;IAC5D,wBAAwB,QAAa,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,CAW1E;IAEF,yBAAyB,QAAa,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAUjE;CACH"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.BackendEnvironmentResolver = void 0;
|
|
7
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
8
|
-
const client_amplify_1 = require("@aws-sdk/client-amplify");
|
|
9
|
-
const get_env_info_1 = require("../../../../extensions/amplify-helpers/get-env-info");
|
|
10
|
-
class BackendEnvironmentResolver {
|
|
11
|
-
constructor(appId, envName, amplifyClient) {
|
|
12
|
-
this.appId = appId;
|
|
13
|
-
this.envName = envName;
|
|
14
|
-
this.amplifyClient = amplifyClient;
|
|
15
|
-
this.selectBackendEnvironment = async () => {
|
|
16
|
-
if (this.selectedEnvironment)
|
|
17
|
-
return this.selectedEnvironment;
|
|
18
|
-
const { backendEnvironment } = await this.amplifyClient.send(new client_amplify_1.GetBackendEnvironmentCommand({
|
|
19
|
-
appId: this.appId,
|
|
20
|
-
environmentName: this.envName,
|
|
21
|
-
}));
|
|
22
|
-
(0, node_assert_1.default)(backendEnvironment, 'No backend environment found');
|
|
23
|
-
this.selectedEnvironment = backendEnvironment;
|
|
24
|
-
return this.selectedEnvironment;
|
|
25
|
-
};
|
|
26
|
-
this.getAllBackendEnvironments = async () => {
|
|
27
|
-
const envInfo = (0, get_env_info_1.getEnvInfo)();
|
|
28
|
-
(0, node_assert_1.default)(envInfo);
|
|
29
|
-
const { backendEnvironments } = await this.amplifyClient.send(new client_amplify_1.ListBackendEnvironmentsCommand({
|
|
30
|
-
appId: this.appId,
|
|
31
|
-
}));
|
|
32
|
-
(0, node_assert_1.default)(backendEnvironments, 'No backend environments found');
|
|
33
|
-
return backendEnvironments;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.BackendEnvironmentResolver = BackendEnvironmentResolver;
|
|
38
|
-
//# sourceMappingURL=backend_environment_selector.js.map
|
package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"backend_environment_selector.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/backend_environment_selector.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAiC;AACjC,4DAA0I;AAC1I,sFAAiF;AAEjF,MAAa,0BAA0B;IACrC,YAAoB,KAAa,EAAU,OAAe,EAAU,aAA4B;QAA5E,UAAK,GAAL,KAAK,CAAQ;QAAU,YAAO,GAAP,OAAO,CAAQ;QAAU,kBAAa,GAAb,aAAa,CAAe;QAEhG,6BAAwB,GAAG,KAAK,IAA6C,EAAE;YAC7E,IAAI,IAAI,CAAC,mBAAmB;gBAAE,OAAO,IAAI,CAAC,mBAAmB,CAAC;YAC9D,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAC1D,IAAI,6CAA4B,CAAC;gBAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,eAAe,EAAE,IAAI,CAAC,OAAO;aAC9B,CAAC,CACH,CAAC;YACF,IAAA,qBAAM,EAAC,kBAAkB,EAAE,8BAA8B,CAAC,CAAC;YAC3D,IAAI,CAAC,mBAAmB,GAAG,kBAAkB,CAAC;YAC9C,OAAO,IAAI,CAAC,mBAAmB,CAAC;QAClC,CAAC,CAAC;QAEF,8BAAyB,GAAG,KAAK,IAAmC,EAAE;YACpE,MAAM,OAAO,GAAG,IAAA,yBAAU,GAAE,CAAC;YAC7B,IAAA,qBAAM,EAAC,OAAO,CAAC,CAAC;YAChB,MAAM,EAAE,mBAAmB,EAAE,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAC3D,IAAI,+CAA8B,CAAC;gBACjC,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CACH,CAAC;YACF,IAAA,qBAAM,EAAC,mBAAmB,EAAE,+BAA+B,CAAC,CAAC;YAC7D,OAAO,mBAAmB,CAAC;QAC7B,CAAC,CAAC;IAzBiG,CAAC;CA0BrG;AA3BD,gEA2BC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import { AmplifyClient, BackendEnvironment } from '@aws-sdk/client-amplify';
|
|
3
|
-
import { LambdaConfigType } from '@aws-sdk/client-cognito-identity-provider';
|
|
4
|
-
import { BackendDownloader } from './backend_downloader';
|
|
5
|
-
import { Logger } from '../../../gen2-migration';
|
|
6
|
-
export declare const GEN1_CONFIGURATION_FILES: string[];
|
|
7
|
-
export declare const getAuthTriggersConnections: (ccbFetcher: BackendDownloader, backendEnvironment: BackendEnvironment) => Promise<Partial<Record<keyof LambdaConfigType, string>>>;
|
|
8
|
-
export declare function updateAmplifyYmlFile(amplifyClient: AmplifyClient, appId: string): Promise<void>;
|
|
9
|
-
export declare function updateGitIgnoreForGen2(): Promise<void>;
|
|
10
|
-
export declare function updateCustomResources(ccbFetcher: BackendDownloader, backendEnvironment: BackendEnvironment): Promise<void>;
|
|
11
|
-
export declare function updateCdkStackFile(customResources: string[], destinationCustomResourcePath: string, rootDir: string): Promise<void>;
|
|
12
|
-
export declare function prepare(logger: Logger, appId: string, envName: string, region: string): Promise<void>;
|
|
13
|
-
//# sourceMappingURL=command-handlers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/command-handlers.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,aAAa,EAAmC,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7G,OAAO,EAAiC,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAO5G,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAuBzD,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAyBjD,eAAO,MAAM,wBAAwB,UAA2E,CAAC;AA0HjH,eAAO,MAAM,0BAA0B,GACrC,YAAY,iBAAiB,EAC7B,oBAAoB,kBAAkB,KACrC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,gBAAgB,EAAE,MAAM,CAAC,CAAC,CAwCzD,CAAC;AAmEF,wBAAsB,oBAAoB,CAAC,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,iBA0BrF;AASD,wBAAsB,sBAAsB,kBAqC3C;AAsCD,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,iBAgDhH;AAED,wBAAsB,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,6BAA6B,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,iBAmEzH;AAwBD,wBAAsB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,iBAsF3F"}
|
|
@@ -1,498 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
-
var ownKeys = function(o) {
|
|
21
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
-
var ar = [];
|
|
23
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
-
return ar;
|
|
25
|
-
};
|
|
26
|
-
return ownKeys(o);
|
|
27
|
-
};
|
|
28
|
-
return function (mod) {
|
|
29
|
-
if (mod && mod.__esModule) return mod;
|
|
30
|
-
var result = {};
|
|
31
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
-
__setModuleDefault(result, mod);
|
|
33
|
-
return result;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
-
};
|
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.getAuthTriggersConnections = exports.GEN1_CONFIGURATION_FILES = void 0;
|
|
41
|
-
exports.updateAmplifyYmlFile = updateAmplifyYmlFile;
|
|
42
|
-
exports.updateGitIgnoreForGen2 = updateGitIgnoreForGen2;
|
|
43
|
-
exports.updateCustomResources = updateCustomResources;
|
|
44
|
-
exports.updateCdkStackFile = updateCdkStackFile;
|
|
45
|
-
exports.prepare = prepare;
|
|
46
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
47
|
-
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
48
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
49
|
-
const uuid_1 = require("uuid");
|
|
50
|
-
const migration_pipeline_1 = require("../core/migration-pipeline");
|
|
51
|
-
const amplify_usageData_1 = require("../../../../domain/amplify-usageData");
|
|
52
|
-
const client_amplify_1 = require("@aws-sdk/client-amplify");
|
|
53
|
-
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
54
|
-
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
55
|
-
const client_cognito_identity_1 = require("@aws-sdk/client-cognito-identity");
|
|
56
|
-
const client_s3_1 = require("@aws-sdk/client-s3");
|
|
57
|
-
const client_lambda_1 = require("@aws-sdk/client-lambda");
|
|
58
|
-
const client_cloudwatch_events_1 = require("@aws-sdk/client-cloudwatch-events");
|
|
59
|
-
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
60
|
-
const backend_downloader_1 = require("./backend_downloader");
|
|
61
|
-
const backend_environment_selector_1 = require("./backend_environment_selector");
|
|
62
|
-
const analytics_1 = require("./analytics");
|
|
63
|
-
const app_auth_definition_fetcher_1 = require("./app_auth_definition_fetcher");
|
|
64
|
-
const app_storage_definition_fetcher_1 = require("./app_storage_definition_fetcher");
|
|
65
|
-
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
66
|
-
const data_definition_fetcher_1 = require("./data_definition_fetcher");
|
|
67
|
-
const amplify_stack_parser_1 = require("./amplify_stack_parser");
|
|
68
|
-
const app_functions_definition_fetcher_1 = require("./app_functions_definition_fetcher");
|
|
69
|
-
const auth_access_analyzer_1 = require("./auth_access_analyzer");
|
|
70
|
-
const ora_1 = __importDefault(require("ora"));
|
|
71
|
-
const app_analytics_definition_fetcher_1 = require("./app_analytics_definition_fetcher");
|
|
72
|
-
const ts = __importStar(require("typescript"));
|
|
73
|
-
const amplify_helper_transformer_1 = require("../custom-resources/transformer/amplify-helper-transformer");
|
|
74
|
-
const dependency_merger_1 = require("../custom-resources/generator/dependency-merger");
|
|
75
|
-
const file_converter_1 = require("../custom-resources/generator/file-converter");
|
|
76
|
-
const backend_updater_1 = require("../custom-resources/generator/backend-updater");
|
|
77
|
-
const execa_1 = __importDefault(require("execa"));
|
|
78
|
-
const TEMP_GEN_2_OUTPUT_DIR = 'amplify-gen2';
|
|
79
|
-
const AMPLIFY_DIR = 'amplify';
|
|
80
|
-
const GEN1_COMMAND = '- amplifyPush --simple';
|
|
81
|
-
const GEN2_INSTALL_COMMAND = '- npm ci --cache .npm --prefer-offline';
|
|
82
|
-
const GEN2_COMMAND = '- npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID';
|
|
83
|
-
const GEN2_COMMAND_GENERATION_MESSAGE_SUFFIX = 'your Gen 2 backend code';
|
|
84
|
-
const GEN1_CUSTOM_RESOURCES_SUFFIX = 'your Gen 1 custom resources';
|
|
85
|
-
exports.GEN1_CONFIGURATION_FILES = ['aws-exports.js', 'amplifyconfiguration.json', 'awsconfiguration.json'];
|
|
86
|
-
const CUSTOM_DIR = 'custom';
|
|
87
|
-
const TYPES_DIR = 'types';
|
|
88
|
-
const BACKEND_DIR = 'backend';
|
|
89
|
-
const GEN2_COMMAND_REPLACE_STRING = `${GEN2_INSTALL_COMMAND}\n${' '.repeat(8)}${GEN2_COMMAND}`;
|
|
90
|
-
var GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS;
|
|
91
|
-
(function (GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS) {
|
|
92
|
-
GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS["DOT_AMPLIFY"] = ".amplify";
|
|
93
|
-
GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS["AMPLIFY_OUTPUTS"] = "amplify_outputs*";
|
|
94
|
-
GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS["AMPLIFY_CONFIGURATION"] = "amplifyconfiguration*";
|
|
95
|
-
GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS["AWS_EXPORTS"] = "aws-exports*";
|
|
96
|
-
GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS["NODE_MODULES"] = "node_modules";
|
|
97
|
-
GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS["BUILD"] = "build";
|
|
98
|
-
GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS["DIST"] = "dist";
|
|
99
|
-
})(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS || (GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS = {}));
|
|
100
|
-
const generateGen2Code = async ({ outputDirectory, backendEnvironmentName, rootStackName, cloudFormationClient, authDefinitionFetcher, dataDefinitionFetcher, storageDefinitionFetcher, functionsDefinitionFetcher, analyticsDefinitionFetcher, ccbFetcher, backendEnvironment, logger, }) => {
|
|
101
|
-
logger.info('Fetching definitions from AWS for category: Auth');
|
|
102
|
-
const auth = await authDefinitionFetcher.getDefinition();
|
|
103
|
-
logger.info('Fetching definitions from AWS for category: Storage');
|
|
104
|
-
const storage = await storageDefinitionFetcher.getDefinition();
|
|
105
|
-
logger.info('Fetching definitions from AWS for category: Api');
|
|
106
|
-
const data = await dataDefinitionFetcher.getDefinition();
|
|
107
|
-
logger.info('Fetching definitions from AWS for category: Functions');
|
|
108
|
-
const functions = await functionsDefinitionFetcher.getDefinition();
|
|
109
|
-
logger.info('Fetching definitions from AWS for category: Analytics');
|
|
110
|
-
const analytics = await analyticsDefinitionFetcher.getDefinition();
|
|
111
|
-
logger.debug(`Auth: ${auth ? 'EXISTS' : 'UNDEFINED'}`);
|
|
112
|
-
logger.debug(`Storage: ${storage ? 'EXISTS' : 'UNDEFINED'}`);
|
|
113
|
-
logger.debug(`Data: ${data ? JSON.stringify(data, null, 2) : 'UNDEFINED'}`);
|
|
114
|
-
logger.debug(`Functions: ${functions ? `${functions.length} functions` : 'UNDEFINED'}`);
|
|
115
|
-
logger.debug(`Backend env: ${backendEnvironmentName}`);
|
|
116
|
-
logger.debug(`Analytics: ${analytics ? JSON.stringify(analytics, null, 2) : 'UNDEFINED'}`);
|
|
117
|
-
const gen2RenderOptions = {
|
|
118
|
-
outputDir: outputDirectory,
|
|
119
|
-
backendEnvironmentName: backendEnvironmentName,
|
|
120
|
-
rootStackName: rootStackName,
|
|
121
|
-
cfnClient: cloudFormationClient,
|
|
122
|
-
auth,
|
|
123
|
-
storage,
|
|
124
|
-
data,
|
|
125
|
-
functions,
|
|
126
|
-
analytics,
|
|
127
|
-
customResources: await getCustomResourceMap(ccbFetcher, backendEnvironment),
|
|
128
|
-
unsupportedCategories: await unsupportedCategories(ccbFetcher, backendEnvironment),
|
|
129
|
-
};
|
|
130
|
-
(0, node_assert_1.default)(gen2RenderOptions);
|
|
131
|
-
const pipeline = (0, migration_pipeline_1.createGen2Renderer)(gen2RenderOptions);
|
|
132
|
-
(0, node_assert_1.default)(backendEnvironmentName);
|
|
133
|
-
logger.info(`Generating ${GEN2_COMMAND_GENERATION_MESSAGE_SUFFIX}`);
|
|
134
|
-
await pipeline.render();
|
|
135
|
-
};
|
|
136
|
-
const getFunctionPath = (functionName) => {
|
|
137
|
-
return node_path_1.default.join(AMPLIFY_DIR, BACKEND_DIR, 'function', functionName, 'src');
|
|
138
|
-
};
|
|
139
|
-
const getUsageDataMetric = async (envName) => {
|
|
140
|
-
const usageData = amplify_usageData_1.UsageData.Instance;
|
|
141
|
-
const accountId = await getAccountId();
|
|
142
|
-
(0, node_assert_1.default)(accountId);
|
|
143
|
-
usageData.init((0, uuid_1.v4)(), '', {
|
|
144
|
-
command: 'to-gen-2',
|
|
145
|
-
argv: process.argv,
|
|
146
|
-
}, accountId, {
|
|
147
|
-
envName,
|
|
148
|
-
}, Date.now());
|
|
149
|
-
return usageData;
|
|
150
|
-
};
|
|
151
|
-
const getAccountId = async () => {
|
|
152
|
-
const stsClient = new client_sts_1.STSClient();
|
|
153
|
-
const callerIdentityResult = await stsClient.send(new client_sts_1.GetCallerIdentityCommand());
|
|
154
|
-
return callerIdentityResult.Account;
|
|
155
|
-
};
|
|
156
|
-
const getAuthTriggersConnections = async (ccbFetcher, backendEnvironment) => {
|
|
157
|
-
var _a;
|
|
158
|
-
const currentCloudBackendDirectory = await ccbFetcher.getCurrentCloudBackend(backendEnvironment.deploymentArtifacts);
|
|
159
|
-
const amplifyMetaPath = node_path_1.default.join(currentCloudBackendDirectory, 'amplify-meta.json');
|
|
160
|
-
const amplifyMeta = amplify_cli_core_1.JSONUtilities.readJson(amplifyMetaPath, { throwIfNotExist: true });
|
|
161
|
-
if (!amplifyMeta.auth) {
|
|
162
|
-
return {};
|
|
163
|
-
}
|
|
164
|
-
const resourceName = (_a = Object.entries(amplifyMeta.auth).find(([, resource]) => resource.service === 'Cognito')) === null || _a === void 0 ? void 0 : _a[0];
|
|
165
|
-
(0, node_assert_1.default)(resourceName);
|
|
166
|
-
const authInputs = amplify_cli_core_1.stateManager.getResourceInputsJson(undefined, amplify_cli_core_1.AmplifyCategories.AUTH, resourceName);
|
|
167
|
-
if (authInputs && typeof authInputs === 'object' && 'cognitoConfig' in authInputs && typeof authInputs.cognitoConfig === 'object') {
|
|
168
|
-
let triggerConnections = [];
|
|
169
|
-
if ('authTriggerConnections' in authInputs.cognitoConfig) {
|
|
170
|
-
try {
|
|
171
|
-
if (typeof authInputs.cognitoConfig.authTriggerConnections === 'string') {
|
|
172
|
-
triggerConnections = JSON.parse(authInputs.cognitoConfig.authTriggerConnections);
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
triggerConnections = authInputs.cognitoConfig.authTriggerConnections.map((connection) => JSON.parse(connection));
|
|
176
|
-
}
|
|
177
|
-
return triggerConnections.reduce((prev, curr) => {
|
|
178
|
-
prev[curr.triggerType] = getFunctionPath(curr.lambdaFunctionName);
|
|
179
|
-
return prev;
|
|
180
|
-
}, {});
|
|
181
|
-
}
|
|
182
|
-
catch (e) {
|
|
183
|
-
throw new Error('Error parsing auth trigger connections');
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
else if ('triggers' in authInputs.cognitoConfig && typeof authInputs.cognitoConfig.triggers === 'object') {
|
|
187
|
-
const authTriggers = authInputs.cognitoConfig.triggers;
|
|
188
|
-
return Object.keys(authTriggers).reduce((prev, authTrigger) => {
|
|
189
|
-
const cognitoAuthTrigger = amplifyGen1InputsTriggerNameToCognitoTriggerName(authTrigger);
|
|
190
|
-
prev[cognitoAuthTrigger] = getFunctionPath(`${resourceName}${authTrigger}`);
|
|
191
|
-
return prev;
|
|
192
|
-
}, {});
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
return {};
|
|
196
|
-
};
|
|
197
|
-
exports.getAuthTriggersConnections = getAuthTriggersConnections;
|
|
198
|
-
function amplifyGen1InputsTriggerNameToCognitoTriggerName(triggerName) {
|
|
199
|
-
switch (triggerName) {
|
|
200
|
-
case 'PreSignup':
|
|
201
|
-
return 'PreSignUp';
|
|
202
|
-
default:
|
|
203
|
-
return triggerName;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
const unsupportedCategories = async (ccbFetcher, backendEnvironment) => {
|
|
207
|
-
const unsupportedCategories = new Map();
|
|
208
|
-
const urlPrefix = 'https://docs.amplify.aws/react/build-a-backend/add-aws-services';
|
|
209
|
-
const restAPIKey = 'rest api';
|
|
210
|
-
const analyticsKey = 'analytics';
|
|
211
|
-
unsupportedCategories.set('geo', `${urlPrefix}/geo/`);
|
|
212
|
-
unsupportedCategories.set('analytics', `${urlPrefix}/analytics/`);
|
|
213
|
-
unsupportedCategories.set('predictions', `${urlPrefix}/predictions/`);
|
|
214
|
-
unsupportedCategories.set('notifications', `${urlPrefix}/in-app-messaging/`);
|
|
215
|
-
unsupportedCategories.set('interactions', `${urlPrefix}/interactions/`);
|
|
216
|
-
unsupportedCategories.set(restAPIKey, `${urlPrefix}/rest-api/`);
|
|
217
|
-
const currentCloudBackendDirectory = await ccbFetcher.getCurrentCloudBackend(backendEnvironment.deploymentArtifacts);
|
|
218
|
-
const amplifyMetaPath = node_path_1.default.join(currentCloudBackendDirectory, 'amplify-meta.json');
|
|
219
|
-
const meta = amplify_cli_core_1.JSONUtilities.readJson(amplifyMetaPath, { throwIfNotExist: true });
|
|
220
|
-
const categories = Object.keys(meta);
|
|
221
|
-
const unsupportedCategoriesList = new Map();
|
|
222
|
-
categories.forEach((category) => {
|
|
223
|
-
var _a;
|
|
224
|
-
if (category === 'analytics') {
|
|
225
|
-
const analytics = (_a = meta === null || meta === void 0 ? void 0 : meta.analytics) !== null && _a !== void 0 ? _a : {};
|
|
226
|
-
Object.keys(analytics).forEach((analytic) => {
|
|
227
|
-
const analyticObj = analytics[analytic];
|
|
228
|
-
if (analyticObj.service === 'Pinpoint') {
|
|
229
|
-
const analyticsDocLink = unsupportedCategories.get(analyticsKey);
|
|
230
|
-
(0, node_assert_1.default)(analyticsDocLink);
|
|
231
|
-
unsupportedCategoriesList.set(`Pinpoint ${analyticsKey}`, analyticsDocLink);
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
if (unsupportedCategories.has(category) && Object.entries(meta[category]).length > 0) {
|
|
237
|
-
const unsupportedCategoryDocLink = unsupportedCategories.get(category);
|
|
238
|
-
(0, node_assert_1.default)(unsupportedCategoryDocLink);
|
|
239
|
-
unsupportedCategoriesList.set(category, unsupportedCategoryDocLink);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
});
|
|
243
|
-
return unsupportedCategoriesList;
|
|
244
|
-
};
|
|
245
|
-
async function updateAmplifyYmlFile(amplifyClient, appId) {
|
|
246
|
-
const rootDir = amplify_cli_core_1.pathManager.findProjectRoot();
|
|
247
|
-
(0, node_assert_1.default)(rootDir);
|
|
248
|
-
const amplifyYmlPath = node_path_1.default.join(rootDir, 'amplify.yml');
|
|
249
|
-
try {
|
|
250
|
-
const amplifyYmlContent = await promises_1.default.readFile(amplifyYmlPath, 'utf-8');
|
|
251
|
-
await writeToAmplifyYmlFile(amplifyYmlPath, amplifyYmlContent);
|
|
252
|
-
}
|
|
253
|
-
catch (error) {
|
|
254
|
-
if (error.code === 'ENOENT') {
|
|
255
|
-
const getAppResponse = await amplifyClient.send(new client_amplify_1.GetAppCommand({ appId }));
|
|
256
|
-
(0, node_assert_1.default)(getAppResponse.app, 'App not found');
|
|
257
|
-
const buildSpec = getAppResponse.app.buildSpec;
|
|
258
|
-
if (buildSpec) {
|
|
259
|
-
await writeToAmplifyYmlFile(amplifyYmlPath, buildSpec);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
throw error;
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
async function writeToAmplifyYmlFile(amplifyYmlPath, content) {
|
|
268
|
-
content = content.replace(new RegExp(GEN1_COMMAND, 'g'), GEN2_COMMAND_REPLACE_STRING);
|
|
269
|
-
await promises_1.default.writeFile(amplifyYmlPath, content, { encoding: 'utf-8' });
|
|
270
|
-
}
|
|
271
|
-
async function updateGitIgnoreForGen2() {
|
|
272
|
-
const cwd = process.cwd();
|
|
273
|
-
let gitIgnore = '';
|
|
274
|
-
try {
|
|
275
|
-
gitIgnore = await promises_1.default.readFile(`${cwd}/.gitignore`, { encoding: 'utf-8' });
|
|
276
|
-
}
|
|
277
|
-
catch (e) {
|
|
278
|
-
}
|
|
279
|
-
const regex = /#amplify-do-not-edit-begin[\s\S]*#amplify-do-not-edit-end/g;
|
|
280
|
-
let newGitIgnore = gitIgnore.replace(regex, '');
|
|
281
|
-
if (!newGitIgnore.includes(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.DOT_AMPLIFY)) {
|
|
282
|
-
newGitIgnore = `${newGitIgnore}\n# amplify\n${GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.DOT_AMPLIFY}`;
|
|
283
|
-
}
|
|
284
|
-
if (!newGitIgnore.includes(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.AMPLIFY_OUTPUTS)) {
|
|
285
|
-
newGitIgnore = `${newGitIgnore}\n${GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.AMPLIFY_OUTPUTS}`;
|
|
286
|
-
}
|
|
287
|
-
if (!newGitIgnore.includes(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.AMPLIFY_CONFIGURATION)) {
|
|
288
|
-
newGitIgnore = `${newGitIgnore}\n${GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.AMPLIFY_CONFIGURATION}`;
|
|
289
|
-
}
|
|
290
|
-
if (!newGitIgnore.includes(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.AWS_EXPORTS)) {
|
|
291
|
-
newGitIgnore = `${newGitIgnore}\n${GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.AWS_EXPORTS}`;
|
|
292
|
-
}
|
|
293
|
-
if (!newGitIgnore.includes(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.NODE_MODULES)) {
|
|
294
|
-
newGitIgnore = `${newGitIgnore}\n# node_modules\n${GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.NODE_MODULES}`;
|
|
295
|
-
}
|
|
296
|
-
if (!newGitIgnore.includes(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.BUILD)) {
|
|
297
|
-
newGitIgnore = `${newGitIgnore}\n${GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.BUILD}`;
|
|
298
|
-
}
|
|
299
|
-
if (!newGitIgnore.includes(GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.DIST)) {
|
|
300
|
-
newGitIgnore = `${newGitIgnore}\n${GEN2_AMPLIFY_GITIGNORE_FILES_OR_DIRS.DIST}`;
|
|
301
|
-
}
|
|
302
|
-
newGitIgnore = newGitIgnore.replace(/^\s*[\r\n]/gm, '');
|
|
303
|
-
await promises_1.default.writeFile(`${cwd}/.gitignore`, newGitIgnore, { encoding: 'utf-8' });
|
|
304
|
-
}
|
|
305
|
-
const getCustomResources = async (ccbFetcher, backendEnvironment) => {
|
|
306
|
-
const currentCloudBackendDirectory = await ccbFetcher.getCurrentCloudBackend(backendEnvironment.deploymentArtifacts);
|
|
307
|
-
const amplifyMetaPath = node_path_1.default.join(currentCloudBackendDirectory, 'amplify-meta.json');
|
|
308
|
-
const meta = amplify_cli_core_1.JSONUtilities.readJson(amplifyMetaPath, { throwIfNotExist: true });
|
|
309
|
-
const customCategory = meta === null || meta === void 0 ? void 0 : meta.custom;
|
|
310
|
-
return customCategory ? Object.keys(customCategory) : [];
|
|
311
|
-
};
|
|
312
|
-
const getCustomResourceMap = async (ccbFetcher, backendEnvironment) => {
|
|
313
|
-
var _a;
|
|
314
|
-
const customResources = await getCustomResources(ccbFetcher, backendEnvironment);
|
|
315
|
-
const customResourceMap = new Map();
|
|
316
|
-
const rootDir = amplify_cli_core_1.pathManager.findProjectRoot();
|
|
317
|
-
(0, node_assert_1.default)(rootDir);
|
|
318
|
-
const amplifyGen1BackendDir = node_path_1.default.join(rootDir, AMPLIFY_DIR, BACKEND_DIR);
|
|
319
|
-
const sourceCustomResourcePath = node_path_1.default.join(amplifyGen1BackendDir, CUSTOM_DIR);
|
|
320
|
-
for (const resource of customResources) {
|
|
321
|
-
const cdkStackFilePath = node_path_1.default.join(sourceCustomResourcePath, resource, 'cdk-stack.ts');
|
|
322
|
-
const cdkStackContent = await promises_1.default.readFile(cdkStackFilePath, { encoding: 'utf-8' });
|
|
323
|
-
const className = (_a = cdkStackContent.match(/export class (\w+)/)) === null || _a === void 0 ? void 0 : _a[1];
|
|
324
|
-
if (className) {
|
|
325
|
-
customResourceMap.set(resource, className);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
return customResourceMap;
|
|
329
|
-
};
|
|
330
|
-
async function updateCustomResources(ccbFetcher, backendEnvironment) {
|
|
331
|
-
const customResources = await getCustomResources(ccbFetcher, backendEnvironment);
|
|
332
|
-
if (customResources.length > 0) {
|
|
333
|
-
const movingGen1CustomResources = (0, ora_1.default)(`Moving ${GEN1_CUSTOM_RESOURCES_SUFFIX}`).start();
|
|
334
|
-
const rootDir = amplify_cli_core_1.pathManager.findProjectRoot();
|
|
335
|
-
(0, node_assert_1.default)(rootDir);
|
|
336
|
-
const amplifyGen1BackendDir = node_path_1.default.join(rootDir, AMPLIFY_DIR, BACKEND_DIR);
|
|
337
|
-
const amplifyGen2Dir = node_path_1.default.join(TEMP_GEN_2_OUTPUT_DIR, AMPLIFY_DIR);
|
|
338
|
-
const sourceCustomResourcePath = node_path_1.default.join(amplifyGen1BackendDir, CUSTOM_DIR);
|
|
339
|
-
const destinationCustomResourcePath = node_path_1.default.join(amplifyGen2Dir, CUSTOM_DIR);
|
|
340
|
-
const filterFiles = ['package.json', 'yarn.lock'];
|
|
341
|
-
await promises_1.default.mkdir(destinationCustomResourcePath, { recursive: true });
|
|
342
|
-
await promises_1.default.cp(sourceCustomResourcePath, destinationCustomResourcePath, {
|
|
343
|
-
recursive: true,
|
|
344
|
-
filter: (src) => {
|
|
345
|
-
const fileName = node_path_1.default.basename(src);
|
|
346
|
-
return !filterFiles.includes(fileName);
|
|
347
|
-
},
|
|
348
|
-
});
|
|
349
|
-
const sourceTypesPath = node_path_1.default.join(amplifyGen1BackendDir, TYPES_DIR);
|
|
350
|
-
const destinationTypesPath = node_path_1.default.join(amplifyGen2Dir, TYPES_DIR);
|
|
351
|
-
await promises_1.default.mkdir(destinationTypesPath, { recursive: true });
|
|
352
|
-
await promises_1.default.cp(sourceTypesPath, destinationTypesPath, { recursive: true });
|
|
353
|
-
await updateCdkStackFile(customResources, destinationCustomResourcePath, rootDir);
|
|
354
|
-
const gen2PackageJsonPath = node_path_1.default.join(amplifyGen2Dir, '..', 'package.json');
|
|
355
|
-
const dependencyMerger = new dependency_merger_1.DependencyMerger();
|
|
356
|
-
await dependencyMerger.mergeDependencies(sourceCustomResourcePath, gen2PackageJsonPath);
|
|
357
|
-
const fileConverter = new file_converter_1.FileConverter();
|
|
358
|
-
await fileConverter.convertCdkStackToResource(destinationCustomResourcePath);
|
|
359
|
-
await fileConverter.removeBuildArtifacts(destinationCustomResourcePath);
|
|
360
|
-
const backendFilePath = node_path_1.default.join(amplifyGen2Dir, 'backend.ts');
|
|
361
|
-
const customResourceMap = await getCustomResourceMap(ccbFetcher, backendEnvironment);
|
|
362
|
-
const backendUpdater = new backend_updater_1.BackendUpdater();
|
|
363
|
-
await backendUpdater.updateBackendFile(backendFilePath, customResourceMap);
|
|
364
|
-
movingGen1CustomResources.succeed(`Moved ${GEN1_CUSTOM_RESOURCES_SUFFIX}`);
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
async function updateCdkStackFile(customResources, destinationCustomResourcePath, rootDir) {
|
|
368
|
-
let projectName;
|
|
369
|
-
try {
|
|
370
|
-
const projectConfigPath = node_path_1.default.join(rootDir, AMPLIFY_DIR, '.config', 'project-config.json');
|
|
371
|
-
const projectConfig = JSON.parse(await promises_1.default.readFile(projectConfigPath, { encoding: 'utf-8' }));
|
|
372
|
-
projectName = projectConfig.projectName;
|
|
373
|
-
}
|
|
374
|
-
catch (e) {
|
|
375
|
-
}
|
|
376
|
-
for (const resource of customResources) {
|
|
377
|
-
const cdkStackFilePath = node_path_1.default.join(destinationCustomResourcePath, resource, 'cdk-stack.ts');
|
|
378
|
-
try {
|
|
379
|
-
let cdkStackContent = await promises_1.default.readFile(cdkStackFilePath, { encoding: 'utf-8' });
|
|
380
|
-
if (hasUncommentedDependency(cdkStackContent, 'AmplifyHelpers.addResourceDependency')) {
|
|
381
|
-
cdkStackContent = cdkStackContent.replace(/export class/, `throw new Error('Follow https://docs.amplify.aws/react/start/migrate-to-gen2/ to update the resource dependency');\n\nexport class`);
|
|
382
|
-
}
|
|
383
|
-
if (!cdkStackContent.includes("from 'constructs'")) {
|
|
384
|
-
const importRegex = /(import.*from.*['"]; ?\s*\n)/g;
|
|
385
|
-
let lastImportMatch;
|
|
386
|
-
let match;
|
|
387
|
-
while ((match = importRegex.exec(cdkStackContent)) !== null) {
|
|
388
|
-
lastImportMatch = match;
|
|
389
|
-
}
|
|
390
|
-
if (lastImportMatch) {
|
|
391
|
-
const insertIndex = lastImportMatch.index + lastImportMatch[0].length;
|
|
392
|
-
cdkStackContent =
|
|
393
|
-
cdkStackContent.slice(0, insertIndex) + "import { Construct } from 'constructs';\n" + cdkStackContent.slice(insertIndex);
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
cdkStackContent = "import { Construct } from 'constructs';\n" + cdkStackContent;
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
cdkStackContent = cdkStackContent.replace(/new cdk\.CfnParameter\(this, ['"]env['"], {[\s\S]*?}\);/, `new cdk.CfnParameter(this, "env", {
|
|
400
|
-
type: "String",
|
|
401
|
-
description: "Current Amplify CLI env name",
|
|
402
|
-
default: \`\${branchName}\`
|
|
403
|
-
});`);
|
|
404
|
-
const sourceFile = ts.createSourceFile(cdkStackFilePath, cdkStackContent, ts.ScriptTarget.Latest, true);
|
|
405
|
-
const transformedFile = amplify_helper_transformer_1.AmplifyHelperTransformer.transform(sourceFile, projectName);
|
|
406
|
-
const transformedWithBranchName = amplify_helper_transformer_1.AmplifyHelperTransformer.addBranchNameVariable(transformedFile, projectName);
|
|
407
|
-
const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed });
|
|
408
|
-
cdkStackContent = printer.printFile(transformedWithBranchName);
|
|
409
|
-
await promises_1.default.writeFile(cdkStackFilePath, cdkStackContent, { encoding: 'utf-8' });
|
|
410
|
-
}
|
|
411
|
-
catch (error) {
|
|
412
|
-
throw new Error(`Error updating the custom resource ${resource}`, { cause: error });
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
const hasUncommentedDependency = (fileContent, matchString) => {
|
|
417
|
-
const lines = fileContent.split('\n');
|
|
418
|
-
for (const line of lines) {
|
|
419
|
-
const trimmedLine = line.trim();
|
|
420
|
-
if (trimmedLine.includes(matchString) &&
|
|
421
|
-
!trimmedLine.startsWith('//') &&
|
|
422
|
-
!trimmedLine.startsWith('/*') &&
|
|
423
|
-
!trimmedLine.includes('*/') &&
|
|
424
|
-
!trimmedLine.match(/^\s*\*/)) {
|
|
425
|
-
return true;
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
return false;
|
|
429
|
-
};
|
|
430
|
-
async function prepare(logger, appId, envName, region) {
|
|
431
|
-
const amplifyClient = new client_amplify_1.AmplifyClient();
|
|
432
|
-
const backendEnvironmentResolver = new backend_environment_selector_1.BackendEnvironmentResolver(appId, envName, amplifyClient);
|
|
433
|
-
const backendEnvironment = await backendEnvironmentResolver.selectBackendEnvironment();
|
|
434
|
-
(0, node_assert_1.default)(backendEnvironment);
|
|
435
|
-
(0, node_assert_1.default)(backendEnvironmentResolver);
|
|
436
|
-
(0, node_assert_1.default)(backendEnvironment.environmentName);
|
|
437
|
-
const s3Client = new client_s3_1.S3Client();
|
|
438
|
-
const cloudFormationClient = new client_cloudformation_1.CloudFormationClient();
|
|
439
|
-
const cognitoIdentityProviderClient = new client_cognito_identity_provider_1.CognitoIdentityProviderClient();
|
|
440
|
-
const cognitoIdentityPoolClient = new client_cognito_identity_1.CognitoIdentityClient();
|
|
441
|
-
const lambdaClient = new client_lambda_1.LambdaClient({ region });
|
|
442
|
-
const cloudWatchEventsClient = new client_cloudwatch_events_1.CloudWatchEventsClient();
|
|
443
|
-
const amplifyStackParser = new amplify_stack_parser_1.AmplifyStackParser(cloudFormationClient);
|
|
444
|
-
const ccbFetcher = new backend_downloader_1.BackendDownloader(s3Client);
|
|
445
|
-
const authAnalyzer = new auth_access_analyzer_1.AuthAccessAnalyzer(backendEnvironmentResolver, ccbFetcher);
|
|
446
|
-
await generateGen2Code({
|
|
447
|
-
outputDirectory: TEMP_GEN_2_OUTPUT_DIR,
|
|
448
|
-
storageDefinitionFetcher: new app_storage_definition_fetcher_1.AppStorageDefinitionFetcher(backendEnvironmentResolver, new backend_downloader_1.BackendDownloader(s3Client), s3Client),
|
|
449
|
-
authDefinitionFetcher: new app_auth_definition_fetcher_1.AppAuthDefinitionFetcher(cognitoIdentityPoolClient, cognitoIdentityProviderClient, amplifyStackParser, backendEnvironmentResolver, () => (0, exports.getAuthTriggersConnections)(ccbFetcher, backendEnvironment), ccbFetcher),
|
|
450
|
-
dataDefinitionFetcher: new data_definition_fetcher_1.DataDefinitionFetcher(backendEnvironmentResolver, new backend_downloader_1.BackendDownloader(s3Client)),
|
|
451
|
-
functionsDefinitionFetcher: new app_functions_definition_fetcher_1.AppFunctionsDefinitionFetcher(lambdaClient, cloudWatchEventsClient, backendEnvironmentResolver, amplify_cli_core_1.stateManager, ccbFetcher, authAnalyzer),
|
|
452
|
-
analyticsDefinitionFetcher: new app_analytics_definition_fetcher_1.AppAnalyticsDefinitionFetcher(backendEnvironmentResolver, new backend_downloader_1.BackendDownloader(s3Client)),
|
|
453
|
-
analytics: new analytics_1.AppAnalytics(appId),
|
|
454
|
-
logger: logger,
|
|
455
|
-
ccbFetcher,
|
|
456
|
-
backendEnvironment,
|
|
457
|
-
backendEnvironmentName: backendEnvironment.environmentName,
|
|
458
|
-
rootStackName: backendEnvironment.stackName,
|
|
459
|
-
cloudFormationClient: cloudFormationClient,
|
|
460
|
-
});
|
|
461
|
-
logger.info(`Creating 'amplify.yml' file for amplify hosting deployments`);
|
|
462
|
-
await updateAmplifyYmlFile(amplifyClient, appId);
|
|
463
|
-
logger.info('Updating .gitignore');
|
|
464
|
-
await updateGitIgnoreForGen2();
|
|
465
|
-
await updateCustomResources(ccbFetcher, backendEnvironment);
|
|
466
|
-
const cwd = process.cwd();
|
|
467
|
-
logger.info(`Overriding local 'amplify' folder`);
|
|
468
|
-
await promises_1.default.rm(AMPLIFY_DIR, { recursive: true });
|
|
469
|
-
await promises_1.default.rename(`${TEMP_GEN_2_OUTPUT_DIR}/amplify`, `${cwd}/amplify`);
|
|
470
|
-
await promises_1.default.rename(`${TEMP_GEN_2_OUTPUT_DIR}/package.json`, `${cwd}/package.json`);
|
|
471
|
-
await promises_1.default.rm(TEMP_GEN_2_OUTPUT_DIR, { recursive: true });
|
|
472
|
-
const packageLockPath = node_path_1.default.join(cwd, 'package-lock.json');
|
|
473
|
-
const nodeModulesPath = node_path_1.default.join(cwd, 'node_modules');
|
|
474
|
-
if (await pathExists(packageLockPath)) {
|
|
475
|
-
logger.info('Deleting package-lock.json');
|
|
476
|
-
await promises_1.default.rm(packageLockPath, { recursive: true });
|
|
477
|
-
}
|
|
478
|
-
if (await pathExists(nodeModulesPath)) {
|
|
479
|
-
logger.info('Deleting node_modules');
|
|
480
|
-
await promises_1.default.rm(nodeModulesPath, { recursive: true });
|
|
481
|
-
}
|
|
482
|
-
logger.info('Installing dependencies');
|
|
483
|
-
await (0, execa_1.default)('npm', ['install']);
|
|
484
|
-
await (0, execa_1.default)('npm', ['install']);
|
|
485
|
-
}
|
|
486
|
-
async function pathExists(path) {
|
|
487
|
-
try {
|
|
488
|
-
await promises_1.default.stat(path);
|
|
489
|
-
return true;
|
|
490
|
-
}
|
|
491
|
-
catch (error) {
|
|
492
|
-
if (error.code === 'ENOENT') {
|
|
493
|
-
return false;
|
|
494
|
-
}
|
|
495
|
-
throw error;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
//# sourceMappingURL=command-handlers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-handlers.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/command-handlers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0SA,oDA0BC;AASD,wDAqCC;AAsCD,sDAgDC;AAED,gDAmEC;AAwBD,0BAsFC;AA1nBD,0DAA6B;AAC7B,gEAAkC;AAClC,8DAAiC;AACjC,+BAAkC;AAElC,mEAAsF;AAEtF,4EAAiE;AACjE,4DAA6G;AAC7G,0EAAsE;AACtE,gGAA4G;AAC5G,8EAAyE;AACzE,kDAA8C;AAC9C,0DAAsD;AACtD,gFAA2E;AAE3E,oDAA0E;AAC1E,6DAAyD;AAEzD,iFAA4E;AAC5E,2CAAsD;AACtD,+EAAyE;AACzE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