@aws-amplify/cli-internal-gen2-migration-experimental-alpha 0.5.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 +22 -12
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.5.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
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.AmplifyGen2MigrationValidations = void 0;
|
|
7
|
-
const drift_1 = require("
|
|
7
|
+
const drift_1 = require("../../drift");
|
|
8
8
|
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
9
9
|
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
10
10
|
const stateful_resources_1 = require("./stateful-resources");
|
|
@@ -13,11 +13,11 @@ const bottleneck_1 = __importDefault(require("bottleneck"));
|
|
|
13
13
|
const execa_1 = __importDefault(require("execa"));
|
|
14
14
|
const chalk_1 = __importDefault(require("chalk"));
|
|
15
15
|
const amplify_prompts_1 = require("@aws-amplify/amplify-prompts");
|
|
16
|
+
const categories_1 = require("./categories");
|
|
16
17
|
class AmplifyGen2MigrationValidations {
|
|
17
|
-
constructor(logger,
|
|
18
|
+
constructor(logger, gen1App, context) {
|
|
18
19
|
this.logger = logger;
|
|
19
|
-
this.
|
|
20
|
-
this.envName = envName;
|
|
20
|
+
this.gen1App = gen1App;
|
|
21
21
|
this.context = context;
|
|
22
22
|
this.limiter = new bottleneck_1.default({
|
|
23
23
|
maxConcurrent: 3,
|
|
@@ -25,17 +25,17 @@ class AmplifyGen2MigrationValidations {
|
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
async validateDrift() {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
var _a;
|
|
29
|
+
const result = await new drift_1.AmplifyDriftDetector(this.context, this.logger).detect();
|
|
30
|
+
if (result.code !== 0) {
|
|
30
31
|
throw new amplify_cli_core_1.AmplifyError('MigrationError', {
|
|
31
|
-
message: 'Drift detected',
|
|
32
|
-
resolution: 'Inspect the
|
|
32
|
+
message: (_a = result.report.trim()) !== null && _a !== void 0 ? _a : 'Drift detected',
|
|
33
|
+
resolution: 'Inspect the drift report above and resolve the drift',
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
this.logger.info(chalk_1.default.green('No drift detected ✔ '));
|
|
36
36
|
}
|
|
37
37
|
async validateWorkingDirectory() {
|
|
38
|
-
this.logger.
|
|
38
|
+
this.logger.debug('Inspecting local directory state for uncommitted changes');
|
|
39
39
|
const { stdout: statusOutput } = await (0, execa_1.default)('git', ['status', '--porcelain']);
|
|
40
40
|
if (statusOutput.trim()) {
|
|
41
41
|
throw new amplify_cli_core_1.AmplifyError('MigrationError', {
|
|
@@ -43,15 +43,13 @@ class AmplifyGen2MigrationValidations {
|
|
|
43
43
|
resolution: 'Commit or stash your changes before proceeding with migration.',
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
this.logger.info(chalk_1.default.green('Local working directory is clean ✔'));
|
|
47
46
|
}
|
|
48
47
|
async validateDeploymentStatus() {
|
|
49
|
-
this.logger.
|
|
50
|
-
const
|
|
51
|
-
const response = await cfnClient.send(new client_cloudformation_1.DescribeStacksCommand({ StackName: this.rootStackName }));
|
|
48
|
+
this.logger.debug(`Inspecting root stack '${this.gen1App.rootStackName}' status`);
|
|
49
|
+
const response = await this.gen1App.clients.cloudFormation.send(new client_cloudformation_1.DescribeStacksCommand({ StackName: this.gen1App.rootStackName }));
|
|
52
50
|
if (!response.Stacks || response.Stacks.length === 0) {
|
|
53
51
|
throw new amplify_cli_core_1.AmplifyError('StackNotFoundError', {
|
|
54
|
-
message: `Stack ${this.rootStackName} not found in CloudFormation`,
|
|
52
|
+
message: `Stack ${this.gen1App.rootStackName} not found in CloudFormation`,
|
|
55
53
|
resolution: 'Ensure the project is deployed.',
|
|
56
54
|
});
|
|
57
55
|
}
|
|
@@ -63,7 +61,6 @@ class AmplifyGen2MigrationValidations {
|
|
|
63
61
|
resolution: 'Complete the deployment before proceeding.',
|
|
64
62
|
});
|
|
65
63
|
}
|
|
66
|
-
this.logger.info(chalk_1.default.green(`Root stack '${this.rootStackName}' status is ${stackStatus} ✔`));
|
|
67
64
|
}
|
|
68
65
|
async validateDeploymentVersion() {
|
|
69
66
|
this.logger.warn('Not implemented');
|
|
@@ -76,7 +73,7 @@ class AmplifyGen2MigrationValidations {
|
|
|
76
73
|
if (!changeSet.Changes)
|
|
77
74
|
return;
|
|
78
75
|
const deploymentBucketName = excludeDeploymentBucket
|
|
79
|
-
? amplify_cli_core_1.stateManager.getTeamProviderInfo()[this.envName].awscloudformation.DeploymentBucketName
|
|
76
|
+
? amplify_cli_core_1.stateManager.getTeamProviderInfo()[this.gen1App.envName].awscloudformation.DeploymentBucketName
|
|
80
77
|
: undefined;
|
|
81
78
|
this.logger.info('Scanning for stateful resources...');
|
|
82
79
|
const statefulRemoves = [];
|
|
@@ -88,13 +85,13 @@ class AmplifyGen2MigrationValidations {
|
|
|
88
85
|
continue;
|
|
89
86
|
}
|
|
90
87
|
if (change.ResourceChange.ResourceType === 'AWS::CloudFormation::Stack' && change.ResourceChange.PhysicalResourceId) {
|
|
91
|
-
const category =
|
|
88
|
+
const category = (0, categories_1.extractCategory)(change.ResourceChange.LogicalResourceId || '');
|
|
92
89
|
this.logger.info(`Scanning '${category}'...`);
|
|
93
90
|
const nestedResources = await this.getStatefulResources(change.ResourceChange.PhysicalResourceId, change.ResourceChange.LogicalResourceId);
|
|
94
91
|
statefulRemoves.push(...nestedResources);
|
|
95
92
|
}
|
|
96
93
|
else if (stateful_resources_1.STATEFUL_RESOURCES.has(change.ResourceChange.ResourceType)) {
|
|
97
|
-
const category =
|
|
94
|
+
const category = (0, categories_1.extractCategory)(change.ResourceChange.LogicalResourceId || '');
|
|
98
95
|
const physicalId = change.ResourceChange.PhysicalResourceId || 'N/A';
|
|
99
96
|
this.logger.info(`Scanning '${category}' category: found stateful resource "${physicalId}"`);
|
|
100
97
|
statefulRemoves.push({
|
|
@@ -127,9 +124,8 @@ class AmplifyGen2MigrationValidations {
|
|
|
127
124
|
this.logger.warn('Not implemented');
|
|
128
125
|
}
|
|
129
126
|
async validateLockStatus() {
|
|
130
|
-
|
|
131
|
-
this.
|
|
132
|
-
const { StackPolicyBody } = await cfnClient.send(new client_cloudformation_1.GetStackPolicyCommand({ StackName: this.rootStackName }));
|
|
127
|
+
this.logger.debug(`Inspecting stack policy for ${this.gen1App.rootStackName}`);
|
|
128
|
+
const { StackPolicyBody } = await this.gen1App.clients.cloudFormation.send(new client_cloudformation_1.GetStackPolicyCommand({ StackName: this.gen1App.rootStackName }));
|
|
133
129
|
if (!StackPolicyBody) {
|
|
134
130
|
throw new amplify_cli_core_1.AmplifyError('MigrationError', {
|
|
135
131
|
message: 'Stack is not locked',
|
|
@@ -153,20 +149,16 @@ class AmplifyGen2MigrationValidations {
|
|
|
153
149
|
resolution: 'Run the lock command to set the correct stack policy.',
|
|
154
150
|
});
|
|
155
151
|
}
|
|
156
|
-
this.logger.
|
|
152
|
+
this.logger.debug(chalk_1.default.green(`Stack ${this.gen1App.rootStackName} is locked ✔`));
|
|
157
153
|
}
|
|
158
154
|
async getStatefulResources(stackName, parentLogicalId) {
|
|
159
155
|
var _a;
|
|
160
156
|
const statefulResources = [];
|
|
161
|
-
const
|
|
162
|
-
maxAttempts: 5,
|
|
163
|
-
retryMode: 'adaptive',
|
|
164
|
-
});
|
|
165
|
-
const parentCategory = parentLogicalId ? this.extractCategory(parentLogicalId) : undefined;
|
|
157
|
+
const parentCategory = parentLogicalId ? (0, categories_1.extractCategory)(parentLogicalId) : undefined;
|
|
166
158
|
let nextToken;
|
|
167
159
|
const nestedStackTasks = [];
|
|
168
160
|
do {
|
|
169
|
-
const response = await
|
|
161
|
+
const response = await this.gen1App.clients.cloudFormation.send(new client_cloudformation_1.ListStackResourcesCommand({ StackName: stackName, NextToken: nextToken }));
|
|
170
162
|
nextToken = response.NextToken;
|
|
171
163
|
for (const resource of (_a = response.StackResourceSummaries) !== null && _a !== void 0 ? _a : []) {
|
|
172
164
|
if (resource.ResourceType === 'AWS::CloudFormation::Stack' && resource.PhysicalResourceId) {
|
|
@@ -176,7 +168,7 @@ class AmplifyGen2MigrationValidations {
|
|
|
176
168
|
});
|
|
177
169
|
}
|
|
178
170
|
else if (resource.ResourceType && stateful_resources_1.STATEFUL_RESOURCES.has(resource.ResourceType)) {
|
|
179
|
-
const category = parentCategory ||
|
|
171
|
+
const category = parentCategory || (0, categories_1.extractCategory)(resource.LogicalResourceId || '');
|
|
180
172
|
const physicalId = resource.PhysicalResourceId || 'N/A';
|
|
181
173
|
this.logger.info(`Scanning '${category}' category: found stateful resource "${physicalId}"`);
|
|
182
174
|
statefulResources.push({
|
|
@@ -188,40 +180,12 @@ class AmplifyGen2MigrationValidations {
|
|
|
188
180
|
}
|
|
189
181
|
} while (nextToken);
|
|
190
182
|
const nestedResults = await Promise.all(nestedStackTasks.map((task) => this.limiter.schedule(() => {
|
|
191
|
-
const category =
|
|
183
|
+
const category = (0, categories_1.extractCategory)(task.logicalId || '');
|
|
192
184
|
return this.getStatefulResources(task.physicalId, category !== 'other' ? task.logicalId : parentLogicalId);
|
|
193
185
|
})));
|
|
194
186
|
nestedResults.forEach((nested) => statefulResources.push(...nested));
|
|
195
187
|
return statefulResources;
|
|
196
188
|
}
|
|
197
|
-
extractCategory(logicalId) {
|
|
198
|
-
const idLower = logicalId.toLowerCase();
|
|
199
|
-
if (idLower.includes('auth'))
|
|
200
|
-
return 'Auth';
|
|
201
|
-
if (idLower.includes('storage'))
|
|
202
|
-
return 'Storage';
|
|
203
|
-
if (idLower.includes('function'))
|
|
204
|
-
return 'Function';
|
|
205
|
-
if (idLower.includes('api'))
|
|
206
|
-
return 'Api';
|
|
207
|
-
if (idLower.includes('analytics'))
|
|
208
|
-
return 'Analytics';
|
|
209
|
-
if (idLower.includes('hosting'))
|
|
210
|
-
return 'Hosting';
|
|
211
|
-
if (idLower.includes('notifications'))
|
|
212
|
-
return 'Notifications';
|
|
213
|
-
if (idLower.includes('interactions'))
|
|
214
|
-
return 'Interactions';
|
|
215
|
-
if (idLower.includes('predictions'))
|
|
216
|
-
return 'Predictions';
|
|
217
|
-
if (idLower.includes('deployment') || idLower.includes('infrastructure'))
|
|
218
|
-
return 'Core Infrastructure';
|
|
219
|
-
if (idLower.includes('geo'))
|
|
220
|
-
return 'Geo';
|
|
221
|
-
if (idLower.includes('custom'))
|
|
222
|
-
return 'Custom';
|
|
223
|
-
return 'other';
|
|
224
|
-
}
|
|
225
189
|
}
|
|
226
190
|
exports.AmplifyGen2MigrationValidations = AmplifyGen2MigrationValidations;
|
|
227
|
-
//# sourceMappingURL=
|
|
191
|
+
//# sourceMappingURL=validations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validations.js","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/_infra/validations.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAmD;AACnD,oEAAuF;AACvF,0EAKwC;AACxC,6DAA0D;AAC1D,4DAAkC;AAClC,4DAAoC;AACpC,kDAA0B;AAE1B,kDAA0B;AAC1B,kEAAuD;AACvD,6CAA+C;AAG/C,MAAa,+BAA+B;IAM1C,YAAoC,MAAsB,EAAmB,OAAgB,EAAmB,OAAmB;QAA/F,WAAM,GAAN,MAAM,CAAgB;QAAmB,YAAO,GAAP,OAAO,CAAS;QAAmB,YAAO,GAAP,OAAO,CAAY;QALlH,YAAO,GAAG,IAAI,oBAAU,CAAC;YACxC,aAAa,EAAE,CAAC;YAChB,OAAO,EAAE,EAAE;SACZ,CAAC,CAAC;IAEmI,CAAC;IAEhI,KAAK,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CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;QAC7G,CAAC,CAAC,CACH,CACF,CAAC;QAEF,aAAa,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC;QACrE,OAAO,iBAAiB,CAAC;IAC3B,CAAC;CACF;AApND,0EAoNC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class AnalyticsKinesisAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=kinesis.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kinesis.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/analytics/kinesis.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAK7E,qBAAa,wBAAyB,YAAW,QAAQ;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAG5C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnalyticsKinesisAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
class AnalyticsKinesisAssessor {
|
|
6
|
+
constructor(gen1App, resource) {
|
|
7
|
+
this.gen1App = gen1App;
|
|
8
|
+
this.resource = resource;
|
|
9
|
+
}
|
|
10
|
+
record(assessment) {
|
|
11
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.supported)() });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.AnalyticsKinesisAssessor = AnalyticsKinesisAssessor;
|
|
15
|
+
//# sourceMappingURL=kinesis.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kinesis.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/analytics/kinesis.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAsD;AAMtD,MAAa,wBAAwB;IACnC,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AATD,4DASC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class DataAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=data.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/api/data.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAyC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gCAAgC,CAAC;AAM7F,qBAAa,YAAa,YAAW,QAAQ;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAc5C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
const gen1_app_1 = require("../../generate/_infra/gen1-app");
|
|
6
|
+
class DataAssessor {
|
|
7
|
+
constructor(gen1App, resource) {
|
|
8
|
+
this.gen1App = gen1App;
|
|
9
|
+
this.resource = resource;
|
|
10
|
+
}
|
|
11
|
+
record(assessment) {
|
|
12
|
+
this.gen1App.ensureCliInputs(this.resource.category, this.resource.resourceName);
|
|
13
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.notApplicable)() });
|
|
14
|
+
const overridesPath = `api/${this.resource.resourceName}/override.ts`;
|
|
15
|
+
if (this.gen1App.fileExists(overridesPath)) {
|
|
16
|
+
assessment.recordFeature({
|
|
17
|
+
feature: { name: gen1_app_1.KNOWN_FEATURES.OVERRIDES, path: overridesPath },
|
|
18
|
+
generate: (0, assessment_1.unsupported)('requires adding code after generate'),
|
|
19
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.DataAssessor = DataAssessor;
|
|
25
|
+
//# sourceMappingURL=data.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/api/data.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAkF;AAClF,6DAA6F;AAM7F,MAAa,YAAY;IACvB,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACjF,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,0BAAa,GAAE,EAAE,CAAC,CAAC;QAEzG,MAAM,aAAa,GAAG,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,cAAc,CAAC;QAEtE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3C,UAAU,CAAC,aAAa,CAAC;gBACvB,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAc,CAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;gBAChE,QAAQ,EAAE,IAAA,wBAAW,EAAC,qCAAqC,CAAC;gBAC5D,QAAQ,EAAE,IAAA,0BAAa,GAAE;aAC1B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AApBD,oCAoBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class RestApiAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=rest-api.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest-api.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/api/rest-api.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAyC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gCAAgC,CAAC;AAK7F,qBAAa,eAAgB,YAAW,QAAQ;IAC3B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAc5C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RestApiAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
const gen1_app_1 = require("../../generate/_infra/gen1-app");
|
|
6
|
+
class RestApiAssessor {
|
|
7
|
+
constructor(gen1App, resource) {
|
|
8
|
+
this.gen1App = gen1App;
|
|
9
|
+
this.resource = resource;
|
|
10
|
+
}
|
|
11
|
+
record(assessment) {
|
|
12
|
+
this.gen1App.ensureCliInputs(this.resource.category, this.resource.resourceName);
|
|
13
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.notApplicable)() });
|
|
14
|
+
const overridesPath = `api/${this.resource.resourceName}/override.ts`;
|
|
15
|
+
if (this.gen1App.fileExists(overridesPath)) {
|
|
16
|
+
assessment.recordFeature({
|
|
17
|
+
feature: { name: gen1_app_1.KNOWN_FEATURES.OVERRIDES, path: overridesPath },
|
|
18
|
+
generate: (0, assessment_1.unsupported)('requires adding code after generate'),
|
|
19
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RestApiAssessor = RestApiAssessor;
|
|
25
|
+
//# sourceMappingURL=rest-api.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rest-api.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/api/rest-api.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAkF;AAClF,6DAA6F;AAK7F,MAAa,eAAe;IAC1B,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACjF,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,0BAAa,GAAE,EAAE,CAAC,CAAC;QAEzG,MAAM,aAAa,GAAG,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,cAAc,CAAC;QAEtE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3C,UAAU,CAAC,aAAa,CAAC;gBACvB,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAc,CAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;gBAChE,QAAQ,EAAE,IAAA,wBAAW,EAAC,qCAAqC,CAAC;gBAC5D,QAAQ,EAAE,IAAA,0BAAa,GAAE;aAC1B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AApBD,0CAoBC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DiscoveredResource } from '../generate/_infra/gen1-app';
|
|
2
|
+
export type SupportLevel = 'supported' | 'unsupported' | 'not-applicable';
|
|
3
|
+
export interface Support {
|
|
4
|
+
readonly level: SupportLevel;
|
|
5
|
+
readonly note?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const supported: () => Support;
|
|
8
|
+
export declare const unsupported: (note: string) => Support;
|
|
9
|
+
export declare const notApplicable: () => Support;
|
|
10
|
+
interface _Assessment {
|
|
11
|
+
readonly generate: Support;
|
|
12
|
+
readonly refactor: Support;
|
|
13
|
+
}
|
|
14
|
+
export interface ResourceAssessment extends _Assessment {
|
|
15
|
+
readonly resource: DiscoveredResource;
|
|
16
|
+
}
|
|
17
|
+
export interface FeatureAssessment extends _Assessment {
|
|
18
|
+
readonly feature: DiscoveredFeature;
|
|
19
|
+
}
|
|
20
|
+
export interface DiscoveredFeature {
|
|
21
|
+
readonly name: string;
|
|
22
|
+
readonly path: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class Assessment {
|
|
25
|
+
private readonly appName;
|
|
26
|
+
private readonly envName;
|
|
27
|
+
private readonly _resources;
|
|
28
|
+
private readonly _features;
|
|
29
|
+
constructor(appName: string, envName: string);
|
|
30
|
+
recordResource(resource: ResourceAssessment): void;
|
|
31
|
+
recordFeature(feature: FeatureAssessment): void;
|
|
32
|
+
get resources(): readonly ResourceAssessment[];
|
|
33
|
+
get features(): readonly FeatureAssessment[];
|
|
34
|
+
of(resource: DiscoveredResource, step: 'generate' | 'refactor'): Support;
|
|
35
|
+
validFor(step: 'generate' | 'refactor'): boolean;
|
|
36
|
+
render(): string;
|
|
37
|
+
private renderResourceTable;
|
|
38
|
+
private renderFeatureTable;
|
|
39
|
+
private static supportText;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=assessment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assessment.d.ts","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/assess/assessment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAOjE,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAM1E,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAKD,eAAO,MAAM,SAAS,QAAO,OAAmC,CAAC;AAKjE,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,OAA2C,CAAC;AAKvF,eAAO,MAAM,aAAa,QAAO,OAAwC,CAAC;AAE1E,UAAU,WAAW;IACnB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAKD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;CACvC;AAMD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,QAAQ,CAAC,OAAO,EAAE,iBAAiB,CAAC;CACrC;AAKD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAOD,qBAAa,UAAU;IAIF,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAU,OAAO,CAAC,QAAQ,CAAC,OAAO;IAH7E,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4B;IACvD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA2B;gBAEjB,OAAO,EAAE,MAAM,EAAmB,OAAO,EAAE,MAAM;IAK9E,cAAc,CAAC,QAAQ,EAAE,kBAAkB,GAAG,IAAI;IAOlD,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAOtD,IAAW,SAAS,IAAI,SAAS,kBAAkB,EAAE,CAEpD;IAKD,IAAW,QAAQ,IAAI,SAAS,iBAAiB,EAAE,CAElD;IAMM,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO;IAmBxE,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,GAAG,OAAO;IAkBhD,MAAM,IAAI,MAAM;IA6BvB,OAAO,CAAC,mBAAmB;IAmB3B,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,MAAM,CAAC,WAAW;CAU3B"}
|
|
@@ -0,0 +1,118 @@
|
|
|
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.Assessment = exports.notApplicable = exports.unsupported = exports.supported = void 0;
|
|
7
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
8
|
+
const cli_table3_1 = __importDefault(require("cli-table3"));
|
|
9
|
+
const GUIDE_LINK = 'https://github.com/aws-amplify/amplify-cli/blob/gen2-migration/GEN2_MIGRATION_GUIDE.md#feature-coverage';
|
|
10
|
+
const supported = () => ({ level: 'supported' });
|
|
11
|
+
exports.supported = supported;
|
|
12
|
+
const unsupported = (note) => ({ level: 'unsupported', note });
|
|
13
|
+
exports.unsupported = unsupported;
|
|
14
|
+
const notApplicable = () => ({ level: 'not-applicable' });
|
|
15
|
+
exports.notApplicable = notApplicable;
|
|
16
|
+
class Assessment {
|
|
17
|
+
constructor(appName, envName) {
|
|
18
|
+
this.appName = appName;
|
|
19
|
+
this.envName = envName;
|
|
20
|
+
this._resources = [];
|
|
21
|
+
this._features = [];
|
|
22
|
+
}
|
|
23
|
+
recordResource(resource) {
|
|
24
|
+
this._resources.push(resource);
|
|
25
|
+
}
|
|
26
|
+
recordFeature(feature) {
|
|
27
|
+
this._features.push(feature);
|
|
28
|
+
}
|
|
29
|
+
get resources() {
|
|
30
|
+
return this._resources;
|
|
31
|
+
}
|
|
32
|
+
get features() {
|
|
33
|
+
return this._features;
|
|
34
|
+
}
|
|
35
|
+
of(resource, step) {
|
|
36
|
+
const entry = this._resources.find((ra) => ra.resource.category === resource.category && ra.resource.resourceName === resource.resourceName);
|
|
37
|
+
if (!entry) {
|
|
38
|
+
throw new Error(`No assessment recorded for resource '${resource.category}/${resource.resourceName}'`);
|
|
39
|
+
}
|
|
40
|
+
switch (step) {
|
|
41
|
+
case 'generate':
|
|
42
|
+
return entry.generate;
|
|
43
|
+
case 'refactor':
|
|
44
|
+
return entry.refactor;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
validFor(step) {
|
|
48
|
+
switch (step) {
|
|
49
|
+
case 'generate':
|
|
50
|
+
return (this._resources.every((ar) => ar.generate.level !== 'unsupported') &&
|
|
51
|
+
this._features.every((fr) => fr.generate.level !== 'unsupported'));
|
|
52
|
+
case 'refactor':
|
|
53
|
+
return (this._resources.every((ar) => ar.refactor.level !== 'unsupported') &&
|
|
54
|
+
this._features.every((fr) => fr.refactor.level !== 'unsupported'));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
render() {
|
|
58
|
+
const lines = [];
|
|
59
|
+
lines.push('');
|
|
60
|
+
lines.push(chalk_1.default.bold(chalk_1.default.cyan(`Assessment For Migrating "${this.appName}" (env: ${this.envName})`)));
|
|
61
|
+
if (this._resources.length > 0) {
|
|
62
|
+
lines.push('');
|
|
63
|
+
lines.push(chalk_1.default.bold('Resources'));
|
|
64
|
+
lines.push('');
|
|
65
|
+
lines.push(this.renderResourceTable());
|
|
66
|
+
lines.push('');
|
|
67
|
+
}
|
|
68
|
+
if (this._features.length > 0) {
|
|
69
|
+
lines.push(chalk_1.default.bold('Advanced Features'));
|
|
70
|
+
lines.push('');
|
|
71
|
+
lines.push(this.renderFeatureTable());
|
|
72
|
+
lines.push('');
|
|
73
|
+
}
|
|
74
|
+
lines.push(chalk_1.default.yellow('⚠️ Some features may not be reported by this assessment. More details are available in the migration guide.'));
|
|
75
|
+
lines.push('');
|
|
76
|
+
lines.push(chalk_1.default.yellow(GUIDE_LINK));
|
|
77
|
+
lines.push('');
|
|
78
|
+
return lines.join('\n');
|
|
79
|
+
}
|
|
80
|
+
renderResourceTable() {
|
|
81
|
+
const table = new cli_table3_1.default({
|
|
82
|
+
head: ['Category', 'Service', 'Resource', 'Generate', 'Refactor'],
|
|
83
|
+
style: { head: [] },
|
|
84
|
+
});
|
|
85
|
+
for (const ra of this._resources) {
|
|
86
|
+
table.push([
|
|
87
|
+
ra.resource.category,
|
|
88
|
+
ra.resource.service,
|
|
89
|
+
ra.resource.resourceName,
|
|
90
|
+
Assessment.supportText(ra.generate),
|
|
91
|
+
Assessment.supportText(ra.refactor),
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
return table.toString();
|
|
95
|
+
}
|
|
96
|
+
renderFeatureTable() {
|
|
97
|
+
const table = new cli_table3_1.default({
|
|
98
|
+
head: ['Name', 'Path', 'Generate', 'Refactor'],
|
|
99
|
+
style: { head: [] },
|
|
100
|
+
});
|
|
101
|
+
for (const fr of this._features) {
|
|
102
|
+
table.push([fr.feature.name, fr.feature.path, Assessment.supportText(fr.generate), Assessment.supportText(fr.refactor)]);
|
|
103
|
+
}
|
|
104
|
+
return table.toString();
|
|
105
|
+
}
|
|
106
|
+
static supportText(support) {
|
|
107
|
+
switch (support.level) {
|
|
108
|
+
case 'supported':
|
|
109
|
+
return '✔';
|
|
110
|
+
case 'unsupported':
|
|
111
|
+
return support.note ? `✘ ${support.note}` : '✘';
|
|
112
|
+
case 'not-applicable':
|
|
113
|
+
return '—';
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.Assessment = Assessment;
|
|
118
|
+
//# sourceMappingURL=assessment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assessment.js","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/assess/assessment.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,4DAAkC;AAGlC,MAAM,UAAU,GAAG,yGAAyG,CAAC;AAmBtH,MAAM,SAAS,GAAG,GAAY,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC;AAApD,QAAA,SAAS,aAA2C;AAK1D,MAAM,WAAW,GAAG,CAAC,IAAY,EAAW,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;AAA1E,QAAA,WAAW,eAA+D;AAKhF,MAAM,aAAa,GAAG,GAAY,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAA7D,QAAA,aAAa,iBAAgD;AAmC1E,MAAa,UAAU;IAIrB,YAAoC,OAAe,EAAmB,OAAe;QAAjD,YAAO,GAAP,OAAO,CAAQ;QAAmB,YAAO,GAAP,OAAO,CAAQ;QAHpE,eAAU,GAAyB,EAAE,CAAC;QACtC,cAAS,GAAwB,EAAE,CAAC;IAEmC,CAAC;IAKlF,cAAc,CAAC,QAA4B;QAChD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC;IAKM,aAAa,CAAC,OA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AW,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC3H,CAAC;QAED,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC1B,CAAC;IAGO,MAAM,CAAC,WAAW,CAAC,OAAgB;QACzC,QAAQ,OAAO,CAAC,KAAK,EAAE,CAAC;YACtB,KAAK,WAAW;gBACd,OAAO,GAAG,CAAC;YACb,KAAK,aAAa;gBAChB,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;YAClD,KAAK,gBAAgB;gBACnB,OAAO,GAAG,CAAC;QACf,CAAC;IACH,CAAC;CACF;AAnJD,gCAmJC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assessor.d.ts","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/assess/assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assessor.js","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/assess/assessor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class AuthCognitoAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=auth-cognito.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-cognito.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/auth/auth-cognito.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAyC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gCAAgC,CAAC;AAM7F,qBAAa,mBAAoB,YAAW,QAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAoB5C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthCognitoAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
const gen1_app_1 = require("../../generate/_infra/gen1-app");
|
|
6
|
+
class AuthCognitoAssessor {
|
|
7
|
+
constructor(gen1App, resource) {
|
|
8
|
+
this.gen1App = gen1App;
|
|
9
|
+
this.resource = resource;
|
|
10
|
+
}
|
|
11
|
+
record(assessment) {
|
|
12
|
+
var _a;
|
|
13
|
+
const meta = ((_a = this.gen1App.meta('auth')) !== null && _a !== void 0 ? _a : {})[this.resource.resourceName];
|
|
14
|
+
const isImported = (meta === null || meta === void 0 ? void 0 : meta.serviceType) === 'imported';
|
|
15
|
+
if (!isImported) {
|
|
16
|
+
this.gen1App.ensureCliInputs(this.resource.category, this.resource.resourceName);
|
|
17
|
+
}
|
|
18
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.supported)() });
|
|
19
|
+
const overridesPath = `auth/${this.resource.resourceName}/override.ts`;
|
|
20
|
+
if (this.gen1App.fileExists(overridesPath)) {
|
|
21
|
+
assessment.recordFeature({
|
|
22
|
+
feature: { name: gen1_app_1.KNOWN_FEATURES.OVERRIDES, path: overridesPath },
|
|
23
|
+
generate: (0, assessment_1.unsupported)('requires adding code after generate'),
|
|
24
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AuthCognitoAssessor = AuthCognitoAssessor;
|
|
30
|
+
//# sourceMappingURL=auth-cognito.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-cognito.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/auth/auth-cognito.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAkF;AAClF,6DAA6F;AAM7F,MAAa,mBAAmB;IAC9B,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;;QAClC,MAAM,IAAI,GAAG,CAAC,MAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAwC,CAAC;QAClH,MAAM,UAAU,GAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,MAAK,UAAU,CAAC;QAEpD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACnF,CAAC;QAED,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,CAAC,CAAC;QAErG,MAAM,aAAa,GAAG,QAAQ,IAAI,CAAC,QAAQ,CAAC,YAAY,cAAc,CAAC;QAEvE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3C,UAAU,CAAC,aAAa,CAAC;gBACvB,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAc,CAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;gBAChE,QAAQ,EAAE,IAAA,wBAAW,EAAC,qCAAqC,CAAC;gBAC5D,QAAQ,EAAE,IAAA,0BAAa,GAAE;aAC1B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AA1BD,kDA0BC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class AuthUserPoolGroupsAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=auth-user-pool-groups.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-user-pool-groups.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAyC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gCAAgC,CAAC;AAM7F,qBAAa,0BAA2B,YAAW,QAAQ;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAa5C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthUserPoolGroupsAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
const gen1_app_1 = require("../../generate/_infra/gen1-app");
|
|
6
|
+
class AuthUserPoolGroupsAssessor {
|
|
7
|
+
constructor(gen1App, resource) {
|
|
8
|
+
this.gen1App = gen1App;
|
|
9
|
+
this.resource = resource;
|
|
10
|
+
}
|
|
11
|
+
record(assessment) {
|
|
12
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.supported)() });
|
|
13
|
+
const overridesPath = `auth/${this.resource.resourceName}/override.ts`;
|
|
14
|
+
if (this.gen1App.fileExists(overridesPath)) {
|
|
15
|
+
assessment.recordFeature({
|
|
16
|
+
feature: { name: gen1_app_1.KNOWN_FEATURES.OVERRIDES, path: overridesPath },
|
|
17
|
+
generate: (0, assessment_1.unsupported)('requires adding code after generate'),
|
|
18
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.AuthUserPoolGroupsAssessor = AuthUserPoolGroupsAssessor;
|
|
24
|
+
//# sourceMappingURL=auth-user-pool-groups.assessor.js.map
|