@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
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AmplifyMigrationRefactorStep = void 0;
|
|
7
|
-
const _step_1 = require("../_step");
|
|
8
|
-
const amplify_prompts_1 = require("@aws-amplify/amplify-prompts");
|
|
9
|
-
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
10
|
-
const fs_extra_1 = __importDefault(require("fs-extra"));
|
|
11
|
-
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
12
|
-
const client_ssm_1 = require("@aws-sdk/client-ssm");
|
|
13
|
-
const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
|
|
14
|
-
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
15
|
-
const _validations_1 = require("../_validations");
|
|
16
|
-
const client_cloudformation_2 = require("@aws-sdk/client-cloudformation");
|
|
17
|
-
const template_generator_1 = require("./generators/template-generator");
|
|
18
|
-
const FILE_PROTOCOL_PREFIX = 'file://';
|
|
19
|
-
class AmplifyMigrationRefactorStep extends _step_1.AmplifyMigrationStep {
|
|
20
|
-
implications() {
|
|
21
|
-
return ['Move stateful resources from your Gen1 app to be managed by your Gen2 app'];
|
|
22
|
-
}
|
|
23
|
-
async validate() {
|
|
24
|
-
const validations = new _validations_1.AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context);
|
|
25
|
-
await validations.validateLockStatus();
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
async execute() {
|
|
29
|
-
this.extractParameters();
|
|
30
|
-
if (this.resourceMappings) {
|
|
31
|
-
await this.processResourceMappings();
|
|
32
|
-
}
|
|
33
|
-
if (this.parsedResourceMappings) {
|
|
34
|
-
this.logger.debug(`📊 Using ${this.parsedResourceMappings.length} custom resource mapping(s)`);
|
|
35
|
-
}
|
|
36
|
-
await this.executeStackRefactor();
|
|
37
|
-
}
|
|
38
|
-
async rollback() {
|
|
39
|
-
this.logger.info('Not implemented');
|
|
40
|
-
}
|
|
41
|
-
extractParameters() {
|
|
42
|
-
var _a, _b, _c, _d;
|
|
43
|
-
this.toStack = (_b = (_a = this.context.parameters) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.to;
|
|
44
|
-
this.resourceMappings = (_d = (_c = this.context.parameters) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.resourceMappings;
|
|
45
|
-
if (!this.toStack) {
|
|
46
|
-
throw new amplify_cli_core_1.AmplifyError('InputValidationError', { message: '--to is required' });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
async processResourceMappings() {
|
|
50
|
-
var _a;
|
|
51
|
-
if (!this.resourceMappings)
|
|
52
|
-
return;
|
|
53
|
-
this.logger.info(`📋 Processing resource mappings from: ${this.resourceMappings}`);
|
|
54
|
-
if (!this.resourceMappings.startsWith(FILE_PROTOCOL_PREFIX)) {
|
|
55
|
-
throw new amplify_cli_core_1.AmplifyError('InputValidationError', {
|
|
56
|
-
message: `Resource mappings path must start with ${FILE_PROTOCOL_PREFIX}`,
|
|
57
|
-
resolution: `Use the format: ${FILE_PROTOCOL_PREFIX}/path/to/mappings.json`,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
const resourceMapPath = this.resourceMappings.split(FILE_PROTOCOL_PREFIX)[1];
|
|
61
|
-
if (!resourceMapPath) {
|
|
62
|
-
throw new amplify_cli_core_1.AmplifyError('InputValidationError', {
|
|
63
|
-
message: 'Invalid resource mappings path',
|
|
64
|
-
resolution: `Use the format: ${FILE_PROTOCOL_PREFIX}/path/to/file.json`,
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
try {
|
|
68
|
-
if (!(await fs_extra_1.default.pathExists(resourceMapPath))) {
|
|
69
|
-
throw new amplify_cli_core_1.AmplifyError('ResourceDoesNotExistError', {
|
|
70
|
-
message: `Resource mappings file not found: ${resourceMapPath}`,
|
|
71
|
-
resolution: 'Ensure the file exists and the path is correct.',
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
const fileContent = await fs_extra_1.default.readFile(resourceMapPath, 'utf-8');
|
|
75
|
-
this.logger.info('✅ Resource mappings file loaded successfully');
|
|
76
|
-
try {
|
|
77
|
-
this.parsedResourceMappings = JSON.parse(fileContent);
|
|
78
|
-
this.logger.info(`📊 Found ${((_a = this.parsedResourceMappings) === null || _a === void 0 ? void 0 : _a.length) || 0} resource mapping(s)`);
|
|
79
|
-
}
|
|
80
|
-
catch (parseError) {
|
|
81
|
-
throw new amplify_cli_core_1.AmplifyError('InputValidationError', {
|
|
82
|
-
message: `Failed to parse JSON from resource mappings file: ${parseError instanceof Error ? parseError.message : 'Invalid JSON format'}`,
|
|
83
|
-
resolution: 'Ensure the file contains valid JSON.',
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
if (!Array.isArray(this.parsedResourceMappings) || !this.parsedResourceMappings.every(this.isResourceMappingValid)) {
|
|
87
|
-
throw new amplify_cli_core_1.AmplifyError('InputValidationError', {
|
|
88
|
-
message: 'Invalid resource mappings structure',
|
|
89
|
-
resolution: 'Each mapping must have Source and Destination objects with StackName and LogicalResourceId properties.',
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
this.logger.info('✅ Resource mappings validated successfully');
|
|
93
|
-
}
|
|
94
|
-
catch (error) {
|
|
95
|
-
if (error instanceof amplify_cli_core_1.AmplifyError) {
|
|
96
|
-
throw error;
|
|
97
|
-
}
|
|
98
|
-
if (error instanceof Error && 'code' in error && error.code === 'ENOENT') {
|
|
99
|
-
throw new amplify_cli_core_1.AmplifyError('ResourceDoesNotExistError', {
|
|
100
|
-
message: `Resource mappings file not found: ${resourceMapPath}`,
|
|
101
|
-
resolution: 'Ensure the file exists and the path is correct.',
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
throw error;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
isResourceMappingValid(resourceMapping) {
|
|
108
|
-
return (typeof resourceMapping === 'object' &&
|
|
109
|
-
resourceMapping !== null &&
|
|
110
|
-
'Destination' in resourceMapping &&
|
|
111
|
-
typeof resourceMapping.Destination === 'object' &&
|
|
112
|
-
resourceMapping.Destination !== null &&
|
|
113
|
-
'StackName' in resourceMapping.Destination &&
|
|
114
|
-
typeof resourceMapping.Destination.StackName === 'string' &&
|
|
115
|
-
'LogicalResourceId' in resourceMapping.Destination &&
|
|
116
|
-
typeof resourceMapping.Destination.LogicalResourceId === 'string' &&
|
|
117
|
-
'Source' in resourceMapping &&
|
|
118
|
-
typeof resourceMapping.Source === 'object' &&
|
|
119
|
-
resourceMapping.Source !== null &&
|
|
120
|
-
'StackName' in resourceMapping.Source &&
|
|
121
|
-
typeof resourceMapping.Source.StackName === 'string' &&
|
|
122
|
-
'LogicalResourceId' in resourceMapping.Source &&
|
|
123
|
-
typeof resourceMapping.Source.LogicalResourceId === 'string');
|
|
124
|
-
}
|
|
125
|
-
async executeStackRefactor() {
|
|
126
|
-
const templateGenerator = await this.initializeTemplateGenerator();
|
|
127
|
-
await templateGenerator.initializeForAssessment();
|
|
128
|
-
const selectedCategories = await this.assessAndSelectCategories(templateGenerator);
|
|
129
|
-
if (selectedCategories.length === 0) {
|
|
130
|
-
this.logger.info('ℹ️ No categories selected for migration. Exiting.');
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
this.logger.info('🔧 Executing CloudFormation stack refactor...');
|
|
134
|
-
this.logger.info(`📋 Selected categories: ${selectedCategories.join(', ')}`);
|
|
135
|
-
const success = await templateGenerator.generateSelectedCategories(selectedCategories, this.parsedResourceMappings);
|
|
136
|
-
if (success) {
|
|
137
|
-
await this.emitUsageAnalytics(this.currentEnvName, true);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
await this.emitUsageAnalytics(this.currentEnvName, false);
|
|
141
|
-
throw new Error('Failed to execute CloudFormation stack refactor');
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
async assessAndSelectCategories(templateGenerator) {
|
|
145
|
-
this.logger.info('');
|
|
146
|
-
this.logger.info('🔍 Assessing available resources for migration...');
|
|
147
|
-
const categoryAssessments = await this.assessCategoryResources(templateGenerator);
|
|
148
|
-
if (categoryAssessments.length === 0) {
|
|
149
|
-
this.logger.info('⚠️ No resources found in any category for migration.');
|
|
150
|
-
return [];
|
|
151
|
-
}
|
|
152
|
-
this.logger.info('');
|
|
153
|
-
this.logger.info('📊 Migration Assessment Results:');
|
|
154
|
-
this.logger.info('');
|
|
155
|
-
for (const assessment of categoryAssessments) {
|
|
156
|
-
const { category, resourceCount, resourceTypes, hasOAuth, stackId } = assessment;
|
|
157
|
-
this.logger.info(`🔹 ${category.toUpperCase()} Category:`);
|
|
158
|
-
this.logger.info(` • Resources to migrate: ${resourceCount}`);
|
|
159
|
-
this.logger.info(` • Resource types: ${resourceTypes.join(', ')}`);
|
|
160
|
-
if (hasOAuth) {
|
|
161
|
-
this.logger.info(` • OAuth providers detected: Yes`);
|
|
162
|
-
}
|
|
163
|
-
this.logger.info(` • Source stack: ${stackId}`);
|
|
164
|
-
this.logger.info('');
|
|
165
|
-
}
|
|
166
|
-
const availableCategories = categoryAssessments.map((a) => a.category);
|
|
167
|
-
const selectionChoice = 'Migrate all categories';
|
|
168
|
-
if (selectionChoice === 'Migrate all categories') {
|
|
169
|
-
return availableCategories;
|
|
170
|
-
}
|
|
171
|
-
const selectedCategories = [];
|
|
172
|
-
for (const assessment of categoryAssessments) {
|
|
173
|
-
const { category, resourceCount } = assessment;
|
|
174
|
-
const shouldMigrate = await amplify_prompts_1.prompter.yesOrNo(`Migrate ${category} category? (${resourceCount} resources)`, true);
|
|
175
|
-
if (shouldMigrate) {
|
|
176
|
-
selectedCategories.push(category);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
if (selectedCategories.length === 0) {
|
|
180
|
-
this.logger.info('ℹ️ No categories selected.');
|
|
181
|
-
return [];
|
|
182
|
-
}
|
|
183
|
-
this.logger.info(`✅ Selected categories: ${selectedCategories.join(', ')}`);
|
|
184
|
-
return selectedCategories;
|
|
185
|
-
}
|
|
186
|
-
async assessCategoryResources(templateGenerator) {
|
|
187
|
-
var _a, _b;
|
|
188
|
-
const assessments = [];
|
|
189
|
-
for (const [category, [sourceCategoryStackId]] of templateGenerator.categoryStackMap.entries()) {
|
|
190
|
-
try {
|
|
191
|
-
const sourceTemplate = await templateGenerator.getStackTemplate(sourceCategoryStackId);
|
|
192
|
-
if (!(sourceTemplate === null || sourceTemplate === void 0 ? void 0 : sourceTemplate.Resources))
|
|
193
|
-
continue;
|
|
194
|
-
const resourcesToMigrate = templateGenerator.getResourcesToMigrate(sourceTemplate, category);
|
|
195
|
-
if (resourcesToMigrate.length === 0)
|
|
196
|
-
continue;
|
|
197
|
-
const resourceTypes = [
|
|
198
|
-
...new Set(resourcesToMigrate.map((logicalId) => { var _a; return (_a = sourceTemplate.Resources[logicalId]) === null || _a === void 0 ? void 0 : _a.Type; }).filter(Boolean)),
|
|
199
|
-
];
|
|
200
|
-
let hasOAuth = false;
|
|
201
|
-
if (category === 'auth') {
|
|
202
|
-
const stackInfo = await templateGenerator.cfnClient.send(new client_cloudformation_2.DescribeStacksCommand({ StackName: sourceCategoryStackId }));
|
|
203
|
-
const parameters = ((_b = (_a = stackInfo.Stacks) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.Parameters) || [];
|
|
204
|
-
hasOAuth = parameters.some((param) => param.ParameterKey === 'hostedUIProviderMeta');
|
|
205
|
-
}
|
|
206
|
-
assessments.push({
|
|
207
|
-
category,
|
|
208
|
-
resourceCount: resourcesToMigrate.length,
|
|
209
|
-
resourceTypes,
|
|
210
|
-
hasOAuth,
|
|
211
|
-
stackId: sourceCategoryStackId,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
catch (error) {
|
|
215
|
-
this.logger.debug(`Failed to assess ${category} category: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return assessments;
|
|
219
|
-
}
|
|
220
|
-
async initializeTemplateGenerator() {
|
|
221
|
-
const stsClient = new client_sts_1.STSClient({});
|
|
222
|
-
const callerIdentityResult = await stsClient.send(new client_sts_1.GetCallerIdentityCommand({}));
|
|
223
|
-
const accountId = callerIdentityResult.Account;
|
|
224
|
-
if (!accountId) {
|
|
225
|
-
throw new Error('Unable to determine AWS account ID');
|
|
226
|
-
}
|
|
227
|
-
const cfnClient = new client_cloudformation_1.CloudFormationClient({});
|
|
228
|
-
const ssmClient = new client_ssm_1.SSMClient({});
|
|
229
|
-
const cognitoIdpClient = new client_cognito_identity_provider_1.CognitoIdentityProviderClient({});
|
|
230
|
-
return new template_generator_1.TemplateGenerator(this.rootStackName, this.toStack, accountId, cfnClient, ssmClient, cognitoIdpClient, this.appId, this.currentEnvName, this.logger, this.region);
|
|
231
|
-
}
|
|
232
|
-
async emitUsageAnalytics(envName, success) {
|
|
233
|
-
try {
|
|
234
|
-
this.logger.debug(`Analytics: refactor command ${success ? 'succeeded' : 'failed'} for env: ${envName}`);
|
|
235
|
-
}
|
|
236
|
-
catch (error) {
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
exports.AmplifyMigrationRefactorStep = AmplifyMigrationRefactorStep;
|
|
241
|
-
//# sourceMappingURL=refactor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"refactor.js","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/refactor/refactor.ts"],"names":[],"mappings":";;;;;;AAEA,oCAAgD;AAChD,kEAAwD;AACxD,oEAA6D;AAC7D,wDAA0B;AAC1B,0EAAsE;AACtE,oDAAgD;AAChD,gGAA0F;AAC1F,oDAA0E;AAC1E,kDAAkE;AAClE,0EAAuE;AACvE,wEAAoE;AAepE,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAEvC,MAAa,4BAA6B,SAAQ,4BAAoB;IAK7D,YAAY;QACjB,OAAO,CAAC,2EAA2E,CAAC,CAAC;IACvF,CAAC;IAEM,KAAK,CAAC,QAAQ;QACnB,MAAM,WAAW,GAAG,IAAI,8CAA+B,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5H,MAAM,WAAW,CAAC,kBAAkB,EAAE,CAAC;QACvC,OAAO;IACT,CAAC;IAEM,KAAK,CAAC,OAAO;QAElB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAGzB,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,uBAAuB,EAAE,CAAC;QACvC,CAAC;QAED,IAAI,IAAI,CAAC,sBAAsB,EAAE,CAAC;YAChC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,IAAI,CAAC,sBAAsB,CAAC,MAAM,6BAA6B,CAAC,CAAC;QACjG,CAAC;QAGD,MAAM,IAAI,CAAC,oBAAoB,EAAE,CAAC;IACpC,CAAC;IAEM,KAAK,CAAC,QAAQ;QACnB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IACtC,CAAC;IAEO,iBAAiB;;QACvB,IAAI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AAI,sBAAS,CAAC,EAAE,CAAC,CAAC;QACpC,MAAM,gBAAgB,GAAG,IAAI,gEAA6B,CAAC,EAAE,CAAC,CAAC;QAG/D,OAAO,IAAI,sCAAiB,CAC1B,IAAI,CAAC,aAAa,EAElB,IAAI,CAAC,OAAQ,EACb,SAAS,EACT,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,CACZ,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,OAAe,EAAE,OAAgB;QAEhE,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,aAAa,OAAO,EAAE,CAAC,CAAC;QAC3G,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;QAEjB,CAAC;IACH,CAAC;CACF;AA/TD,oEA+TC"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { Parameter, StackRefactorExecutionStatus, StackRefactorStatus } from '@aws-sdk/client-cloudformation';
|
|
2
|
-
export interface CFNOutput {
|
|
3
|
-
Description?: string;
|
|
4
|
-
Value: string | object;
|
|
5
|
-
}
|
|
6
|
-
export declare enum CFNFunction {
|
|
7
|
-
Equals = "Fn::Equals",
|
|
8
|
-
Not = "Fn::Not",
|
|
9
|
-
Or = "Fn::Or",
|
|
10
|
-
And = "Fn::And",
|
|
11
|
-
If = "Fn::If"
|
|
12
|
-
}
|
|
13
|
-
export type CFNIntrinsicFunctionCondition = {
|
|
14
|
-
Condition: string;
|
|
15
|
-
};
|
|
16
|
-
export type CFNConditionFunctionStatement = string | object | CFNConditionFunction | CFNIntrinsicFunctionCondition;
|
|
17
|
-
export type CFNConditionFunction = {
|
|
18
|
-
[CFNFunction.Equals]: [CFNConditionFunctionStatement, CFNConditionFunctionStatement];
|
|
19
|
-
} | {
|
|
20
|
-
[CFNFunction.Not]: [CFNConditionFunctionStatement];
|
|
21
|
-
} | {
|
|
22
|
-
[CFNFunction.Or]: [CFNConditionFunctionStatement, CFNConditionFunctionStatement];
|
|
23
|
-
} | {
|
|
24
|
-
[CFNFunction.And]: [CFNConditionFunctionStatement, CFNConditionFunctionStatement];
|
|
25
|
-
};
|
|
26
|
-
export interface CFNResource {
|
|
27
|
-
Type: string;
|
|
28
|
-
Properties: Record<string, string | number | object>;
|
|
29
|
-
DependsOn?: string | string[];
|
|
30
|
-
Condition?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface CFNParameter {
|
|
33
|
-
Type: string;
|
|
34
|
-
Default?: string;
|
|
35
|
-
Description?: string;
|
|
36
|
-
NoEcho?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export interface CFNTemplate {
|
|
39
|
-
Description: string;
|
|
40
|
-
AWSTemplateFormatVersion: string;
|
|
41
|
-
Conditions?: Record<string, CFNConditionFunction>;
|
|
42
|
-
Resources: Record<string, CFNResource>;
|
|
43
|
-
Parameters?: Record<string, CFNParameter>;
|
|
44
|
-
Outputs: Record<string, CFNOutput>;
|
|
45
|
-
}
|
|
46
|
-
export interface CFNChangeTemplate {
|
|
47
|
-
oldTemplate: CFNTemplate;
|
|
48
|
-
newTemplate: CFNTemplate;
|
|
49
|
-
}
|
|
50
|
-
export interface CFNChangeTemplateWithParams extends CFNChangeTemplate {
|
|
51
|
-
parameters: Parameter[] | undefined;
|
|
52
|
-
}
|
|
53
|
-
export interface CFNStackRefactorTemplates {
|
|
54
|
-
sourceTemplate: CFNTemplate;
|
|
55
|
-
destinationTemplate: CFNTemplate;
|
|
56
|
-
logicalIdMapping: Map<string, string>;
|
|
57
|
-
}
|
|
58
|
-
export declare enum NON_CUSTOM_RESOURCE_CATEGORY {
|
|
59
|
-
AUTH = "auth",
|
|
60
|
-
STORAGE = "storage",
|
|
61
|
-
AUTH_USER_POOL_GROUP = "auth-user-pool-group"
|
|
62
|
-
}
|
|
63
|
-
export type CATEGORY = NON_CUSTOM_RESOURCE_CATEGORY.AUTH | NON_CUSTOM_RESOURCE_CATEGORY.STORAGE | NON_CUSTOM_RESOURCE_CATEGORY.AUTH_USER_POOL_GROUP | string;
|
|
64
|
-
export interface ResourceMappingLocation {
|
|
65
|
-
StackName: string;
|
|
66
|
-
LogicalResourceId: string;
|
|
67
|
-
}
|
|
68
|
-
export interface ResourceMapping {
|
|
69
|
-
Source: ResourceMappingLocation;
|
|
70
|
-
Destination: ResourceMappingLocation;
|
|
71
|
-
}
|
|
72
|
-
export declare enum CFN_AUTH_TYPE {
|
|
73
|
-
UserPool = "AWS::Cognito::UserPool",
|
|
74
|
-
UserPoolClient = "AWS::Cognito::UserPoolClient",
|
|
75
|
-
IdentityPool = "AWS::Cognito::IdentityPool",
|
|
76
|
-
IdentityPoolRoleAttachment = "AWS::Cognito::IdentityPoolRoleAttachment",
|
|
77
|
-
UserPoolDomain = "AWS::Cognito::UserPoolDomain",
|
|
78
|
-
UserPoolGroup = "AWS::Cognito::UserPoolGroup"
|
|
79
|
-
}
|
|
80
|
-
export declare enum CFN_S3_TYPE {
|
|
81
|
-
Bucket = "AWS::S3::Bucket"
|
|
82
|
-
}
|
|
83
|
-
export declare enum CFN_DYNAMODB_TYPE {
|
|
84
|
-
Table = "AWS::DynamoDB::Table"
|
|
85
|
-
}
|
|
86
|
-
export declare enum CFN_IAM_TYPE {
|
|
87
|
-
Role = "AWS::IAM::Role"
|
|
88
|
-
}
|
|
89
|
-
export declare enum CFN_SQS_TYPE {
|
|
90
|
-
Queue = "AWS::SQS::Queue"
|
|
91
|
-
}
|
|
92
|
-
export declare enum CFN_LAMBDA_TYPE {
|
|
93
|
-
Function = "AWS::Lambda::Function"
|
|
94
|
-
}
|
|
95
|
-
export type CFN_RESOURCE_TYPES = CFN_AUTH_TYPE | CFN_S3_TYPE | CFN_DYNAMODB_TYPE | CFN_IAM_TYPE | CFN_SQS_TYPE | CFN_LAMBDA_TYPE;
|
|
96
|
-
export type AWS_RESOURCE_ATTRIBUTES = 'Arn';
|
|
97
|
-
export type CFN_CATEGORY_TYPE = CFN_AUTH_TYPE | CFN_S3_TYPE | CFN_IAM_TYPE | string;
|
|
98
|
-
export declare enum CFN_PSEUDO_PARAMETERS_REF {
|
|
99
|
-
StackName = "AWS::StackName"
|
|
100
|
-
}
|
|
101
|
-
export declare enum CFNStackStatus {
|
|
102
|
-
UPDATE_COMPLETE = "UPDATE_COMPLETE"
|
|
103
|
-
}
|
|
104
|
-
export type BaseOAuthClient = {
|
|
105
|
-
ProviderName: string;
|
|
106
|
-
client_id: string;
|
|
107
|
-
};
|
|
108
|
-
export type OAuthClientWithSecret = BaseOAuthClient & {
|
|
109
|
-
client_secret: string;
|
|
110
|
-
};
|
|
111
|
-
export type SignInWithAppleOAuthClient = BaseOAuthClient & {
|
|
112
|
-
team_id: string;
|
|
113
|
-
key_id: string;
|
|
114
|
-
private_key: string;
|
|
115
|
-
};
|
|
116
|
-
export type OAuthClient = OAuthClientWithSecret | SignInWithAppleOAuthClient;
|
|
117
|
-
export type HostedUIProviderMeta = {
|
|
118
|
-
ProviderName: 'Amazon' | 'Facebook' | 'Google' | 'SignInWithApple';
|
|
119
|
-
};
|
|
120
|
-
export type FailedRefactorResponse = {
|
|
121
|
-
reason: string | undefined;
|
|
122
|
-
stackRefactorId: string;
|
|
123
|
-
status: StackRefactorStatus | StackRefactorExecutionStatus | undefined;
|
|
124
|
-
};
|
|
125
|
-
export declare enum GEN2_AUTH_LOGICAL_RESOURCE_ID {
|
|
126
|
-
IDENTITY_POOL_ROLE_ATTACHMENT = "IdentityPoolRoleAttachment"
|
|
127
|
-
}
|
|
128
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/refactor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,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CAAC;CACxE,CAAC;AAEF,oBAAY,6BAA6B;IACvC,6BAA6B,+BAA+B;CAC7D"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GEN2_AUTH_LOGICAL_RESOURCE_ID = exports.CFNStackStatus = exports.CFN_PSEUDO_PARAMETERS_REF = exports.CFN_LAMBDA_TYPE = exports.CFN_SQS_TYPE = exports.CFN_IAM_TYPE = exports.CFN_DYNAMODB_TYPE = exports.CFN_S3_TYPE = exports.CFN_AUTH_TYPE = exports.NON_CUSTOM_RESOURCE_CATEGORY = exports.CFNFunction = void 0;
|
|
4
|
-
var CFNFunction;
|
|
5
|
-
(function (CFNFunction) {
|
|
6
|
-
CFNFunction["Equals"] = "Fn::Equals";
|
|
7
|
-
CFNFunction["Not"] = "Fn::Not";
|
|
8
|
-
CFNFunction["Or"] = "Fn::Or";
|
|
9
|
-
CFNFunction["And"] = "Fn::And";
|
|
10
|
-
CFNFunction["If"] = "Fn::If";
|
|
11
|
-
})(CFNFunction || (exports.CFNFunction = CFNFunction = {}));
|
|
12
|
-
var NON_CUSTOM_RESOURCE_CATEGORY;
|
|
13
|
-
(function (NON_CUSTOM_RESOURCE_CATEGORY) {
|
|
14
|
-
NON_CUSTOM_RESOURCE_CATEGORY["AUTH"] = "auth";
|
|
15
|
-
NON_CUSTOM_RESOURCE_CATEGORY["STORAGE"] = "storage";
|
|
16
|
-
NON_CUSTOM_RESOURCE_CATEGORY["AUTH_USER_POOL_GROUP"] = "auth-user-pool-group";
|
|
17
|
-
})(NON_CUSTOM_RESOURCE_CATEGORY || (exports.NON_CUSTOM_RESOURCE_CATEGORY = NON_CUSTOM_RESOURCE_CATEGORY = {}));
|
|
18
|
-
var CFN_AUTH_TYPE;
|
|
19
|
-
(function (CFN_AUTH_TYPE) {
|
|
20
|
-
CFN_AUTH_TYPE["UserPool"] = "AWS::Cognito::UserPool";
|
|
21
|
-
CFN_AUTH_TYPE["UserPoolClient"] = "AWS::Cognito::UserPoolClient";
|
|
22
|
-
CFN_AUTH_TYPE["IdentityPool"] = "AWS::Cognito::IdentityPool";
|
|
23
|
-
CFN_AUTH_TYPE["IdentityPoolRoleAttachment"] = "AWS::Cognito::IdentityPoolRoleAttachment";
|
|
24
|
-
CFN_AUTH_TYPE["UserPoolDomain"] = "AWS::Cognito::UserPoolDomain";
|
|
25
|
-
CFN_AUTH_TYPE["UserPoolGroup"] = "AWS::Cognito::UserPoolGroup";
|
|
26
|
-
})(CFN_AUTH_TYPE || (exports.CFN_AUTH_TYPE = CFN_AUTH_TYPE = {}));
|
|
27
|
-
var CFN_S3_TYPE;
|
|
28
|
-
(function (CFN_S3_TYPE) {
|
|
29
|
-
CFN_S3_TYPE["Bucket"] = "AWS::S3::Bucket";
|
|
30
|
-
})(CFN_S3_TYPE || (exports.CFN_S3_TYPE = CFN_S3_TYPE = {}));
|
|
31
|
-
var CFN_DYNAMODB_TYPE;
|
|
32
|
-
(function (CFN_DYNAMODB_TYPE) {
|
|
33
|
-
CFN_DYNAMODB_TYPE["Table"] = "AWS::DynamoDB::Table";
|
|
34
|
-
})(CFN_DYNAMODB_TYPE || (exports.CFN_DYNAMODB_TYPE = CFN_DYNAMODB_TYPE = {}));
|
|
35
|
-
var CFN_IAM_TYPE;
|
|
36
|
-
(function (CFN_IAM_TYPE) {
|
|
37
|
-
CFN_IAM_TYPE["Role"] = "AWS::IAM::Role";
|
|
38
|
-
})(CFN_IAM_TYPE || (exports.CFN_IAM_TYPE = CFN_IAM_TYPE = {}));
|
|
39
|
-
var CFN_SQS_TYPE;
|
|
40
|
-
(function (CFN_SQS_TYPE) {
|
|
41
|
-
CFN_SQS_TYPE["Queue"] = "AWS::SQS::Queue";
|
|
42
|
-
})(CFN_SQS_TYPE || (exports.CFN_SQS_TYPE = CFN_SQS_TYPE = {}));
|
|
43
|
-
var CFN_LAMBDA_TYPE;
|
|
44
|
-
(function (CFN_LAMBDA_TYPE) {
|
|
45
|
-
CFN_LAMBDA_TYPE["Function"] = "AWS::Lambda::Function";
|
|
46
|
-
})(CFN_LAMBDA_TYPE || (exports.CFN_LAMBDA_TYPE = CFN_LAMBDA_TYPE = {}));
|
|
47
|
-
var CFN_PSEUDO_PARAMETERS_REF;
|
|
48
|
-
(function (CFN_PSEUDO_PARAMETERS_REF) {
|
|
49
|
-
CFN_PSEUDO_PARAMETERS_REF["StackName"] = "AWS::StackName";
|
|
50
|
-
})(CFN_PSEUDO_PARAMETERS_REF || (exports.CFN_PSEUDO_PARAMETERS_REF = CFN_PSEUDO_PARAMETERS_REF = {}));
|
|
51
|
-
var CFNStackStatus;
|
|
52
|
-
(function (CFNStackStatus) {
|
|
53
|
-
CFNStackStatus["UPDATE_COMPLETE"] = "UPDATE_COMPLETE";
|
|
54
|
-
})(CFNStackStatus || (exports.CFNStackStatus = CFNStackStatus = {}));
|
|
55
|
-
var GEN2_AUTH_LOGICAL_RESOURCE_ID;
|
|
56
|
-
(function (GEN2_AUTH_LOGICAL_RESOURCE_ID) {
|
|
57
|
-
GEN2_AUTH_LOGICAL_RESOURCE_ID["IDENTITY_POOL_ROLE_ATTACHMENT"] = "IdentityPoolRoleAttachment";
|
|
58
|
-
})(GEN2_AUTH_LOGICAL_RESOURCE_ID || (exports.GEN2_AUTH_LOGICAL_RESOURCE_ID = GEN2_AUTH_LOGICAL_RESOURCE_ID = {}));
|
|
59
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/commands/gen2-migration/refactor/types.ts"],"names":[],"mappings":";;;AAQA,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,4BAAa,CAAA;AACf,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAsDD,IAAY,4BAIX;AAJD,WAAY,4B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|
2
|
-
export declare class AmplifyMigrationShiftStep extends AmplifyMigrationStep {
|
|
3
|
-
implications(): string[];
|
|
4
|
-
validate(): Promise<void>;
|
|
5
|
-
execute(): Promise<void>;
|
|
6
|
-
rollback(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=shift.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shift.d.ts","sourceRoot":"","sources":["../../../src/commands/gen2-migration/shift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,qBAAa,yBAA0B,SAAQ,oBAAoB;IAC1D,YAAY,IAAI,MAAM,EAAE;IAIlB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAGvC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AmplifyMigrationShiftStep = void 0;
|
|
4
|
-
const _step_1 = require("./_step");
|
|
5
|
-
const amplify_prompts_1 = require("@aws-amplify/amplify-prompts");
|
|
6
|
-
class AmplifyMigrationShiftStep extends _step_1.AmplifyMigrationStep {
|
|
7
|
-
implications() {
|
|
8
|
-
throw new Error('Method not implemented.');
|
|
9
|
-
}
|
|
10
|
-
async validate() {
|
|
11
|
-
amplify_prompts_1.printer.warn('Not implemented');
|
|
12
|
-
}
|
|
13
|
-
async execute() {
|
|
14
|
-
amplify_prompts_1.printer.warn('Not implemented');
|
|
15
|
-
}
|
|
16
|
-
async rollback() {
|
|
17
|
-
amplify_prompts_1.printer.warn('Not implemented');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.AmplifyMigrationShiftStep = AmplifyMigrationShiftStep;
|
|
21
|
-
//# sourceMappingURL=shift.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shift.js","sourceRoot":"","sources":["../../../src/commands/gen2-migration/shift.ts"],"names":[],"mappings":";;;AAAA,mCAA+C;AAC/C,kEAAuD;AAEvD,MAAa,yBAA0B,SAAQ,4BAAoB;IAC1D,YAAY;QACjB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,QAAQ;QACnB,yBAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAClC,CAAC;IAEM,KAAK,CAAC,OAAO;QAClB,yBAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAClC,CAAC;IAEM,KAAK,CAAC,QAAQ;QACnB,yBAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAClC,CAAC;CACF;AAhBD,8DAgBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stateful-resources.d.ts","sourceRoot":"","sources":["../../../src/commands/gen2-migration/stateful-resources.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB,aA8B7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stateful-resources.js","sourceRoot":"","sources":["../../../src/commands/gen2-migration/stateful-resources.ts"],"names":[],"mappings":";;;AAKa,QAAA,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACxC,0BAA0B;IAE1B,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,4BAA4B;IAC5B,sBAAsB;IACtB,kBAAkB;IAClB,sBAAsB;IACtB,mBAAmB;IACnB,gCAAgC;IAChC,oCAAoC;IACpC,4BAA4B;IAC5B,sBAAsB;IACtB,eAAe;IACf,sBAAsB;IACtB,qBAAqB;IACrB,yBAAyB;IACzB,0BAA0B;IAC1B,gCAAgC;IAChC,6BAA6B;IAC7B,mBAAmB;IACnB,qBAAqB;IACrB,sBAAsB;IACtB,wBAAwB;IACxB,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;IACjB,6BAA6B;CAC9B,CAAC,CAAC"}
|
/package/lib/commands/gen2-migration/{stateful-resources.d.ts → _infra/stateful-resources.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|