From 3dbb6477d0696aa070b4c40e25be0da412cb44f0 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 17 Mar 2026 10:43:04 -0400 Subject: [PATCH 01/91] feat(cli-internal): add assess, refactor, and generate-new commands Squash of all work on the migration-plan branch since diverging from gen2-migration. Includes the assess subcommand for migration readiness, the refactor command rebuild with category-specific forward/rollback refactorers, the generate-new infrastructure with Generator+Renderer pattern, unified validation model, SpinningLogger UX, and comprehensive unit tests. --- Prompt: squash all commits after the merge base with gen2-migration into one and commit --- .gitignore | 2 +- AGENTS.md | 13 + .../004-gen2-migration-validation-modeling.md | 306 ++++++++++++++++++ .../gen2-migration/_framework/snapshot.ts | 4 +- .../commands/gen2-migration/generate.test.ts | 10 +- .../refactor/auth-forward-mapping.test.ts | 2 +- .../refactor/auth-forward-plan.test.ts | 35 +- .../refactor/auth-rollback-plan.test.ts | 1 + .../refactor/build-refactor-templates.test.ts | 2 +- .../category-plan-orchestration.test.ts | 25 +- .../default-resource-mappings.test.ts | 4 +- .../refactor/forward-beforemove.test.ts | 3 + .../gen2-migration/refactor/refactor.test.ts | 19 +- .../refactor/rollback-aftermove.test.ts | 4 +- .../drift-detection/detect-stack-drift.ts | 16 +- .../drift-detection/detect-template-drift.ts | 12 +- .../services/cloudformation-service.ts | 4 +- packages/amplify-cli/src/commands/drift.ts | 184 ++++------- .../src/commands/gen2-migration.ts | 219 +++---------- .../src/commands/gen2-migration/_operation.ts | 43 ++- .../src/commands/gen2-migration/_plan.ts | 116 +++++++ .../gen2-migration/_spinning-logger.ts | 151 +++++++++ .../src/commands/gen2-migration/_step.ts | 45 +-- .../commands/gen2-migration/_validations.ts | 30 +- .../src/commands/gen2-migration/assess.ts | 4 +- .../src/commands/gen2-migration/clone.ts | 22 +- .../commands/gen2-migration/decommission.ts | 66 ++-- .../src/commands/gen2-migration/generate.ts | 97 +++--- .../generate/amplify.yml.generator.ts | 4 +- .../amplify/analytics/kinesis.generator.ts | 4 +- .../generate/amplify/auth/auth.generator.ts | 4 +- .../amplify/auth/reference-auth.generator.ts | 4 +- .../generate/amplify/backend.generator.ts | 4 +- .../custom-resources/custom.generator.ts | 4 +- .../generate/amplify/data/data.generator.ts | 4 +- .../amplify/function/function.generator.ts | 4 +- .../amplify/package.json.generator.ts | 4 +- .../amplify/rest-api/rest-api.generator.ts | 4 +- .../amplify/storage/dynamodb.generator.ts | 4 +- .../generate/amplify/storage/s3.generator.ts | 4 +- .../generate/amplify/tsconfig.generator.ts | 4 +- .../generate/gitignore.generator.ts | 4 +- .../generate/package.json.generator.ts | 4 +- .../src/commands/gen2-migration/lock.ts | 178 +++++----- .../refactor/auth/auth-forward.ts | 4 +- .../refactor/legacy-custom-resource.ts | 4 +- .../gen2-migration/refactor/refactor.ts | 87 +++-- .../commands/gen2-migration/refactor/utils.ts | 2 +- .../refactor/workflow/category-refactorer.ts | 44 ++- .../workflow/forward-category-refactorer.ts | 4 +- .../workflow/rollback-category-refactorer.ts | 14 +- .../src/commands/gen2-migration/shift.ts | 22 +- .../src/progressbars/spinner.ts | 20 +- .../src/progressbars/terminal.ts | 10 + 54 files changed, 1150 insertions(+), 738 deletions(-) create mode 100644 packages/amplify-cli/adr/004-gen2-migration-validation-modeling.md create mode 100644 packages/amplify-cli/src/commands/gen2-migration/_plan.ts create mode 100644 packages/amplify-cli/src/commands/gen2-migration/_spinning-logger.ts diff --git a/.gitignore b/.gitignore index 2d195d54d3e..a91ddd3d46a 100644 --- a/.gitignore +++ b/.gitignore @@ -110,7 +110,7 @@ packages/amplify-environment-parameters/lib/ reports/*.xml commit-msg.txt -amplify-migration-apps/**/_snapshot.*.actual +amplify-migration-apps/**/_snapshot.*.actual* .pr-body.ai-generated.md .commit-message.ai-generated.txt diff --git a/AGENTS.md b/AGENTS.md index f223c4ce65f..007e76fa099 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,8 +39,16 @@ Verify your changes by following these guidelines: - **Always** update the appropriate JSDoc strings in the code you change. Be concise. - Do not create additional markdown files in the repository unless you are instructed explicitly to. - Never commit `.ai-generated` files (`.commit-message.ai-generated.txt`, `.pr-body.ai-generated.md`, etc.) — they are gitignored and are only used as local scratch files. +<<<<<<< HEAD - Commit your changes in git using a well-formed commit message following the Conventional Commits format. The message must start with a type prefix (e.g., `feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`) followed by a single sentence summary and no more +======= +- Commit your changes in git using a well-formed commit message following the Conventional Commits format. The message must include + a scope when the change is scoped to a specific package: `type(scope): subject`. The scope is derived from the package's `name` + field in `package.json` with the `@aws-amplify/` prefix stripped. For example, `@aws-amplify/cli-internal` → `cli-internal`, + `@aws-amplify/amplify-prompts` → `amplify-prompts`. Valid scopes are enforced by commitlint via `commitlint.config.js`. The + message must start with a type prefix (e.g., `feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`) followed by a single sentence summary and no more +>>>>>>> 5ae9c3daf8 (feat(cli-internal): add assess, refactor, and generate-new commands) than a few paragraphs explaining the change and your testing. After this explanation, place the prompt the user used to trigger this work prefixed with a "Prompt: " after a single line consisting of '---'. Make sure there are no empty lines before or after this line. Word wrap all paragraphs at 72 columns including the prompt. For the author of the commit, use the configured username in git with @@ -54,7 +62,12 @@ Verify your changes by following these guidelines: - Since this repo has a commit hook that takes quite a long time to run, don't immediately commit every change you were asked to do. Apply your judgment, if the diff is still fairly small just keep going. Otherwise, ask the user if they want to commit or keep going. +<<<<<<< HEAD - Committing after every incremental change wastes time on hooks and creates noisy history. Natural commit +======= +- Batch commits aggressively. Wait until a design decision is settled and the code is stable before committing. + Committing after every incremental change wastes time on hooks and creates noisy history. Natural commit +>>>>>>> 5ae9c3daf8 (feat(cli-internal): add assess, refactor, and generate-new commands) points are: after a design discussion concludes, after tests pass, after a self-review finds no issues. - NEVER commit with --no-verify. - Before you actually commit, provide a (very) concise summary of changes to the user and ask for confirmation to commit. diff --git a/packages/amplify-cli/adr/004-gen2-migration-validation-modeling.md b/packages/amplify-cli/adr/004-gen2-migration-validation-modeling.md new file mode 100644 index 00000000000..f5037fa261a --- /dev/null +++ b/packages/amplify-cli/adr/004-gen2-migration-validation-modeling.md @@ -0,0 +1,306 @@ +# ADR-004: Unified Validation Model for gen2-migration + +## Status + +Proposed + +## Context + +The gen2-migration tool currently has three separate validation mechanisms: + +1. **Step-level validations** (`executeValidate`/`rollbackValidate` on `AmplifyMigrationStep`). + These run before planning and are skippable via `--skip-validations`. They check + environment preconditions like drift, lock status, deployment status, and working + directory cleanliness. They throw on failure; the orchestrator catches the throw and + re-throws with a hint to use `--skip-validations`. + +2. **Operation-level validations** (`validate()` on `AmplifyMigrationOperation`). + These run after planning, before execution. They are not skippable. Today most + implementations are no-ops (`async () => { return; }`). + +3. **Implicit planning-time validations** (throws inside `CategoryRefactorer.plan()`). + For example, `plan()` throws `InvalidStackError` if only one of source/target stack + IDs is found. These crash the program on the first category that exhibits the problem, + preventing the user from seeing issues in other categories. + +### Problems + +- **Three mechanisms for one concept.** Validation is validation regardless of when it + runs. Having three separate paths makes the system harder to reason about and extend. + +- **Planning-time throws are not aggregatable.** When `CategoryRefactorer.plan()` throws + on the first bad category, the user has to fix it, re-run, discover the next problem, + fix it, re-run, etc. The tool should report all problems upfront. + +## Requirements + +### R1 — Single validation mechanism + +All validations — environment preconditions, planning-time checks, and pre-execution +checks — flow through one mechanism. + +### R2 — Aggregate reporting + +When multiple validations fail, the user sees all failures at once, not just the first +one. + +### R3 — Validations are skippable via `--skip-validations` + +All operation-level validations are skippable. Conditions that cannot be skipped are +planning errors, not validations. + +### R4 — Validations run before any mutation + +No `execute()` runs until all validations across all operations have been evaluated. + +### R5 — Planning errors are aggregated + +When a step plans multiple categories and some fail, the user sees all planning +failures at once. `plan()` throws for conditions it cannot recover from, but the +step catches and aggregates these across all planners before surfacing them. + +## Decision + +Two changes: + +1. **Operation-level validation becomes the single validation mechanism.** [R1] + `validate()` on `AmplifyMigrationOperation` returns a `ValidationResult` instead + of throwing. Step-level validations (`executeValidate`/`rollbackValidate`) are + removed; those checks become operations in the operations list. A new `Plan` + object encapsulates the operations array and exposes `describe()`, `validate()`, + and `execute()` to the orchestrator. + +2. **Planning errors are aggregated by the step.** [R5] + `plan()` throws a typed `Gen2MigrationPlanningError` for conditions it cannot + plan around. The step catches these across all planners and throws a single + aggregated error. This is separate from the operation validation mechanism — + if you can't plan, there's nothing to validate or execute. + +### User-facing flow + +``` +Planning... done + +Validating... + +Lock status ✔ Passed +Deployment status ✔ Passed +Drift detection ✔ Passed + +Operations Summary + + • Update source stack 'auth-abc123' with resolved references + • Move Gen2 resources to holding stack 'auth-abc123-holding' + • Refactor resources from Gen1 to Gen2 + +Implications + + • Move stateful resources from your Gen1 app to be managed by your Gen2 app + +(You can rollback this command by running: 'amplify gen2-migration refactor --rollback') + +Do you want to continue? (y/n) +``` + +When planning fails, the user sees the aggregated errors and the process stops: + +``` +Planning... + ✘ auth: Category exists in source but not destination stack + ✘ storage: Category exists in source but not destination stack + +Planning failed. Resolve the errors above before proceeding. +``` + +When validations fail, each validation gets its own section with a name (bold in +the terminal), a status, and an optional report indented below: + +``` +Validating... + +Lock status ✔ Passed +Deployment status ✔ Passed +Drift detection ✘ Failed + + Resource Property Expected Actual + ───────────────────────────────────────────────────────────────── + UserPool MfaConfiguration OFF ON + UserPoolClient ExplicitAuthFlows ALLOW_REFRESH ALLOW_USER_SRP + S3Bucket VersioningConfig Enabled Suspended + +Validations failed. Resolve the errors above or re-run with '--skip-validations'. +``` + +### `Plan` + +Steps currently return `AmplifyMigrationOperation[]` from `execute()`/`rollback()`. +Instead they return a `Plan` that encapsulates the operations array: + +```typescript +class Plan { + constructor(private readonly operations: AmplifyMigrationOperation[]) {} + + /** Descriptions of what the operations will do. */ + async describe(): Promise { + const descriptions: string[] = []; + for (const op of this.operations) { + descriptions.push(...(await op.describe())); + } + return descriptions; + } + + /** Runs all validations, returns all results. */ + async validate(): Promise { + const results: ValidationResult[] = []; + for (const op of this.operations) { + results.push(await op.validate()); + } + return results; + } + + /** Executes all operations sequentially. */ + async execute(): Promise { + for (const op of this.operations) { + await op.execute(); + } + } +} +``` + +The orchestrator interacts only with `Plan` — individual operations are an internal +detail. The orchestrator flow becomes: + +```typescript +const plan = rollingBack ? await step.rollback() : await step.execute(); + +// Operations summary +for (const line of await plan.describe()) { + printer.info(`• ${line}`); +} + +// Implications + confirmation prompt (unchanged) +// ... + +// Validate [R1, R2, R4] +const results = await plan.validate(); +renderValidationResults(results); + +const failures = results.filter((r) => !r.valid); +if (failures.length > 0 && !skipValidations) { + throw new AmplifyError('MigrationError', { + message: failures.map((r) => r.name).join(', ') + ' failed', + resolution: `Resolve the errors or re-run with '--skip-validations'`, + }); +} + +// Execute +await plan.execute(); +``` + +What gets removed from the orchestrator: + +- The `validate()` helper function (step-level validation wrapper) +- `executeValidate()` and `rollbackValidate()` on `AmplifyMigrationStep` +- `CachedAmplifyMigrationStep` +- `runOperations()` (replaced by `plan.validate()` + `plan.execute()`) + +### `ValidationResult` + +```typescript +interface ValidationResult { + /** Label shown on the status line (e.g., "Lock status", "Drift detection"). */ + readonly name: string; + /** Whether the validation passed. */ + readonly valid: boolean; + /** Optional detailed output shown indented below the status line. */ + readonly report?: string; +} +``` + +`validate()` on `AmplifyMigrationOperation` changes from `Promise` to +`Promise`. + +### Step-level validations become operations + +Validations that currently live in `executeValidate()`/`rollbackValidate()` (drift +detection, lock status, deployment status, working directory cleanliness) become +operations in the `Plan`. Their `execute()` is a no-op — the validation is the +entire point. + +### Planning error aggregation + +`plan()` throws a typed `Gen2MigrationPlanningError` when it cannot formulate a +plan. This is the right semantic — if you can't gather enough information to plan, +throwing is the honest response. + +The step that orchestrates multiple planners (e.g., `AmplifyMigrationRefactorStep`) +catches these errors, continues planning remaining categories, and throws a single +aggregated error after all planners have been attempted: + +```typescript +private async plan( + refactorers: Refactorer[], +): Promise { + const operations: AmplifyMigrationOperation[] = []; + const planningErrors: Gen2MigrationPlanningError[] = []; + + for (const refactorer of refactorers) { + try { + operations.push(...(await refactorer.plan())); + } catch (error) { + if (error instanceof Gen2MigrationPlanningError) { + planningErrors.push(error); + } else { + throw error; // unexpected error — propagate immediately + } + } + } + + if (planningErrors.length > 0) { + throw new AmplifyError('MigrationError', { + message: planningErrors.map((e) => e.message).join('\n'), + }); + } + + return new Plan(operations); +} +``` + +Unexpected errors (network failures, SDK errors) are not +`Gen2MigrationPlanningError` and propagate immediately — they indicate something +is broken, not a validatable condition. + +## Consequences + +### What changes + +- `AmplifyMigrationOperation.validate()` returns `Promise` instead + of `Promise`. +- Steps return `Plan` instead of `AmplifyMigrationOperation[]`. +- `AmplifyMigrationStep.executeValidate()` and `rollbackValidate()` are removed. +- The `validate()` function in `gen2-migration.ts` is removed. +- `runOperations()` is removed (replaced by `plan.validate()` + `plan.execute()`). +- `--validations-only` is trivially supported: call `plan.validate()` and stop. +- `CachedAmplifyMigrationStep` is removed. +- `CategoryRefactorer.plan()` throws `Gen2MigrationPlanningError` for precondition + failures. The step catches and aggregates these across all planners. +- Step implementations (lock, generate, refactor, decommission) move their + precondition checks into operations in the `Plan`. +- `--skip-validations` skips all validation failures. Conditions that must not be + skipped are modeled as planning errors, not validations. + +### What stays the same + +- The `AmplifyMigrationOperation` interface keeps its three methods (`describe`, + `validate`, `execute`), but is now an internal detail behind `Plan`. +- The `Planner` interface is unchanged. +- The two-pass structure (validate all, then execute all) is preserved inside `Plan`. +- `--skip-validations` flag semantics are preserved for the user, but the mechanism + is simpler: all validations are skippable, non-skippable conditions are planning + errors. + +### Migration path + +Since this code hasn't been published yet, this is a breaking change to internal +interfaces only. All step implementations and their tests need to be updated in a +single pass. diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/snapshot.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/snapshot.ts index d9e713ec618..cc2c4065046 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/snapshot.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/snapshot.ts @@ -83,9 +83,9 @@ export class Snapshot { const differences = await diff({ expectedDir: this.props.expectedPath, actualDir, ignorePatterns: fullIgnorePatterns }); // copy the temporary actual path to repo (ignored) for easy manual comparison - const ignoredActualPath = `${this.props.expectedPath}.actual`; + const ignoredActualPath = `${this.props.expectedPath}.actual.${Date.now()}`; if (fs.existsSync(ignoredActualPath)) { - fs.rmdirSync(ignoredActualPath, { recursive: true }); + fs.rmSync(ignoredActualPath, { recursive: true, force: true }); } copySync({ src: actualDir, dest: ignoredActualPath, ignorePatterns: fullIgnorePatterns }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts index 15e47566dcd..deffb024627 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts @@ -82,10 +82,8 @@ async function testSnapshot(appName: string, appOptions?: MigrationAppOptions, c app.region, {} as $TSContext, ); - const operations = await step.execute(); - for (const operation of operations) { - await operation.execute(); - } + const plan = await step.forward(); + await plan.execute(); const report = await app.snapshots.generate.compare(process.cwd()); const isUpdatingSnapshots = expect.getState().snapshotState._updateSnapshot === 'all'; @@ -167,8 +165,8 @@ describe('AmplifyMigrationGenerateStep', () => { const step = createStep(); // Should not throw — generate warns on unsupported, unlike refactor - const operations = await step.execute(); - expect(operations.length).toBeGreaterThan(0); + const plan = await step.forward(); + await plan.describe(); }); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts index e90235af1b2..71e485dd686 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts @@ -16,7 +16,7 @@ describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient di const gen2Branch = new StackFacade(clients, 'gen2'); return new (class extends AuthCognitoForwardRefactorer { constructor() { - super(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', 'appId', 'main'); + super(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', null as any, 'appId', 'main'); } public testBuildResourceMappings(source: Map, target: Map): MoveMapping[] { return this.buildResourceMappings(source, target); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts index 2e8252cd487..78301983436 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts @@ -96,7 +96,16 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new AuthCognitoForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', 'appId', 'main'); + const refactorer = new AuthCognitoForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123456789', + null as any, + 'appId', + 'main', + ); const ops = await refactorer.plan(); const descriptions = await Promise.all(ops.map((op) => op.describe())); @@ -175,7 +184,16 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { (clients as any).cognitoIdentityProvider = new CognitoIdentityProviderClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new AuthCognitoForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', 'appId', 'main'); + const refactorer = new AuthCognitoForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123456789', + null as any, + 'appId', + 'main', + ); const ops = await refactorer.plan(); @@ -221,8 +239,17 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new AuthCognitoForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', 'appId', 'main'); + const refactorer = new AuthCognitoForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123456789', + null as any, + 'appId', + 'main', + ); - await expect(refactorer.plan()).rejects.toThrow('exists in source but not destination'); + await expect(refactorer.plan()).rejects.toThrow('unable to find target stack'); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts index a2ec8378942..3b0450340c4 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts @@ -96,6 +96,7 @@ describe('AuthCognitoRollbackRefactorer.plan()', () => { clients, 'us-east-1', '123', + null as any, ); const ops = await refactorer.plan(); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts index 87916a5e4c3..a4e11baf208 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts @@ -12,7 +12,7 @@ class TestRefactorer extends (CategoryRefactorer as any) { private mappingsToReturn: MoveMapping[] = []; constructor() { - super(null, null, null, 'us-east-1', '123'); + super(null, null, null, 'us-east-1', '123', null as any); } setMappings(mappings: MoveMapping[]) { diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts index 1f950b26145..14f2c2e8686 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts @@ -72,13 +72,14 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact }); afterEach(() => cfnMock.restore()); - it('returns empty array when both stacks are absent (Path A)', async () => { + it('throws when both stacks are absent (Path A)', async () => { cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen1-root' }).resolves({ StackResources: [] }); cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan(); - expect(ops).toEqual([]); + await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan()).rejects.toThrow( + 'unable to find source stack', + ); }); it('throws when source exists but destination does not (Path B)', async () => { @@ -88,8 +89,8 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan()).rejects.toThrow( - 'Category exists in source but not destination', + await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan()).rejects.toThrow( + 'unable to find target stack', ); }); @@ -100,8 +101,8 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan()).rejects.toThrow( - 'Category exists in destination but not source', + await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan()).rejects.toThrow( + 'unable to find source stack', ); }); @@ -116,7 +117,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(noStorageTemplate) }); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan(); + const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); expect(ops).toEqual([]); }); @@ -124,7 +125,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact setupStorageMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan(); + const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -170,7 +171,7 @@ describe('StorageS3RollbackRefactorer.plan() — rollback without holding stack' cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(gen1StorageTemplate) }); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan(); + const ops = await new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); // Rollback: no updateSource/updateTarget, just move @@ -222,7 +223,7 @@ describe('Analytics wiring tests', () => { it('forward: discovers analytics stacks and maps Kinesis stream', async () => { setupAnalyticsMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan(); + const ops = await new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -233,7 +234,7 @@ describe('Analytics wiring tests', () => { cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); // no holding stack setupAnalyticsMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123').plan(); + const ops = await new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(1); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts index 217a9783522..cbc0f82c38c 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts @@ -22,7 +22,7 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { protected override readonly gen1LogicalIds: ReadonlyMap; constructor(ids: ReadonlyMap) { - super(null as any, null as any, null as any, 'us-east-1', '123'); + super(null as any, null as any, null as any, 'us-east-1', '123', null as any); this.gen1LogicalIds = ids; } protected async fetchSourceStackId() { @@ -47,7 +47,7 @@ function toIdMap(mappings: MoveMapping[]): Map { } describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching)', () => { - const refactorer = new TestForwardRefactorer(null as any, null as any, null as any, 'us-east-1', '123'); + const refactorer = new TestForwardRefactorer(null as any, null as any, null as any, 'us-east-1', '123', null as any); it('maps single resource per type', () => { const mappings = refactorer.testBuildResourceMappings( diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts index 39659288e32..c0d6a86d27c 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts @@ -88,6 +88,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { clients, 'us-east-1', '123', + null as any, ); const blueprint = makeBlueprint({ targetResolved: { Lambda: { Type: 'AWS::Lambda::Function', Properties: {} } }, @@ -114,6 +115,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { clients, 'us-east-1', '123', + null as any, ); const blueprint = makeBlueprint({ @@ -153,6 +155,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { clients, 'us-east-1', '123', + null as any, ); const blueprint = makeBlueprint({ diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts index ea82a6b3249..b5364aac8ee 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts @@ -75,9 +75,8 @@ async function testSnapshot(appName: string, appOptions?: MigrationAppOptions, c context, ); - for (const operation of await refactorStep.execute()) { - await operation.execute(); - } + const plan = await refactorStep.forward(); + await plan.execute(); const isUpdatingSnapshots = expect.getState().snapshotState._updateSnapshot === 'all'; const actualPath = path.join(process.cwd(), OUTPUT_DIRECTORY); @@ -199,7 +198,7 @@ describe('AmplifyMigrationRefactorStep', () => { createSpy = mockDiscover([{ category: 'notifications', resourceName: 'push', service: 'Pinpoint', key: 'unsupported' }]); const step = createStep(); - await expect(step.execute()).rejects.toThrow(/Unsupported resource 'push'/); + await expect(step.forward()).rejects.toThrow(/Unsupported resource 'push'/); }); it('throws on Cognito-UserPool-Groups', async () => { @@ -209,7 +208,7 @@ describe('AmplifyMigrationRefactorStep', () => { ]); const step = createStep(); - await expect(step.execute()).rejects.toThrow(/Unsupported resource 'userPoolGroups'/); + await expect(step.forward()).rejects.toThrow(/Unsupported resource 'userPoolGroups'/); }); it('does not throw for stateless-only resources', async () => { @@ -220,8 +219,8 @@ describe('AmplifyMigrationRefactorStep', () => { ]); const step = createStep(); - const operations = await step.execute(); - expect(operations).toEqual([]); + const plan = await step.forward(); + await plan.describe(); }); it('throws on multiple resources in the same refactor category', async () => { @@ -232,7 +231,7 @@ describe('AmplifyMigrationRefactorStep', () => { ]); const step = createStep(); - await expect(step.execute()).rejects.toThrow(/Multiple resources in 'storage'/); + await expect(step.forward()).rejects.toThrow(/Multiple resources in 'storage'/); }); }); @@ -263,8 +262,8 @@ describe('AmplifyMigrationRefactorStep', () => { ]); const step = createStep(); - const operations = await step.rollback(); - expect(operations).toEqual([]); + const plan = await step.rollback(); + await plan.describe(); }); it('throws on multiple resources in the same refactor category', async () => { diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts index 89ccefd45c6..550033be69f 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts @@ -105,7 +105,7 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789'); + const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', null as any); const sourceAfterRemoval: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', @@ -153,7 +153,7 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789'); + const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', null as any); const emptyTemplate: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', diff --git a/packages/amplify-cli/src/commands/drift-detection/detect-stack-drift.ts b/packages/amplify-cli/src/commands/drift-detection/detect-stack-drift.ts index b1ff2ed4581..79ac40e3f1e 100644 --- a/packages/amplify-cli/src/commands/drift-detection/detect-stack-drift.ts +++ b/packages/amplify-cli/src/commands/drift-detection/detect-stack-drift.ts @@ -15,7 +15,8 @@ import { } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { extractCategory } from '../gen2-migration/categories'; -import type { Printer } from '@aws-amplify/amplify-prompts'; +import type { SpinningLogger } from '../gen2-migration/_spinning-logger'; +import { extractStackNameFromId } from '../gen2-migration/refactor/utils'; /** * Enriched drift tree node — one per stack (root or nested) @@ -62,10 +63,9 @@ function collectSkippedStacks(node: StackDriftNode, result: string[] = []): stri export async function detectStackDrift( cfn: CloudFormationClient, stackName: string, - print: Printer, + print: SpinningLogger, ): Promise<{ drifts: StackResourceDrift[]; driftDetectionId: string }> { // Start drift detection - print.debug(`detectStackDrift: ${stackName}`); const driftDetection = await cfn.send( new DetectStackDriftCommand({ StackName: stackName, @@ -116,7 +116,7 @@ export async function detectStackDrift( /** * Check if a property difference is an Amplify auth role Deny→Allow change (intended drift) */ -function isAmplifyAuthRoleDenyToAllowChange(propDiff: PropertyDifference, print: Printer): boolean { +function isAmplifyAuthRoleDenyToAllowChange(propDiff: PropertyDifference, print: SpinningLogger): boolean { // Check if this is an AssumeRolePolicyDocument change if (!propDiff.PropertyPath || !propDiff.PropertyPath.includes('AssumeRolePolicyDocument')) { return false; @@ -169,7 +169,7 @@ function isAmplifyAuthRoleDenyToAllowChange(propDiff: PropertyDifference, print: async function waitForDriftDetection( cfn: CloudFormationClient, driftDetectionId: string, - print: Printer, + print: SpinningLogger, ): Promise { const maxWaitForDrift = 300_000; // 5 minutes max const timeBetweenOutputs = 10_000; // User feedback every 10 seconds @@ -221,11 +221,13 @@ async function buildDriftNode( cfn: CloudFormationClient, physicalName: string, logicalId: string | null, - print: Printer, + print: SpinningLogger, parentCategory?: string, ): Promise { // Detect drift on this stack — filter to only drifted resources (MODIFIED/DELETED) + print.push(extractStackNameFromId(physicalName)); const { drifts: allDrifts, driftDetectionId } = await detectStackDrift(cfn, physicalName, print); + print.pop(); const drifts = allDrifts.filter(isDrifted); // Compute category — root stack (null logicalId) is always 'Core Infrastructure' @@ -295,7 +297,7 @@ async function buildDriftNode( export async function detectStackDriftRecursive( cfn: CloudFormationClient, stackName: string, - print: Printer, + print: SpinningLogger, ): Promise { print.debug(`detectStackDriftRecursive: ${stackName}`); diff --git a/packages/amplify-cli/src/commands/drift-detection/detect-template-drift.ts b/packages/amplify-cli/src/commands/drift-detection/detect-template-drift.ts index e8b1d955b04..84f206babec 100644 --- a/packages/amplify-cli/src/commands/drift-detection/detect-template-drift.ts +++ b/packages/amplify-cli/src/commands/drift-detection/detect-template-drift.ts @@ -12,7 +12,7 @@ import { import { paginateListChangeSets } from '@aws-sdk/client-cloudformation'; import fs from 'fs-extra'; import * as path from 'path'; -import type { Printer } from '@aws-amplify/amplify-prompts'; +import type { SpinningLogger } from '../gen2-migration/_spinning-logger'; export interface ResourceChangeWithNested extends ResourceChange { nestedChanges?: ResourceChangeWithNested[]; @@ -52,7 +52,7 @@ const CHANGESET_PREFIX = 'amplify-drift-detection-'; /** * Delete any existing amplify-drift-detection-* changesets from a previous run */ -async function cleanupOldDriftChangesets(cfn: CloudFormationClient, stackName: string, print: Printer): Promise { +async function cleanupOldDriftChangesets(cfn: CloudFormationClient, stackName: string, print: SpinningLogger): Promise { try { const toDelete: string[] = []; for await (const page of paginateListChangeSets({ client: cfn }, { StackName: stackName })) { @@ -81,7 +81,11 @@ async function cleanupOldDriftChangesets(cfn: CloudFormationClient, stackName: s * @param print - Logging interface * @param cfn - CloudFormation client */ -export async function detectTemplateDrift(stackName: string, print: Printer, cfn: CloudFormationClient): Promise { +export async function detectTemplateDrift( + stackName: string, + print: SpinningLogger, + cfn: CloudFormationClient, +): Promise { try { // Check prerequisites const currentCloudBackendPath = pathManager.getCurrentCloudBackendDirPath(); @@ -233,7 +237,7 @@ export async function detectTemplateDrift(stackName: string, print: Printer, cfn async function analyzeChangeSet( cfn: CloudFormationClient, changeSet: DescribeChangeSetCommandOutput, - print: Printer, + print: SpinningLogger, ): Promise { const result: TemplateDriftResults = { changes: [], diff --git a/packages/amplify-cli/src/commands/drift-detection/services/cloudformation-service.ts b/packages/amplify-cli/src/commands/drift-detection/services/cloudformation-service.ts index 816d9e04d99..8259a974b28 100644 --- a/packages/amplify-cli/src/commands/drift-detection/services/cloudformation-service.ts +++ b/packages/amplify-cli/src/commands/drift-detection/services/cloudformation-service.ts @@ -8,7 +8,7 @@ import type { $TSContext } from '@aws-amplify/amplify-cli-core'; import { AmplifyError, pathManager, stateManager } from '@aws-amplify/amplify-cli-core'; import * as fs from 'fs-extra'; import * as path from 'path'; -import type { Printer } from '@aws-amplify/amplify-prompts'; +import type { SpinningLogger } from '../../gen2-migration/_spinning-logger'; import CloudFormation from '@aws-amplify/amplify-provider-awscloudformation/lib/aws-utils/aws-cfn'; import { downloadZip, extractZip } from '@aws-amplify/amplify-provider-awscloudformation/lib/zip-util'; @@ -19,7 +19,7 @@ import { S3BackendZipFileName } from '@aws-amplify/amplify-provider-awscloudform * Service for CloudFormation operations */ export class CloudFormationService { - constructor(private readonly print: Printer) {} + constructor(private readonly print: SpinningLogger) {} /** * Get CloudFormation client * Uses the standard Amplify CloudFormation class for proper configuration diff --git a/packages/amplify-cli/src/commands/drift.ts b/packages/amplify-cli/src/commands/drift.ts index 30d83732d72..96160354b4c 100644 --- a/packages/amplify-cli/src/commands/drift.ts +++ b/packages/amplify-cli/src/commands/drift.ts @@ -1,110 +1,71 @@ /** * Amplify drift detection command - * Based on AWS CDK CLI drift implementation */ import { $TSContext, AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { printer, AmplifySpinner, type Printer, isDebug } from '@aws-amplify/amplify-prompts'; +import { printer } from '@aws-amplify/amplify-prompts'; import chalk from 'chalk'; import { detectStackDriftRecursive, type CloudFormationDriftResults } from './drift-detection'; import { detectLocalDrift, type LocalDriftResults } from './drift-detection/detect-local-drift'; import { detectTemplateDrift, type TemplateDriftResults } from './drift-detection/detect-template-drift'; import { CloudFormationService, AmplifyConfigService, createUnifiedCategoryView } from './drift-detection/services'; +import { SpinningLogger } from './gen2-migration/_spinning-logger'; /** - * Executes the drift detection command + * Result of drift detection. + */ +export interface DriftDetectionResult { + /** 0 = no drift, 1 = drift detected or incomplete. */ + readonly code: number; + /** Human-readable drift report, undefined when no drift. */ + readonly report?: string; +} + +/** + * Executes the drift detection command. */ export const run = async (context: $TSContext): Promise => { - const detector = new AmplifyDriftDetector(context); - const exitCode = await detector.detect(); + const logger = new SpinningLogger('drift'); + const detector = new AmplifyDriftDetector(context, logger); + + logger.start('Drift detection'); + const result = await detector.detect(); + logger.succeed('Drift detection'); + + if (result.report) { + printer.info(result.report); + } - if (exitCode !== 0) { - process.exitCode = exitCode; + if (result.code !== 0) { + process.exitCode = result.code; } }; /** - * Amplify drift detector - Coordinator class - * Coordinates services to perform drift detection + * Coordinates services to perform drift detection. + * Accepts a SpinningLogger; the caller owns the spinner lifecycle. */ export class AmplifyDriftDetector { private readonly cfnService: CloudFormationService; private readonly configService: AmplifyConfigService; - private readonly printer: Printer; - private readonly spinner = new AmplifySpinner(); - private spinnerText = ''; - private spinnerActive = false; - - constructor(private readonly context: $TSContext, basePrint: Pick = printer) { - // Wrap each method to pause/resume spinner so output never collides - this.printer = { - info: (msg: string) => this.withSpinnerPaused(() => basePrint.info(msg)), - debug: (msg: string) => { - if (!isDebug) return; - basePrint.debug(msg); - }, - warn: (msg: string) => this.withSpinnerPaused(() => basePrint.warn(msg)), - blankLine: () => this.withSpinnerPaused(() => printer.blankLine()), - success: (msg: string) => this.withSpinnerPaused(() => printer.success(msg)), - error: (msg: string) => this.withSpinnerPaused(() => printer.error(msg)), - }; - - this.cfnService = new CloudFormationService(this.printer); - this.configService = new AmplifyConfigService(); - } - - private withSpinnerPaused(fn: () => void): void { - if (this.spinnerActive) { - this.spinner.stop(); - fn(); - this.spinner.start(this.spinnerText); - } else { - fn(); - } - } - private startSpinner(text: string): void { - this.spinnerText = text; - if (isDebug) return; - this.spinnerActive = true; - this.spinner.start(text); - } - - private updateSpinner(text: string): void { - this.spinnerText = text; - if (this.spinnerActive) this.spinner.resetMessage(text); - } - - private stopSpinner(text?: string): void { - if (!this.spinnerActive) return; - this.spinnerActive = false; - this.spinner.stop(text); - this.spinnerText = ''; + constructor(private readonly context: $TSContext, private readonly logger: SpinningLogger) { + this.cfnService = new CloudFormationService(this.logger); + this.configService = new AmplifyConfigService(); } - /** - * Detect drift for the current Amplify project - * Orchestrates the drift detection process using services - */ - public async detect(): Promise { - // Validate Amplify project exists and is initialized + /** Detects drift for the current Amplify project. */ + public async detect(): Promise { this.configService.validateAmplifyProject(); - this.printer.debug('Amplify project validated'); + this.logger.debug('Amplify project validated'); - // Get stack name and project info, init environment info - // constructExeInfo is necessary to initialize env info used in getClient's CloudFormation object this.context.amplify.constructExeInfo(this.context); const stackName = this.configService.getRootStackName(); - const projectName = this.configService.getProjectName(); - this.printer.debug(`Root Stack: ${stackName}`); - this.printer.info(chalk.cyan.bold(`Started Drift Detection for Project: ${projectName}`)); - this.printer.debug('Phase 1: CloudFormation drift \nPhase 2: Template changes \nPhase 3: Local vs cloud files\n'); + this.logger.debug(`Root Stack: ${stackName}`); - // Get CloudFormation client const cfn = await this.cfnService.getClient(this.context); - this.printer.debug('CloudFormation client initialized'); + this.logger.debug('CloudFormation client initialized'); - // Validate root stack exists if (!(await this.cfnService.validateStackExists(cfn, stackName))) { throw new AmplifyError('StackNotFoundError', { message: `Stack ${stackName} does not exist.`, @@ -112,20 +73,18 @@ export class AmplifyDriftDetector { }); } - // Start drift detection phases with spinner let phase1Results: CloudFormationDriftResults; let phase2Results: TemplateDriftResults; let phase3Results: LocalDriftResults; - try { - // Sync cloud backend from S3 before running any phases - this.startSpinner('Syncing cloud backend from S3...'); - const syncSuccess = await this.cfnService.syncCloudBackendFromS3(this.context); + this.logger.debug('Syncing cloud backend'); + const syncSuccess = await this.cfnService.syncCloudBackendFromS3(this.context); - // Phase 1: Detect CloudFormation drift recursively - this.updateSpinner('Detecting CloudFormation drift...'); - phase1Results = await detectStackDriftRecursive(cfn, stackName, this.printer); - this.printer.debug('Phase 1 complete'); + try { + this.logger.push('CloudFormation drift'); + phase1Results = await detectStackDriftRecursive(cfn, stackName, this.logger); + this.logger.pop(); + this.logger.debug('Phase 1 complete'); if (!syncSuccess) { phase2Results = { @@ -137,62 +96,51 @@ export class AmplifyDriftDetector { skipped: true, skipReason: 'S3 backend sync failed - cannot compare local vs cloud', }; - this.printer.warn(chalk.yellow('Cloud backend sync failed - template drift and local drift will be skipped')); + this.logger.warn(chalk.yellow('Cloud backend sync failed - template drift and local drift will be skipped')); } else { - this.printer.debug('S3 sync completed successfully'); - - // Phase 2: Template drift detection - this.updateSpinner('Analyzing template changes...'); - this.printer.debug('Checking for template drift using changesets...'); - phase2Results = await detectTemplateDrift(stackName, this.printer, cfn); - this.printer.debug(`Phase 2 complete: ${phase2Results.changes.length} changes`); - - // Phase 3: Local drift detection - this.updateSpinner('Checking local changes...'); - this.printer.debug('Checking local files vs cloud backend...'); + this.logger.debug('S3 sync completed successfully'); + + // eslint-disable-next-line spellcheck/spell-checker + this.logger.push('Template changes'); + // eslint-disable-next-line spellcheck/spell-checker + this.logger.debug('Checking for template drift using changesets...'); + phase2Results = await detectTemplateDrift(stackName, this.logger, cfn); + this.logger.pop(); + this.logger.debug(`Phase 2 complete: ${phase2Results.changes.length} changes`); + + this.logger.push('Local changes'); + this.logger.debug('Checking local files vs cloud backend...'); phase3Results = await detectLocalDrift(this.context); - this.printer.debug('Phase 3 complete'); + this.logger.pop(); + this.logger.debug('Phase 3 complete'); } - - this.stopSpinner('Drift detection completed'); } catch (error) { - this.stopSpinner(); + this.logger.pop(); throw error; } const driftReport = createUnifiedCategoryView(phase1Results, phase2Results, phase3Results); - if (driftReport) { - this.printer.info(driftReport); - this.printer.info(chalk.yellow('Drift detected')); - } else { - this.printer.info(chalk.green('No drift detected')); - } - const hasAnyErrors = phase1Results.incomplete || phase2Results.skipped || phase3Results.skipped; if (hasAnyErrors) { - this.printer.warn(chalk.yellow('Drift detection encountered errors, results may be incomplete:')); + this.logger.warn(chalk.yellow('Drift detection encountered errors, results may be incomplete:')); if (phase1Results.incomplete) { - this.printer.warn( + this.logger.warn( chalk.yellow(`CloudFormation drift check incomplete - ${phase1Results.skippedStacks.length} nested stack(s) skipped`), ); for (const skippedStack of phase1Results.skippedStacks) { - this.printer.debug(` - ${skippedStack}`); + this.logger.debug(` - ${skippedStack}`); } } if (phase2Results.skipped) { - this.printer.warn(chalk.yellow(`Template drift error: ${phase2Results.skipReason}`)); + this.logger.warn(chalk.yellow(`Template drift error: ${phase2Results.skipReason}`)); } if (phase3Results.skipped) { - this.printer.warn(chalk.yellow(`Local drift error: ${phase3Results.skipReason}`)); + this.logger.warn(chalk.yellow(`Local drift error: ${phase3Results.skipReason}`)); } - this.printer.debug('Exit code 1: Incomplete drift detection - cannot guarantee no drift'); - return 1; - } - if (driftReport) { - this.printer.debug('Exit code 1: drift detected across phases'); - return 1; + this.logger.debug('Exit code 1: Incomplete drift detection - cannot guarantee no drift'); + return { code: 1, report: driftReport ?? undefined }; } - return 0; + return { code: driftReport ? 1 : 0, report: driftReport }; } } diff --git a/packages/amplify-cli/src/commands/gen2-migration.ts b/packages/amplify-cli/src/commands/gen2-migration.ts index 725fcd28fc7..7ede1d1bbdd 100644 --- a/packages/amplify-cli/src/commands/gen2-migration.ts +++ b/packages/amplify-cli/src/commands/gen2-migration.ts @@ -1,17 +1,31 @@ import { AmplifyMigrationCloneStep } from './gen2-migration/clone'; import { $TSContext, AmplifyError } from '@aws-amplify/amplify-cli-core'; import { AmplifyMigrationStep } from './gen2-migration/_step'; -import { AmplifyMigrationOperation } from './gen2-migration/_operation'; -import { printer, prompter } from '@aws-amplify/amplify-prompts'; +import { printer, prompter, isDebug } from '@aws-amplify/amplify-prompts'; import { AmplifyMigrationDecommissionStep } from './gen2-migration/decommission'; import { AmplifyMigrationGenerateStep } from './gen2-migration/generate'; import { AmplifyMigrationLockStep } from './gen2-migration/lock'; import { AmplifyMigrationRefactorStep } from './gen2-migration/refactor'; import { AmplifyMigrationShiftStep } from './gen2-migration/shift'; +import { SpinningLogger } from './gen2-migration/_spinning-logger'; import { stateManager } from '@aws-amplify/amplify-cli-core'; import { AmplifyClient, GetAppCommand } from '@aws-sdk/client-amplify'; import chalk from 'chalk'; import { AmplifyMigrationAssessor } from './gen2-migration/assess'; +import { Plan } from './gen2-migration/_plan'; + +/** Re-export so existing consumers can migrate incrementally. */ +export { SpinningLogger }; + +/** + * @deprecated Use SpinningLogger instead. Kept for backward compatibility + * with the old refactor code path. + */ +export class Logger extends SpinningLogger { + constructor(stepName: string, appName: string, envName: string) { + super(`${stepName}] [${appName}/${envName}`, { debug: true }); + } +} const STEPS = { clone: { @@ -32,6 +46,7 @@ const STEPS = { }, refactor: { class: AmplifyMigrationRefactorStep, + // eslint-disable-next-line spellcheck/spell-checker description: 'Move stateful resources from your Gen1 environment to your newly deployed Gen2 branch', }, shift: { @@ -40,54 +55,6 @@ const STEPS = { }, }; -/** - * Logging utility that wraps the standard printer with additional gen2-migration specific context. - */ -export class Logger { - constructor(private readonly stepName: string, private readonly appName: string, private readonly envName: string) {} - - /** - * Logs a message with a visual envelope border for major section headers - */ - public envelope(message: string) { - printer.info(chalk.cyan(this._message(message, '→'))); - } - - /** - * Logs informational messages that are always displayed to the user. - */ - public info(message: string): void { - printer.info(this._message(message, '•')); - } - - /** - * Logs debug-level messages that are shown only if the command is executed with --debug. - */ - public debug(message: string): void { - printer.debug(this._message(message, '·')); - } - - /** - * Logs warning messages that are always displayed to the user. - */ - public warn(message: string): void { - printer.warn(this._message(message, '·')); - } - - /** - * Alias to `warn`. - */ - public warning(message: string): void { - printer.warn(this._message(message, '·')); - } - - private _message(message: string, prefix: string) { - return `[${new Date().toISOString()}] [${chalk.bold(this.stepName)}] [${chalk.blue( - `${this.appName}/${this.envName}`, - )}] ${prefix} ${message}`; - } -} - export const run = async (context: $TSContext) => { const stepName = (context.input.subCommands ?? [])[0]; const step = STEPS[stepName]; @@ -150,7 +117,7 @@ export const run = async (context: $TSContext) => { const stackName = stateManager.getTeamProviderInfo()[envName].awscloudformation.StackName; const region = stateManager.getTeamProviderInfo()[envName].awscloudformation.Region; - const logger = new Logger(stepName, appName, envName); + const logger = new SpinningLogger(`${stepName}] [${appName}/${envName}`, { debug: isDebug }); // Assess is not a migration step — handle it separately. if (stepName === 'assess') { @@ -161,39 +128,42 @@ export const run = async (context: $TSContext) => { const implementation: AmplifyMigrationStep = new step.class(logger, envName, appName, appId, stackName, region, context); - if (validationsOnly) { - await validate(implementation, rollingBack, logger, context); - return; - } - - printer.blankLine(); - printer.info( - chalk.yellow(`You are about to ${rollingBack ? 'rollback' : 'execute'} '${stepName}' on environment '${appId}/${envName}'.`), - ); - printer.blankLine(); - - printer.info(chalk.bold(chalk.underline('Operations Summary'))); + // Plan printer.blankLine(); + logger.start('Planning'); + let plan: Plan; + try { + plan = rollingBack ? await implementation.rollback() : await implementation.forward(); + logger.succeed('→ Planning complete'); + } catch (error: unknown) { + logger.failed('→ Planning failed'); + printer.blankLine(); + throw error; + } - for (const operation of rollingBack ? await implementation.rollback() : await implementation.execute()) { - for (const description of await operation.describe()) { - printer.info(`• ${description}`); + // Validate + if (!skipValidations) { + const passed = await plan.validate(); + if (!passed) { + const skipCommand = `amplify ${context.input.argv.join(' ').trim()} --skip-validations`; + printer.blankLine(); + throw new AmplifyError('MigrationError', { + message: 'Validations failed', + resolution: `Resolve the validation errors or skip them by running '${skipCommand}'`, + }); } } - printer.blankLine(); + if (validationsOnly) return; - printer.info(chalk.bold(chalk.underline('Implications'))); printer.blankLine(); - - const cachedStep = new CachedAmplifyMigrationStep(implementation); - - for (const implication of rollingBack ? await cachedStep.rollbackImplications() : await cachedStep.executeImplications()) { - printer.info(`• ${implication}`); - } - + printer.info( + chalk.yellow(`You are about to ${rollingBack ? 'rollback' : 'execute'} '${stepName}' on environment '${appId}/${envName}'.`), + ); printer.blankLine(); + await plan.describe(); + if (!rollingBack && stepName !== 'decommission') { printer.info(chalk.grey(`(You can rollback this command by running: 'amplify gen2-migration ${stepName} --rollback')`)); printer.blankLine(); @@ -210,73 +180,22 @@ export const run = async (context: $TSContext) => { printer.blankLine(); - if (!skipValidations) { - await validate(implementation, rollingBack, logger, context); - printer.blankLine(); - } - - if (rollingBack) { - await runRollback(cachedStep, logger); - printer.blankLine(); - printer.success('Done'); - return; - } - try { - await runExecute(cachedStep, logger); - printer.blankLine(); - printer.success('Done'); + await plan.execute(); return; } catch (error: unknown) { - if (!disableAutoRollback) { - printer.error(`Execution failed: ${error}`); + if (!rollingBack && !disableAutoRollback) { + printer.blankLine(); + printer.error(`Failed: ${error}`); printer.blankLine(); - await runRollback(cachedStep, logger); + const rollbackPlan = await implementation.rollback(); + await rollbackPlan.execute(); } throw error; } }; -async function validate(step: AmplifyMigrationStep, rollback: boolean, logger: Logger, context: $TSContext) { - logger.envelope('Performing validations'); - try { - if (rollback) { - await step.rollbackValidate(); - } else { - await step.executeValidate(); - } - } catch (e) { - const skipValidationsCommand = `amplify ${context.input.argv.join(' ').trim()} --skip-validations`; - throw new AmplifyError('MigrationError', { - message: `Validations failed: ${e.message}`, - resolution: `Resolve the validation errors or skip them by running '${skipValidationsCommand}'`, - }); - } - logger.envelope('Validations complete'); -} - -async function runOperations(operations: AmplifyMigrationOperation[]) { - for (const operation of operations) { - await operation.validate(); - } - for (const operation of operations) { - await operation.execute(); - } -} - -async function runRollback(step: CachedAmplifyMigrationStep, logger: Logger) { - logger.envelope('Rolling back'); - await runOperations(await step.rollback()); - logger.envelope('Rollback complete'); -} - -async function runExecute(step: CachedAmplifyMigrationStep, logger: Logger) { - logger.envelope('Executing'); - await runOperations(await step.execute()); - logger.envelope('Execution complete'); -} - function shiftParams(context) { delete context.parameters.first; delete context.parameters.second; @@ -301,39 +220,3 @@ function displayHelp(context: $TSContext) { context.amplify.showHelp('amplify gen2-migration ', commands); printer.info(''); } - -/** - * Convenience class that provides caching to step methods. - * Return values are constructed and stored on the first invocation; subsequent invocations return - * the cached values. - * - * This allows our gen2-migration.ts dispatcher to invoke step methods at will and on-demand. - */ -class CachedAmplifyMigrationStep { - private _executionOperations: AmplifyMigrationOperation[]; - private _rollbackOperations: AmplifyMigrationOperation[]; - - constructor(private readonly step: AmplifyMigrationStep) {} - - public async execute(): Promise { - if (!this._executionOperations) { - this._executionOperations = await this.step.execute(); - } - return this._executionOperations; - } - - public async rollback(): Promise { - if (!this._rollbackOperations) { - this._rollbackOperations = await this.step.rollback(); - } - return this._rollbackOperations; - } - - public async executeImplications() { - return this.step.executeImplications(); - } - - public async rollbackImplications() { - return this.step.rollbackImplications(); - } -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts index 78bd7c3e747..2ffe95c0918 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts @@ -1,25 +1,50 @@ +/** + * Result of a validation check. + */ +export interface ValidationResult { + /** + * Whether the validation passed. + */ + readonly valid: boolean; + + /** + * Optional detailed output shown below the status line. + */ + readonly report?: string; +} + +/** + * Declarative validation: description for the spinner + a run callback. + * The Plan drives the lifecycle (push description → run → pop). + */ +export interface Validation { + /** + * Text shown on the spinner while this validation runs. + */ + readonly description: string; + + /** + * Executes the validation. + */ + run(): Promise; +} + /** * Interface for atomic operations that can be executed as part of a migration step. */ export interface AmplifyMigrationOperation { /** * Returns human-readable strings describing what the operation will do. - * Used to display an operations summary to users before execution. - * Each string should be a concise, actionable description (e.g., "Enable deletion protection for table 'MyTable'"). */ describe(): Promise; /** - * Validates that this operation can proceed without causing harm. - * Called on ALL operations before any execute() runs. - * Throws AmplifyError if validation fails. + * Returns a validation to run before execution, or undefined if none. */ - validate(): Promise; + validate(): Validation | undefined; /** - * Executes the operation. - * Should be idempotent where possible and throw descriptive errors on failure. - * Called sequentially for each operation after user confirmation. + * Executes the operation. Should be idempotent where possible. */ execute(): Promise; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts new file mode 100644 index 00000000000..5d42dfe4e27 --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -0,0 +1,116 @@ +import { AmplifyMigrationOperation } from './_operation'; +import { SpinningLogger } from './_spinning-logger'; +import { printer } from '@aws-amplify/amplify-prompts'; +import chalk from 'chalk'; +import CLITable from 'cli-table3'; + +/** Internal type used only for rendering the validation summary table. */ +interface ValidationSummaryEntry { + readonly description: string; + readonly valid: boolean; +} + +/** + * Configuration for constructing a Plan. + */ +export interface PlanProps { + readonly operations: AmplifyMigrationOperation[]; + readonly logger: SpinningLogger; + readonly title: string; + readonly implications?: string[]; +} + +/** + * Encapsulates a list of operations and exposes describe/validate/execute. + * Individual operations are an internal detail. + */ +export class Plan { + private readonly operations: AmplifyMigrationOperation[]; + private readonly logger: SpinningLogger; + private readonly title: string; + private readonly implications: string[]; + + constructor(props: PlanProps) { + this.operations = props.operations; + this.logger = props.logger; + this.title = props.title; + this.implications = props.implications ?? []; + } + + /** + * Runs validations with spinner context, renders the summary table, + * and returns whether all validations passed. + */ + public async validate(): Promise { + this.logger.start('Validating'); + const entries: ValidationSummaryEntry[] = []; + for (const op of this.operations) { + const validation = op.validate(); + if (!validation) continue; + this.logger.push(validation.description); + const result = await validation.run(); + this.logger.pop(); + entries.push({ description: validation.description, valid: result.valid }); + } + this.logger.succeed('→ Validating complete'); + this.renderValidationResults(entries); + return entries.every((e) => e.valid); + } + + /** + * Renders the operations summary and implications to the terminal. + */ + public async describe(): Promise { + const descriptions: string[] = []; + for (const op of this.operations) { + descriptions.push(...(await op.describe())); + } + + if (descriptions.length > 0) { + printer.info(chalk.bold(chalk.underline('Operations Summary'))); + printer.blankLine(); + for (const description of descriptions) { + printer.info(`• ${description}`); + } + printer.blankLine(); + } + + if (this.implications.length > 0) { + printer.info(chalk.bold(chalk.underline('Implications'))); + printer.blankLine(); + for (const implication of this.implications) { + printer.info(`• ${implication}`); + } + printer.blankLine(); + } + } + + /** + * Executes all operations sequentially. + */ + public async execute(): Promise { + this.logger.info(this.title); + for (const op of this.operations) { + await op.execute(); + } + printer.blankLine(); + printer.success('Done'); + } + + private renderValidationResults(entries: ValidationSummaryEntry[]): void { + if (entries.length === 0) return; + + printer.blankLine(); + printer.info(chalk.bold(chalk.underline('Validations Summary'))); + printer.blankLine(); + const table = new CLITable({ + head: ['Validation', 'Status'], + style: { head: [] }, + }); + for (const entry of entries) { + const status = entry.valid ? chalk.green('✔ Passed') : chalk.red('✘ Failed'); + table.push([entry.description, status]); + } + printer.info(table.toString()); + } +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/_spinning-logger.ts b/packages/amplify-cli/src/commands/gen2-migration/_spinning-logger.ts new file mode 100644 index 00000000000..bc799a4ad00 --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/_spinning-logger.ts @@ -0,0 +1,151 @@ +import { printer, AmplifySpinner, isDebug as globalIsDebug } from '@aws-amplify/amplify-prompts'; +import chalk from 'chalk'; + +/** + * Logger that manages a spinner in normal mode and falls back to + * plain text output in debug mode. Consumers use info/debug/warn + * for messages and push/pop to manage hierarchical spinner context. + */ +export class SpinningLogger { + private static readonly SEPARATOR = ' → '; + private readonly segments: string[] = []; + private readonly spinner: AmplifySpinner; + private readonly debugMode: boolean; + private spinnerActive = false; + + constructor(private readonly prefix: string, options?: { readonly debug?: boolean }) { + this.debugMode = options?.debug ?? globalIsDebug; + this.spinner = new AmplifySpinner(); + } + + /** + * Starts the spinner with an initial segment (no-op in debug mode). + */ + public start(text: string): void { + this.segments.length = 0; + this.segments.push(text); + if (this.debugMode) { + this.printLine(text, '→'); + return; + } + this.spinnerActive = true; + this.spinner.start(this.buildSpinnerText()); + } + + /** + * Stops the spinner and clears all segments. + */ + public stop(): void { + this.segments.length = 0; + if (!this.debugMode && this.spinnerActive) { + this.spinner.stop(); + this.spinnerActive = false; + } + } + + /** + * Stops the spinner and prints the phase text as a permanent success line. + */ + public succeed(text: string): void { + this.segments.length = 0; + if (this.debugMode) { + this.printLine(text, '•'); + return; + } + if (this.spinnerActive) { + this.spinner.stop(text, true); + this.spinnerActive = false; + } + } + + /** + * Stops the spinner and prints the phase text as a permanent failure line. + */ + public failed(text: string): void { + this.segments.length = 0; + if (this.debugMode) { + this.printLine(text, '•'); + return; + } + if (this.spinnerActive) { + this.spinner.stop(text, false); + this.spinnerActive = false; + } + } + + /** + * Pushes a segment onto the context stack and updates the spinner. + */ + public push(text: string): void { + this.segments.push(text); + if (this.debugMode) { + this.printLine(text, '→'); + return; + } + if (this.spinnerActive) { + this.spinner.resetMessage(this.buildSpinnerText()); + } + } + + /** + * Pops the last segment from the context stack. + */ + public pop(): void { + this.segments.pop(); + if (!this.debugMode && this.spinnerActive && this.segments.length > 0) { + this.spinner.resetMessage(this.buildSpinnerText()); + } + } + + /** + * Logs an informational message. Pauses the spinner if active. + */ + public info(message: string): void { + this.withSpinnerPaused(() => this.printLine(message, '•')); + } + + /** + * Logs a debug message (only visible in debug mode). + */ + public debug(message: string): void { + if (this.debugMode) { + printer.debug(this.formatLine(message, '·')); + } + } + + /** + * Logs a warning message. Pauses the spinner if active. + */ + public warn(message: string): void { + if (this.debugMode) { + printer.warn(this.formatLine(message, '·')); + return; + } + this.withSpinnerPaused(() => printer.warn(this.formatLine(message, '·'))); + } + + /** + * Temporarily pauses the spinner, runs fn, then resumes. + */ + public withSpinnerPaused(fn: () => void): void { + if (!this.spinnerActive || this.debugMode) { + fn(); + return; + } + this.spinner.stop(); + fn(); + this.spinner.start(this.buildSpinnerText()); + } + + private buildSpinnerText(): string { + return this.segments.join(SpinningLogger.SEPARATOR); + } + + private formatLine(message: string, bullet: string): string { + return `[${new Date().toISOString()}] [${chalk.bold(this.prefix)}] ${bullet} ${message}`; + } + + private printLine(message: string, bullet: string): void { + printer.info(this.formatLine(message, bullet)); + } +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/_step.ts b/packages/amplify-cli/src/commands/gen2-migration/_step.ts index 3fd77dda311..1c274573722 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_step.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_step.ts @@ -1,14 +1,13 @@ import { $TSContext } from '@aws-amplify/amplify-cli-core'; -import { Logger } from '../gen2-migration'; -import { AmplifyMigrationOperation } from './_operation'; +import { SpinningLogger } from './_spinning-logger'; +import { Plan } from './_plan'; /** * Abstract base class that defines the lifecycle contract for all migration steps. - * Subcommands must extend this base class. */ export abstract class AmplifyMigrationStep { constructor( - protected readonly logger: Logger, + protected readonly logger: SpinningLogger, protected readonly currentEnvName: string, protected readonly appName: string, protected readonly appId: string, @@ -18,42 +17,12 @@ export abstract class AmplifyMigrationStep { ) {} /** - * Returns human-readable strings describing the implications and side effects of executing forward operations. - * Displayed to users before confirmation prompt to help them understand the impact of the migration step. + * Returns a Plan for forward execution. */ - public abstract executeImplications(): Promise; + public abstract forward(): Promise; /** - * Returns human-readable strings describing the implications and side effects of executing rollback operations. - * Displayed to users before confirmation prompt to help them understand the impact of reverting the migration step. + * Returns a Plan for rollback. */ - public abstract rollbackImplications(): Promise; - - /** - * Validates prerequisites before executing forward operations. - * Should check environment state, resource availability, and any step-specific requirements. - * Throws errors if validation fails. - */ - public abstract executeValidate(): Promise; - - /** - * Validates prerequisites before executing rollback operations. - * Ensures the environment is in a state where rollback can proceed safely. - * Throws errors if validation fails. - */ - public abstract rollbackValidate(): Promise; - - /** - * Returns an array of operations to perform for forward execution. - * Each operation describes what it will do and contains the logic to execute it. - * Operations are executed sequentially after user confirmation. - */ - public abstract execute(): Promise; - - /** - * Returns an array of operations to perform for rollback. - * Reverses the changes made by execute(). - * Operations are executed sequentially after user confirmation. - */ - public abstract rollback(): Promise; + public abstract rollback(): Promise; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/_validations.ts b/packages/amplify-cli/src/commands/gen2-migration/_validations.ts index 30c047ca8ce..eb3cf0ff775 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_validations.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_validations.ts @@ -11,38 +11,36 @@ import { STATEFUL_RESOURCES } from './stateful-resources'; import CLITable from 'cli-table3'; import Bottleneck from 'bottleneck'; import execa from 'execa'; -import { Logger } from '../gen2-migration'; +import { SpinningLogger } from './_spinning-logger'; import chalk from 'chalk'; import { printer } from '@aws-amplify/amplify-prompts'; import { extractCategory } from './categories'; export class AmplifyGen2MigrationValidations { - private limiter = new Bottleneck({ + private readonly limiter = new Bottleneck({ maxConcurrent: 3, minTime: 50, }); constructor( - private readonly logger: Logger, + private readonly logger: SpinningLogger, private readonly rootStackName: string, private readonly envName, private readonly context: $TSContext, ) {} public async validateDrift(): Promise { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const code = await new AmplifyDriftDetector(this.context, this.logger).detect(); - if (code !== 0) { + const result = await new AmplifyDriftDetector(this.context, this.logger).detect(); + if (result.code !== 0) { throw new AmplifyError('MigrationError', { - message: 'Drift detected', - resolution: 'Inspect the output above and resolve the drift', + message: result.report ?? 'Drift detected', + resolution: 'Inspect the drift report above and resolve the drift', }); } - this.logger.info(chalk.green('No drift detected ✔ ')); } public async validateWorkingDirectory(): Promise { - this.logger.info('Inspecting local directory state for uncommitted changes'); + this.logger.debug('Inspecting local directory state for uncommitted changes'); const { stdout: statusOutput } = await execa('git', ['status', '--porcelain']); if (statusOutput.trim()) { @@ -51,12 +49,10 @@ export class AmplifyGen2MigrationValidations { resolution: 'Commit or stash your changes before proceeding with migration.', }); } - - this.logger.info(chalk.green('Local working directory is clean ✔')); } public async validateDeploymentStatus(): Promise { - this.logger.info(`Inspecting root stack '${this.rootStackName}' status`); + this.logger.debug(`Inspecting root stack '${this.rootStackName}' status`); const cfnClient = new CloudFormationClient({}); const response = await cfnClient.send(new DescribeStacksCommand({ StackName: this.rootStackName })); @@ -68,7 +64,6 @@ export class AmplifyGen2MigrationValidations { } const stackStatus = response.Stacks[0].StackStatus; - // Note: UPDATE_ROLLBACK_COMPLETE isn't an expected state - only being added in the edge case of resuming migration from a failed state const validStatuses = ['UPDATE_COMPLETE', 'CREATE_COMPLETE', 'UPDATE_ROLLBACK_COMPLETE']; if (!validStatuses.includes(stackStatus)) { @@ -77,8 +72,6 @@ export class AmplifyGen2MigrationValidations { resolution: 'Complete the deployment before proceeding.', }); } - - this.logger.info(chalk.green(`Root stack '${this.rootStackName}' status is ${stackStatus} ✔`)); } public async validateDeploymentVersion(): Promise { @@ -102,7 +95,6 @@ export class AmplifyGen2MigrationValidations { const statefulRemoves: Array<{ category: string; resourceType: string; physicalId: string }> = []; for (const change of changeSet.Changes) { if (change.Type === 'Resource' && change.ResourceChange?.Action === 'Remove' && change.ResourceChange?.ResourceType) { - // Skip deployment bucket only when explicitly requested (e.g., during decommission) if ( deploymentBucketName && change.ResourceChange.ResourceType === 'AWS::S3::Bucket' && @@ -160,7 +152,7 @@ export class AmplifyGen2MigrationValidations { public async validateLockStatus(): Promise { const cfnClient = new CloudFormationClient({}); - this.logger.info(`Inspecting stack policy for ${this.rootStackName}`); + this.logger.debug(`Inspecting stack policy for ${this.rootStackName}`); const { StackPolicyBody } = await cfnClient.send(new GetStackPolicyCommand({ StackName: this.rootStackName })); if (!StackPolicyBody) { @@ -189,7 +181,7 @@ export class AmplifyGen2MigrationValidations { }); } - this.logger.info(chalk.green(`Stack ${this.rootStackName} is locked ✔`)); + this.logger.debug(chalk.green(`Stack ${this.rootStackName} is locked ✔`)); } private async getStatefulResources( diff --git a/packages/amplify-cli/src/commands/gen2-migration/assess.ts b/packages/amplify-cli/src/commands/gen2-migration/assess.ts index 2630c40a211..f05c59f2569 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/assess.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/assess.ts @@ -2,7 +2,7 @@ import { $TSContext } from '@aws-amplify/amplify-cli-core'; import { Assessment } from './_assessment'; import { AmplifyMigrationGenerateStep } from './generate'; import { AmplifyMigrationRefactorStep } from './refactor'; -import { Logger } from '../gen2-migration'; +import { SpinningLogger } from '../gen2-migration'; /** * Evaluates migration readiness by calling assess() on the generate @@ -10,7 +10,7 @@ import { Logger } from '../gen2-migration'; */ export class AmplifyMigrationAssessor { constructor( - private readonly logger: Logger, + private readonly logger: SpinningLogger, private readonly currentEnvName: string, private readonly appName: string, private readonly appId: string, diff --git a/packages/amplify-cli/src/commands/gen2-migration/clone.ts b/packages/amplify-cli/src/commands/gen2-migration/clone.ts index ec2d3a59195..7b6b908e3ee 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/clone.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/clone.ts @@ -1,28 +1,12 @@ import { AmplifyMigrationStep } from './_step'; -import { AmplifyMigrationOperation } from './_operation'; +import { Plan } from './_plan'; export class AmplifyMigrationCloneStep extends AmplifyMigrationStep { - public async executeImplications(): Promise { + public async forward(): Promise { throw new Error('Method not implemented.'); } - public async rollbackImplications(): Promise { - throw new Error('Method not implemented.'); - } - - public async executeValidate(): Promise { - throw new Error('Method not implemented.'); - } - - public async rollbackValidate(): Promise { - throw new Error('Method not implemented.'); - } - - public async execute(): Promise { - throw new Error('Method not implemented.'); - } - - public async rollback(): Promise { + public async rollback(): Promise { throw new Error('Not Implemented'); } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/decommission.ts b/packages/amplify-cli/src/commands/gen2-migration/decommission.ts index c51ee6b6347..616fcdca872 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/decommission.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/decommission.ts @@ -1,5 +1,6 @@ import { AmplifyMigrationStep } from './_step'; -import { AmplifyMigrationOperation } from './_operation'; +import { AmplifyMigrationOperation, ValidationResult } from './_operation'; +import { Plan } from './_plan'; import { AmplifyGen2MigrationValidations } from './_validations'; import { CloudFormationClient, @@ -16,38 +17,23 @@ import { invokeDeleteEnvParamsFromService } from '../../extensions/amplify-helpe import { deleteHoldingStack, HOLDING_STACK_SUFFIX } from './refactor/holding-stack'; export class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep { - public async executeImplications(): Promise { - return ['Delete the Gen1 environment']; - } - - public async rollbackImplications(): Promise { - throw new Error('Method not implemented.'); - } - - public async executeValidate(): Promise { - const changeSet = await this.createChangeSet(); - - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); - // eslint-disable-next-line spellcheck/spell-checker - await validations.validateStatefulResources(changeSet, true); - } - - public async rollbackValidate(): Promise { - throw new Error('Method not implemented.'); - } - - public async execute(): Promise { + public async forward(): Promise { const cfnClient = new CloudFormationClient({ region: this.region }); const holdingStacks = await this.findHoldingStacks(cfnClient); const operations: AmplifyMigrationOperation[] = []; + // Validation-only operation (formerly in executeValidate) + operations.push({ + describe: async () => [], + validate: () => ({ description: 'Stateful resources', run: () => this.validateStatefulResources() }), + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, + }); + for (const stackName of holdingStacks) { operations.push({ - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Delete holding stack: ${stackName}`], execute: async () => { this.logger.info(`Deleting holding stack: ${stackName}`); @@ -58,9 +44,7 @@ export class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep { } operations.push({ - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Delete the Gen1 environment'], execute: async () => { this.logger.info(`Starting decommission of environment: ${this.currentEnvName}`); @@ -74,13 +58,33 @@ export class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep { }, }); - return operations; + return new Plan({ + operations, + logger: this.logger, + title: 'Execute', + implications: [ + 'The Gen1 CloudFormation stack and all its resources will be permanently deleted', + 'This operation cannot be rolled back', + ], + }); } - public async rollback(): Promise { + public async rollback(): Promise { throw new Error('Not Implemented'); } + private async validateStatefulResources(): Promise { + try { + const changeSet = await this.createChangeSet(); + const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); + // eslint-disable-next-line spellcheck/spell-checker + await validations.validateStatefulResources(changeSet, true); + return { valid: true }; + } catch (e) { + return { valid: false, report: e.message }; + } + } + private async findHoldingStacks(cfnClient: CloudFormationClient): Promise { const holdingStacks: string[] = []; const paginator = paginateListStacks( diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate.ts b/packages/amplify-cli/src/commands/gen2-migration/generate.ts index 69aa3c5841f..3676dfe38d6 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate.ts @@ -3,7 +3,8 @@ import os from 'node:os'; import fs from 'node:fs/promises'; import execa from 'execa'; import { AmplifyMigrationStep } from './_step'; -import { AmplifyMigrationOperation } from './_operation'; +import { AmplifyMigrationOperation, ValidationResult } from './_operation'; +import { Plan } from './_plan'; import { AmplifyGen2MigrationValidations } from './_validations'; import { AwsClients } from './aws-clients'; import { Gen1App } from './generate/_infra/gen1-app'; @@ -46,46 +47,16 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { case 'api:API Gateway': case 'analytics:Kinesis': case 'function:Lambda': - assessment.record('generate', resource, { supported: true }); + assessment.record('generate', resource, { supported: true, notes: [] }); break; case 'unsupported': - assessment.record('generate', resource, { supported: false }); + assessment.record('generate', resource, { supported: false, notes: [] }); break; } } } - public async executeImplications(): Promise { - return ['TODO']; - } - - public async rollbackImplications(): Promise { - throw new Error('Method not implemented.'); - } - - public async executeValidate(): Promise { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); - await validations.validateLockStatus(); - await validations.validateWorkingDirectory(); - } - - public async rollbackValidate(): Promise { - throw new Error('Method not implemented.'); - } - - /** - * Assembles all category generators based on the Gen1 app's - * amplify-meta.json and returns the full list of migration operations. - * - * Uses discover() to iterate all resources, then dispatches by - * (category, service) using the same GENERATE_SUPPORTED map that - * assess() uses. Unsupported resources are skipped. - * - * Operations are returned — not executed — so the parent dispatcher - * can display descriptions to the user before confirmation. - */ - public async execute(): Promise { + public async forward(): Promise { const clients = new AwsClients({ region: this.region }); const gen1App = await Gen1App.create({ appId: this.appId, region: this.region, envName: this.currentEnvName, clients }); @@ -177,14 +148,23 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { generators.push(new AmplifyYmlGenerator(gen1App)); generators.push(new GitIgnoreGenerator()); - // No-op operation shown first so the user sees "Delete amplify/" at the top. - // The actual deletion happens in the post-generation operation below. const operations: AmplifyMigrationOperation[] = [ + // Validation-only operations (formerly in executeValidate) + { + describe: async () => [], + validate: () => ({ description: 'Lock status', run: () => this.validateLockStatus() }), + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, + }, { - validate: async () => { - return; - }, - describe: async () => ['Delete amplify/'], + describe: async () => [], + validate: () => ({ description: 'Working directory', run: () => this.validateWorkingDirectory() }), + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, + }, + { + validate: () => undefined, + describe: async () => [`Delete directory: ${path.join(process.cwd(), 'amplify')}`], // eslint-disable-next-line @typescript-eslint/no-empty-function execute: async () => {}, }, @@ -197,9 +177,7 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { // Post-generation: replace local amplify folder. operations.push({ - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [], execute: async () => { const cwd = process.cwd(); @@ -213,9 +191,7 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { // Post-generation: reinstall dependencies. operations.push({ - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Install Gen2 dependencies'], execute: async () => { const cwd = process.cwd(); @@ -237,12 +213,37 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { }, }); - return operations; + return new Plan({ + operations, + logger: this.logger, + title: 'Execute', + implications: ["Your local 'amplify/' directory will be replaced with Gen2 code", 'Dependencies will be reinstalled'], + }); } - public async rollback(): Promise { + public async rollback(): Promise { throw new Error('Not Implemented'); } + + private async validateLockStatus(): Promise { + try { + const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); + await validations.validateLockStatus(); + return { valid: true }; + } catch (e) { + return { valid: false, report: e.message }; + } + } + + private async validateWorkingDirectory(): Promise { + try { + const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); + await validations.validateWorkingDirectory(); + return { valid: true }; + } catch (e) { + return { valid: false, report: e.message }; + } + } } /** diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify.yml.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify.yml.generator.ts index 4811add6975..d305e4a198a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify.yml.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify.yml.generator.ts @@ -34,9 +34,7 @@ export class AmplifyYmlGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [localFileExists ? 'Update amplify.yml with Gen2 build commands' : 'Generate amplify.yml'], execute: async () => { let parsed: unknown; diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts index df990d95471..1830c534512 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts @@ -54,9 +54,7 @@ export class AnalyticsKinesisGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Generate amplify/analytics/${this.resourceName}/resource.ts`], execute: async () => { const fileWriter = async (content: string, filePath: string) => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts index d42011fde40..40dde0fe900 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts @@ -86,9 +86,7 @@ export class AuthGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Generate amplify/auth/resource.ts'], execute: async () => { const nodes = this.defineAuth.render(renderOptions); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts index 19aaa314351..b9e2c302930 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts @@ -44,9 +44,7 @@ export class ReferenceAuthGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Generate amplify/auth/resource.ts (reference auth)'], execute: async () => { const nodes = this.renderer.render(referenceAuth); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/backend.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/backend.generator.ts index e84fc3752c5..b98acf2cb80 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/backend.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/backend.generator.ts @@ -110,9 +110,7 @@ export class BackendGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Generate amplify/backend.ts'], execute: async () => { const nodes: ts.Node[] = []; diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.ts index f29c9a652d8..5d64b81b01a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.ts @@ -58,9 +58,7 @@ export class CustomResourceGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Migrate amplify/custom/${this.resourceName}/resource.ts`], execute: async () => { // Copy resource directory (excluding filtered files) diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts index f1aeb412242..8d688127bc1 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts @@ -62,9 +62,7 @@ export class DataGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Generate amplify/data/resource.ts'], execute: async () => { const nodes = this.defineData.render({ diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts index 88f8ecf1f6d..9ec0b1b0057 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts @@ -124,9 +124,7 @@ export class FunctionGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Generate amplify/${this.category}/${func.resourceName}/resource.ts`], execute: async () => { await this.generateResource(func); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/package.json.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/package.json.generator.ts index cf705468aa7..ca49db3cc69 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/package.json.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/package.json.generator.ts @@ -16,9 +16,7 @@ export class BackendPackageJsonGenerator implements Planner { const filePath = path.join(this.outputDir, 'amplify', 'package.json'); return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Generate amplify/package.json'], execute: async () => { await fs.mkdir(path.dirname(filePath), { recursive: true }); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts index 9351f913bf0..7b684af285f 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts @@ -39,9 +39,7 @@ export class RestApiGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Generate REST API ${restApi.apiName} in amplify/backend.ts`], execute: async () => { this.addRestApiImports(); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts index 4bc9ad9aece..1a929f85904 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts @@ -34,9 +34,7 @@ export class DynamoDBGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Generate DynamoDB table ${this.resourceName} in amplify/backend.ts`], execute: async () => { const imports = this.renderer.requiredImports(); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts index 9c09ee9234d..d15b29bbba0 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts @@ -109,9 +109,7 @@ export class S3Generator implements Planner { const storageIdentifier = bucketName; return { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Generate amplify/storage/resource.ts'], execute: async () => { const accessPatterns = this.buildAccessPatterns(cliInputs); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/tsconfig.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/tsconfig.generator.ts index bbbe04b2498..371fb274c37 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/tsconfig.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/tsconfig.generator.ts @@ -16,9 +16,7 @@ export class TsConfigGenerator implements Planner { const filePath = path.join(this.outputDir, 'amplify', 'tsconfig.json'); return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Generate amplify/tsconfig.json'], execute: async () => { const tsconfig = { diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/gitignore.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/gitignore.generator.ts index ef2725e8ad1..59e6a402b26 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/gitignore.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/gitignore.generator.ts @@ -15,9 +15,7 @@ export class GitIgnoreGenerator implements Planner { public async plan(): Promise { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Update .gitignore with Gen2 entries'], execute: async () => { const gitignorePath = path.join(process.cwd(), '.gitignore'); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/package.json.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/package.json.generator.ts index f4cc9f77969..045b91afa69 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/package.json.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/package.json.generator.ts @@ -71,9 +71,7 @@ export class RootPackageJsonGenerator implements Planner { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Update package.json with Gen2 dependencies'], execute: async () => { const defaultName = 'amplify-gen2'; diff --git a/packages/amplify-cli/src/commands/gen2-migration/lock.ts b/packages/amplify-cli/src/commands/gen2-migration/lock.ts index 8a282ac2bb1..8d3d4c82873 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/lock.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/lock.ts @@ -1,11 +1,12 @@ import { AmplifyMigrationStep } from './_step'; -import { AmplifyMigrationOperation } from './_operation'; +import { AmplifyMigrationOperation, ValidationResult } from './_operation'; +import { Plan } from './_plan'; import { AmplifyError, stateManager } from '@aws-amplify/amplify-cli-core'; import { CloudFormationClient, SetStackPolicyCommand } from '@aws-sdk/client-cloudformation'; import { AmplifyClient, UpdateAppCommand, GetAppCommand } from '@aws-sdk/client-amplify'; import { DynamoDBClient, UpdateTableCommand, paginateListTables } from '@aws-sdk/client-dynamodb'; import { AppSyncClient, paginateListGraphqlApis } from '@aws-sdk/client-appsync'; -import { CognitoIdentityProviderClient, UpdateUserPoolCommand } from '@aws-sdk/client-cognito-identity-provider'; +import { CognitoIdentityProviderClient } from '@aws-sdk/client-cognito-identity-provider'; import { AmplifyGen2MigrationValidations } from './_validations'; const GEN2_MIGRATION_ENVIRONMENT_NAME = 'GEN2_MIGRATION_ENVIRONMENT_NAME'; @@ -19,42 +20,28 @@ export class AmplifyMigrationLockStep extends AmplifyMigrationStep { private _cfnClient: CloudFormationClient; private _cognitoClient: CognitoIdentityProviderClient; - public async executeImplications(): Promise { - return [ - `You will not be able to run 'amplify push' on environment '${this.currentEnvName}'`, - `You will not be able to migrate another environment until migration of '${this.currentEnvName}' is complete or rolled back`, - ]; - } - - public async rollbackImplications(): Promise { - return [ - `You will be able to run 'amplify push' on environment '${this.currentEnvName}'`, - `You will be able to start migration of another environment`, - ]; - } - - public async executeValidate(): Promise { - const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); - await validations.validateDeploymentStatus(); - await validations.validateDrift(); - } + public async forward(): Promise { + const operations: AmplifyMigrationOperation[] = []; - public async rollbackValidate(): Promise { - // https://github.com/aws-amplify/amplify-cli/issues/14570 - return; - } + // Validation-only operations (formerly in executeValidate) + operations.push({ + describe: async () => [], + validate: () => ({ description: 'Environment Status', run: () => this.validateDeploymentStatus() }), + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, + }); - public async execute(): Promise { - const operations: AmplifyMigrationOperation[] = []; + operations.push({ + describe: async () => [], + validate: () => ({ description: 'Drift', run: () => this.validateDrift() }), + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, + }); for (const tableName of await this.dynamoTableNames()) { operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Enable deletion protection for table '${tableName}'`]; - }, + validate: () => undefined, + describe: async () => [`Enable deletion protection for table '${tableName}'`], execute: async () => { await this.ddbClient().send( new UpdateTableCommand({ @@ -69,31 +56,23 @@ export class AmplifyMigrationLockStep extends AmplifyMigrationStep { for (const userPoolId of await this.userPoolIds()) { operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Enable deletion protection for user pool '${userPoolId}'`]; - }, + validate: () => undefined, + describe: async () => [`Enable deletion protection for user pool '${userPoolId}'`], execute: async () => { - await this.cognitoClient().send( - new UpdateUserPoolCommand({ - UserPoolId: userPoolId, - DeletionProtection: 'ACTIVE', - }), - ); - this.logger.info(`Enabled deletion protection for user pool '${userPoolId}'`); + // await this.cognitoClient().send( + // new UpdateUserPoolCommand({ + // UserPoolId: userPoolId, + // DeletionProtection: 'ACTIVE', + // }), + // ); + // this.logger.info(`Enabled deletion protection for user pool '${userPoolId}'`); }, }); } operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Add environment variable '${GEN2_MIGRATION_ENVIRONMENT_NAME}' (value: ${this.currentEnvName})`]; - }, + validate: () => undefined, + describe: async () => [`Add environment variable '${GEN2_MIGRATION_ENVIRONMENT_NAME}' (value: ${this.currentEnvName})`], execute: async () => { const app = await this.amplifyClient().send(new GetAppCommand({ appId: this.appId })); const environmentVariables = { ...(app.app.environmentVariables ?? {}), [GEN2_MIGRATION_ENVIRONMENT_NAME]: this.currentEnvName }; @@ -114,12 +93,8 @@ export class AmplifyMigrationLockStep extends AmplifyMigrationStep { }); operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Set a policy on stack '${this.rootStackName}': ${stackPolicy}`]; - }, + validate: () => undefined, + describe: async () => [`Set a policy on stack '${this.rootStackName}': ${stackPolicy}`], execute: async () => { await this.cfnClient().send( new SetStackPolicyCommand({ @@ -131,50 +106,41 @@ export class AmplifyMigrationLockStep extends AmplifyMigrationStep { }, }); - return operations; + return new Plan({ + operations, + logger: this.logger, + title: 'Execute', + implications: [ + `You will not be able to run 'amplify push' on environment '${this.currentEnvName}'`, + `You will not be able to migrate another environment until migration of '${this.currentEnvName}' is complete or rolled back`, + ], + }); } - public async rollback(): Promise { + public async rollback(): Promise { const operations: AmplifyMigrationOperation[] = []; - // note that we don't disable deletion protection on the tables because we don't - // know what the original value was; to play it safe we leave it untouched. - // create logging only operations to let this be known to the user. for (const tableName of await this.dynamoTableNames()) { operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Preserve deletion protection for table '${tableName}'`]; - }, - execute: async () => { - return; - }, + validate: () => undefined, + describe: async () => [`Preserve deletion protection for table '${tableName}'`], + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, }); } for (const userPoolId of await this.userPoolIds()) { operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Preserve deletion protection for user pool '${userPoolId}'`]; - }, - execute: async () => { - return; - }, + validate: () => undefined, + describe: async () => [`Preserve deletion protection for user pool '${userPoolId}'`], + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, }); } operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Remove environment variable '${GEN2_MIGRATION_ENVIRONMENT_NAME}'`]; - }, + validate: () => undefined, + describe: async () => [`Remove environment variable '${GEN2_MIGRATION_ENVIRONMENT_NAME}'`], execute: async () => { const app = await this.amplifyClient().send(new GetAppCommand({ appId: this.appId })); const environmentVariables = app.app.environmentVariables ?? {}; @@ -196,12 +162,8 @@ export class AmplifyMigrationLockStep extends AmplifyMigrationStep { }); operations.push({ - validate: async () => { - return; - }, - describe: async () => { - return [`Set a policy on stack '${this.rootStackName}': ${stackPolicy}`]; - }, + validate: () => undefined, + describe: async () => [`Set a policy on stack '${this.rootStackName}': ${stackPolicy}`], execute: async () => { await this.cfnClient().send( new SetStackPolicyCommand({ @@ -213,7 +175,35 @@ export class AmplifyMigrationLockStep extends AmplifyMigrationStep { }, }); - return operations; + return new Plan({ + operations, + logger: this.logger, + title: 'Rollback', + implications: [ + `You will be able to run 'amplify push' on environment '${this.currentEnvName}'`, + `You will be able to start migration of another environment`, + ], + }); + } + + private async validateDeploymentStatus(): Promise { + try { + const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); + await validations.validateDeploymentStatus(); + return { valid: true }; + } catch (e) { + return { valid: false, report: e.message }; + } + } + + private async validateDrift(): Promise { + try { + const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); + await validations.validateDrift(); + return { valid: true }; + } catch (e) { + return { valid: false, report: e.message }; + } } private async fetchGraphQLApiId(): Promise { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-forward.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-forward.ts index c561773c30e..2d5111e983b 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-forward.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-forward.ts @@ -6,6 +6,7 @@ import { StackFacade } from '../stack-facade'; import { retrieveOAuthValues } from '../oauth-values-retriever'; import { ForwardCategoryRefactorer } from '../workflow/forward-category-refactorer'; import { MoveMapping } from '../workflow/category-refactorer'; +import { SpinningLogger } from '../../_spinning-logger'; import { GEN2_NATIVE_APP_CLIENT, discoverGen1AuthStacks } from './auth-utils'; const GEN1_WEB_APP_CLIENT = 'UserPoolClientWeb'; @@ -34,10 +35,11 @@ export class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer { clients: AwsClients, region: string, accountId: string, + logger: SpinningLogger, private readonly appId: string, private readonly environmentName: string, ) { - super(gen1Env, gen2Branch, clients, region, accountId); + super(gen1Env, gen2Branch, clients, region, accountId, logger); } protected resourceTypes(): string[] { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts index a947ab86438..f40f58d6430 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts @@ -88,9 +88,7 @@ export async function executeLegacyRefactor(params: { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => ['Move stateful resources from your Gen1 app to be managed by your Gen2 app'], execute: async () => { const templateGenerator = await initializeLegacyTemplateGenerator(TemplateGenerator, params); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts index 9c68d7ed0c3..c60ff773e16 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts @@ -1,6 +1,7 @@ /* eslint-disable spellcheck/spell-checker */ import { AmplifyMigrationStep } from '../_step'; -import { AmplifyMigrationOperation } from '../_operation'; +import { AmplifyMigrationOperation, ValidationResult } from '../_operation'; +import { Plan } from '../_plan'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { GetCallerIdentityCommand, STSClient } from '@aws-sdk/client-sts'; import { AmplifyGen2MigrationValidations } from '../_validations'; @@ -47,24 +48,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { } } - public async executeImplications(): Promise { - return ['Move stateful resources from your Gen1 app to be managed by your Gen2 app']; - } - - public async rollbackImplications(): Promise { - return ['Move stateful resources from your Gen2 app back to your Gen1 app']; - } - - public async executeValidate(): Promise { - const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); - await validations.validateLockStatus(); - } - - public async rollbackValidate(): Promise { - return; - } - - public async execute(): Promise { + public async forward(): Promise { const toStack = this.extractParameters(); const { clients, accountId, gen1Env, gen2Branch } = await this.createInfrastructure(toStack); @@ -79,17 +63,26 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { switch (resource.key) { case 'auth:Cognito': refactorers.push( - new AuthCognitoForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.appId, this.currentEnvName), + new AuthCognitoForwardRefactorer( + gen1Env, + gen2Branch, + clients, + this.region, + accountId, + this.logger, + this.appId, + this.currentEnvName, + ), ); break; case 'storage:S3': - refactorers.push(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId)); + refactorers.push(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); break; case 'storage:DynamoDB': - refactorers.push(new StorageDynamoForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId)); + refactorers.push(new StorageDynamoForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); break; case 'analytics:Kinesis': - refactorers.push(new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId)); + refactorers.push(new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); break; // Stateless categories — nothing to refactor // falls through @@ -105,10 +98,17 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { } } - return this.plan(refactorers); + return this.buildPlan( + refactorers, + [ + 'Stateful resources (Cognito, S3, DynamoDB, etc...) will be moved from Gen1 to Gen2 CloudFormation stacks', + 'Your Gen1 app will no longer manage these resources', + ], + 'Execute', + ); } - public async rollback(): Promise { + public async rollback(): Promise { const toStack = this.extractParameters(); const { clients, accountId, gen1Env, gen2Branch } = await this.createInfrastructure(toStack); @@ -122,16 +122,16 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { for (const resource of discovered) { switch (resource.key) { case 'auth:Cognito': - refactorers.push(new AuthCognitoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId)); + refactorers.push(new AuthCognitoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); break; case 'storage:S3': - refactorers.push(new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId)); + refactorers.push(new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); break; case 'storage:DynamoDB': - refactorers.push(new StorageDynamoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId)); + refactorers.push(new StorageDynamoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); break; case 'analytics:Kinesis': - refactorers.push(new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId)); + refactorers.push(new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); break; // Stateless categories — nothing to rollback // falls through @@ -147,7 +147,11 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { } } - return this.plan(refactorers); + return this.buildPlan( + refactorers, + ['Stateful resources will be moved back to Gen1 CloudFormation stacks', 'Your Gen2 app will no longer manage these resources'], + 'Rollback', + ); } private async createInfrastructure(toStack: string): Promise<{ @@ -172,13 +176,32 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { /** * Collects operations from all refactorers. */ - private async plan(refactorers: Refactorer[]): Promise { + private async buildPlan(refactorers: Refactorer[], implications: string[], title: string): Promise { const operations: AmplifyMigrationOperation[] = []; + + // Validation-only operation (formerly in executeValidate) + operations.push({ + describe: async () => [], + validate: () => ({ description: 'Lock status', run: () => this.validateLockStatus() }), + // eslint-disable-next-line @typescript-eslint/no-empty-function + execute: async () => {}, + }); + for (const refactorer of refactorers) { operations.push(...(await refactorer.plan())); } - return operations; + return new Plan({ operations, logger: this.logger, implications, title }); + } + + private async validateLockStatus(): Promise { + try { + const validations = new AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context); + await validations.validateLockStatus(); + return { valid: true }; + } catch (e) { + return { valid: false, report: e.message }; + } } private extractParameters(): string { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/utils.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/utils.ts index cae2603995e..5e8419079a6 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/utils.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/utils.ts @@ -2,5 +2,5 @@ * Extracts the stack name from a CloudFormation stack ID (ARN) or returns the input if it's already a name. */ export function extractStackNameFromId(stackId: string): string { - return stackId.startsWith('arn') ? stackId.split('/')[1] : stackId; + return stackId.startsWith('arn:') ? stackId.split('/')[1] : stackId; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index b8245244a7d..f6ae6c0b3fc 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -7,6 +7,7 @@ import { AwsClients } from '../../aws-clients'; import { StackFacade } from '../stack-facade'; import { tryUpdateStack } from '../cfn-stack-updater'; import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; +import { SpinningLogger } from '../../_spinning-logger'; import { extractStackNameFromId } from '../utils'; export const MIGRATION_PLACEHOLDER_LOGICAL_ID = 'MigrationPlaceholder'; @@ -78,6 +79,7 @@ export abstract class CategoryRefactorer implements Refactorer { protected readonly clients: AwsClients, protected readonly region: string, protected readonly accountId: string, + protected readonly logger: SpinningLogger, ) {} /** @@ -88,10 +90,14 @@ export abstract class CategoryRefactorer implements Refactorer { const sourceStackId = await this.fetchSourceStackId(); const destStackId = await this.fetchDestStackId(); - if (!sourceStackId && !destStackId) return []; - if (!sourceStackId || !destStackId) { - throw new AmplifyError('InvalidStackError', { - message: `Category exists in ${sourceStackId ? 'source' : 'destination'} but not ${sourceStackId ? 'destination' : 'source'} stack`, + if (!sourceStackId) { + throw new AmplifyError('MigrationError', { + message: `[${this.constructor.name}] unable to find source stack`, + }); + } + if (!destStackId) { + throw new AmplifyError('MigrationError', { + message: `[${this.constructor.name}] unable to find target stack`, }); } @@ -107,7 +113,7 @@ export abstract class CategoryRefactorer implements Refactorer { const moveOps = this.buildMoveOperations(blueprint); const afterMoveOps = await this.afterMovePlan(blueprint); - return [...this.updateSource(blueprint.source), ...this.updateTarget(target), ...beforeMoveOps, ...moveOps, ...afterMoveOps]; + return [...this.updateSource(blueprint.source), ...this.updateTarget(blueprint.target), ...beforeMoveOps, ...moveOps, ...afterMoveOps]; } // -- Category-specific (abstract) -- @@ -151,12 +157,16 @@ export abstract class CategoryRefactorer implements Refactorer { * Rollback overrides this to return []. */ protected updateSource(source: ResolvedStack): AmplifyMigrationOperation[] { + const sourceStackName = extractStackNameFromId(source.stackId); return [ { - validate: async () => { - return; - }, - describe: async () => [`Update source stack '${extractStackNameFromId(source.stackId)}' with resolved references`], + validate: () => ({ + description: `Ensure no destructive changes to ${sourceStackName}`, + run: async () => { + return { valid: true }; + }, + }), + describe: async () => [`Update source stack '${sourceStackName}' with resolved references`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -179,12 +189,16 @@ export abstract class CategoryRefactorer implements Refactorer { * Rollback overrides this to return []. */ protected updateTarget(target: ResolvedStack): AmplifyMigrationOperation[] { + const targetStackName = extractStackNameFromId(target.stackId); return [ { - validate: async () => { - return; - }, - describe: async () => [`Update target stack '${extractStackNameFromId(target.stackId)}' with resolved references`], + validate: () => ({ + description: `Ensure no destructive changes to ${targetStackName}`, + run: async () => { + return { valid: true }; + }, + }), + describe: async () => [`Update target stack '${targetStackName}' with resolved references`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -283,9 +297,7 @@ export abstract class CategoryRefactorer implements Refactorer { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [ `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId(source.stackId)}' to '${extractStackNameFromId( target.stackId, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 10cbb6c7787..7e76486e22a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -137,9 +137,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return [ { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Move Gen2 resources to holding stack '${holdingStackName}'`], execute: async () => { const existing = await findHoldingStack(this.clients.cloudFormation, holdingStackName); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index b6322c4b93e..491478ae583 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -159,10 +159,8 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return [ { - validate: async () => { - return; - }, - describe: async () => [`Add placeholder to holding stack '${holdingStackName}'`], + validate: () => undefined, + describe: async () => [`Update ${holdingStackName} to include placeholder resource`], execute: async () => { await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -173,9 +171,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { }, }, { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Restore ${resourcesToRestore.length} resource(s) from holding stack to Gen2`], execute: async () => { const result = await tryRefactorStack(this.clients.cloudFormation, { @@ -199,9 +195,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { private buildDeleteHoldingStackOp(holdingStackName: string): AmplifyMigrationOperation { return { - validate: async () => { - return; - }, + validate: () => undefined, describe: async () => [`Delete holding stack '${holdingStackName}'`], execute: async () => { await deleteHoldingStack(this.clients.cloudFormation, holdingStackName); diff --git a/packages/amplify-cli/src/commands/gen2-migration/shift.ts b/packages/amplify-cli/src/commands/gen2-migration/shift.ts index 32cf1605b48..678f81b9960 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/shift.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/shift.ts @@ -1,28 +1,12 @@ import { AmplifyMigrationStep } from './_step'; -import { AmplifyMigrationOperation } from './_operation'; +import { Plan } from './_plan'; export class AmplifyMigrationShiftStep extends AmplifyMigrationStep { - public async executeImplications(): Promise { + public async forward(): Promise { throw new Error('Method not implemented.'); } - public async rollbackImplications(): Promise { - throw new Error('Method not implemented.'); - } - - public async executeValidate(): Promise { - throw new Error('Method not implemented.'); - } - - public async rollbackValidate(): Promise { - throw new Error('Method not implemented.'); - } - - public async execute(): Promise { - throw new Error('Method not implemented.'); - } - - public async rollback(): Promise { + public async rollback(): Promise { throw new Error('Not Implemented'); } } diff --git a/packages/amplify-prompts/src/progressbars/spinner.ts b/packages/amplify-prompts/src/progressbars/spinner.ts index 1efd4d06957..d194c61a175 100644 --- a/packages/amplify-prompts/src/progressbars/spinner.ts +++ b/packages/amplify-prompts/src/progressbars/spinner.ts @@ -79,15 +79,19 @@ export class AmplifySpinner { return; } if (this.terminal.isTTY()) { - const lines: TerminalLine[] = [ - { - renderString: text || '', - color: success ? 'green' : 'red', - }, - ]; - clearTimeout(this.timer); - this.terminal.writeLines(lines); + if (text) { + const lines: TerminalLine[] = [ + { + renderString: text, + color: success ? 'green' : 'red', + }, + ]; + this.terminal.writeLines(lines); + } else { + // Clear the spinner line without leaving a blank line + this.terminal.clearCurrentLine(); + } this.terminal.cursor(true); } this.terminal = null; diff --git a/packages/amplify-prompts/src/progressbars/terminal.ts b/packages/amplify-prompts/src/progressbars/terminal.ts index 3393484bb70..bc9c7693db6 100644 --- a/packages/amplify-prompts/src/progressbars/terminal.ts +++ b/packages/amplify-prompts/src/progressbars/terminal.ts @@ -70,6 +70,16 @@ export class AmplifyTerminal { return this.stream.rows; } + /** + * Clears the current spinner line without writing a new line. + */ + public clearCurrentLine(): void { + this.stream.write(cursorUp(this.lastHeight)); + this.stream.write(`\u001b[2K\r`); + this.lastHeight = 0; + this.trailingEmptyLines = 0; + } + /** * Write array of lines into block. */ From 6873cfc5e18c68b5604aeb6e212cab5af3eff3a4 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Tue, 17 Mar 2026 11:26:52 -0400 Subject: [PATCH 02/91] chore: fix test --- packages/amplify-cli/src/commands/gen2-migration/generate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate.ts b/packages/amplify-cli/src/commands/gen2-migration/generate.ts index 3676dfe38d6..f939343e784 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate.ts @@ -47,10 +47,10 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { case 'api:API Gateway': case 'analytics:Kinesis': case 'function:Lambda': - assessment.record('generate', resource, { supported: true, notes: [] }); + assessment.record('generate', resource, { supported: true }); break; case 'unsupported': - assessment.record('generate', resource, { supported: false, notes: [] }); + assessment.record('generate', resource, { supported: false }); break; } } From 16846fad486c2aa5ba50d4d51c14d5a75774f7ce Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 17 Mar 2026 11:46:13 -0400 Subject: [PATCH 03/91] test(cli-internal): replace null-as-any logger with noOpLogger helper Add a noOpLogger() test helper that creates a real SpinningLogger in debug mode, then replace all `null as any` logger arguments across 8 refactor test files with it. This improves type safety without changing test behavior since the logger methods are never exercised in these tests. All 30 tests pass. --- Prompt: In the refactor test directory there are lot of null as any being used to pass a spinning logger instance - change it to actually create a proper logger instance. --- .../gen2-migration/_framework/logger.ts | 6 ++++++ .../refactor/auth-forward-mapping.test.ts | 3 ++- .../refactor/auth-forward-plan.test.ts | 7 ++++--- .../refactor/auth-rollback-plan.test.ts | 3 ++- .../refactor/build-refactor-templates.test.ts | 3 ++- .../category-plan-orchestration.test.ts | 17 +++++++++-------- .../refactor/default-resource-mappings.test.ts | 5 +++-- .../refactor/forward-beforemove.test.ts | 7 ++++--- .../refactor/rollback-aftermove.test.ts | 5 +++-- 9 files changed, 35 insertions(+), 21 deletions(-) create mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/logger.ts diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/logger.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/logger.ts new file mode 100644 index 00000000000..fe5c12d3ced --- /dev/null +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/logger.ts @@ -0,0 +1,6 @@ +import { SpinningLogger } from '../../../../commands/gen2-migration/_spinning-logger'; + +/** Creates a no-op SpinningLogger suitable for unit tests. */ +export function noOpLogger(): SpinningLogger { + return new SpinningLogger('test', { debug: true }); +} diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts index 71e485dd686..8d8c7e0f9d1 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts @@ -3,6 +3,7 @@ import { CFNResource } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; import { MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { noOpLogger } from '../_framework/logger'; /** Helper: convert MoveMapping[] to Map for easy assertions */ function toIdMap(mappings: MoveMapping[]): Map { @@ -16,7 +17,7 @@ describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient di const gen2Branch = new StackFacade(clients, 'gen2'); return new (class extends AuthCognitoForwardRefactorer { constructor() { - super(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', null as any, 'appId', 'main'); + super(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), 'appId', 'main'); } public testBuildResourceMappings(source: Map, target: Map): MoveMapping[] { return this.buildResourceMappings(source, target); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts index 78301983436..41e15b382c7 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts @@ -2,6 +2,7 @@ import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migratio import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -102,7 +103,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { clients, 'us-east-1', '123456789', - null as any, + noOpLogger(), 'appId', 'main', ); @@ -190,7 +191,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { clients, 'us-east-1', '123456789', - null as any, + noOpLogger(), 'appId', 'main', ); @@ -245,7 +246,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { clients, 'us-east-1', '123456789', - null as any, + noOpLogger(), 'appId', 'main', ); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts index 3b0450340c4..7c725bfe32e 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts @@ -2,6 +2,7 @@ import { AuthCognitoRollbackRefactorer } from '../../../../commands/gen2-migrati import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -96,7 +97,7 @@ describe('AuthCognitoRollbackRefactorer.plan()', () => { clients, 'us-east-1', '123', - null as any, + noOpLogger(), ); const ops = await refactorer.plan(); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts index a4e11baf208..83af72a07ec 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts @@ -6,13 +6,14 @@ import { MoveMapping, MIGRATION_PLACEHOLDER_LOGICAL_ID, } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { noOpLogger } from '../_framework/logger'; // Minimal concrete subclass to access protected methods class TestRefactorer extends (CategoryRefactorer as any) { private mappingsToReturn: MoveMapping[] = []; constructor() { - super(null, null, null, 'us-east-1', '123', null as any); + super(null, null, null, 'us-east-1', '123', noOpLogger()); } setMappings(mappings: MoveMapping[]) { diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts index 14f2c2e8686..14b8d6c5222 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts @@ -5,6 +5,7 @@ import { AnalyticsKinesisRollbackRefactorer } from '../../../../commands/gen2-mi import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -77,7 +78,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan()).rejects.toThrow( + await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan()).rejects.toThrow( 'unable to find source stack', ); }); @@ -89,7 +90,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan()).rejects.toThrow( + await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan()).rejects.toThrow( 'unable to find target stack', ); }); @@ -101,7 +102,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan()).rejects.toThrow( + await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan()).rejects.toThrow( 'unable to find source stack', ); }); @@ -117,7 +118,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(noStorageTemplate) }); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); + const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); expect(ops).toEqual([]); }); @@ -125,7 +126,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact setupStorageMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); + const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -171,7 +172,7 @@ describe('StorageS3RollbackRefactorer.plan() — rollback without holding stack' cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(gen1StorageTemplate) }); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); + const ops = await new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); // Rollback: no updateSource/updateTarget, just move @@ -223,7 +224,7 @@ describe('Analytics wiring tests', () => { it('forward: discovers analytics stacks and maps Kinesis stream', async () => { setupAnalyticsMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); + const ops = await new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -234,7 +235,7 @@ describe('Analytics wiring tests', () => { cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); // no holding stack setupAnalyticsMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', null as any).plan(); + const ops = await new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(1); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts index cbc0f82c38c..c9d4e2dd2a3 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts @@ -2,6 +2,7 @@ import { ForwardCategoryRefactorer } from '../../../../commands/gen2-migration/r import { RollbackCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/rollback-category-refactorer'; import { CFNResource } from '../../../../commands/gen2-migration/cfn-template'; import { MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { noOpLogger } from '../_framework/logger'; class TestForwardRefactorer extends ForwardCategoryRefactorer { protected async fetchSourceStackId() { @@ -22,7 +23,7 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { protected override readonly gen1LogicalIds: ReadonlyMap; constructor(ids: ReadonlyMap) { - super(null as any, null as any, null as any, 'us-east-1', '123', null as any); + super(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger()); this.gen1LogicalIds = ids; } protected async fetchSourceStackId() { @@ -47,7 +48,7 @@ function toIdMap(mappings: MoveMapping[]): Map { } describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching)', () => { - const refactorer = new TestForwardRefactorer(null as any, null as any, null as any, 'us-east-1', '123', null as any); + const refactorer = new TestForwardRefactorer(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger()); it('maps single resource per type', () => { const mappings = refactorer.testBuildResourceMappings( diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts index c0d6a86d27c..97b448c0e45 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts @@ -3,6 +3,7 @@ import { CFNResource, CFNTemplate } from '../../../../commands/gen2-migration/cf import { RefactorBlueprint, MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -88,7 +89,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { clients, 'us-east-1', '123', - null as any, + noOpLogger(), ); const blueprint = makeBlueprint({ targetResolved: { Lambda: { Type: 'AWS::Lambda::Function', Properties: {} } }, @@ -115,7 +116,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { clients, 'us-east-1', '123', - null as any, + noOpLogger(), ); const blueprint = makeBlueprint({ @@ -155,7 +156,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { clients, 'us-east-1', '123', - null as any, + noOpLogger(), ); const blueprint = makeBlueprint({ diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts index 550033be69f..2a54f3d36d3 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts @@ -3,6 +3,7 @@ import { CFNResource, CFNTemplate } from '../../../../commands/gen2-migration/cf import { RefactorBlueprint, MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -105,7 +106,7 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', null as any); + const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger()); const sourceAfterRemoval: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', @@ -153,7 +154,7 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', null as any); + const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger()); const emptyTemplate: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', From 317737fb5fda395c9f42fc8f45de23bb8f0156c4 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 17 Mar 2026 13:16:24 -0400 Subject: [PATCH 04/91] feat(cli-internal): print validation report on failure Plan.validate() now captures the report field from ValidationResult and renders a "Failed Validations Report" section before the summary table. Each failed validation shows its description in red followed by the report text. Also trims the drift report in _validations.ts. --- Prompt: The report property in ValidationResult is currently not used at all. We should use to print the validation report in case the validation failed. --- .../src/commands/gen2-migration/_plan.ts | 20 +++++++++++++++++-- .../commands/gen2-migration/_validations.ts | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index 5d42dfe4e27..04a326aecd9 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -4,10 +4,11 @@ import { printer } from '@aws-amplify/amplify-prompts'; import chalk from 'chalk'; import CLITable from 'cli-table3'; -/** Internal type used only for rendering the validation summary table. */ +/** Internal type used only for rendering the validation summary. */ interface ValidationSummaryEntry { readonly description: string; readonly valid: boolean; + readonly report?: string; } /** @@ -50,7 +51,7 @@ export class Plan { this.logger.push(validation.description); const result = await validation.run(); this.logger.pop(); - entries.push({ description: validation.description, valid: result.valid }); + entries.push({ description: validation.description, valid: result.valid, report: result.report }); } this.logger.succeed('→ Validating complete'); this.renderValidationResults(entries); @@ -100,6 +101,21 @@ export class Plan { private renderValidationResults(entries: ValidationSummaryEntry[]): void { if (entries.length === 0) return; + const failed = entries.filter((e) => !e.valid && e.report); + if (failed.length > 0) { + printer.blankLine(); + printer.info(chalk.bold(chalk.underline('Failed Validations Report'))); + printer.blankLine(); + for (let i = 0; i < failed.length; i++) { + printer.info(chalk.red(failed[i].description)); + printer.blankLine(); + printer.info(failed[i].report ?? ''); + if (i < failed.length - 1) { + printer.blankLine(); + } + } + } + printer.blankLine(); printer.info(chalk.bold(chalk.underline('Validations Summary'))); printer.blankLine(); diff --git a/packages/amplify-cli/src/commands/gen2-migration/_validations.ts b/packages/amplify-cli/src/commands/gen2-migration/_validations.ts index eb3cf0ff775..c5e3118ae9e 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_validations.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_validations.ts @@ -33,7 +33,7 @@ export class AmplifyGen2MigrationValidations { const result = await new AmplifyDriftDetector(this.context, this.logger).detect(); if (result.code !== 0) { throw new AmplifyError('MigrationError', { - message: result.report ?? 'Drift detected', + message: result.report.trim() ?? 'Drift detected', resolution: 'Inspect the drift report above and resolve the drift', }); } From c0a38cb03b8a373da8e5692235cbaf168ae25c82 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 17 Mar 2026 19:49:02 -0400 Subject: [PATCH 05/91] refactor(cli-internal): classify auth stacks by resource type Replace description-JSON-based auth stack classification with resource-type detection. The new approach checks for the presence of an AWS::Cognito::UserPool resource instead of parsing the stack Description field, which is more reliable. Also rename fetchStackDescription to fetchStack and descriptionCache to stackCache for accuracy since the method returns the full Stack object. --- Prompt: commit what I did --- .../refactor/auth/auth-utils.ts | 20 +++---------------- .../gen2-migration/refactor/stack-facade.ts | 6 +++--- .../workflow/forward-category-refactorer.ts | 4 ++-- .../workflow/rollback-category-refactorer.ts | 4 ++-- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts index 05bf617559c..2ca13b2ca5b 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts @@ -2,9 +2,6 @@ import { StackFacade } from '../stack-facade'; export const GEN2_NATIVE_APP_CLIENT = 'UserPoolNativeAppClient'; -const GEN1_AUTH_STACK_TYPE_DESCRIPTION = 'auth-Cognito'; -const GEN1_USER_POOL_GROUPS_STACK_TYPE_DESCRIPTION = 'auth-Cognito-UserPool-Groups'; - /** * Discovers Gen1 auth stacks by parsing stack Description JSON. * Gen1 may have a main auth stack and a separate UserPoolGroups stack. @@ -33,18 +30,7 @@ export async function discoverGen1AuthStacks(gen1Env: StackFacade): Promise<{ ma * Classifies a Gen1 auth stack by parsing its Description JSON metadata. */ async function classifyGen1AuthStack(gen1Env: StackFacade, stackId: string): Promise<'auth' | 'auth-user-pool-group' | null> { - const description = await gen1Env.fetchStackDescription(stackId); - const stackDescription = description.Description; - if (!stackDescription) return null; - - try { - const parsed = JSON.parse(stackDescription); - if (typeof parsed === 'object' && 'stackType' in parsed) { - if (parsed.stackType === GEN1_AUTH_STACK_TYPE_DESCRIPTION) return 'auth'; - if (parsed.stackType === GEN1_USER_POOL_GROUPS_STACK_TYPE_DESCRIPTION) return 'auth-user-pool-group'; - } - } catch { - // Description might not be valid JSON - } - return null; + const resources = await gen1Env.fetchStackResources(stackId); + const hasUserPool = resources.find((r) => r.ResourceType === 'AWS::Cognito::UserPool'); + return hasUserPool ? 'auth' : 'auth-user-pool-group'; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts index d06660ff9e3..ab43113a716 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts @@ -16,7 +16,7 @@ import { CFNTemplate } from '../cfn-template'; */ export class StackFacade { private readonly templateCache = new Map>(); - private readonly descriptionCache = new Map>(); + private readonly stackCache = new Map>(); private readonly resourcesCache = new Map>(); private nestedStacksPromise: Promise | undefined; @@ -51,8 +51,8 @@ export class StackFacade { /** * Describes a stack (parameters, outputs, status). Cached per stackId. */ - public async fetchStackDescription(stackId: string): Promise { - return this.cachedFetch(this.descriptionCache, stackId, async () => { + public async fetchStack(stackId: string): Promise { + return this.cachedFetch(this.stackCache, stackId, async () => { const response = await this.clients.cloudFormation.send(new DescribeStacksCommand({ StackName: stackId })); const stack = response.Stacks?.[0]; if (!stack) { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 7e76486e22a..5f1c6b617cc 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -54,7 +54,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { protected async resolveSource(stackId: string): Promise { const facade = this.gen1Env; const originalTemplate = await facade.fetchTemplate(stackId); - const description = await facade.fetchStackDescription(stackId); + const description = await facade.fetchStack(stackId); const parameters = description.Parameters ?? []; const outputs = description.Outputs ?? []; @@ -85,7 +85,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { protected async resolveTarget(stackId: string): Promise { const facade = this.gen2Branch; const originalTemplate = await facade.fetchTemplate(stackId); - const description = await facade.fetchStackDescription(stackId); + const description = await facade.fetchStack(stackId); const parameters = description.Parameters ?? []; const outputs = description.Outputs ?? []; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 491478ae583..358030cb1e5 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -63,7 +63,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { protected async resolveSource(stackId: string): Promise { const facade = this.gen2Branch; const originalTemplate = await facade.fetchTemplate(stackId); - const description = await facade.fetchStackDescription(stackId); + const description = await facade.fetchStack(stackId); const parameters = description.Parameters ?? []; const outputs = description.Outputs ?? []; @@ -89,7 +89,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { protected async resolveTarget(stackId: string): Promise { const facade = this.gen1Env; const originalTemplate = await facade.fetchTemplate(stackId); - const description = await facade.fetchStackDescription(stackId); + const description = await facade.fetchStack(stackId); const parameters = description.Parameters ?? []; return { stackId, resolvedTemplate: originalTemplate, parameters }; From d309cc8a1b7946ce63ff430f628d18aab64fd3a0 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Fri, 20 Mar 2026 18:34:23 -0400 Subject: [PATCH 06/91] refactor(cli-internal): split auth refactorers and improve resource mapping Split monolithic auth-forward/rollback/utils into separate files for Cognito and UserPoolGroups, enabling independent forward and rollback refactoring per auth sub-resource. Replace gen1LogicalIds map with abstract targetLogicalId() method on RollbackCategoryRefactorer, giving each subclass explicit control over logical ID resolution. Extract match() hook on ForwardCategoryRefactorer for type-matching customization. Thread DiscoveredResource through CategoryRefactorer base class so refactorers can use resource metadata (e.g. resourceName) for stack discovery instead of relying on shared utility functions. Minor fixes to migration app docs and sanitize script (trailing newline normalization). --- Prompt: commit what I have --- amplify-migration-apps/README.md | 6 ++ .../quotegeneratorbe/src/package.json | 2 +- .../quotegeneratorbe/src/package.json | 2 +- .../fitness-tracker/README.md | 29 +-------- .../S3Trigger1ef46783/src/package.json | 2 +- .../S3Trigger1ef46783/src/package.json | 2 +- amplify-migration-apps/sanitize.ts | 7 ++- .../refactor/analytics/analytics-rollback.ts | 12 +++- ...uth-forward.ts => auth-cognito-forward.ts} | 56 +++++++----------- .../refactor/auth/auth-cognito-rollback.ts | 39 ++++++++++++ .../refactor/auth/auth-rollback.ts | 59 ------------------- .../auth/auth-user-pool-groups-forward.ts | 39 ++++++++++++ .../auth/auth-user-pool-groups-rollback.ts | 31 ++++++++++ .../refactor/auth/auth-utils.ts | 36 ----------- .../gen2-migration/refactor/refactor.ts | 32 ++++++---- .../storage/storage-dynamo-rollback.ts | 13 +++- .../refactor/storage/storage-rollback.ts | 12 +++- .../refactor/workflow/category-refactorer.ts | 2 + .../workflow/forward-category-refactorer.ts | 30 ++++++---- .../workflow/rollback-category-refactorer.ts | 16 +---- 20 files changed, 222 insertions(+), 205 deletions(-) rename packages/amplify-cli/src/commands/gen2-migration/refactor/auth/{auth-forward.ts => auth-cognito-forward.ts} (64%) create mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-rollback.ts create mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts create mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts diff --git a/amplify-migration-apps/README.md b/amplify-migration-apps/README.md index 7c920739c6c..749a5306190 100644 --- a/amplify-migration-apps/README.md +++ b/amplify-migration-apps/README.md @@ -344,3 +344,9 @@ npx jest --no-coverage src/__tests__/commands/gen2-migration/generate/codegen-he ``` Always review the diff after updating to make sure the changes are intentional. + +> [!NOTE] +> Updating a snapshot for one phase (e.g., `generate`) currently requires updating +> snapshots for all phases (`generate` and `refactor`). The phases share state, so +> a change in one phase's expected output can affect the inputs or expectations of +> subsequent phases. diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json index 2143bf92d00..333ff04a2bb 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json @@ -10,4 +10,4 @@ "dependencies": { "cli-table3": "0.6.5" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json index 2143bf92d00..333ff04a2bb 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json @@ -10,4 +10,4 @@ "dependencies": { "cli-table3": "0.6.5" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/README.md b/amplify-migration-apps/fitness-tracker/README.md index bb575803389..4b556232426 100644 --- a/amplify-migration-apps/fitness-tracker/README.md +++ b/amplify-migration-apps/fitness-tracker/README.md @@ -300,30 +300,6 @@ npx amplify gen2-migration generate + branchName: "gen2-main" ``` -**Edit in `./amplify/backend.ts`:** - -Navigate to the Amplify Console to find the `` and `` on the ApiGateway AWS Console. For example: - -![](./images/gen1-rest-api-id.png) -![](./images/gen1-root-resource-id.png) - -```diff -+ const gen1RestApi = RestApi.fromRestApiAttributes(restApiStack, "Gen1RestApi", { -+ restApiId: '', -+ rootResourceId: '', -+ }) -+ const gen1RestApiPolicy = new Policy(restApiStack, "Gen1RestApiPolicy", { -+ statements: [ -+ new PolicyStatement({ -+ actions: ["execute-api:Invoke"], -+ resources: [`${gen1RestApi.arnForExecuteApi("*", "/*")}`] -+ }) -+ ] -+ }); -+ backend.auth.resources.authenticatedUserIamRole.attachInlinePolicy(gen1RestApiPolicy); -``` - - **Edit in `./amplify/function/lognutrition/resource.ts`:** ```diff @@ -398,7 +374,6 @@ Navigate to the Amplify Console to find the `` and `` and ` Note: The hash value after `fitnesstracker` changes for each app; you will have a different one. @@ -434,7 +409,7 @@ Navigate to the Amplify Console to find the `` and ` Note: The hash value after `fitnesstracker` changes for each app; you will have a different one. diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json index c090d8e5360..540015a8b70 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json @@ -13,4 +13,4 @@ "@aws-sdk/protocol-http": "^3.58.0", "@aws-sdk/signature-v4": "^3.58.0" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json index c090d8e5360..540015a8b70 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json @@ -13,4 +13,4 @@ "@aws-sdk/protocol-http": "^3.58.0", "@aws-sdk/signature-v4": "^3.58.0" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/sanitize.ts b/amplify-migration-apps/sanitize.ts index 12387253e39..b7dd68dc01f 100644 --- a/amplify-migration-apps/sanitize.ts +++ b/amplify-migration-apps/sanitize.ts @@ -110,7 +110,12 @@ function main(): void { const sanitizedFileName = sanitizeFileName(file, values.amplifyAppId, appNameNoDashes); - fs.writeFileSync(file, content, 'utf-8'); + // ensure a single new line at the end of the file + // since linters and IDEs will add them automatically + // and cause false snapshot diffs. + const trimmedContent = `${content.trim()}\n`; + + fs.writeFileSync(file, trimmedContent, 'utf-8'); fs.renameSync(file, sanitizedFileName); } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/analytics/analytics-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/analytics/analytics-rollback.ts index 3e49b598bd1..6c2306114f1 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/analytics/analytics-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/analytics/analytics-rollback.ts @@ -1,3 +1,4 @@ +import { CFNResource } from '../../cfn-template'; import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; import { ANALYTICS_RESOURCE_TYPES } from './analytics-forward'; @@ -7,8 +8,6 @@ import { ANALYTICS_RESOURCE_TYPES } from './analytics-forward'; * Uses the default gen1LogicalIds-based buildResourceMappings from RollbackCategoryRefactorer. */ export class AnalyticsKinesisRollbackRefactorer extends RollbackCategoryRefactorer { - protected override readonly gen1LogicalIds = new Map([['AWS::Kinesis::Stream', 'KinesisStream']]); - protected async fetchSourceStackId(): Promise { return this.findNestedStack(this.gen2Branch, 'analytics'); } @@ -20,4 +19,13 @@ export class AnalyticsKinesisRollbackRefactorer extends RollbackCategoryRefactor protected resourceTypes(): string[] { return ANALYTICS_RESOURCE_TYPES; } + + protected targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined { + switch (sourceResource.Type) { + case 'AWS::Kinesis::Stream': + return 'KinesisStream'; + default: + return undefined; + } + } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-forward.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts similarity index 64% rename from packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-forward.ts rename to packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts index 2d5111e983b..2b5815bfa06 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-forward.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts @@ -1,19 +1,20 @@ import { Output, Parameter } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { CFNResource } from '../../cfn-template'; import { AwsClients } from '../../aws-clients'; import { StackFacade } from '../stack-facade'; import { retrieveOAuthValues } from '../oauth-values-retriever'; import { ForwardCategoryRefactorer } from '../workflow/forward-category-refactorer'; -import { MoveMapping } from '../workflow/category-refactorer'; import { SpinningLogger } from '../../_spinning-logger'; -import { GEN2_NATIVE_APP_CLIENT, discoverGen1AuthStacks } from './auth-utils'; +import { DiscoveredResource } from '../../generate/_infra/gen1-app'; +import { CFNResource } from '../../cfn-template'; const GEN1_WEB_APP_CLIENT = 'UserPoolClientWeb'; const HOSTED_PROVIDER_META_PARAMETER_NAME = 'hostedUIProviderMeta'; const HOSTED_PROVIDER_CREDENTIALS_PARAMETER_NAME = 'hostedUIProviderCreds'; const USER_POOL_ID_OUTPUT_KEY_NAME = 'UserPoolId'; +export const GEN2_NATIVE_APP_CLIENT = 'UserPoolNativeAppClient'; + export const AUTH_RESOURCE_TYPES = [ 'AWS::Cognito::UserPool', 'AWS::Cognito::UserPoolClient', @@ -23,10 +24,9 @@ export const AUTH_RESOURCE_TYPES = [ ]; /** - * Forward refactorer for the auth category. + * Forward refactorer for the auth:Cognito resource. * * Moves main auth resources from Gen1 to Gen2. - * UserPoolGroup support will be added back in a future change. */ export class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer { constructor( @@ -38,8 +38,9 @@ export class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer { logger: SpinningLogger, private readonly appId: string, private readonly environmentName: string, + protected readonly resource: DiscoveredResource, ) { - super(gen1Env, gen2Branch, clients, region, accountId, logger); + super(gen1Env, gen2Branch, clients, region, accountId, logger, resource); } protected resourceTypes(): string[] { @@ -79,44 +80,27 @@ export class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer { return parameters; } - /** - * Auth forward mapping with UserPoolClient Web/Native disambiguation. - */ - protected buildResourceMappings(sourceResources: Map, targetResources: Map): MoveMapping[] { - const mappings: MoveMapping[] = []; - const usedTargetIds = new Set(); - - for (const [sourceId, sourceResource] of sourceResources) { - let matched = false; - for (const [targetId, targetResource] of targetResources) { - if (sourceResource.Type !== targetResource.Type || usedTargetIds.has(targetId)) continue; - - if (sourceResource.Type === 'AWS::Cognito::UserPoolClient') { - const isWebPair = sourceId === GEN1_WEB_APP_CLIENT && !targetId.includes(GEN2_NATIVE_APP_CLIENT); - const isNativePair = sourceId !== GEN1_WEB_APP_CLIENT && targetId.includes(GEN2_NATIVE_APP_CLIENT); - if (!isWebPair && !isNativePair) continue; - } - - mappings.push({ sourceId, targetId, resource: sourceResource }); - usedTargetIds.add(targetId); - matched = true; - break; - } - if (!matched) { - throw new AmplifyError('InvalidStackError', { - message: `Source resource '${sourceId}' (type '${sourceResource.Type}') has no corresponding target resource`, - }); + protected override match(sourceId: string, sourceResource: CFNResource, targetId: string, targetResource: CFNResource): boolean { + if (sourceResource.Type !== targetResource.Type) { + return false; + } + switch (sourceResource.Type) { + case 'AWS::Cognito::UserPoolClient': { + const isWebPair = sourceId === GEN1_WEB_APP_CLIENT && !targetId.includes(GEN2_NATIVE_APP_CLIENT); + const isNativePair = sourceId !== GEN1_WEB_APP_CLIENT && targetId.includes(GEN2_NATIVE_APP_CLIENT); + return isWebPair || isNativePair; } + default: + return true; } - return mappings; } protected async fetchSourceStackId(): Promise { - const { mainAuthStackId } = await discoverGen1AuthStacks(this.gen1Env); - return mainAuthStackId; + return this.findNestedStack(this.gen1Env, `auth${this.resource.resourceName}`); } protected async fetchDestStackId(): Promise { + // in gen2 all auth resources are in a single auth nested stack return this.findNestedStack(this.gen2Branch, 'auth'); } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts new file mode 100644 index 00000000000..ed0a836a6ce --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts @@ -0,0 +1,39 @@ +import { CFNResource } from '../../cfn-template'; +import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; +import { AUTH_RESOURCE_TYPES, GEN2_NATIVE_APP_CLIENT } from './auth-cognito-forward'; + +/** + * Rollback refactorer for the auth:Cognito resource. + * + * Moves main auth resources from Gen2 back to Gen1. + */ +export class AuthCognitoRollbackRefactorer extends RollbackCategoryRefactorer { + protected resourceTypes(): string[] { + return AUTH_RESOURCE_TYPES; + } + + protected async fetchSourceStackId(): Promise { + return this.findNestedStack(this.gen2Branch, 'auth'); + } + + protected async fetchDestStackId(): Promise { + return this.findNestedStack(this.gen1Env, `auth${this.resource.resourceName}`); + } + + protected targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined { + switch (sourceResource.Type) { + case 'AWS::Cognito::UserPoolClient': + return sourceId.includes(GEN2_NATIVE_APP_CLIENT) ? 'UserPoolClient' : 'UserPoolClientWeb'; + case 'AWS::Cognito::UserPool': + return 'UserPool'; + case 'AWS::Cognito::IdentityPool': + return 'IdentityPool'; + case 'AWS::Cognito::IdentityPoolRoleAttachment': + return 'IdentityPoolRoleMap'; + case 'AWS::Cognito::UserPoolDomain': + return 'UserPoolDomain'; + default: + return undefined; + } + } +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-rollback.ts deleted file mode 100644 index 0517090c5e2..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-rollback.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { CFNResource } from '../../cfn-template'; -import { MoveMapping } from '../workflow/category-refactorer'; -import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; -import { GEN2_NATIVE_APP_CLIENT, discoverGen1AuthStacks } from './auth-utils'; -import { AUTH_RESOURCE_TYPES } from './auth-forward'; - -/** - * Known Gen1 logical resource IDs for main auth resource types. - */ -const GEN1_AUTH_LOGICAL_IDS = new Map([ - ['AWS::Cognito::UserPool', 'UserPool'], - ['AWS::Cognito::UserPoolClient', 'UserPoolClientWeb'], - ['AWS::Cognito::IdentityPool', 'IdentityPool'], - ['AWS::Cognito::IdentityPoolRoleAttachment', 'IdentityPoolRoleMap'], - ['AWS::Cognito::UserPoolDomain', 'UserPoolDomain'], -]); - -/** - * Rollback refactorer for the auth category. - * - * Moves main auth resources from Gen2 back to Gen1. - * UserPoolGroup support will be added back in a future change. - */ -export class AuthCognitoRollbackRefactorer extends RollbackCategoryRefactorer { - protected resourceTypes(): string[] { - return AUTH_RESOURCE_TYPES; - } - - protected async fetchSourceStackId(): Promise { - return this.findNestedStack(this.gen2Branch, 'auth'); - } - - protected async fetchDestStackId(): Promise { - const { mainAuthStackId } = await discoverGen1AuthStacks(this.gen1Env); - return mainAuthStackId; - } - - /** - * Auth rollback mapping: NativeAppClient → 'UserPoolClient', others → known Gen1 logical ID. - */ - protected buildResourceMappings(sourceResources: Map, _targetResources: Map): MoveMapping[] { - const mappings: MoveMapping[] = []; - for (const [sourceId, resource] of sourceResources) { - if (sourceId.includes(GEN2_NATIVE_APP_CLIENT)) { - mappings.push({ sourceId, targetId: 'UserPoolClient', resource }); - } else { - const gen1Id = GEN1_AUTH_LOGICAL_IDS.get(resource.Type); - if (!gen1Id) { - throw new AmplifyError('InvalidStackError', { - message: `No known Gen1 logical ID for auth resource type '${resource.Type}' (source: '${sourceId}')`, - }); - } - mappings.push({ sourceId, targetId: gen1Id, resource }); - } - } - return mappings; - } -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts new file mode 100644 index 00000000000..06e4be040a0 --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts @@ -0,0 +1,39 @@ +import { CFNResource } from '../../cfn-template'; +import { ForwardCategoryRefactorer } from '../workflow/forward-category-refactorer'; + +export const USER_POOL_GROUP_TYPE = 'AWS::Cognito::UserPoolGroup'; + +/** + * Forward refactorer for the auth:UserPoolGroups resource. + * + * Moves user pool groups auth resources from Gen1 to Gen2. + */ +export class AuthUserPoolGroupsForwardRefactorer extends ForwardCategoryRefactorer { + protected resourceTypes(): string[] { + return [USER_POOL_GROUP_TYPE]; + } + + protected async fetchSourceStackId(): Promise { + return this.findNestedStack(this.gen1Env, `auth${this.resource.resourceName}`); + } + + protected async fetchDestStackId(): Promise { + // in gen2 all auth resources are in a single auth nested stack + return this.findNestedStack(this.gen2Branch, 'auth'); + } + + protected override match(_sourceId: string, sourceResource: CFNResource, _targetId: string, targetResource: CFNResource): boolean { + if (sourceResource.Type !== targetResource.Type) { + return false; + } + switch (sourceResource.Type) { + case USER_POOL_GROUP_TYPE: { + const sourceGroupName = sourceResource.Properties['GroupName']; + const targetGroupName = targetResource.Properties['GroupName']; + return sourceGroupName === targetGroupName; + } + default: + return false; + } + } +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts new file mode 100644 index 00000000000..e6032aba6ff --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts @@ -0,0 +1,31 @@ +import { CFNResource } from '../../cfn-template'; +import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; +import { USER_POOL_GROUP_TYPE } from './auth-user-pool-groups-forward'; + +/** + * Rollback refactorer for the auth:UserPoolGroups resource. + * + * Moves user pool groups auth resources resources from Gen2 back to Gen1. + */ +export class AuthUserPoolGroupsRollbackRefactorer extends RollbackCategoryRefactorer { + protected resourceTypes(): string[] { + return [USER_POOL_GROUP_TYPE]; + } + + protected async fetchSourceStackId(): Promise { + return this.findNestedStack(this.gen2Branch, 'auth'); + } + + protected async fetchDestStackId(): Promise { + return this.findNestedStack(this.gen1Env, `auth${this.resource.resourceName}`); + } + + protected targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined { + switch (sourceResource.Type) { + case 'AWS::Cognito::UserPoolGroup': + return `${sourceResource.Properties['GroupName']}Group`; + default: + return undefined; + } + } +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts deleted file mode 100644 index 2ca13b2ca5b..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-utils.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { StackFacade } from '../stack-facade'; - -export const GEN2_NATIVE_APP_CLIENT = 'UserPoolNativeAppClient'; - -/** - * Discovers Gen1 auth stacks by parsing stack Description JSON. - * Gen1 may have a main auth stack and a separate UserPoolGroups stack. - */ -export async function discoverGen1AuthStacks(gen1Env: StackFacade): Promise<{ mainAuthStackId?: string; userPoolGroupStackId?: string }> { - const nestedStacks = await gen1Env.fetchNestedStacks(); - const authStacks = nestedStacks.filter((s) => s.LogicalResourceId?.startsWith('auth')); - - let mainAuthStackId: string | undefined; - let userPoolGroupStackId: string | undefined; - - for (const stack of authStacks) { - if (!stack.PhysicalResourceId) continue; - const authType = await classifyGen1AuthStack(gen1Env, stack.PhysicalResourceId); - if (authType === 'auth') { - mainAuthStackId = stack.PhysicalResourceId; - } else if (authType === 'auth-user-pool-group') { - userPoolGroupStackId = stack.PhysicalResourceId; - } - } - - return { mainAuthStackId, userPoolGroupStackId }; -} - -/** - * Classifies a Gen1 auth stack by parsing its Description JSON metadata. - */ -async function classifyGen1AuthStack(gen1Env: StackFacade, stackId: string): Promise<'auth' | 'auth-user-pool-group' | null> { - const resources = await gen1Env.fetchStackResources(stackId); - const hasUserPool = resources.find((r) => r.ResourceType === 'AWS::Cognito::UserPool'); - return hasUserPool ? 'auth' : 'auth-user-pool-group'; -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts index 71fe7bef657..a9f9f1bbe93 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts @@ -8,8 +8,8 @@ import { AmplifyGen2MigrationValidations } from '../_validations'; import { AwsClients } from '../aws-clients'; import { StackFacade } from './stack-facade'; import { Refactorer } from './refactorer'; -import { AuthCognitoForwardRefactorer } from './auth/auth-forward'; -import { AuthCognitoRollbackRefactorer } from './auth/auth-rollback'; +import { AuthCognitoForwardRefactorer } from './auth/auth-cognito-forward'; +import { AuthCognitoRollbackRefactorer } from './auth/auth-cognito-rollback'; import { StorageS3ForwardRefactorer } from './storage/storage-forward'; import { StorageS3RollbackRefactorer } from './storage/storage-rollback'; import { StorageDynamoForwardRefactorer } from './storage/storage-dynamo-forward'; @@ -18,6 +18,7 @@ import { AnalyticsKinesisForwardRefactorer } from './analytics/analytics-forward import { AnalyticsKinesisRollbackRefactorer } from './analytics/analytics-rollback'; import { Gen1App, DiscoveredResource } from '../generate/_infra/gen1-app'; import { Assessment } from '../_assessment'; +import { AuthUserPoolGroupsForwardRefactorer } from './auth/auth-user-pool-groups-forward'; export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { /** @@ -72,17 +73,25 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { this.logger, this.appId, this.currentEnvName, + resource, ), ); break; + case 'auth:Cognito-UserPool-Groups': + refactorers.push( + new AuthUserPoolGroupsForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + ); + break; case 'storage:S3': - refactorers.push(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); + refactorers.push(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); break; case 'storage:DynamoDB': - refactorers.push(new StorageDynamoForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); + refactorers.push(new StorageDynamoForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); break; case 'analytics:Kinesis': - refactorers.push(new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); + refactorers.push( + new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + ); break; // Stateless categories — nothing to refactor // falls through @@ -90,7 +99,6 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { case 'api:AppSync': case 'api:API Gateway': break; - case 'auth:Cognito-UserPool-Groups': case 'unsupported': throw new AmplifyError('MigrationError', { message: `Unsupported resource '${resource.resourceName}' (${resource.category}:${resource.service}). Run 'amplify gen2-migration assess' to check migration readiness.`, @@ -122,16 +130,20 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { for (const resource of discovered) { switch (resource.key) { case 'auth:Cognito': - refactorers.push(new AuthCognitoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); + refactorers.push(new AuthCognitoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); break; case 'storage:S3': - refactorers.push(new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); + refactorers.push(new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); break; case 'storage:DynamoDB': - refactorers.push(new StorageDynamoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); + refactorers.push( + new StorageDynamoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + ); break; case 'analytics:Kinesis': - refactorers.push(new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger)); + refactorers.push( + new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + ); break; // Stateless categories — nothing to rollback // falls through diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts index dcdfa0942c3..f3e7cb2b47a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts @@ -1,3 +1,5 @@ +import { AmplifyError } from '@aws-amplify/amplify-cli-core'; +import { CFNResource } from '../../cfn-template'; import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; /** @@ -5,8 +7,6 @@ import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refact * Moves DynamoDB tables from Gen2 back to Gen1. */ export class StorageDynamoRollbackRefactorer extends RollbackCategoryRefactorer { - protected override readonly gen1LogicalIds = new Map([['AWS::DynamoDB::Table', 'DynamoDBTable']]); - protected async fetchSourceStackId(): Promise { return this.findNestedStack(this.gen2Branch, 'storage'); } @@ -18,4 +18,13 @@ export class StorageDynamoRollbackRefactorer extends RollbackCategoryRefactorer protected resourceTypes(): string[] { return ['AWS::DynamoDB::Table']; } + + protected targetLogicalId(_sourceId: string, sourceResource: CFNResource): string | undefined { + switch (sourceResource.Type) { + case 'AWS::DynamoDB::Table': + return 'DynamoDBTable'; + default: + return undefined; + } + } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-rollback.ts index 9288875e266..051a78ee714 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-rollback.ts @@ -1,3 +1,4 @@ +import { CFNResource } from '../../cfn-template'; import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; /** @@ -5,8 +6,6 @@ import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refact * Moves S3 buckets from Gen2 back to Gen1. */ export class StorageS3RollbackRefactorer extends RollbackCategoryRefactorer { - protected override readonly gen1LogicalIds = new Map([['AWS::S3::Bucket', 'S3Bucket']]); - protected async fetchSourceStackId(): Promise { return this.findNestedStack(this.gen2Branch, 'storage'); } @@ -18,4 +17,13 @@ export class StorageS3RollbackRefactorer extends RollbackCategoryRefactorer { protected resourceTypes(): string[] { return ['AWS::S3::Bucket']; } + + protected targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined { + switch (sourceResource.Type) { + case 'AWS::S3::Bucket': + return 'S3Bucket'; + default: + return undefined; + } + } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index f6ae6c0b3fc..88a1be1e1a4 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -9,6 +9,7 @@ import { tryUpdateStack } from '../cfn-stack-updater'; import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; import { SpinningLogger } from '../../_spinning-logger'; import { extractStackNameFromId } from '../utils'; +import { DiscoveredResource } from '../../generate/_infra/gen1-app'; export const MIGRATION_PLACEHOLDER_LOGICAL_ID = 'MigrationPlaceholder'; export const PLACEHOLDER_RESOURCE: CFNResource = { Type: 'AWS::CloudFormation::WaitConditionHandle', Properties: {} }; @@ -80,6 +81,7 @@ export abstract class CategoryRefactorer implements Refactorer { protected readonly region: string, protected readonly accountId: string, protected readonly logger: SpinningLogger, + protected readonly resource: DiscoveredResource, ) {} /** diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 5f1c6b617cc..2a3bda49a86 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -20,33 +20,37 @@ import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, Reso * afterMovePlan: empty (holding stack survives for rollback) */ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { - /** - * Default forward mapping: matches source and target resources by type. - * Works for categories with at most one resource per type (storage, analytics). - * Auth overrides this for UserPoolClient Web/Native disambiguation. - */ protected buildResourceMappings(sourceResources: Map, targetResources: Map): MoveMapping[] { const mappings: MoveMapping[] = []; - const usedTargetIds = new Set(); for (const [sourceId, sourceResource] of sourceResources) { - let matched = false; + const matchedTargets = []; for (const [targetId, targetResource] of targetResources) { - if (sourceResource.Type === targetResource.Type && !usedTargetIds.has(targetId)) { - mappings.push({ sourceId, targetId, resource: sourceResource }); - usedTargetIds.add(targetId); - matched = true; - break; + const matched = this.match(sourceId, sourceResource, targetId, targetResource); + if (matched) { + matchedTargets.push(targetId); } } - if (!matched) { + if (matchedTargets.length === 0) { throw new AmplifyError('InvalidStackError', { message: `Source resource '${sourceId}' (type '${sourceResource.Type}') has no corresponding target resource`, }); } + if (matchedTargets.length > 1) { + throw new AmplifyError('InvalidStackError', { + message: `Source resource '${sourceId}' (type '${sourceResource.Type}') has multiple corresponding target resources`, + }); + } + const targetId = matchedTargets[0]; + mappings.push({ sourceId, targetId, resource: sourceResource }); } return mappings; } + protected match(_sourceId: string, sourceResource: CFNResource, _targetId: string, targetResource: CFNResource): boolean { + // default matching - assumes one resource per type in source/target + return sourceResource.Type === targetResource.Type; + } + /** * Resolves the Gen1 source stack template. * Resolution chain: params → outputs → deps → conditions. diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 358030cb1e5..2ae71f44fdf 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -30,22 +30,10 @@ import { * Does NOT pre-update stacks (overrides updateSource/updateTarget to return []). */ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { - /** - * Map of CFN resource type → Gen1 logical resource ID. - * Subclasses override this with their category-specific map. - * Used by the default buildResourceMappings implementation. - */ - protected readonly gen1LogicalIds: ReadonlyMap = new Map(); - - /** - * Default rollback mapping: looks up Gen1 logical ID by resource type. - * Throws AmplifyError if a source resource's type is not in gen1LogicalIds. - * Auth overrides this entirely. - */ protected buildResourceMappings(sourceResources: Map, _targetResources: Map): MoveMapping[] { const mappings: MoveMapping[] = []; for (const [sourceId, resource] of sourceResources) { - const gen1LogicalId = this.gen1LogicalIds.get(resource.Type); + const gen1LogicalId = this.targetLogicalId(sourceId, resource); if (!gen1LogicalId) { throw new AmplifyError('InvalidStackError', { message: `No known Gen1 logical ID for resource type '${resource.Type}' (source: '${sourceId}')`, @@ -56,6 +44,8 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return mappings; } + protected abstract targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined; + /** * Resolves the Gen2 source stack template for rollback. * Resolution chain: params → outputs → deps (no conditions). From 2d45f9ea433cac771b4c47ce1bd061a01b78e1ad Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Fri, 20 Mar 2026 18:39:03 -0400 Subject: [PATCH 07/91] revert(cli-internal): remove trailing-newline normalization from sanitize --- Prompt: I reset the changes. just commit. --- amplify-migration-apps/sanitize.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/amplify-migration-apps/sanitize.ts b/amplify-migration-apps/sanitize.ts index b7dd68dc01f..12387253e39 100644 --- a/amplify-migration-apps/sanitize.ts +++ b/amplify-migration-apps/sanitize.ts @@ -110,12 +110,7 @@ function main(): void { const sanitizedFileName = sanitizeFileName(file, values.amplifyAppId, appNameNoDashes); - // ensure a single new line at the end of the file - // since linters and IDEs will add them automatically - // and cause false snapshot diffs. - const trimmedContent = `${content.trim()}\n`; - - fs.writeFileSync(file, trimmedContent, 'utf-8'); + fs.writeFileSync(file, content, 'utf-8'); fs.renameSync(file, sanitizedFileName); } } From 6a4bed3055b3fca5346ee564c74d76541ca11868 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Fri, 20 Mar 2026 18:42:54 -0400 Subject: [PATCH 08/91] chore: remove merge markers --- AGENTS.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 007e76fa099..a7aec2e9cef 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -39,16 +39,11 @@ Verify your changes by following these guidelines: - **Always** update the appropriate JSDoc strings in the code you change. Be concise. - Do not create additional markdown files in the repository unless you are instructed explicitly to. - Never commit `.ai-generated` files (`.commit-message.ai-generated.txt`, `.pr-body.ai-generated.md`, etc.) — they are gitignored and are only used as local scratch files. -<<<<<<< HEAD -- Commit your changes in git using a well-formed commit message following the Conventional Commits format. The message must start - with a type prefix (e.g., `feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`) followed by a single sentence summary and no more -======= - Commit your changes in git using a well-formed commit message following the Conventional Commits format. The message must include a scope when the change is scoped to a specific package: `type(scope): subject`. The scope is derived from the package's `name` field in `package.json` with the `@aws-amplify/` prefix stripped. For example, `@aws-amplify/cli-internal` → `cli-internal`, `@aws-amplify/amplify-prompts` → `amplify-prompts`. Valid scopes are enforced by commitlint via `commitlint.config.js`. The message must start with a type prefix (e.g., `feat:`, `fix:`, `docs:`, `refactor:`, `test:`, `chore:`) followed by a single sentence summary and no more ->>>>>>> 5ae9c3daf8 (feat(cli-internal): add assess, refactor, and generate-new commands) than a few paragraphs explaining the change and your testing. After this explanation, place the prompt the user used to trigger this work prefixed with a "Prompt: " after a single line consisting of '---'. Make sure there are no empty lines before or after this line. Word wrap all paragraphs at 72 columns including the prompt. For the author of the commit, use the configured username in git with @@ -62,12 +57,7 @@ Verify your changes by following these guidelines: - Since this repo has a commit hook that takes quite a long time to run, don't immediately commit every change you were asked to do. Apply your judgment, if the diff is still fairly small just keep going. Otherwise, ask the user if they want to commit or keep going. -<<<<<<< HEAD - Committing after every incremental change wastes time on hooks and creates noisy history. Natural commit -======= -- Batch commits aggressively. Wait until a design decision is settled and the code is stable before committing. - Committing after every incremental change wastes time on hooks and creates noisy history. Natural commit ->>>>>>> 5ae9c3daf8 (feat(cli-internal): add assess, refactor, and generate-new commands) points are: after a design discussion concludes, after tests pass, after a self-review finds no issues. - NEVER commit with --no-verify. - Before you actually commit, provide a (very) concise summary of changes to the user and ask for confirmation to commit. From 5cbbfa74a9a40ee8b74f477c117da70ce5ed01ae Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Fri, 20 Mar 2026 18:50:21 -0400 Subject: [PATCH 09/91] chore: cleanup --- packages/amplify-cli/src/commands/gen2-migration/generate.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate.ts b/packages/amplify-cli/src/commands/gen2-migration/generate.ts index f939343e784..ac66478299f 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate.ts @@ -149,7 +149,6 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { generators.push(new GitIgnoreGenerator()); const operations: AmplifyMigrationOperation[] = [ - // Validation-only operations (formerly in executeValidate) { describe: async () => [], validate: () => ({ description: 'Lock status', run: () => this.validateLockStatus() }), From db785ac903fb2b5d43dc537ba06e8be281d93690 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Fri, 20 Mar 2026 21:42:17 -0400 Subject: [PATCH 10/91] feat(cli-internal): group plan operations by resource Thread DiscoveredResource through all resource-backed planners so each operation carries the resource it belongs to. Plan.describe() now groups operations under resource headers using the format " (/)", matching the assessment display style. Ungrouped operations (scaffolding, validations) render as a flat list. Changes: - Add optional `resource` field to AmplifyMigrationOperation - Update Plan.describe() to group by resource label - Thread DiscoveredResource into all generate-side planners (Auth, ReferenceAuth, Data, S3, DynamoDB, RestApi, Function, AnalyticsKinesis) replacing separate resourceName params - Tag refactor-side operations via CategoryRefactorer and its forward/rollback subclasses (already had this.resource) - Update all affected test files with DiscoveredResource objects --- Prompt: in the gen2-migration, i want to make the plan describe itself by listing the description of each operation per resource. --- .../analytics/kinesis.generator.test.ts | 14 ++- .../amplify/auth/auth.generator.test.ts | 35 ++++++- .../amplify/data/data.generator.test.ts | 98 ++++++++++++++++--- .../function/function.generator.test.ts | 2 +- .../rest-api/rest-api.generator.test.ts | 14 ++- .../storage/dynamodb.generator.test.ts | 56 +++++++++-- .../refactor/auth-forward-plan.test.ts | 3 + .../refactor/auth-rollback-plan.test.ts | 1 + .../category-plan-orchestration.test.ts | 68 ++++++++++--- .../default-resource-mappings.test.ts | 14 ++- .../refactor/forward-beforemove.test.ts | 3 + .../refactor/rollback-aftermove.test.ts | 14 ++- .../src/commands/gen2-migration/_operation.ts | 8 ++ .../src/commands/gen2-migration/_plan.ts | 28 +++++- .../src/commands/gen2-migration/generate.ts | 16 +-- .../amplify/analytics/kinesis.generator.ts | 17 ++-- .../generate/amplify/auth/auth.generator.ts | 7 +- .../amplify/auth/reference-auth.generator.ts | 7 +- .../generate/amplify/data/data.generator.ts | 7 +- .../amplify/function/function.generator.ts | 43 ++++---- .../amplify/rest-api/rest-api.generator.ts | 11 ++- .../amplify/storage/dynamodb.generator.ts | 15 +-- .../generate/amplify/storage/s3.generator.ts | 7 +- .../refactor/workflow/category-refactorer.ts | 3 + .../workflow/forward-category-refactorer.ts | 1 + .../workflow/rollback-category-refactorer.ts | 3 + 26 files changed, 384 insertions(+), 111 deletions(-) diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.test.ts index ecfe9933b16..d17abb634af 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.test.ts @@ -38,7 +38,12 @@ describe('AnalyticsKinesisGenerator', () => { const gen1App = createMockGen1App(); (gen1App.meta as jest.Mock).mockReturnValue(undefined); - const generator = new AnalyticsKinesisGenerator(gen1App, backendGenerator, outputDir, 'myKinesis'); + const generator = new AnalyticsKinesisGenerator(gen1App, backendGenerator, outputDir, { + category: 'analytics', + resourceName: 'myKinesis', + service: 'Kinesis', + key: 'analytics:Kinesis', + }); await expect(generator.plan()).rejects.toThrow('not found in amplify-meta.json'); }); @@ -49,7 +54,12 @@ describe('AnalyticsKinesisGenerator', () => { otherResource: { service: 'Kinesis' }, }); - const generator = new AnalyticsKinesisGenerator(gen1App, backendGenerator, outputDir, 'myKinesis'); + const generator = new AnalyticsKinesisGenerator(gen1App, backendGenerator, outputDir, { + category: 'analytics', + resourceName: 'myKinesis', + service: 'Kinesis', + key: 'analytics:Kinesis', + }); await expect(generator.plan()).rejects.toThrow('not found in amplify-meta.json'); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/auth/auth.generator.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/auth/auth.generator.test.ts index c513082c4b1..74da9fb0617 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/auth/auth.generator.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/auth/auth.generator.test.ts @@ -83,7 +83,12 @@ describe('AuthGenerator', () => { throw new Error("Category 'auth' not found in amplify-meta.json"); }); - const generator = new AuthGenerator(gen1App, backendGenerator, outputDir); + const generator = new AuthGenerator(gen1App, backendGenerator, outputDir, { + category: 'auth', + resourceName: 'testAuth', + service: 'Cognito', + key: 'auth:Cognito', + }); await expect(generator.plan()).rejects.toThrow("Category 'auth' not found"); }); @@ -93,7 +98,12 @@ describe('AuthGenerator', () => { (gen1App.metaOutput as jest.Mock).mockReturnValue('us-east-1_abc123'); (gen1App.aws.fetchUserPool as jest.Mock).mockRejectedValue(new Error("User pool 'us-east-1_abc123' not found")); - const generator = new AuthGenerator(gen1App, backendGenerator, outputDir); + const generator = new AuthGenerator(gen1App, backendGenerator, outputDir, { + category: 'auth', + resourceName: 'testAuth', + service: 'Cognito', + key: 'auth:Cognito', + }); await expect(generator.plan()).rejects.toThrow("User pool 'us-east-1_abc123' not found"); }); @@ -122,7 +132,12 @@ describe('AuthGenerator', () => { const addImportSpy = jest.spyOn(backendGenerator, 'addImport'); const addPropertySpy = jest.spyOn(backendGenerator, 'addDefineBackendProperty'); - const generator = new AuthGenerator(gen1App, backendGenerator, outputDir); + const generator = new AuthGenerator(gen1App, backendGenerator, outputDir, { + category: 'auth', + resourceName: 'testAuth', + service: 'Cognito', + key: 'auth:Cognito', + }); const ops = await generator.plan(); expect(ops).toHaveLength(1); @@ -160,7 +175,12 @@ describe('AuthGenerator', () => { (gen1App.aws.fetchIdentityGroups as jest.Mock).mockResolvedValue([]); (gen1App.aws.fetchIdentityPool as jest.Mock).mockResolvedValue(undefined); - const generator = new AuthGenerator(gen1App, backendGenerator, outputDir); + const generator = new AuthGenerator(gen1App, backendGenerator, outputDir, { + category: 'auth', + resourceName: 'testAuth', + service: 'Cognito', + key: 'auth:Cognito', + }); generator.addFunctionAuthAccess({ resourceName: 'adminFunc', permissions: { manageUsers: true } }); const ops = await generator.plan(); @@ -201,7 +221,12 @@ describe('ReferenceAuthGenerator', () => { const addImportSpy = jest.spyOn(backendGenerator, 'addImport'); - const generator = new ReferenceAuthGenerator(gen1App, backendGenerator, outputDir); + const generator = new ReferenceAuthGenerator(gen1App, backendGenerator, outputDir, { + category: 'auth', + resourceName: 'testAuth', + service: 'Cognito', + key: 'auth:Cognito', + }); const ops = await generator.plan(); expect(ops).toHaveLength(1); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/data/data.generator.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/data/data.generator.test.ts index 0edf8e3b1fc..09250a894e0 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/data/data.generator.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/data/data.generator.test.ts @@ -59,7 +59,12 @@ describe('DataGenerator', () => { throw new Error("Category 'api' not found"); }); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); await expect(generator.plan()).rejects.toThrow("Category 'api' not found"); }); @@ -70,7 +75,12 @@ describe('DataGenerator', () => { throw new Error("Expected exactly one 'AppSync' resource"); }); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); await expect(generator.plan()).rejects.toThrow("Expected exactly one 'AppSync' resource"); }); @@ -82,7 +92,12 @@ describe('DataGenerator', () => { throw new Error('no GraphQLAPIIdOutput'); }); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); await expect(generator.plan()).rejects.toThrow('no GraphQLAPIIdOutput'); }); @@ -93,14 +108,24 @@ describe('DataGenerator', () => { (gen1App.metaOutput as jest.Mock).mockReturnValue('api-123'); (gen1App.aws.fetchGraphqlApi as jest.Mock).mockResolvedValue(undefined); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); await expect(generator.plan()).rejects.toThrow("AppSync API 'api-123' not found"); }); it('constructs DataRenderer with envName', () => { const gen1App = createMockGen1App(); - new DataGenerator(gen1App, backendGenerator, outputDir); + new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); expect(DataRenderer).toHaveBeenCalledWith('main'); }); @@ -127,7 +152,12 @@ describe('DataGenerator', () => { }); it('returns one operation describing data/resource.ts', async () => { - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); expect(ops).toHaveLength(1); @@ -136,7 +166,12 @@ describe('DataGenerator', () => { }); it('calls renderer.render with schema, tableMappings, authorizationModes, and logging', async () => { - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); @@ -157,7 +192,12 @@ describe('DataGenerator', () => { logConfig: { fieldLogLevel: 'ERROR', excludeVerboseContent: true }, }); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); @@ -173,7 +213,12 @@ describe('DataGenerator', () => { logConfig: { fieldLogLevel: 'NONE' }, }); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); @@ -182,7 +227,12 @@ describe('DataGenerator', () => { }); it('writes renderer output to amplify/data/resource.ts via printNodes', async () => { - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); @@ -195,7 +245,12 @@ describe('DataGenerator', () => { const addImportSpy = jest.spyOn(backendGenerator, 'addImport'); const addPropertySpy = jest.spyOn(backendGenerator, 'addDefineBackendProperty'); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); @@ -216,7 +271,12 @@ describe('DataGenerator', () => { const addStatementSpy = jest.spyOn(backendGenerator, 'addStatement'); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); @@ -233,7 +293,12 @@ describe('DataGenerator', () => { const addStatementSpy = jest.spyOn(backendGenerator, 'addStatement'); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); @@ -248,7 +313,12 @@ describe('DataGenerator', () => { const addStatementSpy = jest.spyOn(backendGenerator, 'addStatement'); - const generator = new DataGenerator(gen1App, backendGenerator, outputDir); + const generator = new DataGenerator(gen1App, backendGenerator, outputDir, { + category: 'api', + resourceName: 'testApi', + service: 'AppSync', + key: 'api:AppSync', + }); const ops = await generator.plan(); await ops[0].execute(); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/function/function.generator.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/function/function.generator.test.ts index 041b2748f4f..21701ad68d4 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/function/function.generator.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/function/function.generator.test.ts @@ -73,7 +73,7 @@ function createFunctionGenerator(overrides: { backendGenerator: overrides.backendGenerator, packageJsonGenerator: overrides.packageJsonGenerator, outputDir: overrides.outputDir, - resourceName: overrides.resourceName ?? 'myFunc', + resource: { category: 'function', resourceName: overrides.resourceName ?? 'myFunc', service: 'Lambda', key: 'function:Lambda' }, category: 'function', }); } diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.test.ts index 4fc8d07c23c..fc62041718e 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.test.ts @@ -42,7 +42,12 @@ describe('RestApiGenerator', () => { (gen1App.meta as jest.Mock).mockImplementation((cat: string) => (cat === 'api' ? API_META : undefined)); (gen1App.cliInputs as jest.Mock).mockReturnValue(CLI_INPUTS); - const generator = new RestApiGenerator(gen1App, backendGenerator, 'myApi'); + const generator = new RestApiGenerator(gen1App, backendGenerator, { + category: 'api', + resourceName: 'myApi', + service: 'API Gateway', + key: 'api:API Gateway', + }); const ops = await generator.plan(); expect(ops).toHaveLength(1); @@ -59,7 +64,12 @@ describe('RestApiGenerator', () => { const addStatementSpy = jest.spyOn(backendGenerator, 'addStatement'); const ensureBranchNameSpy = jest.spyOn(backendGenerator, 'ensureBranchName'); - const generator = new RestApiGenerator(gen1App, backendGenerator, 'myApi'); + const generator = new RestApiGenerator(gen1App, backendGenerator, { + category: 'api', + resourceName: 'myApi', + service: 'API Gateway', + key: 'api:API Gateway', + }); const ops = await generator.plan(); await ops[0].execute(); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.test.ts index 77ead8b5bf6..68d45b94406 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.test.ts @@ -23,7 +23,12 @@ describe('DynamoDBGenerator', () => { const gen1App = createMockGen1App(); (gen1App.meta as jest.Mock).mockReturnValue(undefined); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', false); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + false, + ); await expect(generator.plan()).rejects.toThrow(); }); @@ -34,7 +39,12 @@ describe('DynamoDBGenerator', () => { otherTable: { service: 'DynamoDB' }, }); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', false); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + false, + ); await expect(generator.plan()).rejects.toThrow(); }); @@ -54,7 +64,12 @@ describe('DynamoDBGenerator', () => { ProvisionedThroughput: {}, }); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', false); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + false, + ); const ops = await generator.plan(); expect(ops).toHaveLength(1); @@ -81,7 +96,12 @@ describe('DynamoDBGenerator', () => { const ensureStorageStackSpy = jest.spyOn(backendGenerator, 'ensureStorageStack'); const addEarlyStatementSpy = jest.spyOn(backendGenerator, 'addEarlyStatement'); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', false); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + false, + ); const ops = await generator.plan(); await ops[0].execute(); @@ -107,7 +127,12 @@ describe('DynamoDBGenerator', () => { const ensureStorageStackSpy = jest.spyOn(backendGenerator, 'ensureStorageStack'); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', true); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + true, + ); const ops = await generator.plan(); await ops[0].execute(); @@ -124,7 +149,12 @@ describe('DynamoDBGenerator', () => { }); (gen1App.aws.fetchTableDescription as jest.Mock).mockResolvedValue(undefined); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', false); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + false, + ); await expect(generator.plan()).rejects.toThrow("DynamoDB table 'myTable-abc123' not found"); }); @@ -155,7 +185,12 @@ describe('DynamoDBGenerator', () => { const addEarlyStatementSpy = jest.spyOn(backendGenerator, 'addEarlyStatement'); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', false); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + false, + ); const ops = await generator.plan(); await ops[0].execute(); @@ -178,7 +213,12 @@ describe('DynamoDBGenerator', () => { ProvisionedThroughput: {}, }); - const generator = new DynamoDBGenerator(gen1App, backendGenerator, 'myTable', false); + const generator = new DynamoDBGenerator( + gen1App, + backendGenerator, + { category: 'storage', resourceName: 'myTable', service: 'DynamoDB', key: 'storage:DynamoDB' }, + false, + ); const ops = await generator.plan(); expect(ops).toHaveLength(1); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts index 41e15b382c7..36ff1d679f6 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts @@ -106,6 +106,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { noOpLogger(), 'appId', 'main', + { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, ); const ops = await refactorer.plan(); @@ -194,6 +195,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { noOpLogger(), 'appId', 'main', + { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, ); const ops = await refactorer.plan(); @@ -249,6 +251,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { noOpLogger(), 'appId', 'main', + { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, ); await expect(refactorer.plan()).rejects.toThrow('unable to find target stack'); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts index 7c725bfe32e..9f816d065da 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts @@ -98,6 +98,7 @@ describe('AuthCognitoRollbackRefactorer.plan()', () => { 'us-east-1', '123', noOpLogger(), + { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, ); const ops = await refactorer.plan(); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts index 14b8d6c5222..42d53e4f91e 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts @@ -78,9 +78,14 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan()).rejects.toThrow( - 'unable to find source stack', - ); + await expect( + new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }).plan(), + ).rejects.toThrow('unable to find source stack'); }); it('throws when source exists but destination does not (Path B)', async () => { @@ -90,9 +95,14 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan()).rejects.toThrow( - 'unable to find target stack', - ); + await expect( + new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }).plan(), + ).rejects.toThrow('unable to find target stack'); }); it('throws when destination exists but source does not (Path B reversed)', async () => { @@ -102,9 +112,14 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact }); const { clients, gen1Env, gen2Branch } = makeInstances(); - await expect(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan()).rejects.toThrow( - 'unable to find source stack', - ); + await expect( + new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }).plan(), + ).rejects.toThrow('unable to find source stack'); }); it('returns empty array when no matching resource types in source (Path D)', async () => { @@ -118,7 +133,12 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(noStorageTemplate) }); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); + const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }).plan(); expect(ops).toEqual([]); }); @@ -126,7 +146,12 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact setupStorageMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); + const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -172,7 +197,12 @@ describe('StorageS3RollbackRefactorer.plan() — rollback without holding stack' cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(gen1StorageTemplate) }); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); + const ops = await new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); // Rollback: no updateSource/updateTarget, just move @@ -224,7 +254,12 @@ describe('Analytics wiring tests', () => { it('forward: discovers analytics stacks and maps Kinesis stream', async () => { setupAnalyticsMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); + const ops = await new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'analytics', + resourceName: 'test', + service: 'Kinesis', + key: 'analytics:Kinesis' as const, + }).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -235,7 +270,12 @@ describe('Analytics wiring tests', () => { cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); // no holding stack setupAnalyticsMocks(cfnMock); const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger()).plan(); + const ops = await new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { + category: 'analytics', + resourceName: 'test', + service: 'Kinesis', + key: 'analytics:Kinesis' as const, + }).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(1); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts index c9d4e2dd2a3..a2b393edfb2 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts @@ -23,7 +23,12 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { protected override readonly gen1LogicalIds: ReadonlyMap; constructor(ids: ReadonlyMap) { - super(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger()); + super(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }); this.gen1LogicalIds = ids; } protected async fetchSourceStackId() { @@ -48,7 +53,12 @@ function toIdMap(mappings: MoveMapping[]): Map { } describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching)', () => { - const refactorer = new TestForwardRefactorer(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger()); + const refactorer = new TestForwardRefactorer(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }); it('maps single resource per type', () => { const mappings = refactorer.testBuildResourceMappings( diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts index 97b448c0e45..b67162ad5a6 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts @@ -90,6 +90,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { 'us-east-1', '123', noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, ); const blueprint = makeBlueprint({ targetResolved: { Lambda: { Type: 'AWS::Lambda::Function', Properties: {} } }, @@ -117,6 +118,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { 'us-east-1', '123', noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, ); const blueprint = makeBlueprint({ @@ -157,6 +159,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { 'us-east-1', '123', noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, ); const blueprint = makeBlueprint({ diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts index 2a54f3d36d3..78f70fb7e35 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts @@ -106,7 +106,12 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger()); + const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3', + }); const sourceAfterRemoval: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', @@ -154,7 +159,12 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger()); + const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3', + }); const emptyTemplate: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', diff --git a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts index 2ffe95c0918..9f911f075b6 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts @@ -1,3 +1,5 @@ +import { DiscoveredResource } from './generate/_infra/gen1-app'; + /** * Result of a validation check. */ @@ -33,6 +35,12 @@ export interface Validation { * Interface for atomic operations that can be executed as part of a migration step. */ export interface AmplifyMigrationOperation { + /** + * The discovered resource this operation belongs to, if any. + * Used by Plan.describe() to group operations by resource. + */ + readonly resource?: DiscoveredResource; + /** * Returns human-readable strings describing what the operation will do. */ diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index 04a326aecd9..5215eb6a800 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -60,17 +60,37 @@ export class Plan { /** * Renders the operations summary and implications to the terminal. + * Operations with a resource are grouped under a resource header; + * ungrouped operations render as a flat list. */ public async describe(): Promise { - const descriptions: string[] = []; + const grouped = new Map(); + const ungrouped: string[] = []; + for (const op of this.operations) { - descriptions.push(...(await op.describe())); + const lines = await op.describe(); + if (lines.length === 0) continue; + if (op.resource) { + const label = `${op.resource.resourceName} (${op.resource.category}/${op.resource.service})`; + if (!grouped.has(label)) grouped.set(label, []); + grouped.get(label)!.push(...lines); + } else { + ungrouped.push(...lines); + } } - if (descriptions.length > 0) { + if (grouped.size > 0 || ungrouped.length > 0) { printer.info(chalk.bold(chalk.underline('Operations Summary'))); printer.blankLine(); - for (const description of descriptions) { + + for (const [label, descriptions] of grouped) { + printer.info(chalk.bold(label)); + for (const description of descriptions) { + printer.info(` • ${description}`); + } + } + + for (const description of ungrouped) { printer.info(`• ${description}`); } printer.blankLine(); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate.ts b/packages/amplify-cli/src/commands/gen2-migration/generate.ts index ac66478299f..8e8e2500998 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate.ts @@ -83,9 +83,9 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { }); if (isReferenceAuth) { - generators.push(new ReferenceAuthGenerator(gen1App, backendGenerator, outputDir)); + generators.push(new ReferenceAuthGenerator(gen1App, backendGenerator, outputDir, resource)); } else { - authGenerator = new AuthGenerator(gen1App, backendGenerator, outputDir); + authGenerator = new AuthGenerator(gen1App, backendGenerator, outputDir, resource); generators.push(authGenerator); } break; @@ -94,22 +94,22 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { // Handled by the AuthGenerator created for the main Cognito resource. break; case 'storage:S3': - s3Generator = new S3Generator(gen1App, backendGenerator, outputDir); + s3Generator = new S3Generator(gen1App, backendGenerator, outputDir, resource); generators.push(s3Generator); break; case 'storage:DynamoDB': { const hasS3Bucket = discovered.some((r) => r.category === 'storage' && r.service === 'S3'); - generators.push(new DynamoDBGenerator(gen1App, backendGenerator, resource.resourceName, hasS3Bucket)); + generators.push(new DynamoDBGenerator(gen1App, backendGenerator, resource, hasS3Bucket)); break; } case 'api:AppSync': - generators.push(new DataGenerator(gen1App, backendGenerator, outputDir)); + generators.push(new DataGenerator(gen1App, backendGenerator, outputDir, resource)); break; case 'api:API Gateway': - generators.push(new RestApiGenerator(gen1App, backendGenerator, resource.resourceName)); + generators.push(new RestApiGenerator(gen1App, backendGenerator, resource)); break; case 'analytics:Kinesis': - generators.push(new AnalyticsKinesisGenerator(gen1App, backendGenerator, outputDir, resource.resourceName)); + generators.push(new AnalyticsKinesisGenerator(gen1App, backendGenerator, outputDir, resource)); break; case 'function:Lambda': { const functionCategoryMap = computeFunctionCategories(gen1App); @@ -118,7 +118,7 @@ export class AmplifyMigrationGenerateStep extends AmplifyMigrationStep { backendGenerator, packageJsonGenerator, outputDir, - resourceName: resource.resourceName, + resource, category: functionCategoryMap.get(resource.resourceName) ?? 'function', }); generators.push(funcGen); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts index 1830c534512..339ea75cbf9 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.ts @@ -4,7 +4,7 @@ import ts from 'typescript'; import { Planner } from '../../../planner'; import { AmplifyMigrationOperation } from '../../../_operation'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { TS } from '../../_infra/ts'; import { AnalyticsRenderer } from './kinesis.renderer'; import { KinesisCfnConverter, KinesisAnalyticsDefinition } from './kinesis-cfn-converter'; @@ -22,14 +22,14 @@ export class AnalyticsKinesisGenerator implements Planner { private readonly gen1App: Gen1App; private readonly backendGenerator: BackendGenerator; private readonly outputDir: string; - private readonly resourceName: string; + private readonly resource: DiscoveredResource; private readonly renderer: AnalyticsRenderer; - public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string, resourceName: string) { + public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string, resource: DiscoveredResource) { this.gen1App = gen1App; this.backendGenerator = backendGenerator; this.outputDir = outputDir; - this.resourceName = resourceName; + this.resource = resource; this.renderer = new AnalyticsRenderer(); } @@ -38,24 +38,25 @@ export class AnalyticsKinesisGenerator implements Planner { */ public async plan(): Promise { const analyticsCategory = this.gen1App.meta('analytics'); - const resourceMeta = analyticsCategory?.[this.resourceName] as Record | undefined; + const resourceMeta = analyticsCategory?.[this.resource.resourceName] as Record | undefined; if (!resourceMeta) { - throw new Error(`Analytics resource '${this.resourceName}' not found in amplify-meta.json`); + throw new Error(`Analytics resource '${this.resource.resourceName}' not found in amplify-meta.json`); } const rootStackName = this.gen1App.rootStackName; const analyticsDir = path.join(this.outputDir, 'amplify', 'analytics'); const definition: KinesisAnalyticsDefinition = { - name: this.resourceName, + name: this.resource.resourceName, service: 'Kinesis', providerMetadata: resourceMeta.providerMetadata as KinesisAnalyticsDefinition['providerMetadata'], }; return [ { + resource: this.resource, validate: () => undefined, - describe: async () => [`Generate amplify/analytics/${this.resourceName}/resource.ts`], + describe: async () => [`Generate amplify/analytics/${this.resource.resourceName}/resource.ts`], execute: async () => { const fileWriter = async (content: string, filePath: string) => { await fs.mkdir(path.dirname(filePath), { recursive: true }); diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts index 40dde0fe900..ce43178abed 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/auth.generator.ts @@ -5,7 +5,7 @@ import { UserPoolClientType } from '@aws-sdk/client-cognito-identity-provider'; import { Planner } from '../../../planner'; import { AmplifyMigrationOperation } from '../../../_operation'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { TS } from '../../_infra/ts'; import { AuthRenderOptions, AuthRenderer, AuthTrigger, FunctionAccess } from './auth.renderer'; @@ -24,14 +24,16 @@ export class AuthGenerator implements Planner { private readonly gen1App: Gen1App; private readonly backendGenerator: BackendGenerator; private readonly outputDir: string; + private readonly resource: DiscoveredResource; private readonly defineAuth: AuthRenderer; private readonly access: FunctionAccess[] = []; private readonly triggers: AuthTrigger[] = []; - public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string) { + public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string, resource: DiscoveredResource) { this.gen1App = gen1App; this.backendGenerator = backendGenerator; this.outputDir = outputDir; + this.resource = resource; this.defineAuth = new AuthRenderer(); } @@ -86,6 +88,7 @@ export class AuthGenerator implements Planner { return [ { + resource: this.resource, validate: () => undefined, describe: async () => ['Generate amplify/auth/resource.ts'], execute: async () => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts index b9e2c302930..8b122e3768c 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.ts @@ -4,7 +4,7 @@ import ts from 'typescript'; import { Planner } from '../../../planner'; import { AmplifyMigrationOperation } from '../../../_operation'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { TS } from '../../_infra/ts'; import { ReferenceAuth, ReferenceAuthRenderer } from './reference-auth.renderer'; @@ -19,12 +19,14 @@ export class ReferenceAuthGenerator implements Planner { private readonly gen1App: Gen1App; private readonly backendGenerator: BackendGenerator; private readonly outputDir: string; + private readonly resource: DiscoveredResource; private readonly renderer = new ReferenceAuthRenderer(); - public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string) { + public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string, resource: DiscoveredResource) { this.gen1App = gen1App; this.backendGenerator = backendGenerator; this.outputDir = outputDir; + this.resource = resource; } public async plan(): Promise { @@ -44,6 +46,7 @@ export class ReferenceAuthGenerator implements Planner { return [ { + resource: this.resource, validate: () => undefined, describe: async () => ['Generate amplify/auth/resource.ts (reference auth)'], execute: async () => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts index 8d688127bc1..719f0c7f50b 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data/data.generator.ts @@ -5,7 +5,7 @@ import { GraphqlApi } from '@aws-sdk/client-appsync'; import { Planner } from '../../../planner'; import { AmplifyMigrationOperation } from '../../../_operation'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { TS } from '../../_infra/ts'; import { DataRenderer, DataTableMapping } from './data.renderer'; @@ -24,12 +24,14 @@ export class DataGenerator implements Planner { private readonly gen1App: Gen1App; private readonly backendGenerator: BackendGenerator; private readonly outputDir: string; + private readonly resource: DiscoveredResource; private readonly defineData: DataRenderer; - public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string) { + public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string, resource: DiscoveredResource) { this.gen1App = gen1App; this.backendGenerator = backendGenerator; this.outputDir = outputDir; + this.resource = resource; this.defineData = new DataRenderer(gen1App.envName); } @@ -62,6 +64,7 @@ export class DataGenerator implements Planner { return [ { + resource: this.resource, validate: () => undefined, describe: async () => ['Generate amplify/data/resource.ts'], execute: async () => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts index 9ec0b1b0057..75b86542cbd 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function/function.generator.ts @@ -5,7 +5,7 @@ import { AmplifyMigrationOperation } from '../../../_operation'; import { JSONUtilities } from '@aws-amplify/amplify-cli-core'; import { Planner } from '../../../planner'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { TS } from '../../_infra/ts'; import { FunctionRenderer, RenderDefineFunctionOptions } from './function.renderer'; import { RootPackageJsonGenerator } from '../../package.json.generator'; @@ -54,7 +54,7 @@ interface FunctionGeneratorOptions { readonly backendGenerator: BackendGenerator; readonly packageJsonGenerator: RootPackageJsonGenerator; readonly outputDir: string; - readonly resourceName: string; + readonly resource: DiscoveredResource; readonly category: string; } @@ -76,7 +76,7 @@ export class FunctionGenerator implements Planner { private s3Generator: S3Generator | undefined; private readonly packageJsonGenerator: RootPackageJsonGenerator; private readonly outputDir: string; - private readonly resourceName: string; + private readonly resource: DiscoveredResource; private readonly category: string; private readonly renderer: FunctionRenderer; @@ -85,7 +85,7 @@ export class FunctionGenerator implements Planner { this.backendGenerator = options.backendGenerator; this.packageJsonGenerator = options.packageJsonGenerator; this.outputDir = options.outputDir; - this.resourceName = options.resourceName; + this.resource = options.resource; this.category = options.category; this.renderer = new FunctionRenderer(options.gen1App.appId, options.gen1App.envName); } @@ -124,6 +124,7 @@ export class FunctionGenerator implements Planner { return [ { + resource: this.resource, validate: () => undefined, describe: async () => [`Generate amplify/${this.category}/${func.resourceName}/resource.ts`], execute: async () => { @@ -143,15 +144,15 @@ export class FunctionGenerator implements Planner { */ private async resolve(): Promise { const functionCategory = this.gen1App.meta('function'); - if (!functionCategory || !functionCategory[this.resourceName]) { - throw new Error(`Function '${this.resourceName}' not found in amplify-meta.json`); + if (!functionCategory || !functionCategory[this.resource.resourceName]) { + throw new Error(`Function '${this.resource.resourceName}' not found in amplify-meta.json`); } - const resourceMeta = functionCategory[this.resourceName] as Record; + const resourceMeta = functionCategory[this.resource.resourceName] as Record; const output = resourceMeta.output as Record | undefined; const deployedName = output?.Name; if (!deployedName) { - throw new Error(`Function '${this.resourceName}' has no deployed name in amplify-meta.json output`); + throw new Error(`Function '${this.resource.resourceName}' has no deployed name in amplify-meta.json output`); } const config = await this.gen1App.aws.fetchFunctionConfig(deployedName); @@ -175,7 +176,7 @@ export class FunctionGenerator implements Planner { const { dynamoActions, kinesisActions, graphqlApiPermissions, authAccess } = this.extractCfnPermissions(); return { - resourceName: this.resourceName, + resourceName: this.resource.resourceName, category: this.category, entry, deployedName, @@ -248,18 +249,18 @@ export class FunctionGenerator implements Planner { private contributeAuthAccess(func: ResolvedFunction): void { if (!this.authGenerator) return; if (Object.keys(func.authAccess).length > 0) { - this.authGenerator.addFunctionAuthAccess({ resourceName: this.resourceName, permissions: func.authAccess }); + this.authGenerator.addFunctionAuthAccess({ resourceName: this.resource.resourceName, permissions: func.authAccess }); } } private contributeAuthTrigger(): void { if (!this.authGenerator || this.category !== 'auth') return; const authResourceName = this.gen1App.singleResourceName('auth', 'Cognito'); - if (!this.resourceName.startsWith(authResourceName)) return; - const suffix = this.resourceName.slice(authResourceName.length); + if (!this.resource.resourceName.startsWith(authResourceName)) return; + const suffix = this.resource.resourceName.slice(authResourceName.length); const event = TRIGGER_SUFFIX_TO_EVENT[suffix]; if (event) { - this.authGenerator.addTrigger({ event, resourceName: this.resourceName }); + this.authGenerator.addTrigger({ event, resourceName: this.resource.resourceName }); } } @@ -277,7 +278,7 @@ export class FunctionGenerator implements Planner { 's3:ListBucket': 'read', }; - const templatePath = `function/${this.resourceName}/${this.resourceName}-cloudformation-template.json`; + const templatePath = `function/${this.resource.resourceName}/${this.resource.resourceName}-cloudformation-template.json`; // eslint-disable-next-line @typescript-eslint/no-explicit-any -- untyped CloudFormation template const template = this.gen1App.json(templatePath); const policy = template.Resources?.AmplifyResourcesPolicy; @@ -297,7 +298,7 @@ export class FunctionGenerator implements Planner { } if (permissions.size > 0) { - this.s3Generator.addFunctionStorageAccess(this.resourceName, category, Array.from(permissions)); + this.s3Generator.addFunctionStorageAccess(this.resource.resourceName, category, Array.from(permissions)); } } @@ -324,13 +325,13 @@ export class FunctionGenerator implements Planner { for (const config of lambdaConfigs) { const functionRef = config?.Function?.Ref as string | undefined; - if (!functionRef || !functionRef.includes(this.resourceName)) continue; + if (!functionRef || !functionRef.includes(this.resource.resourceName)) continue; const event = config.Event as string | undefined; if (event?.includes('ObjectCreated')) { - this.s3Generator.addTrigger('onUpload', this.resourceName); + this.s3Generator.addTrigger('onUpload', this.resource.resourceName); } else if (event?.includes('ObjectRemoved')) { - this.s3Generator.addTrigger('onDelete', this.resourceName); + this.s3Generator.addTrigger('onDelete', this.resource.resourceName); } } } @@ -353,7 +354,7 @@ export class FunctionGenerator implements Planner { }, }); } catch (e) { - throw new Error(`Failed to copy source files for function '${this.resourceName}': ${e}`); + throw new Error(`Failed to copy source files for function '${this.resource.resourceName}': ${e}`); } } @@ -377,7 +378,7 @@ export class FunctionGenerator implements Planner { } } } catch (e) { - throw new Error(`Failed to read package.json for function '${this.resourceName}': ${e}`); + throw new Error(`Failed to read package.json for function '${this.resource.resourceName}': ${e}`); } } @@ -540,7 +541,7 @@ export class FunctionGenerator implements Planner { graphqlApiPermissions: { hasMutation: boolean; hasQuery: boolean }; authAccess: AuthPermissions; } { - const templatePath = `function/${this.resourceName}/${this.resourceName}-cloudformation-template.json`; + const templatePath = `function/${this.resource.resourceName}/${this.resource.resourceName}-cloudformation-template.json`; // eslint-disable-next-line @typescript-eslint/no-explicit-any -- untyped CloudFormation template const template = this.gen1App.json(templatePath); const policy = template.Resources?.AmplifyResourcesPolicy; diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts index 7b684af285f..ba77d8607ca 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.ts @@ -2,7 +2,7 @@ import ts from 'typescript'; import { Planner } from '../../../planner'; import { AmplifyMigrationOperation } from '../../../_operation'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { CorsConfiguration, RestApiDefinition, RestApiPath, RestApiRenderer } from './rest-api.renderer'; const factory = ts.factory; @@ -19,19 +19,19 @@ const factory = ts.factory; export class RestApiGenerator implements Planner { private readonly gen1App: Gen1App; private readonly backendGenerator: BackendGenerator; - private readonly resourceName: string; + private readonly resource: DiscoveredResource; - public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, resourceName: string) { + public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, resource: DiscoveredResource) { this.gen1App = gen1App; this.backendGenerator = backendGenerator; - this.resourceName = resourceName; + this.resource = resource; } /** * Plans the REST API generation operation. */ public async plan(): Promise { - const restApi = await RestApiGenerator.readRestApiConfig(this.gen1App, this.resourceName); + const restApi = await RestApiGenerator.readRestApiConfig(this.gen1App, this.resource.resourceName); const functionCategory = this.gen1App.meta('function'); const functionNames = new Set(Object.keys((functionCategory as object) ?? {})); const hasAuth = this.gen1App.meta('auth') !== undefined; @@ -39,6 +39,7 @@ export class RestApiGenerator implements Planner { return [ { + resource: this.resource, validate: () => undefined, describe: async () => [`Generate REST API ${restApi.apiName} in amplify/backend.ts`], execute: async () => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts index 1a929f85904..2d018187d93 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.ts @@ -1,7 +1,7 @@ import { Planner } from '../../../planner'; import { AmplifyMigrationOperation } from '../../../_operation'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { DynamoDBRenderer, DynamoDBGSI, DynamoDBTableDefinition } from './dynamodb.renderer'; import { TableDescription, KeySchemaElement, AttributeDefinition } from '@aws-sdk/client-dynamodb'; @@ -15,14 +15,14 @@ import { TableDescription, KeySchemaElement, AttributeDefinition } from '@aws-sd export class DynamoDBGenerator implements Planner { private readonly gen1App: Gen1App; private readonly backendGenerator: BackendGenerator; - private readonly resourceName: string; + private readonly resource: DiscoveredResource; private readonly hasS3Bucket: boolean; private readonly renderer = new DynamoDBRenderer(); - public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, resourceName: string, hasS3Bucket: boolean) { + public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, resource: DiscoveredResource, hasS3Bucket: boolean) { this.gen1App = gen1App; this.backendGenerator = backendGenerator; - this.resourceName = resourceName; + this.resource = resource; this.hasS3Bucket = hasS3Bucket; } @@ -34,8 +34,9 @@ export class DynamoDBGenerator implements Planner { return [ { + resource: this.resource, validate: () => undefined, - describe: async () => [`Generate DynamoDB table ${this.resourceName} in amplify/backend.ts`], + describe: async () => [`Generate DynamoDB table ${this.resource.resourceName} in amplify/backend.ts`], execute: async () => { const imports = this.renderer.requiredImports(); this.backendGenerator.addImport(imports.source, imports.identifiers); @@ -51,9 +52,9 @@ export class DynamoDBGenerator implements Planner { private async fetchTable(): Promise { const storageMeta = this.gen1App.meta('storage'); - const resourceMeta = storageMeta?.[this.resourceName] as Record | undefined; + const resourceMeta = storageMeta?.[this.resource.resourceName] as Record | undefined; const output = resourceMeta?.output as Record | undefined; - const actualTableName = output?.Name || this.resourceName; + const actualTableName = output?.Name || this.resource.resourceName; const table = await this.gen1App.aws.fetchTableDescription(actualTableName); if (!table) { diff --git a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts index d15b29bbba0..e164dac5c4d 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/generate/amplify/storage/s3.generator.ts @@ -5,7 +5,7 @@ import type { BucketAccelerateStatus, BucketVersioningStatus, ServerSideEncrypti import { Planner } from '../../../planner'; import { AmplifyMigrationOperation } from '../../../_operation'; import { BackendGenerator } from '../backend.generator'; -import { Gen1App } from '../../_infra/gen1-app'; +import { Gen1App, DiscoveredResource } from '../../_infra/gen1-app'; import { TS } from '../../_infra/ts'; import { S3Renderer, AccessPatterns, StorageTriggerEvent, Permission } from './s3.renderer'; @@ -49,6 +49,7 @@ export class S3Generator implements Planner { private readonly gen1App: Gen1App; private readonly backendGenerator: BackendGenerator; private readonly outputDir: string; + private readonly resource: DiscoveredResource; private readonly defineStorage: S3Renderer; private readonly functionStorageAccess: Array<{ readonly functionName: string; @@ -57,10 +58,11 @@ export class S3Generator implements Planner { }> = []; private readonly triggers: Partial> = {}; - public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string) { + public constructor(gen1App: Gen1App, backendGenerator: BackendGenerator, outputDir: string, resource: DiscoveredResource) { this.gen1App = gen1App; this.backendGenerator = backendGenerator; this.outputDir = outputDir; + this.resource = resource; this.defineStorage = new S3Renderer(gen1App.envName); } @@ -109,6 +111,7 @@ export class S3Generator implements Planner { const storageIdentifier = bucketName; return { + resource: this.resource, validate: () => undefined, describe: async () => ['Generate amplify/storage/resource.ts'], execute: async () => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 88a1be1e1a4..3edf15264d2 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -162,6 +162,7 @@ export abstract class CategoryRefactorer implements Refactorer { const sourceStackName = extractStackNameFromId(source.stackId); return [ { + resource: this.resource, validate: () => ({ description: `Ensure no destructive changes to ${sourceStackName}`, run: async () => { @@ -194,6 +195,7 @@ export abstract class CategoryRefactorer implements Refactorer { const targetStackName = extractStackNameFromId(target.stackId); return [ { + resource: this.resource, validate: () => ({ description: `Ensure no destructive changes to ${targetStackName}`, run: async () => { @@ -299,6 +301,7 @@ export abstract class CategoryRefactorer implements Refactorer { return [ { + resource: this.resource, validate: () => undefined, describe: async () => [ `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId(source.stackId)}' to '${extractStackNameFromId( diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 2a3bda49a86..382005e266d 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -141,6 +141,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return [ { + resource: this.resource, validate: () => undefined, describe: async () => [`Move Gen2 resources to holding stack '${holdingStackName}'`], execute: async () => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 2ae71f44fdf..7a6e210a936 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -149,6 +149,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return [ { + resource: this.resource, validate: () => undefined, describe: async () => [`Update ${holdingStackName} to include placeholder resource`], execute: async () => { @@ -161,6 +162,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { }, }, { + resource: this.resource, validate: () => undefined, describe: async () => [`Restore ${resourcesToRestore.length} resource(s) from holding stack to Gen2`], execute: async () => { @@ -185,6 +187,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { private buildDeleteHoldingStackOp(holdingStackName: string): AmplifyMigrationOperation { return { + resource: this.resource, validate: () => undefined, describe: async () => [`Delete holding stack '${holdingStackName}'`], execute: async () => { From 88270795f9129469598255a4c220e16dbc326067 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Fri, 20 Mar 2026 21:59:19 -0400 Subject: [PATCH 11/91] fix(cli-internal): tweak plan resource group display Change label format to "category/resourceName (service)", add cyan color to group headers, remove indentation on grouped items, and add blank lines between groups for readability. --- Prompt: i've made changes --- packages/amplify-cli/src/commands/gen2-migration/_plan.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index 5215eb6a800..c5156261917 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -71,7 +71,7 @@ export class Plan { const lines = await op.describe(); if (lines.length === 0) continue; if (op.resource) { - const label = `${op.resource.resourceName} (${op.resource.category}/${op.resource.service})`; + const label = `${op.resource.category}/${op.resource.resourceName} (${op.resource.service})`; if (!grouped.has(label)) grouped.set(label, []); grouped.get(label)!.push(...lines); } else { @@ -84,10 +84,12 @@ export class Plan { printer.blankLine(); for (const [label, descriptions] of grouped) { - printer.info(chalk.bold(label)); + printer.info(chalk.bold(chalk.cyan(label))); + printer.blankLine(); for (const description of descriptions) { - printer.info(` • ${description}`); + printer.info(`• ${description}`); } + printer.blankLine(); } for (const description of ungrouped) { From 5562032273089f49b3dc5dc862996751ad62265b Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Fri, 20 Mar 2026 22:13:51 -0400 Subject: [PATCH 12/91] feat(cli-internal): refine plan display and support UserPool Groups rollback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Group all operations under labeled sections — resource-backed ops use "Resource: category/name (service)", ungrouped ops fall under "Project". Descriptions rendered in gray for visual hierarchy. Add auth:Cognito-UserPool-Groups support in refactor assess and rollback using AuthUserPoolGroupsRollbackRefactorer. --- Prompt: I've made more changes. commit --- .../src/commands/gen2-migration/_plan.ts | 22 +++++-------------- .../gen2-migration/refactor/refactor.ts | 9 ++++++-- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index c5156261917..0569ce9be3c 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -65,37 +65,27 @@ export class Plan { */ public async describe(): Promise { const grouped = new Map(); - const ungrouped: string[] = []; for (const op of this.operations) { const lines = await op.describe(); if (lines.length === 0) continue; - if (op.resource) { - const label = `${op.resource.category}/${op.resource.resourceName} (${op.resource.service})`; - if (!grouped.has(label)) grouped.set(label, []); - grouped.get(label)!.push(...lines); - } else { - ungrouped.push(...lines); - } + const label = op.resource ? `Resource: ${op.resource.category}/${op.resource.resourceName} (${op.resource.service})` : 'Project'; + if (!grouped.has(label)) grouped.set(label, []); + grouped.get(label)!.push(...lines); } - if (grouped.size > 0 || ungrouped.length > 0) { + if (grouped.size > 0) { printer.info(chalk.bold(chalk.underline('Operations Summary'))); printer.blankLine(); for (const [label, descriptions] of grouped) { - printer.info(chalk.bold(chalk.cyan(label))); + printer.info(label); printer.blankLine(); for (const description of descriptions) { - printer.info(`• ${description}`); + printer.info(chalk.gray(`• ${description}`)); } printer.blankLine(); } - - for (const description of ungrouped) { - printer.info(`• ${description}`); - } - printer.blankLine(); } if (this.implications.length > 0) { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts index a9f9f1bbe93..fb41853359a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts @@ -19,6 +19,7 @@ import { AnalyticsKinesisRollbackRefactorer } from './analytics/analytics-rollba import { Gen1App, DiscoveredResource } from '../generate/_infra/gen1-app'; import { Assessment } from '../_assessment'; import { AuthUserPoolGroupsForwardRefactorer } from './auth/auth-user-pool-groups-forward'; +import { AuthUserPoolGroupsRollbackRefactorer } from './auth/auth-user-pool-groups-rollback'; export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { /** @@ -32,6 +33,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { for (const resource of discovered) { switch (resource.key) { case 'auth:Cognito': + case 'auth:Cognito-UserPool-Groups': case 'storage:S3': case 'storage:DynamoDB': case 'analytics:Kinesis': @@ -41,7 +43,6 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { case 'api:API Gateway': assessment.record('refactor', resource, { supported: true }); break; - case 'auth:Cognito-UserPool-Groups': case 'unsupported': assessment.record('refactor', resource, { supported: false }); break; @@ -132,6 +133,11 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { case 'auth:Cognito': refactorers.push(new AuthCognitoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); break; + case 'auth:Cognito-UserPool-Groups': + refactorers.push( + new AuthUserPoolGroupsRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + ); + break; case 'storage:S3': refactorers.push(new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); break; @@ -151,7 +157,6 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { case 'api:AppSync': case 'api:API Gateway': break; - case 'auth:Cognito-UserPool-Groups': case 'unsupported': throw new AmplifyError('MigrationError', { message: `Unsupported resource '${resource.resourceName}' (${resource.category}:${resource.service}). Cannot rollback.`, From 5811ef7ec713c676254fa72fa39834e240e7e5f7 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Fri, 20 Mar 2026 22:17:11 -0400 Subject: [PATCH 13/91] docs: add commit OOM prevention and scratch file cleanup Add NODE_OPTIONS="--max-old-space-size=8192" to the commit command example and instructions to delete the scratch commit message file after a successful commit. --- Prompt: add an instruction in AGENTS.md to delete the commit file after committing and always increase memory size to prevent lint failures --- AGENTS.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index a7aec2e9cef..dab19d09e5c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,9 +51,12 @@ Verify your changes by following these guidelines: To avoid issues with multi-line commit messages, write the message to `.commit-message.ai-generated.txt` and use `-F`: ```bash - git commit --author="John Doe (AI) " -F .commit-message.ai-generated.txt + NODE_OPTIONS="--max-old-space-size=8192" git commit --author="John Doe (AI) " -F .commit-message.ai-generated.txt ``` + Always set `NODE_OPTIONS="--max-old-space-size=8192"` when committing to prevent OOM failures in the lint-staged hook. + After a successful commit, delete the scratch file: `rm -f .commit-message.ai-generated.txt`. + - Since this repo has a commit hook that takes quite a long time to run, don't immediately commit every change you were asked to do. Apply your judgment, if the diff is still fairly small just keep going. Otherwise, ask the user if they want to commit or keep going. From 28f8dd44b2afbcf0bbd24b7c1dd7284c12640fdf Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 09:59:51 -0400 Subject: [PATCH 14/91] feat(cli-internal): add changeset preview and move table to refactor plan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enrich the refactor plan output with changeset reports and formatted move tables so operators can review exactly what each operation will change before executing. Key changes: - Auth cognito: explicit client matching (GEN1_WEB_CLIENT ↔ GEN2_WEB_CLIENT, GEN1_NATIVE_APP_CLIENT ↔ GEN2_NATIVE_APP_CLIENT) replacing negation-based logic. Exported shared constants. - Auth user pool groups: extracted RESOURCE_TYPES constant, use USER_POOL_GROUP_TYPE consistently. - category-refactorer: added changeset preview via CreateChangeSetCommand/DescribeChangeSetCommand, made updateSource/updateTarget/buildMoveOperations/beforeMovePlan async, enriched plan descriptions with changeset reports and move tables. - forward/rollback-category-refactorer: updated to async signatures, added move table formatting to descriptions. - Removed validateSingleResourcePerCategory from refactor.ts. - Plan output now uses numbered steps and bold labels. - New files: changeset-report.ts, template-diff.ts, move-table.ts (formatting utilities). - Test stubs updated for new CFN commands. --- Prompt: I've made changes - commit what i've done. dont run tests or anything, just commit. --- .../category-plan-orchestration.test.ts | 8 ++ .../src/commands/gen2-migration/_plan.ts | 6 +- .../refactor/auth/auth-cognito-forward.ts | 28 +++-- .../refactor/auth/auth-cognito-rollback.ts | 22 +++- .../auth/auth-user-pool-groups-forward.ts | 4 +- .../auth/auth-user-pool-groups-rollback.ts | 6 +- .../refactor/changeset-report.ts | 47 ++++++++ .../gen2-migration/refactor/move-table.ts | 38 ++++++ .../gen2-migration/refactor/refactor.ts | 27 +---- .../refactor/resolvers/cfn-output-resolver.ts | 2 +- .../gen2-migration/refactor/template-diff.ts | 65 +++++++++++ .../refactor/workflow/category-refactorer.ts | 108 +++++++++++++++--- .../workflow/forward-category-refactorer.ts | 19 ++- .../workflow/rollback-category-refactorer.ts | 10 +- 14 files changed, 321 insertions(+), 69 deletions(-) create mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts create mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts create mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts index 42d53e4f91e..3f29863eeac 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts @@ -13,6 +13,8 @@ import { DescribeStacksCommand, DescribeStackResourcesCommand, ResourceStatus, + CreateChangeSetCommand, + DescribeChangeSetCommand, } from '@aws-sdk/client-cloudformation'; const ts = new Date(); @@ -70,6 +72,8 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact let cfnMock: ReturnType; beforeEach(() => { cfnMock = mockClient(CloudFormationClient); + cfnMock.on(CreateChangeSetCommand).resolves({}); + cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); }); afterEach(() => cfnMock.restore()); @@ -166,6 +170,8 @@ describe('StorageS3RollbackRefactorer.plan() — rollback without holding stack' let cfnMock: ReturnType; beforeEach(() => { cfnMock = mockClient(CloudFormationClient); + cfnMock.on(CreateChangeSetCommand).resolves({}); + cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); }); afterEach(() => cfnMock.restore()); @@ -216,6 +222,8 @@ describe('Analytics wiring tests', () => { let cfnMock: ReturnType; beforeEach(() => { cfnMock = mockClient(CloudFormationClient); + cfnMock.on(CreateChangeSetCommand).resolves({}); + cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); }); afterEach(() => cfnMock.restore()); diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index 0569ce9be3c..8109c645573 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -79,10 +79,12 @@ export class Plan { printer.blankLine(); for (const [label, descriptions] of grouped) { - printer.info(label); + printer.info(chalk.bold(label)); printer.blankLine(); + let step = 1; for (const description of descriptions) { - printer.info(chalk.gray(`• ${description}`)); + printer.info(`${step}. ${description}`); + step++; } printer.blankLine(); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts index 2b5815bfa06..9dd1becfeaf 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts @@ -8,16 +8,21 @@ import { SpinningLogger } from '../../_spinning-logger'; import { DiscoveredResource } from '../../generate/_infra/gen1-app'; import { CFNResource } from '../../cfn-template'; -const GEN1_WEB_APP_CLIENT = 'UserPoolClientWeb'; const HOSTED_PROVIDER_META_PARAMETER_NAME = 'hostedUIProviderMeta'; const HOSTED_PROVIDER_CREDENTIALS_PARAMETER_NAME = 'hostedUIProviderCreds'; const USER_POOL_ID_OUTPUT_KEY_NAME = 'UserPoolId'; +export const GEN1_NATIVE_APP_CLIENT = 'UserPoolClient'; +export const GEN1_WEB_CLIENT = 'UserPoolClientWeb'; + export const GEN2_NATIVE_APP_CLIENT = 'UserPoolNativeAppClient'; +export const GEN2_WEB_CLIENT = 'UserPoolAppClient'; + +export const USER_POOL_CLIENT_TYPE = 'AWS::Cognito::UserPoolClient'; -export const AUTH_RESOURCE_TYPES = [ +export const RESOURCE_TYPES = [ 'AWS::Cognito::UserPool', - 'AWS::Cognito::UserPoolClient', + USER_POOL_CLIENT_TYPE, 'AWS::Cognito::IdentityPool', 'AWS::Cognito::IdentityPoolRoleAttachment', 'AWS::Cognito::UserPoolDomain', @@ -44,7 +49,7 @@ export class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer { } protected resourceTypes(): string[] { - return AUTH_RESOURCE_TYPES; + return RESOURCE_TYPES; } /** @@ -85,10 +90,17 @@ export class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer { return false; } switch (sourceResource.Type) { - case 'AWS::Cognito::UserPoolClient': { - const isWebPair = sourceId === GEN1_WEB_APP_CLIENT && !targetId.includes(GEN2_NATIVE_APP_CLIENT); - const isNativePair = sourceId !== GEN1_WEB_APP_CLIENT && targetId.includes(GEN2_NATIVE_APP_CLIENT); - return isWebPair || isNativePair; + case USER_POOL_CLIENT_TYPE: { + switch (sourceId) { + case GEN1_WEB_CLIENT: + return targetId.includes(GEN2_WEB_CLIENT); + case GEN1_NATIVE_APP_CLIENT: + return targetId.includes(GEN2_NATIVE_APP_CLIENT); + default: + throw new AmplifyError('MigrationError', { + message: `Unexpected source logical id ${sourceId} for resource of type ${USER_POOL_CLIENT_TYPE}`, + }); + } } default: return true; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts index ed0a836a6ce..74c8a68fd22 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts @@ -1,6 +1,13 @@ import { CFNResource } from '../../cfn-template'; import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; -import { AUTH_RESOURCE_TYPES, GEN2_NATIVE_APP_CLIENT } from './auth-cognito-forward'; +import { + RESOURCE_TYPES, + GEN1_NATIVE_APP_CLIENT, + GEN1_WEB_CLIENT, + GEN2_NATIVE_APP_CLIENT, + GEN2_WEB_CLIENT, + USER_POOL_CLIENT_TYPE, +} from './auth-cognito-forward'; /** * Rollback refactorer for the auth:Cognito resource. @@ -9,7 +16,7 @@ import { AUTH_RESOURCE_TYPES, GEN2_NATIVE_APP_CLIENT } from './auth-cognito-forw */ export class AuthCognitoRollbackRefactorer extends RollbackCategoryRefactorer { protected resourceTypes(): string[] { - return AUTH_RESOURCE_TYPES; + return RESOURCE_TYPES; } protected async fetchSourceStackId(): Promise { @@ -22,8 +29,15 @@ export class AuthCognitoRollbackRefactorer extends RollbackCategoryRefactorer { protected targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined { switch (sourceResource.Type) { - case 'AWS::Cognito::UserPoolClient': - return sourceId.includes(GEN2_NATIVE_APP_CLIENT) ? 'UserPoolClient' : 'UserPoolClientWeb'; + case USER_POOL_CLIENT_TYPE: { + if (sourceId.includes(GEN2_NATIVE_APP_CLIENT)) { + return GEN1_NATIVE_APP_CLIENT; + } + if (sourceId.includes(GEN2_WEB_CLIENT)) { + return GEN1_WEB_CLIENT; + } + throw new Error(); + } case 'AWS::Cognito::UserPool': return 'UserPool'; case 'AWS::Cognito::IdentityPool': diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts index 06e4be040a0..f4203b97da1 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.ts @@ -3,6 +3,8 @@ import { ForwardCategoryRefactorer } from '../workflow/forward-category-refactor export const USER_POOL_GROUP_TYPE = 'AWS::Cognito::UserPoolGroup'; +export const RESOURCE_TYPES = [USER_POOL_GROUP_TYPE]; + /** * Forward refactorer for the auth:UserPoolGroups resource. * @@ -10,7 +12,7 @@ export const USER_POOL_GROUP_TYPE = 'AWS::Cognito::UserPoolGroup'; */ export class AuthUserPoolGroupsForwardRefactorer extends ForwardCategoryRefactorer { protected resourceTypes(): string[] { - return [USER_POOL_GROUP_TYPE]; + return RESOURCE_TYPES; } protected async fetchSourceStackId(): Promise { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts index e6032aba6ff..3499b546c54 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts @@ -1,6 +1,6 @@ import { CFNResource } from '../../cfn-template'; import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; -import { USER_POOL_GROUP_TYPE } from './auth-user-pool-groups-forward'; +import { RESOURCE_TYPES, USER_POOL_GROUP_TYPE } from './auth-user-pool-groups-forward'; /** * Rollback refactorer for the auth:UserPoolGroups resource. @@ -9,7 +9,7 @@ import { USER_POOL_GROUP_TYPE } from './auth-user-pool-groups-forward'; */ export class AuthUserPoolGroupsRollbackRefactorer extends RollbackCategoryRefactorer { protected resourceTypes(): string[] { - return [USER_POOL_GROUP_TYPE]; + return RESOURCE_TYPES; } protected async fetchSourceStackId(): Promise { @@ -22,7 +22,7 @@ export class AuthUserPoolGroupsRollbackRefactorer extends RollbackCategoryRefact protected targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined { switch (sourceResource.Type) { - case 'AWS::Cognito::UserPoolGroup': + case USER_POOL_GROUP_TYPE: return `${sourceResource.Properties['GroupName']}Group`; default: return undefined; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts new file mode 100644 index 00000000000..de541f241fb --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts @@ -0,0 +1,47 @@ +import chalk from 'chalk'; +import { DescribeChangeSetOutput } from '@aws-sdk/client-cloudformation'; + +/** + * Produces a human-readable report of property changes from a described changeset. + */ +export function formatChangeSetReport(changeSet: DescribeChangeSetOutput): string { + const changes = changeSet.Changes ?? []; + if (changes.length === 0) return ''; + + const lines: string[] = []; + + for (const change of changes) { + const rc = change.ResourceChange; + if (!rc) continue; + + const action = rc.Action ?? 'Unknown'; + const logicalId = rc.LogicalResourceId ?? 'Unknown'; + const resourceType = rc.ResourceType ?? 'Unknown'; + + lines.push(''); + lines.push(`${chalk.bold(logicalId)} (${resourceType}) — ${chalk.yellow(action)}`); + lines.push(''); + + const details = rc.Details ?? []; + const propDetails = details.filter((d) => d.Target?.Attribute === 'Properties' && d.Target?.Name); + + for (const detail of propDetails) { + const target = detail.Target!; + const name = target.Name!; + const before = target.BeforeValue; + const after = target.AfterValue; + + if (before && after) { + lines.push(` ${name}: ${chalk.red(before)} → ${chalk.green(after)}`); + } else if (after) { + lines.push(` ${name}: ${chalk.green(`+ ${after}`)}`); + } else if (before) { + lines.push(` ${name}: ${chalk.red(`- ${before}`)}`); + } else { + lines.push(` ${name}: (changed)`); + } + } + } + + return lines.join('\n'); +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts new file mode 100644 index 00000000000..dd5a0b19d20 --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts @@ -0,0 +1,38 @@ +import { ResourceMapping } from './workflow/category-refactorer'; + +/** + * Renders a box-drawing table of resource mappings for move operations. + */ +export function formatMoveTable( + resourceMappings: readonly ResourceMapping[], + physicalIds: ReadonlyMap, + resourceTypes: ReadonlyMap, +): string { + const rows = resourceMappings.map((m) => ({ + type: resourceTypes.get(m.Source.LogicalResourceId) ?? '', + source: m.Source.LogicalResourceId, + target: m.Destination.LogicalResourceId, + physical: physicalIds.get(m.Source.LogicalResourceId) ?? '', + })); + + const w = { + type: Math.max(4, ...rows.map((r) => r.type.length)) + 2, + source: Math.max(6, ...rows.map((r) => r.source.length)) + 2, + target: Math.max(6, ...rows.map((r) => r.target.length)) + 2, + physical: Math.max(8, ...rows.map((r) => r.physical.length)) + 2, + }; + + const hr = (c: string, l: string, m: string, r: string) => + `${l}${''.padEnd(w.type, c)}${m}${''.padEnd(w.source, c)}${m}${''.padEnd(w.target, c)}${m}${''.padEnd(w.physical, c)}${r}`; + const row = (ty: string, s: string, t: string, p: string) => + `│ ${ty.padEnd(w.type - 2)} │ ${s.padEnd(w.source - 2)} │ ${t.padEnd(w.target - 2)} │ ${p.padEnd(w.physical - 2)} │`; + + return [ + hr('─', '┌', '┬', '┐'), + row('Type', 'Source Logical ID', 'Target Logical ID', 'Physical ID'), + hr('─', '├', '┼', '┤'), + ...rows.map((r) => row(r.type, r.source, r.target, r.physical)), + hr('─', '└', '┴', '┘'), + '', + ].join('\n'); +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts index fb41853359a..9767913c2f8 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts @@ -16,7 +16,7 @@ import { StorageDynamoForwardRefactorer } from './storage/storage-dynamo-forward import { StorageDynamoRollbackRefactorer } from './storage/storage-dynamo-rollback'; import { AnalyticsKinesisForwardRefactorer } from './analytics/analytics-forward'; import { AnalyticsKinesisRollbackRefactorer } from './analytics/analytics-rollback'; -import { Gen1App, DiscoveredResource } from '../generate/_infra/gen1-app'; +import { Gen1App } from '../generate/_infra/gen1-app'; import { Assessment } from '../_assessment'; import { AuthUserPoolGroupsForwardRefactorer } from './auth/auth-user-pool-groups-forward'; import { AuthUserPoolGroupsRollbackRefactorer } from './auth/auth-user-pool-groups-rollback'; @@ -59,8 +59,6 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { const refactorers: Refactorer[] = []; - validateSingleResourcePerCategory(discovered); - for (const resource of discovered) { switch (resource.key) { case 'auth:Cognito': @@ -126,8 +124,6 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { const refactorers: Refactorer[] = []; - validateSingleResourcePerCategory(discovered); - for (const resource of discovered) { switch (resource.key) { case 'auth:Cognito': @@ -230,24 +226,3 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { return toStack; } } - -/** - * Throws if any refactorer category has more than one resource. - * Refactorers assume a single resource per category — multiple - * resources would produce incorrect mappings. - */ -function validateSingleResourcePerCategory(discovered: readonly DiscoveredResource[]): void { - const refactorCategories = new Set(['auth', 'storage', 'analytics']); - const categoryCounts = new Map(); - for (const r of discovered) { - if (!refactorCategories.has(r.category)) continue; - categoryCounts.set(r.category, (categoryCounts.get(r.category) ?? 0) + 1); - } - for (const [category, count] of categoryCounts) { - if (count > 1) { - throw new AmplifyError('MigrationError', { - message: `Multiple resources in '${category}' category detected. The refactor step does not yet support multiple resources per category.`, - }); - } - } -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts index df2ad793146..3adea7de43c 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts @@ -135,7 +135,7 @@ function buildOutputLookup( const record = value as Record; if ('Ref' in record && typeof record.Ref === 'string') { - refLookup.set(record.Ref, runtimeOutput.OutputValue); + refLookup.set(record.Ref, runtimeOutput.OutputValue + 'bubu'); } else if ('Fn::GetAtt' in record && Array.isArray(record['Fn::GetAtt'])) { getAttLookup.set(record['Fn::GetAtt'][0] as string, runtimeOutput.OutputValue); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts new file mode 100644 index 00000000000..290a483177b --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts @@ -0,0 +1,65 @@ +import chalk from 'chalk'; +import { CFNTemplate } from '../cfn-template'; + +/** + * Produces a per-resource property diff between a deployed and resolved template. + */ +export function formatTemplateDiff(deployed: CFNTemplate, resolved: CFNTemplate): string { + const lines: string[] = []; + const allIds = new Set([...Object.keys(deployed.Resources ?? {}), ...Object.keys(resolved.Resources ?? {})]); + + for (const logicalId of allIds) { + const oldRes = deployed.Resources?.[logicalId]; + const newRes = resolved.Resources?.[logicalId]; + + if (!oldRes && newRes) { + lines.push(`${chalk.green('+')} ${chalk.bold(logicalId)} (${newRes.Type})`); + continue; + } + if (oldRes && !newRes) { + lines.push(`${chalk.red('-')} ${chalk.bold(logicalId)} (${oldRes.Type})`); + continue; + } + if (!oldRes || !newRes) continue; + + const propDiffs = diffProperties(oldRes.Properties ?? {}, newRes.Properties ?? {}); + if (propDiffs.length === 0) continue; + + lines.push(`${chalk.yellow('~')} ${chalk.bold(logicalId)} (${oldRes.Type})`); + lines.push(...propDiffs); + } + + return lines.join('\n'); +} + +function diffProperties(oldProps: Record, newProps: Record, prefix = ''): string[] { + const lines: string[] = []; + const allKeys = new Set([...Object.keys(oldProps), ...Object.keys(newProps)]); + + for (const key of allKeys) { + const path = prefix ? `${prefix}.${key}` : key; + const oldVal = oldProps[key]; + const newVal = newProps[key]; + + if (oldVal === undefined) { + lines.push(` ${chalk.green('+')} ${path}: ${format(newVal)}`); + } else if (newVal === undefined) { + lines.push(` ${chalk.red('-')} ${path}: ${format(oldVal)}`); + } else if (typeof oldVal === 'object' && typeof newVal === 'object' && oldVal !== null && newVal !== null) { + if (!Array.isArray(oldVal) && !Array.isArray(newVal)) { + lines.push(...diffProperties(oldVal as Record, newVal as Record, path)); + } else if (JSON.stringify(oldVal) !== JSON.stringify(newVal)) { + lines.push(` ${chalk.yellow('~')} ${path}: ${format(oldVal)} → ${format(newVal)}`); + } + } else if (JSON.stringify(oldVal) !== JSON.stringify(newVal)) { + lines.push(` ${chalk.yellow('~')} ${path}: ${format(oldVal)} → ${format(newVal)}`); + } + } + + return lines; +} + +function format(value: unknown): string { + if (typeof value === 'string') return value; + return JSON.stringify(value); +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 3edf15264d2..bd63b35cf5e 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -1,4 +1,9 @@ -import { Parameter } from '@aws-sdk/client-cloudformation'; +import { + Parameter, + CreateChangeSetCommand, + DescribeChangeSetCommand, + waitUntilChangeSetCreateComplete, +} from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNStackStatus, CFNTemplate } from '../../cfn-template'; import { Refactorer } from '../refactorer'; @@ -10,6 +15,9 @@ import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater import { SpinningLogger } from '../../_spinning-logger'; import { extractStackNameFromId } from '../utils'; import { DiscoveredResource } from '../../generate/_infra/gen1-app'; +import { formatTemplateDiff } from '../template-diff'; +import { formatChangeSetReport } from '../changeset-report'; +import { formatMoveTable } from '../move-table'; export const MIGRATION_PLACEHOLDER_LOGICAL_ID = 'MigrationPlaceholder'; export const PLACEHOLDER_RESOURCE: CFNResource = { Type: 'AWS::CloudFormation::WaitConditionHandle', Properties: {} }; @@ -89,6 +97,7 @@ export abstract class CategoryRefactorer implements Refactorer { * All AWS reads happen here. Operations only execute mutations. */ public async plan(): Promise { + this.logger.push(`${this.resource.category}/${this.resource.resourceName} (${this.resource.service})`); const sourceStackId = await this.fetchSourceStackId(); const destStackId = await this.fetchDestStackId(); @@ -111,11 +120,19 @@ export abstract class CategoryRefactorer implements Refactorer { return []; // Nothing to move — skip this category } - const beforeMoveOps = this.beforeMovePlan(blueprint); - const moveOps = this.buildMoveOperations(blueprint); + const beforeMoveOps = await this.beforeMovePlan(blueprint); + const moveOps = await this.buildMoveOperations(blueprint); const afterMoveOps = await this.afterMovePlan(blueprint); - return [...this.updateSource(blueprint.source), ...this.updateTarget(blueprint.target), ...beforeMoveOps, ...moveOps, ...afterMoveOps]; + const operations = [ + ...(await this.updateSource(blueprint.source)), + ...(await this.updateTarget(blueprint.target)), + ...beforeMoveOps, + ...moveOps, + ...afterMoveOps, + ]; + this.logger.pop(); + return operations; } // -- Category-specific (abstract) -- @@ -143,7 +160,7 @@ export abstract class CategoryRefactorer implements Refactorer { * Forward: moves Gen2 resources to holding stack. * Rollback: no-op. */ - protected abstract beforeMovePlan(blueprint: RefactorBlueprint): AmplifyMigrationOperation[]; + protected abstract beforeMovePlan(blueprint: RefactorBlueprint): Promise | AmplifyMigrationOperation[]; /** * Post-move operations. @@ -158,8 +175,12 @@ export abstract class CategoryRefactorer implements Refactorer { * Creates operations to update the source stack with the resolved template. * Rollback overrides this to return []. */ - protected updateSource(source: ResolvedStack): AmplifyMigrationOperation[] { + protected async updateSource(source: ResolvedStack): Promise { const sourceStackName = extractStackNameFromId(source.stackId); + // const deployed = await this.gen1Env.fetchTemplate(source.stackId); + // const diff = formatTemplateDiff(deployed, source.resolvedTemplate); + const report = await this.createChangeSetReport(source); + const description = [report].filter(Boolean).join('\n\n'); return [ { resource: this.resource, @@ -169,7 +190,10 @@ export abstract class CategoryRefactorer implements Refactorer { return { valid: true }; }, }), - describe: async () => [`Update source stack '${sourceStackName}' with resolved references`], + describe: async () => + description + ? [`Update source stack '${sourceStackName}' with resolved references\n${description}`] + : [`Update source stack '${sourceStackName}' with resolved references`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -191,8 +215,12 @@ export abstract class CategoryRefactorer implements Refactorer { * Creates operations to update the target stack with the resolved template. * Rollback overrides this to return []. */ - protected updateTarget(target: ResolvedStack): AmplifyMigrationOperation[] { + protected async updateTarget(target: ResolvedStack): Promise { const targetStackName = extractStackNameFromId(target.stackId); + // const deployed = await this.gen2Branch.fetchTemplate(target.stackId); + // const diff = formatTemplateDiff(deployed, target.resolvedTemplate); + const report = await this.createChangeSetReport(target); + const description = [report].filter(Boolean).join('\n\n'); return [ { resource: this.resource, @@ -202,7 +230,10 @@ export abstract class CategoryRefactorer implements Refactorer { return { valid: true }; }, }), - describe: async () => [`Update target stack '${targetStackName}' with resolved references`], + describe: async () => + description + ? [`Update target stack '${targetStackName}' with resolved references\n${description}`] + : [`Update target stack '${targetStackName}' with resolved references`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -220,6 +251,42 @@ export abstract class CategoryRefactorer implements Refactorer { ]; } + /** + * Creates a changeset for the given stack and returns a formatted report. + */ + private async createChangeSetReport(stack: ResolvedStack): Promise { + const changeSetName = `migration-preview-${Date.now()}`; + const stackName = stack.stackId; + + this.logger.push(extractStackNameFromId(stackName)); + await this.clients.cloudFormation.send( + new CreateChangeSetCommand({ + StackName: stackName, + ChangeSetName: changeSetName, + TemplateBody: JSON.stringify(stack.resolvedTemplate), + Parameters: stack.parameters, + Capabilities: ['CAPABILITY_NAMED_IAM'], + }), + ); + + try { + await waitUntilChangeSetCreateComplete( + { client: this.clients.cloudFormation, maxWaitTime: 120 }, + { StackName: stackName, ChangeSetName: changeSetName }, + ); + } catch { + // Changeset creation fails when there are no changes — not an error. + return ''; + } + + const changeSet = await this.clients.cloudFormation.send( + new DescribeChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName, IncludePropertyValues: true }), + ); + + this.logger.pop(); + return formatChangeSetReport(changeSet); + } + /** * Builds a consolidated RefactorBlueprint from resolved source and target stacks. * Returns undefined if there are no resources to move. @@ -292,22 +359,29 @@ export abstract class CategoryRefactorer implements Refactorer { /** * Creates the move operation that executes the CloudFormation stack refactor. */ - protected buildMoveOperations(blueprint: RefactorBlueprint): AmplifyMigrationOperation[] { + protected async buildMoveOperations(blueprint: RefactorBlueprint): Promise { const { source, target, mappings } = blueprint; + const sourceStackName = extractStackNameFromId(source.stackId); + const targetStackName = extractStackNameFromId(target.stackId); const resourceMappings: ResourceMapping[] = mappings.map(({ sourceId, targetId }) => ({ - Source: { StackName: extractStackNameFromId(source.stackId), LogicalResourceId: sourceId }, - Destination: { StackName: extractStackNameFromId(target.stackId), LogicalResourceId: targetId }, + Source: { StackName: sourceStackName, LogicalResourceId: sourceId }, + Destination: { StackName: targetStackName, LogicalResourceId: targetId }, })); + const sourceResources = await this.gen1Env.fetchStackResources(source.stackId); + const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); + const types = new Map(mappings.map((m) => [m.sourceId, m.resource.Type])); + + const header = `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId( + sourceStackName, + )}' to '${extractStackNameFromId(targetStackName)}'`; + const table = formatMoveTable(resourceMappings, physicalIds, types); + return [ { resource: this.resource, validate: () => undefined, - describe: async () => [ - `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId(source.stackId)}' to '${extractStackNameFromId( - target.stackId, - )}'`, - ], + describe: async () => [`${header}\n\n${table}`], execute: async () => { const result = await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 382005e266d..c8d7efbaa40 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -10,6 +10,7 @@ import { extractStackNameFromId } from '../utils'; import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../holding-stack'; import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, ResourceMapping } from './category-refactorer'; +import { formatMoveTable } from '../move-table'; /** * Forward direction base: moves resources from Gen1 (source) to Gen2 (target). @@ -32,12 +33,12 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { } if (matchedTargets.length === 0) { throw new AmplifyError('InvalidStackError', { - message: `Source resource '${sourceId}' (type '${sourceResource.Type}') has no corresponding target resource`, + message: `Source resource '${sourceId}' (${sourceResource.Type}) has no corresponding target resource`, }); } if (matchedTargets.length > 1) { throw new AmplifyError('InvalidStackError', { - message: `Source resource '${sourceId}' (type '${sourceResource.Type}') has multiple corresponding target resources`, + message: `Source resource '${sourceId}' (${sourceResource.Type}) has multiple corresponding target resources`, }); } const targetId = matchedTargets[0]; @@ -111,7 +112,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { /** * Moves Gen2 resources to a holding stack before the main refactor. */ - protected beforeMovePlan(blueprint: RefactorBlueprint): AmplifyMigrationOperation[] { + protected async beforeMovePlan(blueprint: RefactorBlueprint): Promise { const targetResources = this.filterResourcesByType(blueprint.target.resolvedTemplate); if (targetResources.size === 0) { return []; @@ -139,11 +140,21 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { Destination: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: id }, })); + const gen2Resources = await this.gen2Branch.fetchStackResources(blueprint.target.stackId); + const physicalIds = new Map(gen2Resources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); + const types = new Map([...targetResources].map(([id, res]) => [id, res.Type])); + + const header = `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId( + blueprint.target.stackId, + )}' to '${extractStackNameFromId(holdingStackName)}'`; + + const table = formatMoveTable(holdingMappings, physicalIds, types); + return [ { resource: this.resource, validate: () => undefined, - describe: async () => [`Move Gen2 resources to holding stack '${holdingStackName}'`], + describe: async () => [`${header}\n\n${table}`], execute: async () => { const existing = await findHoldingStack(this.clients.cloudFormation, holdingStackName); if (existing?.StackStatus === 'REVIEW_IN_PROGRESS') { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 7a6e210a936..3c745766055 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -18,6 +18,7 @@ import { ResolvedStack, ResourceMapping, } from './category-refactorer'; +import { formatMoveTable } from '../move-table'; /** * Rollback direction base: moves resources from Gen2 (source) back to Gen1 (target). @@ -85,11 +86,11 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: originalTemplate, parameters }; } - protected override updateSource(): AmplifyMigrationOperation[] { + protected override async updateSource(): Promise { return []; } - protected override updateTarget(): AmplifyMigrationOperation[] { + protected override async updateTarget(): Promise { return []; } @@ -147,6 +148,9 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: logicalId }, })); + const restoreTypes = new Map(resourcesToRestore.map(([id, res]) => [id, (res as { Type: string }).Type])); + const restoreTable = formatMoveTable(restoreMappings, new Map(), restoreTypes); + return [ { resource: this.resource, @@ -164,7 +168,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { { resource: this.resource, validate: () => undefined, - describe: async () => [`Restore ${resourcesToRestore.length} resource(s) from holding stack to Gen2`], + describe: async () => [`Restore ${resourcesToRestore.length} resource(s) from holding stack to Gen2\n\n${restoreTable}`], execute: async () => { const result = await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ From 9d2e090e8534c8d291946e570e43fdd44bf1221f Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 11:03:03 -0400 Subject: [PATCH 15/91] fix(cli-internal): improve changeset report formatting Use full JSON path (Target.Path) instead of just the top-level property name so duplicate property names like RoleMappings are distinguishable. Show before/after values on separate lines for readability. Use bgGray chalk headers for operation descriptions. Minor spacing tweaks in plan output and move table. --- Prompt: I've made more changes. Commit them. not tests. --- .../src/commands/gen2-migration/_plan.ts | 2 +- .../refactor/changeset-report.ts | 16 +++++++----- .../gen2-migration/refactor/move-table.ts | 1 - .../refactor/workflow/category-refactorer.ts | 25 ++++++++----------- .../workflow/forward-category-refactorer.ts | 9 ++++--- 5 files changed, 28 insertions(+), 25 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index 8109c645573..e7a82783662 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -84,9 +84,9 @@ export class Plan { let step = 1; for (const description of descriptions) { printer.info(`${step}. ${description}`); + printer.blankLine(); step++; } - printer.blankLine(); } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts index de541f241fb..1f1889bc5a3 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts @@ -20,25 +20,29 @@ export function formatChangeSetReport(changeSet: DescribeChangeSetOutput): strin lines.push(''); lines.push(`${chalk.bold(logicalId)} (${resourceType}) — ${chalk.yellow(action)}`); - lines.push(''); const details = rc.Details ?? []; const propDetails = details.filter((d) => d.Target?.Attribute === 'Properties' && d.Target?.Name); for (const detail of propDetails) { const target = detail.Target!; - const name = target.Name!; + const propertyPath = target.Path ?? target.Name!; const before = target.BeforeValue; const after = target.AfterValue; + lines.push(''); if (before && after) { - lines.push(` ${name}: ${chalk.red(before)} → ${chalk.green(after)}`); + lines.push(` ${propertyPath}:`); + lines.push(` ${chalk.red(`- ${before}`)}`); + lines.push(` ${chalk.green(`+ ${after}`)}`); } else if (after) { - lines.push(` ${name}: ${chalk.green(`+ ${after}`)}`); + lines.push(` ${propertyPath}:`); + lines.push(` ${chalk.green(`+ ${after}`)}`); } else if (before) { - lines.push(` ${name}: ${chalk.red(`- ${before}`)}`); + lines.push(` ${propertyPath}:`); + lines.push(` ${chalk.red(`- ${before}`)}`); } else { - lines.push(` ${name}: (changed)`); + lines.push(` ${propertyPath}: (changed)`); } } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts index dd5a0b19d20..91890f3a677 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts @@ -33,6 +33,5 @@ export function formatMoveTable( hr('─', '├', '┼', '┤'), ...rows.map((r) => row(r.type, r.source, r.target, r.physical)), hr('─', '└', '┴', '┘'), - '', ].join('\n'); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index bd63b35cf5e..5685e12376a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -18,6 +18,7 @@ import { DiscoveredResource } from '../../generate/_infra/gen1-app'; import { formatTemplateDiff } from '../template-diff'; import { formatChangeSetReport } from '../changeset-report'; import { formatMoveTable } from '../move-table'; +import chalk from 'chalk'; export const MIGRATION_PLACEHOLDER_LOGICAL_ID = 'MigrationPlaceholder'; export const PLACEHOLDER_RESOURCE: CFNResource = { Type: 'AWS::CloudFormation::WaitConditionHandle', Properties: {} }; @@ -180,7 +181,7 @@ export abstract class CategoryRefactorer implements Refactorer { // const deployed = await this.gen1Env.fetchTemplate(source.stackId); // const diff = formatTemplateDiff(deployed, source.resolvedTemplate); const report = await this.createChangeSetReport(source); - const description = [report].filter(Boolean).join('\n\n'); + const header = chalk.bgGray(`Update source stack '${sourceStackName}' with resolved references`); return [ { resource: this.resource, @@ -190,10 +191,7 @@ export abstract class CategoryRefactorer implements Refactorer { return { valid: true }; }, }), - describe: async () => - description - ? [`Update source stack '${sourceStackName}' with resolved references\n${description}`] - : [`Update source stack '${sourceStackName}' with resolved references`], + describe: async () => [`${header}\n${report}`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -220,7 +218,7 @@ export abstract class CategoryRefactorer implements Refactorer { // const deployed = await this.gen2Branch.fetchTemplate(target.stackId); // const diff = formatTemplateDiff(deployed, target.resolvedTemplate); const report = await this.createChangeSetReport(target); - const description = [report].filter(Boolean).join('\n\n'); + const header = chalk.bgGray(`Update target stack '${targetStackName}' with resolved references`); return [ { resource: this.resource, @@ -230,10 +228,7 @@ export abstract class CategoryRefactorer implements Refactorer { return { valid: true }; }, }), - describe: async () => - description - ? [`Update target stack '${targetStackName}' with resolved references\n${description}`] - : [`Update target stack '${targetStackName}' with resolved references`], + describe: async () => [`${header}\n${report}`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -276,7 +271,7 @@ export abstract class CategoryRefactorer implements Refactorer { ); } catch { // Changeset creation fails when there are no changes — not an error. - return ''; + return 'No changes\n'; } const changeSet = await this.clients.cloudFormation.send( @@ -372,9 +367,11 @@ export abstract class CategoryRefactorer implements Refactorer { const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); const types = new Map(mappings.map((m) => [m.sourceId, m.resource.Type])); - const header = `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId( - sourceStackName, - )}' to '${extractStackNameFromId(targetStackName)}'`; + const header = chalk.bgGray( + `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId(sourceStackName)}' to '${extractStackNameFromId( + targetStackName, + )}'`, + ); const table = formatMoveTable(resourceMappings, physicalIds, types); return [ diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index c8d7efbaa40..879bc98691f 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -11,6 +11,7 @@ import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../ho import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, ResourceMapping } from './category-refactorer'; import { formatMoveTable } from '../move-table'; +import chalk from 'chalk'; /** * Forward direction base: moves resources from Gen1 (source) to Gen2 (target). @@ -144,9 +145,11 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const physicalIds = new Map(gen2Resources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); const types = new Map([...targetResources].map(([id, res]) => [id, res.Type])); - const header = `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId( - blueprint.target.stackId, - )}' to '${extractStackNameFromId(holdingStackName)}'`; + const header = chalk.bgGray( + `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId(blueprint.target.stackId)}' to '${extractStackNameFromId( + holdingStackName, + )}'`, + ); const table = formatMoveTable(holdingMappings, physicalIds, types); From 9554e90b539acc43eac843f1610f3e616fc3686d Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 11:29:42 -0400 Subject: [PATCH 16/91] refactor(cli-internal): use cli-table3 for move table and fix changeset no-changes detection Replace hand-rolled box-drawing move table with cli-table3 (CLITable) to match existing patterns. Fix changeset no-changes detection: a CREATE_COMPLETE changeset with an empty Changes list is the actual no-changes case, not a waiter failure. formatChangeSetReport now returns undefined when there are no changes. Remove debug 'bubu' suffix from cfn-output-resolver. --- Prompt: commit --- .../refactor/changeset-report.ts | 4 +- .../gen2-migration/refactor/move-table.ts | 40 +++++++------------ .../refactor/resolvers/cfn-output-resolver.ts | 2 +- .../refactor/workflow/category-refactorer.ts | 32 ++++++--------- .../workflow/forward-category-refactorer.ts | 9 ++--- 5 files changed, 34 insertions(+), 53 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts index 1f1889bc5a3..4cde6939509 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts @@ -4,9 +4,9 @@ import { DescribeChangeSetOutput } from '@aws-sdk/client-cloudformation'; /** * Produces a human-readable report of property changes from a described changeset. */ -export function formatChangeSetReport(changeSet: DescribeChangeSetOutput): string { +export function formatChangeSetReport(changeSet: DescribeChangeSetOutput): string | undefined { const changes = changeSet.Changes ?? []; - if (changes.length === 0) return ''; + if (changes.length === 0) return undefined; const lines: string[] = []; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts index 91890f3a677..b4813462747 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts @@ -1,37 +1,27 @@ +import CLITable from 'cli-table3'; import { ResourceMapping } from './workflow/category-refactorer'; /** - * Renders a box-drawing table of resource mappings for move operations. + * Renders a table of resource mappings for move operations. */ export function formatMoveTable( resourceMappings: readonly ResourceMapping[], physicalIds: ReadonlyMap, resourceTypes: ReadonlyMap, ): string { - const rows = resourceMappings.map((m) => ({ - type: resourceTypes.get(m.Source.LogicalResourceId) ?? '', - source: m.Source.LogicalResourceId, - target: m.Destination.LogicalResourceId, - physical: physicalIds.get(m.Source.LogicalResourceId) ?? '', - })); + const table = new CLITable({ + head: ['Type', 'Source Logical ID', 'Target Logical ID', 'Physical ID'], + style: { head: [] }, + }); - const w = { - type: Math.max(4, ...rows.map((r) => r.type.length)) + 2, - source: Math.max(6, ...rows.map((r) => r.source.length)) + 2, - target: Math.max(6, ...rows.map((r) => r.target.length)) + 2, - physical: Math.max(8, ...rows.map((r) => r.physical.length)) + 2, - }; + for (const m of resourceMappings) { + table.push([ + resourceTypes.get(m.Source.LogicalResourceId) ?? '', + m.Source.LogicalResourceId, + m.Destination.LogicalResourceId, + physicalIds.get(m.Source.LogicalResourceId) ?? '', + ]); + } - const hr = (c: string, l: string, m: string, r: string) => - `${l}${''.padEnd(w.type, c)}${m}${''.padEnd(w.source, c)}${m}${''.padEnd(w.target, c)}${m}${''.padEnd(w.physical, c)}${r}`; - const row = (ty: string, s: string, t: string, p: string) => - `│ ${ty.padEnd(w.type - 2)} │ ${s.padEnd(w.source - 2)} │ ${t.padEnd(w.target - 2)} │ ${p.padEnd(w.physical - 2)} │`; - - return [ - hr('─', '┌', '┬', '┐'), - row('Type', 'Source Logical ID', 'Target Logical ID', 'Physical ID'), - hr('─', '├', '┼', '┤'), - ...rows.map((r) => row(r.type, r.source, r.target, r.physical)), - hr('─', '└', '┴', '┘'), - ].join('\n'); + return table.toString(); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts index 3adea7de43c..df2ad793146 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.ts @@ -135,7 +135,7 @@ function buildOutputLookup( const record = value as Record; if ('Ref' in record && typeof record.Ref === 'string') { - refLookup.set(record.Ref, runtimeOutput.OutputValue + 'bubu'); + refLookup.set(record.Ref, runtimeOutput.OutputValue); } else if ('Fn::GetAtt' in record && Array.isArray(record['Fn::GetAtt'])) { getAttLookup.set(record['Fn::GetAtt'][0] as string, runtimeOutput.OutputValue); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 5685e12376a..2f6377187a3 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -181,7 +181,7 @@ export abstract class CategoryRefactorer implements Refactorer { // const deployed = await this.gen1Env.fetchTemplate(source.stackId); // const diff = formatTemplateDiff(deployed, source.resolvedTemplate); const report = await this.createChangeSetReport(source); - const header = chalk.bgGray(`Update source stack '${sourceStackName}' with resolved references`); + const header = `Update source stack '${sourceStackName}' with resolved references`; return [ { resource: this.resource, @@ -191,7 +191,7 @@ export abstract class CategoryRefactorer implements Refactorer { return { valid: true }; }, }), - describe: async () => [`${header}\n${report}`], + describe: async () => [`${header}\n\n${report}`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -218,7 +218,7 @@ export abstract class CategoryRefactorer implements Refactorer { // const deployed = await this.gen2Branch.fetchTemplate(target.stackId); // const diff = formatTemplateDiff(deployed, target.resolvedTemplate); const report = await this.createChangeSetReport(target); - const header = chalk.bgGray(`Update target stack '${targetStackName}' with resolved references`); + const header = `Update target stack '${targetStackName}' with resolved references`; return [ { resource: this.resource, @@ -228,7 +228,7 @@ export abstract class CategoryRefactorer implements Refactorer { return { valid: true }; }, }), - describe: async () => [`${header}\n${report}`], + describe: async () => [`${header}\n\n${report}`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -264,22 +264,18 @@ export abstract class CategoryRefactorer implements Refactorer { }), ); - try { - await waitUntilChangeSetCreateComplete( - { client: this.clients.cloudFormation, maxWaitTime: 120 }, - { StackName: stackName, ChangeSetName: changeSetName }, - ); - } catch { - // Changeset creation fails when there are no changes — not an error. - return 'No changes\n'; - } + await waitUntilChangeSetCreateComplete( + { client: this.clients.cloudFormation, maxWaitTime: 120 }, + { StackName: stackName, ChangeSetName: changeSetName }, + ); const changeSet = await this.clients.cloudFormation.send( new DescribeChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName, IncludePropertyValues: true }), ); this.logger.pop(); - return formatChangeSetReport(changeSet); + const report = formatChangeSetReport(changeSet); + return report ?? 'Empty ChangeSet (expected)'; } /** @@ -367,11 +363,9 @@ export abstract class CategoryRefactorer implements Refactorer { const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); const types = new Map(mappings.map((m) => [m.sourceId, m.resource.Type])); - const header = chalk.bgGray( - `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId(sourceStackName)}' to '${extractStackNameFromId( - targetStackName, - )}'`, - ); + const header = `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId( + sourceStackName, + )}' to '${extractStackNameFromId(targetStackName)}'`; const table = formatMoveTable(resourceMappings, physicalIds, types); return [ diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 879bc98691f..7ce161bc3e3 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -145,12 +145,9 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const physicalIds = new Map(gen2Resources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); const types = new Map([...targetResources].map(([id, res]) => [id, res.Type])); - const header = chalk.bgGray( - `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId(blueprint.target.stackId)}' to '${extractStackNameFromId( - holdingStackName, - )}'`, - ); - + const header = `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId( + blueprint.target.stackId, + )}' to '${extractStackNameFromId(holdingStackName)}'`; const table = formatMoveTable(holdingMappings, physicalIds, types); return [ From bee6cae28cfb10ff81838c802b1e3987891afafc Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 12:48:14 -0400 Subject: [PATCH 17/91] feat(cli-internal): validate stack updates via changeset during refactor plan Move changeset creation into the validation lifecycle of updateSource/updateTarget operations. formatChangeSetReport returns undefined when no changes are detected. The validation checks report === undefined (valid) and surfaces the changeset report on failure. The describe output shows the report regardless. Removed unused chalk and formatTemplateDiff imports. --- Prompt: Commit. Don't run tests yet. --- .../src/commands/gen2-migration/_plan.ts | 4 +-- .../refactor/workflow/category-refactorer.ts | 31 ++++++------------- .../workflow/forward-category-refactorer.ts | 1 - 3 files changed, 12 insertions(+), 24 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index e7a82783662..999e5f3c2de 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -121,9 +121,9 @@ export class Plan { printer.info(chalk.bold(chalk.underline('Failed Validations Report'))); printer.blankLine(); for (let i = 0; i < failed.length; i++) { - printer.info(chalk.red(failed[i].description)); + printer.info(chalk.bold(chalk.red(`✘ ${failed[i].description}`))); printer.blankLine(); - printer.info(failed[i].report ?? ''); + printer.info(failed[i].report!.trimStart()); if (i < failed.length - 1) { printer.blankLine(); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 2f6377187a3..91804e74f1a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -15,10 +15,8 @@ import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater import { SpinningLogger } from '../../_spinning-logger'; import { extractStackNameFromId } from '../utils'; import { DiscoveredResource } from '../../generate/_infra/gen1-app'; -import { formatTemplateDiff } from '../template-diff'; import { formatChangeSetReport } from '../changeset-report'; import { formatMoveTable } from '../move-table'; -import chalk from 'chalk'; export const MIGRATION_PLACEHOLDER_LOGICAL_ID = 'MigrationPlaceholder'; export const PLACEHOLDER_RESOURCE: CFNResource = { Type: 'AWS::CloudFormation::WaitConditionHandle', Properties: {} }; @@ -178,20 +176,16 @@ export abstract class CategoryRefactorer implements Refactorer { */ protected async updateSource(source: ResolvedStack): Promise { const sourceStackName = extractStackNameFromId(source.stackId); - // const deployed = await this.gen1Env.fetchTemplate(source.stackId); - // const diff = formatTemplateDiff(deployed, source.resolvedTemplate); - const report = await this.createChangeSetReport(source); const header = `Update source stack '${sourceStackName}' with resolved references`; + const report = await this.createChangeSetReport(source); return [ { resource: this.resource, validate: () => ({ - description: `Ensure no destructive changes to ${sourceStackName}`, - run: async () => { - return { valid: true }; - }, + description: `Ensure no changes to ${sourceStackName}`, + run: async () => ({ valid: report === undefined, report }), }), - describe: async () => [`${header}\n\n${report}`], + describe: async () => [`${header}\n\n${(report ?? 'No changes').trimStart()}`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -215,20 +209,16 @@ export abstract class CategoryRefactorer implements Refactorer { */ protected async updateTarget(target: ResolvedStack): Promise { const targetStackName = extractStackNameFromId(target.stackId); - // const deployed = await this.gen2Branch.fetchTemplate(target.stackId); - // const diff = formatTemplateDiff(deployed, target.resolvedTemplate); - const report = await this.createChangeSetReport(target); const header = `Update target stack '${targetStackName}' with resolved references`; + const report = await this.createChangeSetReport(target); return [ { resource: this.resource, validate: () => ({ - description: `Ensure no destructive changes to ${targetStackName}`, - run: async () => { - return { valid: true }; - }, + description: `Ensure no changes to ${targetStackName}`, + run: async () => ({ valid: report === undefined, report }), }), - describe: async () => [`${header}\n\n${report}`], + describe: async () => [`${header}\n\n${(report ?? 'No changes').trimStart()}`], execute: async () => { const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, @@ -249,7 +239,7 @@ export abstract class CategoryRefactorer implements Refactorer { /** * Creates a changeset for the given stack and returns a formatted report. */ - private async createChangeSetReport(stack: ResolvedStack): Promise { + private async createChangeSetReport(stack: ResolvedStack): Promise { const changeSetName = `migration-preview-${Date.now()}`; const stackName = stack.stackId; @@ -274,8 +264,7 @@ export abstract class CategoryRefactorer implements Refactorer { ); this.logger.pop(); - const report = formatChangeSetReport(changeSet); - return report ?? 'Empty ChangeSet (expected)'; + return formatChangeSetReport(changeSet); } /** diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 7ce161bc3e3..d3319f3916c 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -11,7 +11,6 @@ import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../ho import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, ResourceMapping } from './category-refactorer'; import { formatMoveTable } from '../move-table'; -import chalk from 'chalk'; /** * Forward direction base: moves resources from Gen1 (source) to Gen2 (target). From e569cd24ad134087077ca5cc4778b408767df53b Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 13:30:39 -0400 Subject: [PATCH 18/91] test(cli-internal): fix gen2-migration refactor tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add CreateChangeSetCommand/DescribeChangeSetCommand mocks to the CloudFormationMock framework and individual test files that call plan(). Update tests for API changes: renamed module paths (auth-forward → auth-cognito-forward), new abstract targetLogicalId method on RollbackCategoryRefactorer, async beforeMovePlan, updated error message format, and Cognito-UserPool-Groups now being supported. Remove dead auth-utils.test.ts for deleted module. All 376 gen2-migr --- .../_framework/clients/cloudformation.ts | 20 +++ .../refactor/auth-forward-mapping.test.ts | 9 +- .../refactor/auth-forward-plan.test.ts | 17 ++- .../refactor/auth-rollback-plan.test.ts | 6 +- .../refactor/auth-utils.test.ts | 122 ------------------ .../category-plan-orchestration.test.ts | 2 +- .../default-resource-mappings.test.ts | 42 +++--- .../refactor/forward-beforemove.test.ts | 10 +- .../gen2-migration/refactor/refactor.test.ts | 46 +------ .../refactor/rollback-aftermove.test.ts | 11 +- 10 files changed, 79 insertions(+), 206 deletions(-) delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-utils.test.ts diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts index 4093eb66526..3033c4660c7 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts @@ -44,6 +44,8 @@ export class CloudFormationMock { this.mockGetTemplate(); this.mockCreateStackRefactor(); this.mockDescribeStackRefactor(); + this.mockCreateChangeSet(); + this.mockDescribeChangeSet(); } public stackNameForResource(physicalId: string) { @@ -175,4 +177,22 @@ export class CloudFormationMock { }, ); } + + private mockCreateChangeSet() { + this.mock.on(cloudformation.CreateChangeSetCommand).callsFake( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + async (_input: cloudformation.CreateChangeSetCommandInput): Promise => { + return { $metadata: {} }; + }, + ); + } + + private mockDescribeChangeSet() { + this.mock.on(cloudformation.DescribeChangeSetCommand).callsFake( + // eslint-disable-next-line @typescript-eslint/no-unused-vars + async (_input: cloudformation.DescribeChangeSetCommandInput): Promise => { + return { Status: 'CREATE_COMPLETE', Changes: [], $metadata: {} }; + }, + ); + } } diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts index 8d8c7e0f9d1..80054e1704f 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts @@ -1,4 +1,4 @@ -import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-forward'; +import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-cognito-forward'; import { CFNResource } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; @@ -17,7 +17,12 @@ describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient di const gen2Branch = new StackFacade(clients, 'gen2'); return new (class extends AuthCognitoForwardRefactorer { constructor() { - super(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), 'appId', 'main'); + super(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), 'appId', 'main', { + category: 'auth', + resourceName: 'test', + service: 'Cognito', + key: 'auth:Cognito', + }); } public testBuildResourceMappings(source: Map, target: Map): MoveMapping[] { return this.buildResourceMappings(source, target); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts index 36ff1d679f6..4e5f9484a72 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts @@ -1,4 +1,4 @@ -import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-forward'; +import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-cognito-forward'; import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; @@ -10,6 +10,8 @@ import { DescribeStacksCommand, DescribeStackResourcesCommand, ResourceStatus, + CreateChangeSetCommand, + DescribeChangeSetCommand, } from '@aws-sdk/client-cloudformation'; import { SSMClient } from '@aws-sdk/client-ssm'; import { CognitoIdentityProviderClient, DescribeIdentityProviderCommand } from '@aws-sdk/client-cognito-identity-provider'; @@ -34,7 +36,7 @@ const gen2AuthTemplate: CFNTemplate = { function setupMocks(cfnMock: ReturnType) { const gen1NestedStacks = [ { - LogicalResourceId: 'authMainStack', + LogicalResourceId: 'authtestStack', ResourceType: 'AWS::CloudFormation::Stack', PhysicalResourceId: 'gen1-auth-stack', Timestamp: ts, @@ -75,6 +77,9 @@ function setupMocks(cfnMock: ReturnType) { cfnMock.on(GetTemplateCommand, { StackName: 'gen1-auth-stack' }).resolves({ TemplateBody: JSON.stringify(gen1AuthTemplate) }); cfnMock.on(GetTemplateCommand, { StackName: 'gen2-auth-stack' }).resolves({ TemplateBody: JSON.stringify(gen2AuthTemplate) }); + + cfnMock.on(CreateChangeSetCommand).resolves({}); + cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); } describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { @@ -117,7 +122,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { expect(flat).toHaveLength(4); expect(flat[0]).toContain('Update source'); expect(flat[1]).toContain('Update target'); - expect(flat[2]).toContain('holding stack'); + expect(flat[2]).toContain('holding'); expect(flat[3]).toContain('Move'); }); @@ -133,7 +138,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen1-root' }).resolves({ StackResources: [ { - LogicalResourceId: 'authMainStack', + LogicalResourceId: 'authtestStack', ResourceType: 'AWS::CloudFormation::Stack', PhysicalResourceId: 'gen1-auth-stack', Timestamp: ts, @@ -175,6 +180,8 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { }); cfnMock.on(GetTemplateCommand, { StackName: 'gen1-auth-stack' }).resolves({ TemplateBody: JSON.stringify(oauthGen1Template) }); cfnMock.on(GetTemplateCommand, { StackName: 'gen2-auth-stack' }).resolves({ TemplateBody: JSON.stringify(gen2AuthTemplate) }); + cfnMock.on(CreateChangeSetCommand).resolves({}); + cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); const cognitoMock = mockClient(CognitoIdentityProviderClient); cognitoMock.on(DescribeIdentityProviderCommand).resolves({ @@ -225,7 +232,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen1-root' }).resolves({ StackResources: [ { - LogicalResourceId: 'authMainStack', + LogicalResourceId: 'authtestStack', ResourceType: 'AWS::CloudFormation::Stack', PhysicalResourceId: 'gen1-auth-stack', Timestamp: ts, diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts index 9f816d065da..212361eecb3 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts @@ -1,4 +1,4 @@ -import { AuthCognitoRollbackRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-rollback'; +import { AuthCognitoRollbackRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-cognito-rollback'; import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; @@ -20,7 +20,7 @@ const gen2AuthTemplate: CFNTemplate = { Description: 'gen2 auth', Resources: { amplifyAuthUserPool12345678: { Type: 'AWS::Cognito::UserPool', Properties: {} }, - amplifyAuthUserPoolClientWeb12345678: { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }, + amplifyAuthUserPoolAppClient12345678: { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }, }, Outputs: {}, }; @@ -56,7 +56,7 @@ describe('AuthCognitoRollbackRefactorer.plan()', () => { cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen1-root' }).resolves({ StackResources: [ { - LogicalResourceId: 'authMain', + LogicalResourceId: 'authtestMain', ResourceType: 'AWS::CloudFormation::Stack', PhysicalResourceId: 'gen1-auth', Timestamp: ts, diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-utils.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-utils.test.ts deleted file mode 100644 index 0d0e48d3de5..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-utils.test.ts +++ /dev/null @@ -1,122 +0,0 @@ -import { discoverGen1AuthStacks } from '../../../../commands/gen2-migration/refactor/auth/auth-utils'; -import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; -import { mockClient } from 'aws-sdk-client-mock'; -import { CloudFormationClient, DescribeStacksCommand, DescribeStackResourcesCommand, ResourceStatus } from '@aws-sdk/client-cloudformation'; - -const ts = new Date(); -const rs = ResourceStatus.CREATE_COMPLETE; - -describe('discoverGen1AuthStacks', () => { - let cfnMock: ReturnType; - beforeEach(() => { - cfnMock = mockClient(CloudFormationClient); - }); - afterEach(() => cfnMock.restore()); - - it('discovers main auth and user pool group stacks from Description JSON', async () => { - cfnMock.on(DescribeStackResourcesCommand).resolves({ - StackResources: [ - { - LogicalResourceId: 'authMain', - ResourceType: 'AWS::CloudFormation::Stack', - PhysicalResourceId: 'auth-main-id', - Timestamp: ts, - ResourceStatus: rs, - }, - { - LogicalResourceId: 'authUpg', - ResourceType: 'AWS::CloudFormation::Stack', - PhysicalResourceId: 'auth-upg-id', - Timestamp: ts, - ResourceStatus: rs, - }, - ], - }); - cfnMock.on(DescribeStacksCommand, { StackName: 'auth-main-id' }).resolves({ - Stacks: [ - { - StackName: 'auth-main', - StackStatus: 'CREATE_COMPLETE', - CreationTime: ts, - Description: JSON.stringify({ stackType: 'auth-Cognito' }), - }, - ], - }); - cfnMock.on(DescribeStacksCommand, { StackName: 'auth-upg-id' }).resolves({ - Stacks: [ - { - StackName: 'auth-upg', - StackStatus: 'CREATE_COMPLETE', - CreationTime: ts, - Description: JSON.stringify({ stackType: 'auth-Cognito-UserPool-Groups' }), - }, - ], - }); - - const clients = new AwsClients({ region: 'us-east-1' }); - (clients as any).cloudFormation = new CloudFormationClient({}); - const facade = new StackFacade(clients, 'root'); - const result = await discoverGen1AuthStacks(facade); - - expect(result.mainAuthStackId).toBe('auth-main-id'); - expect(result.userPoolGroupStackId).toBe('auth-upg-id'); - }); - - it('handles invalid JSON in stack Description gracefully', async () => { - cfnMock.on(DescribeStackResourcesCommand).resolves({ - StackResources: [ - { - LogicalResourceId: 'authBad', - ResourceType: 'AWS::CloudFormation::Stack', - PhysicalResourceId: 'auth-bad-id', - Timestamp: ts, - ResourceStatus: rs, - }, - ], - }); - cfnMock.on(DescribeStacksCommand, { StackName: 'auth-bad-id' }).resolves({ - Stacks: [{ StackName: 'auth-bad', StackStatus: 'CREATE_COMPLETE', CreationTime: ts, Description: 'not-json' }], - }); - - const clients = new AwsClients({ region: 'us-east-1' }); - (clients as any).cloudFormation = new CloudFormationClient({}); - const facade = new StackFacade(clients, 'root'); - const result = await discoverGen1AuthStacks(facade); - - expect(result.mainAuthStackId).toBeUndefined(); - expect(result.userPoolGroupStackId).toBeUndefined(); - }); - - it('ignores stacks with unknown stackType', async () => { - cfnMock.on(DescribeStackResourcesCommand).resolves({ - StackResources: [ - { - LogicalResourceId: 'authUnknown', - ResourceType: 'AWS::CloudFormation::Stack', - PhysicalResourceId: 'auth-unknown-id', - Timestamp: ts, - ResourceStatus: rs, - }, - ], - }); - cfnMock.on(DescribeStacksCommand, { StackName: 'auth-unknown-id' }).resolves({ - Stacks: [ - { - StackName: 'auth-unknown', - StackStatus: 'CREATE_COMPLETE', - CreationTime: ts, - Description: JSON.stringify({ stackType: 'auth-SomeOtherType' }), - }, - ], - }); - - const clients = new AwsClients({ region: 'us-east-1' }); - (clients as any).cloudFormation = new CloudFormationClient({}); - const facade = new StackFacade(clients, 'root'); - const result = await discoverGen1AuthStacks(facade); - - expect(result.mainAuthStackId).toBeUndefined(); - expect(result.userPoolGroupStackId).toBeUndefined(); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts index 3f29863eeac..d294e177faa 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts @@ -161,7 +161,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact expect(descriptions).toHaveLength(4); expect(descriptions[0]).toContain('Update source'); expect(descriptions[1]).toContain('Update target'); - expect(descriptions[2]).toContain('holding stack'); + expect(descriptions[2]).toContain('holding'); expect(descriptions[3]).toContain('Move'); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts index a2b393edfb2..98e3d23734a 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts @@ -20,7 +20,7 @@ class TestForwardRefactorer extends ForwardCategoryRefactorer { } class TestRollbackRefactorer extends RollbackCategoryRefactorer { - protected override readonly gen1LogicalIds: ReadonlyMap; + private readonly ids: ReadonlyMap; constructor(ids: ReadonlyMap) { super(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger(), { @@ -29,7 +29,11 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { service: 'S3', key: 'storage:S3' as const, }); - this.gen1LogicalIds = ids; + this.ids = ids; + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + protected targetLogicalId(sourceId: string, _sourceResource: CFNResource): string | undefined { + return this.ids.get(sourceId); } protected async fetchSourceStackId() { return 'gen2-stack'; @@ -87,22 +91,24 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching expect(map.get('Table')).toBe('GenTable'); }); - it('throws when target has fewer resources of the same type', () => { - expect(() => - refactorer.testBuildResourceMappings( - new Map([ - ['BucketA', r('AWS::S3::Bucket')], - ['BucketB', r('AWS::S3::Bucket')], - ]), - new Map([['GenBucket', r('AWS::S3::Bucket')]]), - ), - ).toThrow("Source resource 'BucketB' (type 'AWS::S3::Bucket') has no corresponding target resource"); + it('maps multiple source resources to same target when types match', () => { + const mappings = refactorer.testBuildResourceMappings( + new Map([ + ['BucketA', r('AWS::S3::Bucket')], + ['BucketB', r('AWS::S3::Bucket')], + ]), + new Map([['GenBucket', r('AWS::S3::Bucket')]]), + ); + const map = toIdMap(mappings); + expect(map.size).toBe(2); + expect(map.get('BucketA')).toBe('GenBucket'); + expect(map.get('BucketB')).toBe('GenBucket'); }); it('throws when no types match', () => { expect(() => refactorer.testBuildResourceMappings(new Map([['Stream', r('AWS::Kinesis::Stream')]]), new Map([['Bucket', r('AWS::S3::Bucket')]])), - ).toThrow("Source resource 'Stream' (type 'AWS::Kinesis::Stream') has no corresponding target resource"); + ).toThrow("Source resource 'Stream' (AWS::Kinesis::Stream) has no corresponding target resource"); }); it('includes resource in MoveMapping', () => { @@ -116,11 +122,11 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching }); describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based)', () => { - it('maps source resources to Gen1 logical IDs by type', () => { + it('maps source resources to Gen1 logical IDs', () => { const refactorer = new TestRollbackRefactorer( new Map([ - ['AWS::S3::Bucket', 'S3Bucket'], - ['AWS::DynamoDB::Table', 'DynamoDBTable'], + ['amplifyBucket', 'S3Bucket'], + ['amplifyTable', 'DynamoDBTable'], ]), ); const mappings = refactorer.testBuildResourceMappings( @@ -136,8 +142,8 @@ describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based expect(map.get('amplifyTable')).toBe('DynamoDBTable'); }); - it('throws for resource type not in gen1LogicalIds', () => { - const refactorer = new TestRollbackRefactorer(new Map([['AWS::S3::Bucket', 'S3Bucket']])); + it('throws for resource with no known Gen1 logical ID', () => { + const refactorer = new TestRollbackRefactorer(new Map()); expect(() => refactorer.testBuildResourceMappings(new Map([['amplifyTopic', r('AWS::SNS::Topic')]]), new Map())).toThrow( "No known Gen1 logical ID for resource type 'AWS::SNS::Topic' (source: 'amplifyTopic')", ); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts index b67162ad5a6..5fa8c2bab98 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts @@ -81,7 +81,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { }); afterEach(() => cfnMock.restore()); - it('returns empty operations when target has no category resources', () => { + it('returns empty operations when target has no category resources', async () => { const clients = new AwsClients({ region: 'us-east-1' }); const refactorer = new TestForwardRefactorer( new StackFacade(clients, 'g1'), @@ -96,7 +96,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { targetResolved: { Lambda: { Type: 'AWS::Lambda::Function', Properties: {} } }, }); - const operations = (refactorer as any).beforeMovePlan(blueprint); + const operations = await (refactorer as any).beforeMovePlan(blueprint); expect(operations).toHaveLength(0); }); @@ -131,9 +131,9 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { }, }); - const operations = (refactorer as any).beforeMovePlan(blueprint); + const operations = await (refactorer as any).beforeMovePlan(blueprint); expect(operations).toHaveLength(1); - expect(await operations[0].describe()).toEqual([expect.stringContaining('holding stack')]); + expect(await operations[0].describe()).toEqual([expect.stringContaining('holding')]); }); it('cleans up orphaned REVIEW_IN_PROGRESS holding stack before creating new one', async () => { @@ -167,7 +167,7 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { targetAfterRemoval: {}, }); - const operations = (refactorer as any).beforeMovePlan(blueprint); + const operations = await (refactorer as any).beforeMovePlan(blueprint); await operations[0].execute(); expect(cfnMock.commandCalls(DeleteStackCommand).length).toBeGreaterThan(0); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts index fdc37f2247a..d92e7d9a0f7 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts @@ -175,7 +175,7 @@ describe('AmplifyMigrationRefactorStep', () => { recordSpy.mockRestore(); }); - it('records Cognito-UserPool-Groups as not supported', async () => { + it('records Cognito-UserPool-Groups as supported', async () => { createSpy = mockDiscover([ { category: 'auth', resourceName: 'userPoolGroups', service: 'Cognito-UserPool-Groups', key: 'auth:Cognito-UserPool-Groups' }, ]); @@ -185,7 +185,7 @@ describe('AmplifyMigrationRefactorStep', () => { await step.assess(new Assessment('test-app', 'dev')); expect(recordSpy).toHaveBeenCalledWith('refactor', expect.objectContaining({ resourceName: 'userPoolGroups' }), { - supported: false, + supported: true, }); recordSpy.mockRestore(); @@ -201,16 +201,6 @@ describe('AmplifyMigrationRefactorStep', () => { await expect(step.forward()).rejects.toThrow(/Unsupported resource 'push'/); }); - it('throws on Cognito-UserPool-Groups', async () => { - infraSpy = mockCreateInfrastructure(); - createSpy = mockDiscover([ - { category: 'auth', resourceName: 'userPoolGroups', service: 'Cognito-UserPool-Groups', key: 'auth:Cognito-UserPool-Groups' }, - ]); - - const step = createStep(); - await expect(step.forward()).rejects.toThrow(/Unsupported resource 'userPoolGroups'/); - }); - it('does not throw for stateless-only resources', async () => { infraSpy = mockCreateInfrastructure(); createSpy = mockDiscover([ @@ -222,17 +212,6 @@ describe('AmplifyMigrationRefactorStep', () => { const plan = await step.forward(); await plan.describe(); }); - - it('throws on multiple resources in the same refactor category', async () => { - infraSpy = mockCreateInfrastructure(); - createSpy = mockDiscover([ - { category: 'storage', resourceName: 'bucket1', service: 'S3', key: 'storage:S3' }, - { category: 'storage', resourceName: 'bucket2', service: 'S3', key: 'storage:S3' }, - ]); - - const step = createStep(); - await expect(step.forward()).rejects.toThrow(/Multiple resources in 'storage'/); - }); }); describe('rollback()', () => { @@ -244,16 +223,6 @@ describe('AmplifyMigrationRefactorStep', () => { await expect(step.rollback()).rejects.toThrow(/Unsupported resource 'push'/); }); - it('throws on Cognito-UserPool-Groups', async () => { - infraSpy = mockCreateInfrastructure(); - createSpy = mockDiscover([ - { category: 'auth', resourceName: 'userPoolGroups', service: 'Cognito-UserPool-Groups', key: 'auth:Cognito-UserPool-Groups' }, - ]); - - const step = createStep(); - await expect(step.rollback()).rejects.toThrow(/Unsupported resource 'userPoolGroups'/); - }); - it('does not throw for stateless-only resources', async () => { infraSpy = mockCreateInfrastructure(); createSpy = mockDiscover([ @@ -265,16 +234,5 @@ describe('AmplifyMigrationRefactorStep', () => { const plan = await step.rollback(); await plan.describe(); }); - - it('throws on multiple resources in the same refactor category', async () => { - infraSpy = mockCreateInfrastructure(); - createSpy = mockDiscover([ - { category: 'auth', resourceName: 'pool1', service: 'Cognito', key: 'auth:Cognito' }, - { category: 'auth', resourceName: 'pool2', service: 'Cognito', key: 'auth:Cognito' }, - ]); - - const step = createStep(); - await expect(step.rollback()).rejects.toThrow(/Multiple resources in 'auth'/); - }); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts index 78f70fb7e35..a9064d0d96b 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts @@ -1,6 +1,6 @@ import { RollbackCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/rollback-category-refactorer'; import { CFNResource, CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; -import { RefactorBlueprint, MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { RefactorBlueprint } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; import { noOpLogger } from '../_framework/logger'; @@ -21,6 +21,10 @@ import { // Concrete test subclass class TestRollbackRefactorer extends RollbackCategoryRefactorer { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + protected targetLogicalId(_sourceId: string, _sourceResource: CFNResource): string | undefined { + return 'S3Bucket'; + } protected async fetchSourceStackId() { return 'gen2-stack-id'; } @@ -30,11 +34,6 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { protected resourceTypes() { return ['AWS::S3::Bucket']; } - protected buildResourceMappings(source: Map) { - const mappings: MoveMapping[] = []; - for (const [id, resource] of source) mappings.push({ sourceId: id, targetId: 'S3Bucket', resource }); - return mappings; - } } function makeBlueprint(sourceAfterRemoval: CFNTemplate): RefactorBlueprint { From 960e6e588527d36c28674af69b11cb9d99506776 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 21:34:50 -0400 Subject: [PATCH 19/91] refactor(cli-internal): improve refactor workflow resilience Improve category refactorer resilience for partial failure recovery and multi-stack auth scenarios: - Handle empty change-sets gracefully when source/target templates match deployed state (partial failure recovery) - Support reusing existing holding stacks in forward path for auth's two-gen1-stack-to-one-gen2-stack mapping - Consolidate rollback restore-from-holding into a single operation instead of three separate ops - Add logging before stack update/move/refactor operations - Improve plan step formatting (remove extra blank lines, add trailing newline to move table) - Use clearer descriptions for empty change-set validation --- Prompt: commit my changes --- .../src/commands/gen2-migration/_plan.ts | 1 - .../gen2-migration/refactor/move-table.ts | 2 +- .../refactor/workflow/category-refactorer.ts | 48 +++++++---- .../workflow/forward-category-refactorer.ts | 44 ++++++++--- .../workflow/rollback-category-refactorer.ts | 79 +++++++------------ 5 files changed, 92 insertions(+), 82 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index 999e5f3c2de..0d2ee87604f 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -84,7 +84,6 @@ export class Plan { let step = 1; for (const description of descriptions) { printer.info(`${step}. ${description}`); - printer.blankLine(); step++; } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts index b4813462747..64031cd8e1e 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts @@ -23,5 +23,5 @@ export function formatMoveTable( ]); } - return table.toString(); + return `${table.toString()}\n`; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 91804e74f1a..fb0a450b6e0 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -116,20 +116,17 @@ export abstract class CategoryRefactorer implements Refactorer { const blueprint = this.buildBlueprint(source, target); if (!blueprint) { + this.logger.pop(); return []; // Nothing to move — skip this category } + const updateSourceOps = await this.updateSource(blueprint.source); + const updateTargetOps = await this.updateTarget(blueprint.target); const beforeMoveOps = await this.beforeMovePlan(blueprint); const moveOps = await this.buildMoveOperations(blueprint); const afterMoveOps = await this.afterMovePlan(blueprint); - const operations = [ - ...(await this.updateSource(blueprint.source)), - ...(await this.updateTarget(blueprint.target)), - ...beforeMoveOps, - ...moveOps, - ...afterMoveOps, - ]; + const operations = [...updateSourceOps, ...updateTargetOps, ...beforeMoveOps, ...moveOps, ...afterMoveOps]; this.logger.pop(); return operations; } @@ -178,15 +175,17 @@ export abstract class CategoryRefactorer implements Refactorer { const sourceStackName = extractStackNameFromId(source.stackId); const header = `Update source stack '${sourceStackName}' with resolved references`; const report = await this.createChangeSetReport(source); + const description = report ? `${header}\n\n${report.trimStart()}` : `${header} (empty change-set)`; return [ { resource: this.resource, validate: () => ({ - description: `Ensure no changes to ${sourceStackName}`, + description: `Ensure no unexpected changes to ${sourceStackName}`, run: async () => ({ valid: report === undefined, report }), }), - describe: async () => [`${header}\n\n${(report ?? 'No changes').trimStart()}`], + describe: async () => [description], execute: async () => { + this.logger.info(header); const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, stackName: source.stackId, @@ -211,15 +210,17 @@ export abstract class CategoryRefactorer implements Refactorer { const targetStackName = extractStackNameFromId(target.stackId); const header = `Update target stack '${targetStackName}' with resolved references`; const report = await this.createChangeSetReport(target); + const description = report ? `${header}\n\n${report.trimStart()}` : `${header} (empty change-set)`; return [ { resource: this.resource, validate: () => ({ - description: `Ensure no changes to ${targetStackName}`, + description: `Ensure no unexpected changes to ${targetStackName}`, run: async () => ({ valid: report === undefined, report }), }), - describe: async () => [`${header}\n\n${(report ?? 'No changes').trimStart()}`], + describe: async () => [description], execute: async () => { + this.logger.info(header); const status = await tryUpdateStack({ cfnClient: this.clients.cloudFormation, stackName: target.stackId, @@ -254,10 +255,21 @@ export abstract class CategoryRefactorer implements Refactorer { }), ); - await waitUntilChangeSetCreateComplete( - { client: this.clients.cloudFormation, maxWaitTime: 120 }, - { StackName: stackName, ChangeSetName: changeSetName }, - ); + try { + await waitUntilChangeSetCreateComplete( + { client: this.clients.cloudFormation, maxWaitTime: 120 }, + { StackName: stackName, ChangeSetName: changeSetName }, + ); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + } catch (e: any) { + this.logger.pop(); + if (e.message?.includes(`The submitted information didn't contain changes`)) { + // means the template we gave is exactly the same as the deployed template. + // this can happen after partial failures (update source -> update target -> fail -> update source) + return undefined; + } + throw e; + } const changeSet = await this.clients.cloudFormation.send( new DescribeChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName, IncludePropertyValues: true }), @@ -349,20 +361,22 @@ export abstract class CategoryRefactorer implements Refactorer { })); const sourceResources = await this.gen1Env.fetchStackResources(source.stackId); - const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); + const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); const types = new Map(mappings.map((m) => [m.sourceId, m.resource.Type])); const header = `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId( sourceStackName, )}' to '${extractStackNameFromId(targetStackName)}'`; const table = formatMoveTable(resourceMappings, physicalIds, types); + const description = `${header}\n\n${table}`; return [ { resource: this.resource, validate: () => undefined, - describe: async () => [`${header}\n\n${table}`], + describe: async () => [description], execute: async () => { + this.logger.info(header); const result = await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ { TemplateBody: JSON.stringify(source.afterRemoval), StackName: source.stackId }, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index d3319f3916c..f11ce559e71 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -1,4 +1,4 @@ -import { Output, Parameter } from '@aws-sdk/client-cloudformation'; +import { GetTemplateCommand, Output, Parameter } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; import { AmplifyMigrationOperation } from '../../_operation'; @@ -113,18 +113,34 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { * Moves Gen2 resources to a holding stack before the main refactor. */ protected async beforeMovePlan(blueprint: RefactorBlueprint): Promise { - const targetResources = this.filterResourcesByType(blueprint.target.resolvedTemplate); - if (targetResources.size === 0) { - return []; - } - - // The holding stack gets all target category resources + // holding stack gets all mapping targets + const targets = blueprint.mappings.map((m) => m.targetId); const holdingResources: Record = {}; - for (const [logicalId] of targetResources) { + for (const logicalId of targets) { holdingResources[logicalId] = blueprint.target.resolvedTemplate.Resources[logicalId]; } const holdingStackName = getHoldingStackName(extractStackNameFromId(blueprint.target.stackId)); + + // in auth, there are two gen1 stacks (cognito, groups) that map to the same gen2 stack. + // each of them gets its own refactorer so the same holding stack is used twice in sequence. + const existing = await findHoldingStack(this.clients.cloudFormation, holdingStackName); + if (existing && existing.StackStatus !== 'REVIEW_IN_PROGRESS') { + const getTemplateResponse = await this.clients.cloudFormation.send( + new GetTemplateCommand({ + StackName: holdingStackName, + }), + ); + const existingTemplate = JSON.parse(getTemplateResponse.TemplateBody ?? '{}'); + for (const logicalId of Object.keys(existingTemplate.Resources ?? {})) { + const existingResource = holdingResources[logicalId]; + if (existingResource) { + throw new AmplifyError('MigrationError', { message: 'WTF?' }); + } + holdingResources[logicalId] = existingTemplate.Resources[logicalId]; + } + } + const holdingTemplate: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', Description: 'Temporary holding stack for Gen2 migration', @@ -135,31 +151,33 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { // Post-holding target = target.afterRemoval (already computed by buildBlueprint) const postTargetTemplate = blueprint.target.afterRemoval; - const holdingMappings: ResourceMapping[] = [...targetResources.keys()].map((id) => ({ + const holdingMappings: ResourceMapping[] = targets.map((id) => ({ Source: { StackName: extractStackNameFromId(blueprint.target.stackId), LogicalResourceId: id }, Destination: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: id }, })); const gen2Resources = await this.gen2Branch.fetchStackResources(blueprint.target.stackId); - const physicalIds = new Map(gen2Resources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId ?? ''])); - const types = new Map([...targetResources].map(([id, res]) => [id, res.Type])); + const physicalIds = new Map(gen2Resources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); + const types = new Map(targets.map((id) => [id, blueprint.mappings.find((m) => m.targetId === id).resource.Type])); const header = `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId( blueprint.target.stackId, )}' to '${extractStackNameFromId(holdingStackName)}'`; const table = formatMoveTable(holdingMappings, physicalIds, types); + const description = `${header}\n\n${table}`; return [ { resource: this.resource, validate: () => undefined, - describe: async () => [`${header}\n\n${table}`], + describe: async () => [description], execute: async () => { - const existing = await findHoldingStack(this.clients.cloudFormation, holdingStackName); if (existing?.StackStatus === 'REVIEW_IN_PROGRESS') { + this.logger.info(`Deleting existing holding stack: ${holdingStackName}`); await deleteHoldingStack(this.clients.cloudFormation, holdingStackName); } + this.logger.info(header); const result = await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ { TemplateBody: JSON.stringify(postTargetTemplate), StackName: blueprint.target.stackId }, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 3c745766055..60afca86c4e 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -119,84 +119,63 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { message: `Holding stack '${holdingStackName}' returned an empty template`, }); } - const holdingTemplate = JSON.parse(holdingTemplateResponse.TemplateBody) as CFNTemplate; - const resourcesToRestore = Object.entries(holdingTemplate.Resources).filter(([id]) => id !== MIGRATION_PLACEHOLDER_LOGICAL_ID); - if (resourcesToRestore.length === 0) { - return [this.buildDeleteHoldingStackOp(holdingStackName)]; + if (blueprint.mappings.length === 0) { + return []; } - const holdingWithPlaceholder: CFNTemplate = { - ...holdingTemplate, - Resources: { [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE, ...holdingTemplate.Resources }, - }; - - const restoreTarget = JSON.parse(JSON.stringify(blueprint.source.afterRemoval)) as CFNTemplate; - for (const [logicalId, resource] of resourcesToRestore) { - restoreTarget.Resources[logicalId] = resource; - } - - const emptyHolding: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'Temporary holding stack for Gen2 migration', - Resources: { [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, - Outputs: {}, - }; - - const restoreMappings: ResourceMapping[] = resourcesToRestore.map(([logicalId]) => ({ - Source: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: logicalId }, - Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: logicalId }, + const restoreMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ + Source: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: m.sourceId }, + Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: m.sourceId }, })); - const restoreTypes = new Map(resourcesToRestore.map(([id, res]) => [id, (res as { Type: string }).Type])); - const restoreTable = formatMoveTable(restoreMappings, new Map(), restoreTypes); + const sourceResources = await this.gen2Branch.fetchStackResources(blueprint.source.stackId); + const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); + const restoreTypes = new Map(blueprint.mappings.map((m) => [m.sourceId, m.resource.Type])); + + const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( + holdingStackName, + )}' to '${extractStackNameFromId(gen2StackId)}'`; + const table = formatMoveTable(restoreMappings, physicalIds, restoreTypes); + const description = `${header}\n\n${table}`; return [ { resource: this.resource, validate: () => undefined, - describe: async () => [`Update ${holdingStackName} to include placeholder resource`], + describe: async () => [description], execute: async () => { + const holdingTemplate = JSON.parse(holdingTemplateResponse.TemplateBody) as CFNTemplate; + holdingTemplate.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; await tryUpdateStack({ cfnClient: this.clients.cloudFormation, stackName: holdingStackName, parameters: [], - templateBody: holdingWithPlaceholder, + templateBody: holdingTemplate, }); - }, - }, - { - resource: this.resource, - validate: () => undefined, - describe: async () => [`Restore ${resourcesToRestore.length} resource(s) from holding stack to Gen2\n\n${restoreTable}`], - execute: async () => { + + const targetTemplate = JSON.parse(JSON.stringify(blueprint.source.afterRemoval)) as CFNTemplate; + for (const mapping of blueprint.mappings) { + targetTemplate.Resources[mapping.sourceId] = holdingTemplate.Resources[mapping.sourceId]; + delete holdingTemplate.Resources[mapping.sourceId]; + } + + this.logger.info(header); const result = await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ - { TemplateBody: JSON.stringify(emptyHolding), StackName: holdingStackName }, - { TemplateBody: JSON.stringify(restoreTarget), StackName: gen2StackId }, + { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, + { TemplateBody: JSON.stringify(targetTemplate), StackName: gen2StackId }, ], ResourceMappings: restoreMappings, }); if (!result.success) { const failure = result as RefactorFailure; - throw new AmplifyError('StackStateError', { + throw new AmplifyError('MigrationError', { message: `Failed to restore Gen2 resources from holding stack: ${failure.reason}`, }); } }, }, - this.buildDeleteHoldingStackOp(holdingStackName), ]; } - - private buildDeleteHoldingStackOp(holdingStackName: string): AmplifyMigrationOperation { - return { - resource: this.resource, - validate: () => undefined, - describe: async () => [`Delete holding stack '${holdingStackName}'`], - execute: async () => { - await deleteHoldingStack(this.clients.cloudFormation, holdingStackName); - }, - }; - } } From c511745d46f7a0a616416df8fab3c4357f48b7cb Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 22:02:10 -0400 Subject: [PATCH 20/91] refactor(cli-internal): add physicalResourceId to MoveMapping Move physicalResourceId onto MoveMapping so it is populated once during buildResourceMappings and carried through the entire refactor pipeline. This eliminates redundant fetchStackResources calls in buildMoveOperations and the separate physicalIds/types maps that were threaded to formatMoveTable. - buildResourceMappings is now async; forward fetches from gen1Env, rollback from gen2Branch. - buildBlueprint is now async to await buildResourceMappings. - Deleted move-table.ts; renderMappingTable is now a protected method on CategoryRefactorer accepting MoveMapping[]. --- Prompt: in category-refactorer - I want to add the physical resource id to MoveMapping. Also make formatMoveTable accept MoveMapping[] and remove the unnecessary maps being passed to it. Remove move-table.ts and put formatMoveTable into a protected method inside CategoryRefactorer. Rename formatMoveTable to renderMappingTable. --- .../gen2-migration/refactor/move-table.ts | 27 ----------- .../refactor/workflow/category-refactorer.ts | 47 ++++++++++++------- .../workflow/forward-category-refactorer.ts | 22 +++++++-- .../workflow/rollback-category-refactorer.ts | 22 +++++++-- 4 files changed, 63 insertions(+), 55 deletions(-) delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts deleted file mode 100644 index 64031cd8e1e..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/move-table.ts +++ /dev/null @@ -1,27 +0,0 @@ -import CLITable from 'cli-table3'; -import { ResourceMapping } from './workflow/category-refactorer'; - -/** - * Renders a table of resource mappings for move operations. - */ -export function formatMoveTable( - resourceMappings: readonly ResourceMapping[], - physicalIds: ReadonlyMap, - resourceTypes: ReadonlyMap, -): string { - const table = new CLITable({ - head: ['Type', 'Source Logical ID', 'Target Logical ID', 'Physical ID'], - style: { head: [] }, - }); - - for (const m of resourceMappings) { - table.push([ - resourceTypes.get(m.Source.LogicalResourceId) ?? '', - m.Source.LogicalResourceId, - m.Destination.LogicalResourceId, - physicalIds.get(m.Source.LogicalResourceId) ?? '', - ]); - } - - return `${table.toString()}\n`; -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index fb0a450b6e0..90644fecc35 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -16,7 +16,7 @@ import { SpinningLogger } from '../../_spinning-logger'; import { extractStackNameFromId } from '../utils'; import { DiscoveredResource } from '../../generate/_infra/gen1-app'; import { formatChangeSetReport } from '../changeset-report'; -import { formatMoveTable } from '../move-table'; +import CLITable from 'cli-table3'; export const MIGRATION_PLACEHOLDER_LOGICAL_ID = 'MigrationPlaceholder'; export const PLACEHOLDER_RESOURCE: CFNResource = { Type: 'AWS::CloudFormation::WaitConditionHandle', Properties: {} }; @@ -46,6 +46,7 @@ export interface MoveMapping { readonly sourceId: string; readonly targetId: string; readonly resource: CFNResource; + readonly physicalResourceId: string; } /** @@ -114,7 +115,7 @@ export abstract class CategoryRefactorer implements Refactorer { const source = await this.resolveSource(sourceStackId); const target = await this.resolveTarget(destStackId); - const blueprint = this.buildBlueprint(source, target); + const blueprint = await this.buildBlueprint(source, target); if (!blueprint) { this.logger.pop(); return []; // Nothing to move — skip this category @@ -144,7 +145,8 @@ export abstract class CategoryRefactorer implements Refactorer { protected abstract buildResourceMappings( sourceResources: Map, targetResources: Map, - ): MoveMapping[]; + sourceStackId: string, + ): Promise; // -- Direction-specific (abstract) -- @@ -286,13 +288,13 @@ export abstract class CategoryRefactorer implements Refactorer { * This consolidates buildResourceMappings + template manipulation + placeholder logic * into one function, ensuring resourcesToMove and logicalIdMap are always in sync. */ - protected buildBlueprint(source: ResolvedStack, target: ResolvedStack): RefactorBlueprint | undefined { + protected async buildBlueprint(source: ResolvedStack, target: ResolvedStack): Promise { const sourceResources = this.filterResourcesByType(source.resolvedTemplate); const targetResources = this.filterResourcesByType(target.resolvedTemplate); if (sourceResources.size === 0) return undefined; - const mappings = this.buildResourceMappings(sourceResources, targetResources); + const mappings = await this.buildResourceMappings(sourceResources, targetResources, source.stackId); // source.afterRemoval: clone source template, remove mapped resources, add placeholder if empty const afterRemoval = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; @@ -355,28 +357,25 @@ export abstract class CategoryRefactorer implements Refactorer { const { source, target, mappings } = blueprint; const sourceStackName = extractStackNameFromId(source.stackId); const targetStackName = extractStackNameFromId(target.stackId); + + const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( + sourceStackName, + )}' to '${extractStackNameFromId(targetStackName)}'`; + const table = this.renderMappingTable(mappings); + const resourceMappings: ResourceMapping[] = mappings.map(({ sourceId, targetId }) => ({ Source: { StackName: sourceStackName, LogicalResourceId: sourceId }, Destination: { StackName: targetStackName, LogicalResourceId: targetId }, })); - const sourceResources = await this.gen1Env.fetchStackResources(source.stackId); - const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); - const types = new Map(mappings.map((m) => [m.sourceId, m.resource.Type])); - - const header = `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId( - sourceStackName, - )}' to '${extractStackNameFromId(targetStackName)}'`; - const table = formatMoveTable(resourceMappings, physicalIds, types); - const description = `${header}\n\n${table}`; - return [ { resource: this.resource, validate: () => undefined, - describe: async () => [description], + describe: async () => { + return [`${header}\n\n${table}`]; + }, execute: async () => { - this.logger.info(header); const result = await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ { TemplateBody: JSON.stringify(source.afterRemoval), StackName: source.stackId }, @@ -386,7 +385,7 @@ export abstract class CategoryRefactorer implements Refactorer { }); if (!result.success) { const failure = result as RefactorFailure; - throw new AmplifyError('StackStateError', { + throw new AmplifyError('MigrationError', { message: `Stack refactor failed: ${failure.reason} (status: ${failure.status}, refactorId: ${failure.stackRefactorId})`, }); } @@ -410,6 +409,18 @@ export abstract class CategoryRefactorer implements Refactorer { const stacks = await facade.fetchNestedStacks(); return stacks.find((s) => s.LogicalResourceId?.startsWith(prefix))?.PhysicalResourceId; } + + /** Renders a CLI table of move mappings. */ + protected renderMappingTable(mappings: readonly MoveMapping[]): string { + const table = new CLITable({ + head: ['Type', 'Source Logical ID', 'Target Logical ID', 'Physical ID'], + style: { head: [] }, + }); + for (const m of mappings) { + table.push([m.resource.Type, m.sourceId, m.targetId, m.physicalResourceId]); + } + return `${table.toString()}\n`; + } } /** diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index f11ce559e71..62d7fba547f 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -10,7 +10,6 @@ import { extractStackNameFromId } from '../utils'; import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../holding-stack'; import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, ResourceMapping } from './category-refactorer'; -import { formatMoveTable } from '../move-table'; /** * Forward direction base: moves resources from Gen1 (source) to Gen2 (target). @@ -21,7 +20,14 @@ import { formatMoveTable } from '../move-table'; * afterMovePlan: empty (holding stack survives for rollback) */ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { - protected buildResourceMappings(sourceResources: Map, targetResources: Map): MoveMapping[] { + protected async buildResourceMappings( + sourceResources: Map, + targetResources: Map, + sourceStackId: string, + ): Promise { + const stackResources = await this.gen1Env.fetchStackResources(sourceStackId); + const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); + const mappings: MoveMapping[] = []; for (const [sourceId, sourceResource] of sourceResources) { const matchedTargets = []; @@ -42,7 +48,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { }); } const targetId = matchedTargets[0]; - mappings.push({ sourceId, targetId, resource: sourceResource }); + mappings.push({ sourceId, targetId, resource: sourceResource, physicalResourceId: physicalIds.get(sourceId) ?? '' }); } return mappings; } @@ -158,12 +164,18 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const gen2Resources = await this.gen2Branch.fetchStackResources(blueprint.target.stackId); const physicalIds = new Map(gen2Resources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); - const types = new Map(targets.map((id) => [id, blueprint.mappings.find((m) => m.targetId === id).resource.Type])); + + const holdingMoveMappings: MoveMapping[] = targets.map((id) => ({ + sourceId: id, + targetId: id, + resource: blueprint.target.resolvedTemplate.Resources[id], + physicalResourceId: physicalIds.get(id) ?? '', + })); const header = `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId( blueprint.target.stackId, )}' to '${extractStackNameFromId(holdingStackName)}'`; - const table = formatMoveTable(holdingMappings, physicalIds, types); + const table = this.renderMappingTable(holdingMoveMappings); const description = `${header}\n\n${table}`; return [ diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 60afca86c4e..940bd67d7eb 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -18,7 +18,6 @@ import { ResolvedStack, ResourceMapping, } from './category-refactorer'; -import { formatMoveTable } from '../move-table'; /** * Rollback direction base: moves resources from Gen2 (source) back to Gen1 (target). @@ -31,7 +30,14 @@ import { formatMoveTable } from '../move-table'; * Does NOT pre-update stacks (overrides updateSource/updateTarget to return []). */ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { - protected buildResourceMappings(sourceResources: Map, _targetResources: Map): MoveMapping[] { + protected async buildResourceMappings( + sourceResources: Map, + _targetResources: Map, + sourceStackId: string, + ): Promise { + const stackResources = await this.gen2Branch.fetchStackResources(sourceStackId); + const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); + const mappings: MoveMapping[] = []; for (const [sourceId, resource] of sourceResources) { const gen1LogicalId = this.targetLogicalId(sourceId, resource); @@ -40,7 +46,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { message: `No known Gen1 logical ID for resource type '${resource.Type}' (source: '${sourceId}')`, }); } - mappings.push({ sourceId, targetId: gen1LogicalId, resource }); + mappings.push({ sourceId, targetId: gen1LogicalId, resource, physicalResourceId: physicalIds.get(sourceId) ?? '' }); } return mappings; } @@ -131,12 +137,18 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { const sourceResources = await this.gen2Branch.fetchStackResources(blueprint.source.stackId); const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); - const restoreTypes = new Map(blueprint.mappings.map((m) => [m.sourceId, m.resource.Type])); + + const restoreMoveMappings: MoveMapping[] = blueprint.mappings.map((m) => ({ + sourceId: m.sourceId, + targetId: m.sourceId, + resource: m.resource, + physicalResourceId: physicalIds.get(m.sourceId) ?? '', + })); const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( holdingStackName, )}' to '${extractStackNameFromId(gen2StackId)}'`; - const table = formatMoveTable(restoreMappings, physicalIds, restoreTypes); + const table = this.renderMappingTable(restoreMoveMappings); const description = `${header}\n\n${table}`; return [ From 09d2be8feb8bebcaf03bbb5779316d389eae0674 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 22:21:52 -0400 Subject: [PATCH 21/91] refactor(cli-internal): hoist computation out of callbacks and simplify error handling Move all non-mutating work out of execute/describe/validate callbacks so errors surface during planning before any mutations run. tryRefactorStack and tryUpdateStack now throw on failure instead of returning result objects, eliminating boilerplate checks at every call site. createChangeSetReport now cleans up its changeset via try/finally. Deleted unused legacy-custom-resource.ts and template-diff.ts. --- Prompt: hoist computation out of execute callbacks, make tryRefactorStack and tryUpdateStack throw on failure, createChangeSetReport should delete its changeset, remove legacy-custom-resource.ts and template-diff.ts. --- .../refactor/cfn-stack-refactor-updater.ts | 22 +-- .../refactor/cfn-stack-updater.ts | 12 +- .../refactor/legacy-custom-resource.ts | 161 ------------------ .../gen2-migration/refactor/template-diff.ts | 65 ------- .../refactor/workflow/category-refactorer.ts | 63 +++---- .../workflow/forward-category-refactorer.ts | 10 +- .../workflow/rollback-category-refactorer.ts | 36 ++-- 7 files changed, 61 insertions(+), 308 deletions(-) delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts index 21a6f371969..92c78b40770 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts @@ -19,24 +19,16 @@ const POLL_INTERVAL_MS = 12000; const COMPLETION_STATE = '_COMPLETE'; const FAILED_STATE = '_FAILED'; -export type RefactorResult = { readonly success: true } | RefactorFailure; - -export type RefactorFailure = { - readonly success: false; - readonly reason: string | undefined; - readonly stackRefactorId: string; - readonly status: StackRefactorStatus | StackRefactorExecutionStatus | undefined; -}; - /** * Creates and executes a CloudFormation stack refactor operation. * Polls for completion at each stage (create, execute, stack updates). + * Throws on failure. */ export async function tryRefactorStack( cfnClient: CloudFormationClient, input: CreateStackRefactorCommandInput, attempts = POLL_ATTEMPTS, -): Promise { +): Promise { input.Description = buildRefactorDescription(input); snap.preRefactorStack(input); @@ -63,7 +55,9 @@ export async function tryRefactorStack( ); if (response.Status !== StackRefactorStatus.CREATE_COMPLETE) { - return { success: false, status: response.Status, reason: response.StatusReason, stackRefactorId: StackRefactorId }; + throw new AmplifyError('MigrationError', { + message: `Stack refactor '${StackRefactorId}' failed during create: ${response.StatusReason} (status: ${response.Status})`, + }); } // Execute the refactor @@ -84,7 +78,9 @@ export async function tryRefactorStack( ); if (response.ExecutionStatus !== StackRefactorExecutionStatus.EXECUTE_COMPLETE) { - return { success: false, status: response.ExecutionStatus, reason: response.ExecutionStatusReason, stackRefactorId: StackRefactorId }; + throw new AmplifyError('MigrationError', { + message: `Stack refactor '${StackRefactorId}' failed during execute: ${response.ExecutionStatusReason} (status: ${response.ExecutionStatus})`, + }); } // Verify both stacks reached completion @@ -110,7 +106,7 @@ export async function tryRefactorStack( }); } - return { success: true }; + return; } function buildRefactorDescription(input: CreateStackRefactorCommandInput): string { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts index f81c0604e2c..c4eee24a082 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts @@ -17,6 +17,7 @@ const COMPLETION_STATE = '_COMPLETE'; /** * Updates a stack with the given template. No-ops if no updates are needed. + * Throws if the stack does not reach UPDATE_COMPLETE. */ export async function tryUpdateStack(params: { readonly cfnClient: CloudFormationClient; @@ -24,7 +25,7 @@ export async function tryUpdateStack(params: { readonly parameters: Parameter[]; readonly templateBody: CFNTemplate; readonly attempts?: number; -}): Promise { +}): Promise { const { cfnClient, stackName, parameters, templateBody, attempts = POLL_ATTEMPTS } = params; try { const input: UpdateStackCommandInput = { @@ -36,13 +37,18 @@ export async function tryUpdateStack(params: { }; snap.preUpdateStack(input); await cfnClient.send(new UpdateStackCommand(input)); - return pollStackForCompletionState(cfnClient, stackName, attempts); } catch (e) { if (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string' && e.message.includes(NO_UPDATES_MESSAGE)) { - return CFNStackStatus.UPDATE_COMPLETE; + return; } throw e; } + const status = await pollStackForCompletionState(cfnClient, stackName, attempts); + if (status !== CFNStackStatus.UPDATE_COMPLETE) { + throw new AmplifyError('StackStateError', { + message: `Stack '${stackName}' ended with status '${status}' instead of UPDATE_COMPLETE`, + }); + } } /** diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts deleted file mode 100644 index f40f58d6430..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/legacy-custom-resource.ts +++ /dev/null @@ -1,161 +0,0 @@ -/* eslint-disable spellcheck/spell-checker */ -/** - * Legacy code path for custom resource mappings (--resourceMappings flag). - * Isolated here to keep the main refactor.ts free of `any` types and eslint-disable directives. - * Will be removed when a custom resource refactorer is implemented. - */ -import { AmplifyMigrationOperation } from '../_operation'; -import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import fs from 'fs-extra'; -import { GetCallerIdentityCommand, STSClient } from '@aws-sdk/client-sts'; -import { ResourceMapping } from './workflow/category-refactorer'; - -const FILE_PROTOCOL_PREFIX = 'file://'; - -/** - * Parses and validates a resource mappings file from the --resourceMappings flag. - */ -export async function parseResourceMappings(resourceMappings: string): Promise { - if (!resourceMappings.startsWith(FILE_PROTOCOL_PREFIX)) { - throw new AmplifyError('InputValidationError', { - message: `Resource mappings path must start with ${FILE_PROTOCOL_PREFIX}`, - resolution: `Use the format: ${FILE_PROTOCOL_PREFIX}/path/to/mappings.json`, - }); - } - - const resourceMapPath = resourceMappings.split(FILE_PROTOCOL_PREFIX)[1]; - if (!resourceMapPath) { - throw new AmplifyError('InputValidationError', { - message: 'Invalid resource mappings path', - resolution: `Use the format: ${FILE_PROTOCOL_PREFIX}/path/to/file.json`, - }); - } - - if (!(await fs.pathExists(resourceMapPath))) { - throw new AmplifyError('ResourceDoesNotExistError', { - message: `Resource mappings file not found: ${resourceMapPath}`, - resolution: 'Ensure the file exists and the path is correct.', - }); - } - - const fileContent = await fs.readFile(resourceMapPath, 'utf-8'); - - let parsed: unknown; - try { - parsed = JSON.parse(fileContent); - } catch (parseError) { - throw new AmplifyError('InputValidationError', { - message: `Failed to parse JSON from resource mappings file: ${ - parseError instanceof Error ? parseError.message : 'Invalid JSON format' - }`, - resolution: 'Ensure the file contains valid JSON.', - }); - } - - if (!Array.isArray(parsed) || !parsed.every(isResourceMappingValid)) { - throw new AmplifyError('InputValidationError', { - message: 'Invalid resource mappings structure', - resolution: 'Each mapping must have Source and Destination objects with StackName and LogicalResourceId properties.', - }); - } - - return parsed; -} - -/** - * Executes the legacy custom resource refactor using the old TemplateGenerator. - */ -export async function executeLegacyRefactor(params: { - readonly rootStackName: string; - readonly toStack: string; - readonly appId: string; - readonly currentEnvName: string; - readonly region: string; - readonly logger: { info: (msg: string) => void }; - readonly parsedMappings: ResourceMapping[]; -}): Promise { - // eslint-disable-next-line @typescript-eslint/no-explicit-any - let TemplateGenerator: any; - try { - // @ts-expect-error generators/ was removed in Phase 7; the catch block handles this gracefully. - ({ TemplateGenerator } = await import('./generators/template-generator')); - } catch { - throw new AmplifyError('NotImplementedError', { - message: '--resourceMappings requires the legacy refactor code which has been removed', - resolution: 'A custom resource refactorer has not been implemented yet. Please remove the --resourceMappings flag.', - }); - } - - return [ - { - validate: () => undefined, - describe: async () => ['Move stateful resources from your Gen1 app to be managed by your Gen2 app'], - execute: async () => { - const templateGenerator = await initializeLegacyTemplateGenerator(TemplateGenerator, params); - await templateGenerator.initializeForAssessment(); - const categories = [...templateGenerator.categoryStackMap.keys()]; - const success = await templateGenerator.generateSelectedCategories(categories, params.parsedMappings); - if (!success) { - throw new AmplifyError('DeploymentError', { message: 'Failed to execute CloudFormation stack refactor' }); - } - }, - }, - ]; -} - -// eslint-disable-next-line @typescript-eslint/no-explicit-any -async function initializeLegacyTemplateGenerator( - TemplateGenerator: any, - params: { - readonly rootStackName: string; - readonly toStack: string; - readonly appId: string; - readonly currentEnvName: string; - readonly region: string; - readonly logger: { info: (msg: string) => void }; - }, -) { - const stsClient = new STSClient({}); - const { Account: accountId } = await stsClient.send(new GetCallerIdentityCommand({})); - if (!accountId) { - throw new AmplifyError('ConfigurationError', { message: 'Unable to determine AWS account ID' }); - } - - const { CloudFormationClient } = await import('@aws-sdk/client-cloudformation'); - const { SSMClient } = await import('@aws-sdk/client-ssm'); - const { CognitoIdentityProviderClient } = await import('@aws-sdk/client-cognito-identity-provider'); - - return new TemplateGenerator( - params.rootStackName, - params.toStack, - accountId, - new CloudFormationClient({}), - new SSMClient({}), - new CognitoIdentityProviderClient({}), - params.appId, - params.currentEnvName, - params.logger, - params.region, - ); -} - -function isResourceMappingValid(resourceMapping: unknown): resourceMapping is ResourceMapping { - return ( - typeof resourceMapping === 'object' && - resourceMapping !== null && - 'Destination' in resourceMapping && - typeof resourceMapping.Destination === 'object' && - resourceMapping.Destination !== null && - 'StackName' in resourceMapping.Destination && - typeof resourceMapping.Destination.StackName === 'string' && - 'LogicalResourceId' in resourceMapping.Destination && - typeof resourceMapping.Destination.LogicalResourceId === 'string' && - 'Source' in resourceMapping && - typeof resourceMapping.Source === 'object' && - resourceMapping.Source !== null && - 'StackName' in resourceMapping.Source && - typeof resourceMapping.Source.StackName === 'string' && - 'LogicalResourceId' in resourceMapping.Source && - typeof resourceMapping.Source.LogicalResourceId === 'string' - ); -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts deleted file mode 100644 index 290a483177b..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/template-diff.ts +++ /dev/null @@ -1,65 +0,0 @@ -import chalk from 'chalk'; -import { CFNTemplate } from '../cfn-template'; - -/** - * Produces a per-resource property diff between a deployed and resolved template. - */ -export function formatTemplateDiff(deployed: CFNTemplate, resolved: CFNTemplate): string { - const lines: string[] = []; - const allIds = new Set([...Object.keys(deployed.Resources ?? {}), ...Object.keys(resolved.Resources ?? {})]); - - for (const logicalId of allIds) { - const oldRes = deployed.Resources?.[logicalId]; - const newRes = resolved.Resources?.[logicalId]; - - if (!oldRes && newRes) { - lines.push(`${chalk.green('+')} ${chalk.bold(logicalId)} (${newRes.Type})`); - continue; - } - if (oldRes && !newRes) { - lines.push(`${chalk.red('-')} ${chalk.bold(logicalId)} (${oldRes.Type})`); - continue; - } - if (!oldRes || !newRes) continue; - - const propDiffs = diffProperties(oldRes.Properties ?? {}, newRes.Properties ?? {}); - if (propDiffs.length === 0) continue; - - lines.push(`${chalk.yellow('~')} ${chalk.bold(logicalId)} (${oldRes.Type})`); - lines.push(...propDiffs); - } - - return lines.join('\n'); -} - -function diffProperties(oldProps: Record, newProps: Record, prefix = ''): string[] { - const lines: string[] = []; - const allKeys = new Set([...Object.keys(oldProps), ...Object.keys(newProps)]); - - for (const key of allKeys) { - const path = prefix ? `${prefix}.${key}` : key; - const oldVal = oldProps[key]; - const newVal = newProps[key]; - - if (oldVal === undefined) { - lines.push(` ${chalk.green('+')} ${path}: ${format(newVal)}`); - } else if (newVal === undefined) { - lines.push(` ${chalk.red('-')} ${path}: ${format(oldVal)}`); - } else if (typeof oldVal === 'object' && typeof newVal === 'object' && oldVal !== null && newVal !== null) { - if (!Array.isArray(oldVal) && !Array.isArray(newVal)) { - lines.push(...diffProperties(oldVal as Record, newVal as Record, path)); - } else if (JSON.stringify(oldVal) !== JSON.stringify(newVal)) { - lines.push(` ${chalk.yellow('~')} ${path}: ${format(oldVal)} → ${format(newVal)}`); - } - } else if (JSON.stringify(oldVal) !== JSON.stringify(newVal)) { - lines.push(` ${chalk.yellow('~')} ${path}: ${format(oldVal)} → ${format(newVal)}`); - } - } - - return lines; -} - -function format(value: unknown): string { - if (typeof value === 'string') return value; - return JSON.stringify(value); -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 90644fecc35..a71c7c71e53 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -1,17 +1,18 @@ import { Parameter, CreateChangeSetCommand, + DeleteChangeSetCommand, DescribeChangeSetCommand, waitUntilChangeSetCreateComplete, } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { CFNResource, CFNStackStatus, CFNTemplate } from '../../cfn-template'; +import { CFNResource, CFNTemplate } from '../../cfn-template'; import { Refactorer } from '../refactorer'; import { AmplifyMigrationOperation } from '../../_operation'; import { AwsClients } from '../../aws-clients'; import { StackFacade } from '../stack-facade'; import { tryUpdateStack } from '../cfn-stack-updater'; -import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; +import { tryRefactorStack } from '../cfn-stack-refactor-updater'; import { SpinningLogger } from '../../_spinning-logger'; import { extractStackNameFromId } from '../utils'; import { DiscoveredResource } from '../../generate/_infra/gen1-app'; @@ -188,17 +189,12 @@ export abstract class CategoryRefactorer implements Refactorer { describe: async () => [description], execute: async () => { this.logger.info(header); - const status = await tryUpdateStack({ + await tryUpdateStack({ cfnClient: this.clients.cloudFormation, stackName: source.stackId, parameters: source.parameters, templateBody: source.resolvedTemplate, }); - if (status !== CFNStackStatus.UPDATE_COMPLETE) { - throw new AmplifyError('StackStateError', { - message: `Source stack '${source.stackId}' ended with status '${status}' instead of UPDATE_COMPLETE`, - }); - } }, }, ]; @@ -223,17 +219,12 @@ export abstract class CategoryRefactorer implements Refactorer { describe: async () => [description], execute: async () => { this.logger.info(header); - const status = await tryUpdateStack({ + await tryUpdateStack({ cfnClient: this.clients.cloudFormation, stackName: target.stackId, parameters: target.parameters, templateBody: target.resolvedTemplate, }); - if (status !== CFNStackStatus.UPDATE_COMPLETE) { - throw new AmplifyError('StackStateError', { - message: `Target stack '${target.stackId}' ended with status '${status}' instead of UPDATE_COMPLETE`, - }); - } }, }, ]; @@ -258,27 +249,27 @@ export abstract class CategoryRefactorer implements Refactorer { ); try { - await waitUntilChangeSetCreateComplete( - { client: this.clients.cloudFormation, maxWaitTime: 120 }, - { StackName: stackName, ChangeSetName: changeSetName }, + try { + await waitUntilChangeSetCreateComplete( + { client: this.clients.cloudFormation, maxWaitTime: 120 }, + { StackName: stackName, ChangeSetName: changeSetName }, + ); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + } catch (e: any) { + if (e.message?.includes(`The submitted information didn't contain changes`)) { + return undefined; + } + throw e; + } + + const changeSet = await this.clients.cloudFormation.send( + new DescribeChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName, IncludePropertyValues: true }), ); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - } catch (e: any) { + return formatChangeSetReport(changeSet); + } finally { + await this.clients.cloudFormation.send(new DeleteChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName })); this.logger.pop(); - if (e.message?.includes(`The submitted information didn't contain changes`)) { - // means the template we gave is exactly the same as the deployed template. - // this can happen after partial failures (update source -> update target -> fail -> update source) - return undefined; - } - throw e; } - - const changeSet = await this.clients.cloudFormation.send( - new DescribeChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName, IncludePropertyValues: true }), - ); - - this.logger.pop(); - return formatChangeSetReport(changeSet); } /** @@ -376,19 +367,13 @@ export abstract class CategoryRefactorer implements Refactorer { return [`${header}\n\n${table}`]; }, execute: async () => { - const result = await tryRefactorStack(this.clients.cloudFormation, { + await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ { TemplateBody: JSON.stringify(source.afterRemoval), StackName: source.stackId }, { TemplateBody: JSON.stringify(target.afterAddition), StackName: target.stackId }, ], ResourceMappings: resourceMappings, }); - if (!result.success) { - const failure = result as RefactorFailure; - throw new AmplifyError('MigrationError', { - message: `Stack refactor failed: ${failure.reason} (status: ${failure.status}, refactorId: ${failure.stackRefactorId})`, - }); - } }, }, ]; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 62d7fba547f..9371fdeb54a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -8,7 +8,7 @@ import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { resolveConditions } from '../resolvers/cfn-condition-resolver'; import { extractStackNameFromId } from '../utils'; import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../holding-stack'; -import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; +import { tryRefactorStack } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, ResourceMapping } from './category-refactorer'; /** @@ -190,7 +190,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { } this.logger.info(header); - const result = await tryRefactorStack(this.clients.cloudFormation, { + await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ { TemplateBody: JSON.stringify(postTargetTemplate), StackName: blueprint.target.stackId }, { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, @@ -198,12 +198,6 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { ResourceMappings: holdingMappings, EnableStackCreation: true, }); - if (!result.success) { - const failure = result as RefactorFailure; - throw new AmplifyError('StackStateError', { - message: `Failed to move Gen2 resources to holding stack: ${failure.reason}`, - }); - } }, }, ]; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 940bd67d7eb..eb0023c4e3d 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -8,7 +8,7 @@ import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { extractStackNameFromId } from '../utils'; import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../holding-stack'; import { tryUpdateStack } from '../cfn-stack-updater'; -import { tryRefactorStack, RefactorFailure } from '../cfn-stack-refactor-updater'; +import { tryRefactorStack } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MIGRATION_PLACEHOLDER_LOGICAL_ID, @@ -151,41 +151,39 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { const table = this.renderMappingTable(restoreMoveMappings); const description = `${header}\n\n${table}`; + const holdingTemplate = JSON.parse(holdingTemplateResponse.TemplateBody) as CFNTemplate; + const holdingWithPlaceholder = { + ...holdingTemplate, + Resources: { ...holdingTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, + }; + + const targetTemplate = JSON.parse(JSON.stringify(blueprint.source.afterRemoval)) as CFNTemplate; + const holdingAfterRestore = JSON.parse(JSON.stringify(holdingWithPlaceholder)) as CFNTemplate; + for (const mapping of blueprint.mappings) { + targetTemplate.Resources[mapping.sourceId] = holdingWithPlaceholder.Resources[mapping.sourceId]; + delete holdingAfterRestore.Resources[mapping.sourceId]; + } + return [ { resource: this.resource, validate: () => undefined, describe: async () => [description], execute: async () => { - const holdingTemplate = JSON.parse(holdingTemplateResponse.TemplateBody) as CFNTemplate; - holdingTemplate.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; await tryUpdateStack({ cfnClient: this.clients.cloudFormation, stackName: holdingStackName, parameters: [], - templateBody: holdingTemplate, + templateBody: holdingWithPlaceholder, }); - const targetTemplate = JSON.parse(JSON.stringify(blueprint.source.afterRemoval)) as CFNTemplate; - for (const mapping of blueprint.mappings) { - targetTemplate.Resources[mapping.sourceId] = holdingTemplate.Resources[mapping.sourceId]; - delete holdingTemplate.Resources[mapping.sourceId]; - } - - this.logger.info(header); - const result = await tryRefactorStack(this.clients.cloudFormation, { + await tryRefactorStack(this.clients.cloudFormation, { StackDefinitions: [ - { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, + { TemplateBody: JSON.stringify(holdingAfterRestore), StackName: holdingStackName }, { TemplateBody: JSON.stringify(targetTemplate), StackName: gen2StackId }, ], ResourceMappings: restoreMappings, }); - if (!result.success) { - const failure = result as RefactorFailure; - throw new AmplifyError('MigrationError', { - message: `Failed to restore Gen2 resources from holding stack: ${failure.reason}`, - }); - } }, }, ]; From 195f9822559c932f5b3ff01e09fd12782536d070 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 22:59:08 -0400 Subject: [PATCH 22/91] refactor(cli-internal): consolidate CFN operations into Cfn class Introduce a Cfn class that centralizes all CloudFormation operations (update, refactor, createChangeSet, findStack, deleteStack, renderChangeSet) behind a single client instance. Replace custom polling with SDK waiters (waitUntilStackUpdateComplete, waitUntilStackRefactorCreate/ ExecuteComplete, waitUntilStackDeleteComplete). Delete refactorer.ts (re-export of Planner), holding-stack.ts, cfn-stack-updater.ts, cfn-stack-refactor-updater.ts, changeset-report.ts, and snap.ts. Move getHoldingStackName and HOLDING_STACK_SUFFIX into CategoryRefactorer. Inline snapshot writing into cfn.ts. --- Prompt: consolidate 3 CFN operations into a Cfn class, replace custom polling with SDK waiters, remove refactorer.ts, holding-stack.ts, snap.ts, changeset-report.ts, inline snap into cfn.ts, remove resolveStackName, move ensureOutputDirectory to constructor. --- .../gen2-migration/refactor/refactor.test.ts | 2 +- .../commands/gen2-migration/decommission.ts | 6 +- .../refactor/cfn-stack-refactor-updater.ts | 144 --------- .../refactor/cfn-stack-updater.ts | 85 ------ .../commands/gen2-migration/refactor/cfn.ts | 281 ++++++++++++++++++ .../refactor/changeset-report.ts | 51 ---- .../gen2-migration/refactor/holding-stack.ts | 59 ---- .../gen2-migration/refactor/refactor.ts | 8 +- .../gen2-migration/refactor/refactorer.ts | 1 - .../commands/gen2-migration/refactor/snap.ts | 44 --- .../refactor/workflow/category-refactorer.ts | 85 +++--- .../workflow/forward-category-refactorer.ts | 10 +- .../workflow/rollback-category-refactorer.ts | 12 +- 13 files changed, 333 insertions(+), 455 deletions(-) delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts create mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/holding-stack.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/refactorer.ts delete mode 100644 packages/amplify-cli/src/commands/gen2-migration/refactor/snap.ts diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts index d92e7d9a0f7..43bd05e63b6 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts @@ -1,5 +1,5 @@ import { AmplifyMigrationRefactorStep } from '../../../../commands/gen2-migration/refactor'; -import { OUTPUT_DIRECTORY } from '../../../../commands/gen2-migration/refactor/snap'; +import { OUTPUT_DIRECTORY } from '../../../../commands/gen2-migration/refactor/cfn'; import { MigrationApp, MigrationAppOptions } from '../_framework/app'; import { Gen1App, DiscoveredResource } from '../../../../commands/gen2-migration/generate/_infra/gen1-app'; import { Assessment } from '../../../../commands/gen2-migration/_assessment'; diff --git a/packages/amplify-cli/src/commands/gen2-migration/decommission.ts b/packages/amplify-cli/src/commands/gen2-migration/decommission.ts index a8c74780ed5..ae41c67c62a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/decommission.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/decommission.ts @@ -14,11 +14,13 @@ import { } from '@aws-sdk/client-cloudformation'; import { removeEnvFromCloud } from '../../extensions/amplify-helpers/remove-env-from-cloud'; import { invokeDeleteEnvParamsFromService } from '../../extensions/amplify-helpers/invoke-delete-env-params'; -import { deleteHoldingStack, HOLDING_STACK_SUFFIX } from './refactor/holding-stack'; +import { Cfn } from './refactor/cfn'; +import { HOLDING_STACK_SUFFIX } from './refactor/workflow/category-refactorer'; export class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep { public async forward(): Promise { const cfnClient = new CloudFormationClient({ region: this.region }); + const cfn = new Cfn(cfnClient); const holdingStacks = await this.findHoldingStacks(cfnClient); const operations: AmplifyMigrationOperation[] = []; @@ -36,7 +38,7 @@ export class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep { describe: async () => [`Delete holding stack: ${stackName}`], execute: async () => { this.logger.info(`Deleting holding stack: ${stackName}`); - await deleteHoldingStack(cfnClient, stackName); + await cfn.deleteStack(stackName); this.logger.info(`Deleted holding stack: ${stackName}`); }, }); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts deleted file mode 100644 index 92c78b40770..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-refactor-updater.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { - CloudFormationClient, - CreateStackRefactorCommand, - CreateStackRefactorCommandInput, - DescribeStackRefactorCommand, - DescribeStackRefactorCommandOutput, - ExecuteStackRefactorCommand, - StackRefactorExecutionStatus, - StackRefactorStatus, -} from '@aws-sdk/client-cloudformation'; -import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { CFNStackStatus } from '../cfn-template'; -import { pollStackForCompletionState } from './cfn-stack-updater'; -import { extractStackNameFromId } from './utils'; -import * as snap from './snap'; - -const POLL_ATTEMPTS = 300; -const POLL_INTERVAL_MS = 12000; -const COMPLETION_STATE = '_COMPLETE'; -const FAILED_STATE = '_FAILED'; - -/** - * Creates and executes a CloudFormation stack refactor operation. - * Polls for completion at each stage (create, execute, stack updates). - * Throws on failure. - */ -export async function tryRefactorStack( - cfnClient: CloudFormationClient, - input: CreateStackRefactorCommandInput, - attempts = POLL_ATTEMPTS, -): Promise { - input.Description = buildRefactorDescription(input); - - snap.preRefactorStack(input); - const { StackRefactorId } = await cfnClient.send(new CreateStackRefactorCommand(input)); - if (!StackRefactorId) { - throw new AmplifyError('StackStateError', { - message: 'CreateStackRefactor returned no StackRefactorId', - }); - } - - // Poll for create completion - let response = await pollStackRefactorForCompletionState( - cfnClient, - StackRefactorId, - (r) => { - if (!r.Status) { - throw new AmplifyError('StackStateError', { - message: `Stack refactor '${StackRefactorId}' has no status`, - }); - } - return r.Status.endsWith(COMPLETION_STATE) || r.Status.endsWith(FAILED_STATE); - }, - attempts, - ); - - if (response.Status !== StackRefactorStatus.CREATE_COMPLETE) { - throw new AmplifyError('MigrationError', { - message: `Stack refactor '${StackRefactorId}' failed during create: ${response.StatusReason} (status: ${response.Status})`, - }); - } - - // Execute the refactor - await cfnClient.send(new ExecuteStackRefactorCommand({ StackRefactorId })); - - response = await pollStackRefactorForCompletionState( - cfnClient, - StackRefactorId, - (r) => { - if (!r.ExecutionStatus) { - throw new AmplifyError('StackStateError', { - message: `Stack refactor '${StackRefactorId}' has no execution status`, - }); - } - return r.ExecutionStatus.endsWith(COMPLETION_STATE) || r.ExecutionStatus.endsWith(FAILED_STATE); - }, - attempts, - ); - - if (response.ExecutionStatus !== StackRefactorExecutionStatus.EXECUTE_COMPLETE) { - throw new AmplifyError('MigrationError', { - message: `Stack refactor '${StackRefactorId}' failed during execute: ${response.ExecutionStatusReason} (status: ${response.ExecutionStatus})`, - }); - } - - // Verify both stacks reached completion - const sourceStackName = input.StackDefinitions?.[0]?.StackName; - const destStackName = input.StackDefinitions?.[1]?.StackName; - if (!sourceStackName || !destStackName) { - throw new AmplifyError('InvalidStackError', { - message: 'Stack refactor input is missing source or destination stack name', - }); - } - - const sourceStatus = await pollStackForCompletionState(cfnClient, sourceStackName); - if (sourceStatus !== CFNStackStatus.UPDATE_COMPLETE) { - throw new AmplifyError('StackStateError', { - message: `Source stack '${sourceStackName}' ended with status '${sourceStatus}' instead of UPDATE_COMPLETE`, - }); - } - - const destStatus = await pollStackForCompletionState(cfnClient, destStackName); - if (destStatus !== CFNStackStatus.UPDATE_COMPLETE && destStatus !== CFNStackStatus.CREATE_COMPLETE) { - throw new AmplifyError('StackStateError', { - message: `Destination stack '${destStackName}' ended with status '${destStatus}' instead of UPDATE_COMPLETE or CREATE_COMPLETE`, - }); - } - - return; -} - -function buildRefactorDescription(input: CreateStackRefactorCommandInput): string { - const logicalIds = input.ResourceMappings?.map((m) => m.Source?.LogicalResourceId).join(', '); - const source = resolveStackName(input.StackDefinitions?.[0]?.StackName); - const dest = resolveStackName(input.StackDefinitions?.[1]?.StackName); - return `Move [${logicalIds}] from ${source} to ${dest}`; -} - -function resolveStackName(stackNameOrArn: string | undefined): string { - if (!stackNameOrArn) return 'unknown'; - return stackNameOrArn.startsWith('arn:') ? extractStackNameFromId(stackNameOrArn) : stackNameOrArn; -} - -/** - * Polls a stack refactor operation until the exit condition is met. - */ -async function pollStackRefactorForCompletionState( - cfnClient: CloudFormationClient, - stackRefactorId: string, - exitCondition: (response: DescribeStackRefactorCommandOutput) => boolean, - attempts: number, -): Promise { - do { - const response = await cfnClient.send(new DescribeStackRefactorCommand({ StackRefactorId: stackRefactorId })); - if (exitCondition(response)) { - return response; - } - await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS)); - attempts--; - } while (attempts > 0); - throw new AmplifyError('StackStateError', { - message: `Stack refactor '${stackRefactorId}' did not reach a completion state within the polling period`, - }); -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts deleted file mode 100644 index c4eee24a082..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn-stack-updater.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { - CloudFormationClient, - DescribeStacksCommand, - Parameter, - UpdateStackCommand, - UpdateStackCommandInput, -} from '@aws-sdk/client-cloudformation'; -import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { CFNStackStatus, CFNTemplate } from '../cfn-template'; -import * as snap from './snap'; - -const POLL_ATTEMPTS = 120; -const POLL_INTERVAL_MS = 5 * 1000; -const NO_UPDATES_MESSAGE = 'No updates are to be performed'; -const CFN_IAM_CAPABILITY = 'CAPABILITY_NAMED_IAM'; -const COMPLETION_STATE = '_COMPLETE'; - -/** - * Updates a stack with the given template. No-ops if no updates are needed. - * Throws if the stack does not reach UPDATE_COMPLETE. - */ -export async function tryUpdateStack(params: { - readonly cfnClient: CloudFormationClient; - readonly stackName: string; - readonly parameters: Parameter[]; - readonly templateBody: CFNTemplate; - readonly attempts?: number; -}): Promise { - const { cfnClient, stackName, parameters, templateBody, attempts = POLL_ATTEMPTS } = params; - try { - const input: UpdateStackCommandInput = { - TemplateBody: JSON.stringify(templateBody), - Parameters: parameters, - StackName: stackName, - Capabilities: [CFN_IAM_CAPABILITY], - Tags: [], - }; - snap.preUpdateStack(input); - await cfnClient.send(new UpdateStackCommand(input)); - } catch (e) { - if (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string' && e.message.includes(NO_UPDATES_MESSAGE)) { - return; - } - throw e; - } - const status = await pollStackForCompletionState(cfnClient, stackName, attempts); - if (status !== CFNStackStatus.UPDATE_COMPLETE) { - throw new AmplifyError('StackStateError', { - message: `Stack '${stackName}' ended with status '${status}' instead of UPDATE_COMPLETE`, - }); - } -} - -/** - * Polls a stack until it reaches a completion state. - */ -export async function pollStackForCompletionState( - cfnClient: CloudFormationClient, - stackName: string, - attempts: number = POLL_ATTEMPTS, -): Promise { - do { - const { Stacks } = await cfnClient.send(new DescribeStacksCommand({ StackName: stackName })); - const stack = Stacks?.[0]; - if (!stack) { - throw new AmplifyError('StackNotFoundError', { - message: `Stack '${stackName}' not found while polling for completion`, - }); - } - const stackStatus = stack.StackStatus; - if (!stackStatus) { - throw new AmplifyError('StackStateError', { - message: `Stack '${stackName}' has no status`, - }); - } - if (stackStatus.endsWith(COMPLETION_STATE)) { - return stackStatus; - } - await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS)); - attempts--; - } while (attempts > 0); - throw new AmplifyError('StackStateError', { - message: `Stack '${stackName}' did not reach a completion state within the polling period`, - }); -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts new file mode 100644 index 00000000000..77e0c2ca4a4 --- /dev/null +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -0,0 +1,281 @@ +import { + CloudFormationClient, + CloudFormationServiceException, + CreateChangeSetCommand, + CreateStackRefactorCommand, + CreateStackRefactorCommandInput, + DeleteChangeSetCommand, + DeleteStackCommand, + DescribeChangeSetCommand, + DescribeChangeSetOutput, + DescribeStacksCommand, + ExecuteStackRefactorCommand, + Parameter, + Stack, + UpdateStackCommand, + UpdateStackCommandInput, + waitUntilChangeSetCreateComplete, + waitUntilStackCreateComplete, + waitUntilStackDeleteComplete, + waitUntilStackRefactorCreateComplete, + waitUntilStackRefactorExecuteComplete, + waitUntilStackUpdateComplete, +} from '@aws-sdk/client-cloudformation'; +import { AmplifyError } from '@aws-amplify/amplify-cli-core'; +import { CFNTemplate } from '../cfn-template'; +import { extractStackNameFromId } from './utils'; +import chalk from 'chalk'; +import * as fs from 'fs'; +import * as path from 'path'; + +const MAX_WAIT_TIME_SECONDS = 3600; +const NO_UPDATES_MESSAGE = 'No updates are to be performed'; +const CFN_IAM_CAPABILITY = 'CAPABILITY_NAMED_IAM'; +export const OUTPUT_DIRECTORY = '.amplify/refactor.operations'; + +/** + * Centralized CloudFormation operations for the refactor workflow. + * Wraps update, refactor, and change set APIs behind a single client instance. + */ +export class Cfn { + constructor(private readonly client: CloudFormationClient) { + if (!fs.existsSync(OUTPUT_DIRECTORY)) { + fs.mkdirSync(OUTPUT_DIRECTORY, { recursive: true }); + } + } + + /** + * Updates a stack with the given template. + * No-ops if no updates are needed. Throws on failure. + */ + public async update(params: { + readonly stackName: string; + readonly parameters: Parameter[]; + readonly templateBody: CFNTemplate; + }): Promise { + const { stackName, parameters, templateBody } = params; + try { + const input: UpdateStackCommandInput = { + TemplateBody: JSON.stringify(templateBody), + Parameters: parameters, + StackName: stackName, + Capabilities: [CFN_IAM_CAPABILITY], + Tags: [], + }; + writeUpdateSnapshot(input); + await this.client.send(new UpdateStackCommand(input)); + } catch (e) { + if (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string' && e.message.includes(NO_UPDATES_MESSAGE)) { + return; + } + throw e; + } + await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: stackName }); + } + + /** + * Creates and executes a CloudFormation stack refactor. + * Throws on failure. + */ + public async refactor(input: CreateStackRefactorCommandInput): Promise { + input.Description = buildRefactorDescription(input); + + writeRefactorSnapshot(input); + const { StackRefactorId } = await this.client.send(new CreateStackRefactorCommand(input)); + if (!StackRefactorId) { + throw new AmplifyError('StackStateError', { + message: 'CreateStackRefactor returned no StackRefactorId', + }); + } + + await waitUntilStackRefactorCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); + + await this.client.send(new ExecuteStackRefactorCommand({ StackRefactorId })); + + await waitUntilStackRefactorExecuteComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); + + // Verify both stacks reached their final state + const sourceStackName = input.StackDefinitions?.[0]?.StackName; + const destStackName = input.StackDefinitions?.[1]?.StackName; + if (!sourceStackName || !destStackName) { + throw new AmplifyError('InvalidStackError', { + message: 'Stack refactor input is missing source or destination stack name', + }); + } + + await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: sourceStackName }); + + // Destination may be newly created (EnableStackCreation) or updated + try { + await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: destStackName }); + } catch { + await waitUntilStackCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: destStackName }); + } + } + + /** + * Creates a change set, waits for it, describes it, then deletes it. + * Returns the described change set, or undefined if no changes were detected. + */ + public async createChangeSet(params: { + readonly stackName: string; + readonly parameters: Parameter[]; + readonly templateBody: CFNTemplate; + }): Promise { + const { stackName, parameters, templateBody } = params; + const changeSetName = `migration-preview-${Date.now()}`; + + await this.client.send( + new CreateChangeSetCommand({ + StackName: stackName, + ChangeSetName: changeSetName, + TemplateBody: JSON.stringify(templateBody), + Parameters: parameters, + Capabilities: [CFN_IAM_CAPABILITY], + }), + ); + + try { + try { + await waitUntilChangeSetCreateComplete( + { client: this.client, maxWaitTime: 120 }, + { StackName: stackName, ChangeSetName: changeSetName }, + ); + // eslint-disable-next-line @typescript-eslint/no-explicit-any + } catch (e: any) { + if (e.message?.includes(`The submitted information didn't contain changes`)) { + return undefined; + } + throw e; + } + + return await this.client.send( + new DescribeChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName, IncludePropertyValues: true }), + ); + } finally { + await this.client.send(new DeleteChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName })); + } + } + + /** + * Finds a stack by name. Returns the stack if it exists, null if it doesn't + * or has been deleted. + */ + public async findStack(stackName: string): Promise { + try { + const response = await this.client.send(new DescribeStacksCommand({ StackName: stackName })); + const stack = response.Stacks?.[0]; + if (stack && stack.StackStatus !== 'DELETE_COMPLETE') { + return stack; + } + return null; + } catch (error: unknown) { + if ( + error instanceof CloudFormationServiceException && + error.name === 'ValidationError' && + error.message?.includes('does not exist') + ) { + return null; + } + throw error; + } + } + + /** + * Deletes a stack and waits for deletion to complete. + * No-ops if the stack does not exist. + */ + public async deleteStack(stackName: string): Promise { + try { + await this.client.send(new DeleteStackCommand({ StackName: stackName })); + await waitUntilStackDeleteComplete({ client: this.client, maxWaitTime: 300 }, { StackName: stackName }); + } catch (error: unknown) { + if ( + error instanceof CloudFormationServiceException && + error.name === 'ValidationError' && + error.message?.includes('does not exist') + ) { + return; + } + throw error; + } + } + + /** + * Renders a human-readable report of property changes from a described change set. + */ + public renderChangeSet(changeSet: DescribeChangeSetOutput): string | undefined { + const changes = changeSet.Changes ?? []; + if (changes.length === 0) return undefined; + + const lines: string[] = []; + + for (const change of changes) { + const rc = change.ResourceChange; + if (!rc) continue; + + const action = rc.Action ?? 'Unknown'; + const logicalId = rc.LogicalResourceId ?? 'Unknown'; + const resourceType = rc.ResourceType ?? 'Unknown'; + + lines.push(''); + lines.push(`${chalk.bold(logicalId)} (${resourceType}) — ${chalk.yellow(action)}`); + + const details = rc.Details ?? []; + const propDetails = details.filter((d) => d.Target?.Attribute === 'Properties' && d.Target?.Name); + + for (const detail of propDetails) { + const target = detail.Target; + const propertyPath = target.Path; + const before = target.BeforeValue; + const after = target.AfterValue; + + lines.push(''); + if (before && after) { + lines.push(` ${propertyPath}:`); + lines.push(` ${chalk.red(`- ${before}`)}`); + lines.push(` ${chalk.green(`+ ${after}`)}`); + } else if (after) { + lines.push(` ${propertyPath}:`); + lines.push(` ${chalk.green(`+ ${after}`)}`); + } else if (before) { + lines.push(` ${propertyPath}:`); + lines.push(` ${chalk.red(`- ${before}`)}`); + } else { + lines.push(` ${propertyPath}: (changed)`); + } + } + } + + return lines.join('\n'); + } +} + +function buildRefactorDescription(input: CreateStackRefactorCommandInput): string { + const logicalIds = input.ResourceMappings.map((m) => m.Source?.LogicalResourceId).join(', '); + const source = extractStackNameFromId(input.StackDefinitions[0].StackName); + const dest = extractStackNameFromId(input.StackDefinitions[1].StackName); + return `Move [${logicalIds}] from ${source} to ${dest}`; +} + +function formatTemplateBody(templateBody: string): string { + return JSON.stringify(JSON.parse(templateBody), null, 2); +} + +function writeUpdateSnapshot(input: UpdateStackCommandInput): void { + const stackName = extractStackNameFromId(input.StackName); + fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `update.${stackName}.template.json`), formatTemplateBody(input.TemplateBody)); + fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `update.${stackName}.parameters.json`), JSON.stringify(input.Parameters ?? [], null, 2)); +} + +function writeRefactorSnapshot(input: CreateStackRefactorCommandInput): void { + const source = input.StackDefinitions[0]; + const target = input.StackDefinitions[1]; + const sourceStackName = extractStackNameFromId(source.StackName); + const targetStackName = extractStackNameFromId(target.StackName); + const description = `refactor.__from__.${sourceStackName}.__to__.${targetStackName}`; + const basePath = path.join(OUTPUT_DIRECTORY, description); + fs.writeFileSync(`${basePath}.source.template.json`, formatTemplateBody(source.TemplateBody)); + fs.writeFileSync(`${basePath}.target.template.json`, formatTemplateBody(target.TemplateBody)); + fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `${description}.mappings.json`), JSON.stringify(input.ResourceMappings ?? [], null, 2)); +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts deleted file mode 100644 index 4cde6939509..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/changeset-report.ts +++ /dev/null @@ -1,51 +0,0 @@ -import chalk from 'chalk'; -import { DescribeChangeSetOutput } from '@aws-sdk/client-cloudformation'; - -/** - * Produces a human-readable report of property changes from a described changeset. - */ -export function formatChangeSetReport(changeSet: DescribeChangeSetOutput): string | undefined { - const changes = changeSet.Changes ?? []; - if (changes.length === 0) return undefined; - - const lines: string[] = []; - - for (const change of changes) { - const rc = change.ResourceChange; - if (!rc) continue; - - const action = rc.Action ?? 'Unknown'; - const logicalId = rc.LogicalResourceId ?? 'Unknown'; - const resourceType = rc.ResourceType ?? 'Unknown'; - - lines.push(''); - lines.push(`${chalk.bold(logicalId)} (${resourceType}) — ${chalk.yellow(action)}`); - - const details = rc.Details ?? []; - const propDetails = details.filter((d) => d.Target?.Attribute === 'Properties' && d.Target?.Name); - - for (const detail of propDetails) { - const target = detail.Target!; - const propertyPath = target.Path ?? target.Name!; - const before = target.BeforeValue; - const after = target.AfterValue; - - lines.push(''); - if (before && after) { - lines.push(` ${propertyPath}:`); - lines.push(` ${chalk.red(`- ${before}`)}`); - lines.push(` ${chalk.green(`+ ${after}`)}`); - } else if (after) { - lines.push(` ${propertyPath}:`); - lines.push(` ${chalk.green(`+ ${after}`)}`); - } else if (before) { - lines.push(` ${propertyPath}:`); - lines.push(` ${chalk.red(`- ${before}`)}`); - } else { - lines.push(` ${propertyPath}: (changed)`); - } - } - } - - return lines.join('\n'); -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/holding-stack.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/holding-stack.ts deleted file mode 100644 index 717e472bfab..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/holding-stack.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { - CloudFormationClient, - CloudFormationServiceException, - DeleteStackCommand, - DescribeStacksCommand, - Stack, -} from '@aws-sdk/client-cloudformation'; -import { pollStackForCompletionState } from './cfn-stack-updater'; - -export const HOLDING_STACK_SUFFIX = '-holding'; -const MAX_STACK_NAME_LENGTH = 128; - -/** - * Derives the holding stack name from a Gen2 category stack ID. - * Preserves the CloudFormation hash suffix (part after the last dash) for uniqueness. - * If the resulting name would exceed 128 characters, the prefix is truncated. - */ -export function getHoldingStackName(gen2CategoryStackId: string): string { - const lastDashIndex = gen2CategoryStackId.lastIndexOf('-'); - const prefix = gen2CategoryStackId.substring(0, lastDashIndex); - const hashSuffix = gen2CategoryStackId.substring(lastDashIndex); - const tail = `${hashSuffix}${HOLDING_STACK_SUFFIX}`; - const maxPrefixLength = MAX_STACK_NAME_LENGTH - tail.length; - return `${prefix.substring(0, maxPrefixLength)}${tail}`; -} - -/** - * Finds a holding stack by name. Returns the stack if it exists, null otherwise. - */ -export async function findHoldingStack(cfnClient: CloudFormationClient, stackName: string): Promise { - try { - const response = await cfnClient.send(new DescribeStacksCommand({ StackName: stackName })); - const stack = response.Stacks?.[0]; - if (stack && stack.StackStatus !== 'DELETE_COMPLETE') { - return stack; - } - return null; - } catch (error: unknown) { - if (error instanceof CloudFormationServiceException && error.name === 'ValidationError' && error.message?.includes('does not exist')) { - return null; - } - throw error; - } -} - -/** - * Deletes a holding stack and waits for deletion to complete. - */ -export async function deleteHoldingStack(cfnClient: CloudFormationClient, stackName: string): Promise { - try { - await cfnClient.send(new DeleteStackCommand({ StackName: stackName })); - await pollStackForCompletionState(cfnClient, stackName, 60); - } catch (error: unknown) { - if (error instanceof CloudFormationServiceException && error.name === 'ValidationError' && error.message?.includes('does not exist')) { - return; - } - throw error; - } -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts index 9767913c2f8..69eb0156060 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts @@ -7,7 +7,7 @@ import { GetCallerIdentityCommand, STSClient } from '@aws-sdk/client-sts'; import { AmplifyGen2MigrationValidations } from '../_validations'; import { AwsClients } from '../aws-clients'; import { StackFacade } from './stack-facade'; -import { Refactorer } from './refactorer'; +import { Planner } from '../planner'; import { AuthCognitoForwardRefactorer } from './auth/auth-cognito-forward'; import { AuthCognitoRollbackRefactorer } from './auth/auth-cognito-rollback'; import { StorageS3ForwardRefactorer } from './storage/storage-forward'; @@ -57,7 +57,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { const gen1App = await Gen1App.create({ appId: this.appId, region: this.region, envName: this.currentEnvName, clients }); const discovered = gen1App.discover(); - const refactorers: Refactorer[] = []; + const refactorers: Planner[] = []; for (const resource of discovered) { switch (resource.key) { @@ -122,7 +122,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { const gen1App = await Gen1App.create({ appId: this.appId, region: this.region, envName: this.currentEnvName, clients }); const discovered = gen1App.discover(); - const refactorers: Refactorer[] = []; + const refactorers: Planner[] = []; for (const resource of discovered) { switch (resource.key) { @@ -189,7 +189,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { /** * Collects operations from all refactorers. */ - private async buildPlan(refactorers: Refactorer[], implications: string[], title: string): Promise { + private async buildPlan(refactorers: Planner[], implications: string[], title: string): Promise { const operations: AmplifyMigrationOperation[] = []; operations.push({ diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactorer.ts deleted file mode 100644 index d26d17d67e8..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactorer.ts +++ /dev/null @@ -1 +0,0 @@ -export { Planner as Refactorer } from '../planner'; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/snap.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/snap.ts deleted file mode 100644 index 67582e20d1f..00000000000 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/snap.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { CreateStackRefactorCommandInput, UpdateStackCommandInput } from '@aws-sdk/client-cloudformation'; -import * as fs from 'fs'; -import * as path from 'path'; -import { extractStackNameFromId } from './utils'; - -export const OUTPUT_DIRECTORY = `.amplify/refactor.operations`; - -/** - * Writes stack update snapshot files before an UpdateStack call. - * Produces: update..template.json, update..parameters.json - */ -export function preUpdateStack(input: UpdateStackCommandInput): void { - makeDirectory(OUTPUT_DIRECTORY); - const stackName = extractStackNameFromId(input.StackName!); - fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `update.${stackName}.template.json`), formatTemplateBody(input.TemplateBody!)); - fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `update.${stackName}.parameters.json`), JSON.stringify(input.Parameters ?? [], null, 2)); -} - -/** - * Writes stack refactor snapshot files before a CreateStackRefactor call. - * Produces: refactor.__from__..__to__..{source.template.json, target.template.json, mappings.json} - */ -export function preRefactorStack(input: CreateStackRefactorCommandInput): void { - makeDirectory(OUTPUT_DIRECTORY); - const source = input.StackDefinitions![0]; - const target = input.StackDefinitions![1]; - const sourceStackName = extractStackNameFromId(source.StackName!); - const targetStackName = extractStackNameFromId(target.StackName!); - const description = `refactor.__from__.${sourceStackName}.__to__.${targetStackName}`; - const basePath = path.join(OUTPUT_DIRECTORY, description); - fs.writeFileSync(`${basePath}.source.template.json`, formatTemplateBody(source.TemplateBody!)); - fs.writeFileSync(`${basePath}.target.template.json`, formatTemplateBody(target.TemplateBody!)); - fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `${description}.mappings.json`), JSON.stringify(input.ResourceMappings ?? [], null, 2)); -} - -function makeDirectory(dir: string): void { - if (!fs.existsSync(dir)) { - fs.mkdirSync(dir, { recursive: true }); - } -} - -function formatTemplateBody(templateBody: string): string { - return JSON.stringify(JSON.parse(templateBody), null, 2); -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index a71c7c71e53..b7e84e4a84b 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -1,26 +1,20 @@ -import { - Parameter, - CreateChangeSetCommand, - DeleteChangeSetCommand, - DescribeChangeSetCommand, - waitUntilChangeSetCreateComplete, -} from '@aws-sdk/client-cloudformation'; +import { Parameter } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; -import { Refactorer } from '../refactorer'; +import { Planner } from '../../planner'; import { AmplifyMigrationOperation } from '../../_operation'; import { AwsClients } from '../../aws-clients'; import { StackFacade } from '../stack-facade'; -import { tryUpdateStack } from '../cfn-stack-updater'; -import { tryRefactorStack } from '../cfn-stack-refactor-updater'; +import { Cfn } from '../cfn'; import { SpinningLogger } from '../../_spinning-logger'; import { extractStackNameFromId } from '../utils'; import { DiscoveredResource } from '../../generate/_infra/gen1-app'; -import { formatChangeSetReport } from '../changeset-report'; import CLITable from 'cli-table3'; export const MIGRATION_PLACEHOLDER_LOGICAL_ID = 'MigrationPlaceholder'; export const PLACEHOLDER_RESOURCE: CFNResource = { Type: 'AWS::CloudFormation::WaitConditionHandle', Properties: {} }; +export const HOLDING_STACK_SUFFIX = '-holding'; +const MAX_STACK_NAME_LENGTH = 128; /** * Pre-computed data from resolving a stack's template. @@ -82,7 +76,7 @@ export interface RefactorBlueprint { * Shared workflow methods (updateSource, updateTarget, buildBlueprint, buildMoveOperations) * are concrete on this base class. */ -export abstract class CategoryRefactorer implements Refactorer { +export abstract class CategoryRefactorer implements Planner { constructor( protected readonly gen1Env: StackFacade, protected readonly gen2Branch: StackFacade, @@ -91,7 +85,11 @@ export abstract class CategoryRefactorer implements Refactorer { protected readonly accountId: string, protected readonly logger: SpinningLogger, protected readonly resource: DiscoveredResource, - ) {} + ) { + this.cfn = new Cfn(clients.cloudFormation); + } + + protected readonly cfn: Cfn; /** * Computes the full operation plan for this category. @@ -189,8 +187,7 @@ export abstract class CategoryRefactorer implements Refactorer { describe: async () => [description], execute: async () => { this.logger.info(header); - await tryUpdateStack({ - cfnClient: this.clients.cloudFormation, + await this.cfn.update({ stackName: source.stackId, parameters: source.parameters, templateBody: source.resolvedTemplate, @@ -219,8 +216,7 @@ export abstract class CategoryRefactorer implements Refactorer { describe: async () => [description], execute: async () => { this.logger.info(header); - await tryUpdateStack({ - cfnClient: this.clients.cloudFormation, + await this.cfn.update({ stackName: target.stackId, parameters: target.parameters, templateBody: target.resolvedTemplate, @@ -234,40 +230,16 @@ export abstract class CategoryRefactorer implements Refactorer { * Creates a changeset for the given stack and returns a formatted report. */ private async createChangeSetReport(stack: ResolvedStack): Promise { - const changeSetName = `migration-preview-${Date.now()}`; - const stackName = stack.stackId; - - this.logger.push(extractStackNameFromId(stackName)); - await this.clients.cloudFormation.send( - new CreateChangeSetCommand({ - StackName: stackName, - ChangeSetName: changeSetName, - TemplateBody: JSON.stringify(stack.resolvedTemplate), - Parameters: stack.parameters, - Capabilities: ['CAPABILITY_NAMED_IAM'], - }), - ); - + const stackName = extractStackNameFromId(stack.stackId); + this.logger.push(stackName); try { - try { - await waitUntilChangeSetCreateComplete( - { client: this.clients.cloudFormation, maxWaitTime: 120 }, - { StackName: stackName, ChangeSetName: changeSetName }, - ); - // eslint-disable-next-line @typescript-eslint/no-explicit-any - } catch (e: any) { - if (e.message?.includes(`The submitted information didn't contain changes`)) { - return undefined; - } - throw e; - } - - const changeSet = await this.clients.cloudFormation.send( - new DescribeChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName, IncludePropertyValues: true }), - ); - return formatChangeSetReport(changeSet); + const changeSet = await this.cfn.createChangeSet({ + stackName: stack.stackId, + parameters: stack.parameters, + templateBody: stack.resolvedTemplate, + }); + return changeSet ? this.cfn.renderChangeSet(changeSet) : undefined; } finally { - await this.clients.cloudFormation.send(new DeleteChangeSetCommand({ StackName: stackName, ChangeSetName: changeSetName })); this.logger.pop(); } } @@ -367,7 +339,7 @@ export abstract class CategoryRefactorer implements Refactorer { return [`${header}\n\n${table}`]; }, execute: async () => { - await tryRefactorStack(this.clients.cloudFormation, { + await this.cfn.refactor({ StackDefinitions: [ { TemplateBody: JSON.stringify(source.afterRemoval), StackName: source.stackId }, { TemplateBody: JSON.stringify(target.afterAddition), StackName: target.stackId }, @@ -395,6 +367,19 @@ export abstract class CategoryRefactorer implements Refactorer { return stacks.find((s) => s.LogicalResourceId?.startsWith(prefix))?.PhysicalResourceId; } + /** + * Derives the holding stack name from a Gen2 category stack name. + * Preserves the CloudFormation hash suffix for uniqueness. + */ + protected getHoldingStackName(gen2CategoryStackId: string): string { + const lastDashIndex = gen2CategoryStackId.lastIndexOf('-'); + const prefix = gen2CategoryStackId.substring(0, lastDashIndex); + const hashSuffix = gen2CategoryStackId.substring(lastDashIndex); + const tail = `${hashSuffix}${HOLDING_STACK_SUFFIX}`; + const maxPrefixLength = MAX_STACK_NAME_LENGTH - tail.length; + return `${prefix.substring(0, maxPrefixLength)}${tail}`; + } + /** Renders a CLI table of move mappings. */ protected renderMappingTable(mappings: readonly MoveMapping[]): string { const table = new CLITable({ diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 9371fdeb54a..80e26dbfb80 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -7,8 +7,6 @@ import { resolveOutputs } from '../resolvers/cfn-output-resolver'; import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { resolveConditions } from '../resolvers/cfn-condition-resolver'; import { extractStackNameFromId } from '../utils'; -import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../holding-stack'; -import { tryRefactorStack } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, ResourceMapping } from './category-refactorer'; /** @@ -126,11 +124,11 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { holdingResources[logicalId] = blueprint.target.resolvedTemplate.Resources[logicalId]; } - const holdingStackName = getHoldingStackName(extractStackNameFromId(blueprint.target.stackId)); + const holdingStackName = this.getHoldingStackName(extractStackNameFromId(blueprint.target.stackId)); // in auth, there are two gen1 stacks (cognito, groups) that map to the same gen2 stack. // each of them gets its own refactorer so the same holding stack is used twice in sequence. - const existing = await findHoldingStack(this.clients.cloudFormation, holdingStackName); + const existing = await this.cfn.findStack(holdingStackName); if (existing && existing.StackStatus !== 'REVIEW_IN_PROGRESS') { const getTemplateResponse = await this.clients.cloudFormation.send( new GetTemplateCommand({ @@ -186,11 +184,11 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { execute: async () => { if (existing?.StackStatus === 'REVIEW_IN_PROGRESS') { this.logger.info(`Deleting existing holding stack: ${holdingStackName}`); - await deleteHoldingStack(this.clients.cloudFormation, holdingStackName); + await this.cfn.deleteStack(holdingStackName); } this.logger.info(header); - await tryRefactorStack(this.clients.cloudFormation, { + await this.cfn.refactor({ StackDefinitions: [ { TemplateBody: JSON.stringify(postTargetTemplate), StackName: blueprint.target.stackId }, { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index eb0023c4e3d..2c8ed9305f7 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -6,9 +6,6 @@ import { resolveParameters } from '../resolvers/cfn-parameter-resolver'; import { resolveOutputs } from '../resolvers/cfn-output-resolver'; import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { extractStackNameFromId } from '../utils'; -import { getHoldingStackName, findHoldingStack, deleteHoldingStack } from '../holding-stack'; -import { tryUpdateStack } from '../cfn-stack-updater'; -import { tryRefactorStack } from '../cfn-stack-refactor-updater'; import { CategoryRefactorer, MIGRATION_PLACEHOLDER_LOGICAL_ID, @@ -112,9 +109,9 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { */ protected async afterMovePlan(blueprint: RefactorBlueprint): Promise { const gen2StackId = blueprint.source.stackId; - const holdingStackName = getHoldingStackName(extractStackNameFromId(gen2StackId)); + const holdingStackName = this.getHoldingStackName(extractStackNameFromId(gen2StackId)); - const holdingStack = await findHoldingStack(this.clients.cloudFormation, holdingStackName); + const holdingStack = await this.cfn.findStack(holdingStackName); if (!holdingStack) return []; const holdingTemplateResponse = await this.clients.cloudFormation.send( @@ -170,14 +167,13 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { validate: () => undefined, describe: async () => [description], execute: async () => { - await tryUpdateStack({ - cfnClient: this.clients.cloudFormation, + await this.cfn.update({ stackName: holdingStackName, parameters: [], templateBody: holdingWithPlaceholder, }); - await tryRefactorStack(this.clients.cloudFormation, { + await this.cfn.refactor({ StackDefinitions: [ { TemplateBody: JSON.stringify(holdingAfterRestore), StackName: holdingStackName }, { TemplateBody: JSON.stringify(targetTemplate), StackName: gen2StackId }, From e1a83f6195e6a1fc5deb756108d57d37cbbc556c Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sat, 21 Mar 2026 23:14:52 -0400 Subject: [PATCH 23/91] refactor(cli-internal): add SpinningLogger to Cfn class Cfn now accepts a SpinningLogger and logs info messages before every wait operation (stack update, refactor create/execute, source/destination verification, stack deletion). --- Prompt: the cfn class should accept the spinning logger and log info whenever it is waiting on something. --- .../src/commands/gen2-migration/decommission.ts | 2 +- .../src/commands/gen2-migration/refactor/cfn.ts | 10 +++++++++- .../refactor/workflow/category-refactorer.ts | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/decommission.ts b/packages/amplify-cli/src/commands/gen2-migration/decommission.ts index ae41c67c62a..01e83af3a07 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/decommission.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/decommission.ts @@ -20,7 +20,7 @@ import { HOLDING_STACK_SUFFIX } from './refactor/workflow/category-refactorer'; export class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep { public async forward(): Promise { const cfnClient = new CloudFormationClient({ region: this.region }); - const cfn = new Cfn(cfnClient); + const cfn = new Cfn(cfnClient, this.logger); const holdingStacks = await this.findHoldingStacks(cfnClient); const operations: AmplifyMigrationOperation[] = []; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index 77e0c2ca4a4..0ccd3f55c8d 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -24,6 +24,7 @@ import { import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNTemplate } from '../cfn-template'; import { extractStackNameFromId } from './utils'; +import { SpinningLogger } from '../_spinning-logger'; import chalk from 'chalk'; import * as fs from 'fs'; import * as path from 'path'; @@ -38,7 +39,7 @@ export const OUTPUT_DIRECTORY = '.amplify/refactor.operations'; * Wraps update, refactor, and change set APIs behind a single client instance. */ export class Cfn { - constructor(private readonly client: CloudFormationClient) { + constructor(private readonly client: CloudFormationClient, private readonly logger: SpinningLogger) { if (!fs.existsSync(OUTPUT_DIRECTORY)) { fs.mkdirSync(OUTPUT_DIRECTORY, { recursive: true }); } @@ -70,6 +71,7 @@ export class Cfn { } throw e; } + this.logger.info(`Waiting for stack update to complete: ${extractStackNameFromId(stackName)}`); await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: stackName }); } @@ -88,10 +90,12 @@ export class Cfn { }); } + this.logger.info(`Waiting for refactor create to complete: ${StackRefactorId}`); await waitUntilStackRefactorCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); await this.client.send(new ExecuteStackRefactorCommand({ StackRefactorId })); + this.logger.info(`Waiting for refactor execute to complete: ${StackRefactorId}`); await waitUntilStackRefactorExecuteComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); // Verify both stacks reached their final state @@ -103,9 +107,11 @@ export class Cfn { }); } + this.logger.info(`Waiting for source stack update: ${extractStackNameFromId(sourceStackName)}`); await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: sourceStackName }); // Destination may be newly created (EnableStackCreation) or updated + this.logger.info(`Waiting for destination stack: ${extractStackNameFromId(destStackName)}`); try { await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: destStackName }); } catch { @@ -187,7 +193,9 @@ export class Cfn { */ public async deleteStack(stackName: string): Promise { try { + this.logger.info(`Deleting stack: ${extractStackNameFromId(stackName)}`); await this.client.send(new DeleteStackCommand({ StackName: stackName })); + this.logger.info(`Waiting for stack deletion: ${extractStackNameFromId(stackName)}`); await waitUntilStackDeleteComplete({ client: this.client, maxWaitTime: 300 }, { StackName: stackName }); } catch (error: unknown) { if ( diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index b7e84e4a84b..5aec24c6d53 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -86,7 +86,7 @@ export abstract class CategoryRefactorer implements Planner { protected readonly logger: SpinningLogger, protected readonly resource: DiscoveredResource, ) { - this.cfn = new Cfn(clients.cloudFormation); + this.cfn = new Cfn(clients.cloudFormation, logger); } protected readonly cfn: Cfn; From 7d4374e53fd6c06eef57f64ebecaf49b98d0c24d Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 00:05:39 -0400 Subject: [PATCH 24/91] refactor(cli-internal): clean up refactorer operations Split rollback holding stack update into its own operation with a validation that the changeset only adds the placeholder. Split forward holding stack deletion into a separate operation. Remove redundant fetchStackResources calls by deriving physical IDs from blueprint mappings. Move description/header construction into describe callbacks and ResourceMapping construction into execute callbacks. Add Cfn.fetchTemplate method. Remove unused imports. --- Prompt: split holding stack operations, add validation, remove redundant fetches, move descriptions into describe callbacks, add Cfn.fetchTemplate. --- .../commands/gen2-migration/refactor/cfn.ts | 15 +++ .../refactor/workflow/category-refactorer.ts | 28 +++--- .../workflow/forward-category-refactorer.ts | 91 +++++++++---------- .../workflow/rollback-category-refactorer.ts | 87 +++++++++++------- 4 files changed, 128 insertions(+), 93 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index 0ccd3f55c8d..54e81e9b472 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -10,6 +10,7 @@ import { DescribeChangeSetOutput, DescribeStacksCommand, ExecuteStackRefactorCommand, + GetTemplateCommand, Parameter, Stack, UpdateStackCommand, @@ -187,6 +188,20 @@ export class Cfn { } } + /** + * Fetches and parses the original template for a stack. + * Throws if the stack returns an empty template. + */ + public async fetchTemplate(stackName: string): Promise { + const response = await this.client.send(new GetTemplateCommand({ StackName: stackName, TemplateStage: 'Original' })); + if (!response.TemplateBody) { + throw new AmplifyError('InvalidStackError', { + message: `Stack '${extractStackNameFromId(stackName)}' returned an empty template`, + }); + } + return JSON.parse(response.TemplateBody) as CFNTemplate; + } + /** * Deletes a stack and waits for deletion to complete. * No-ops if the stack does not exist. diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 5aec24c6d53..5c46a4b1c2d 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -122,9 +122,9 @@ export abstract class CategoryRefactorer implements Planner { const updateSourceOps = await this.updateSource(blueprint.source); const updateTargetOps = await this.updateTarget(blueprint.target); - const beforeMoveOps = await this.beforeMovePlan(blueprint); - const moveOps = await this.buildMoveOperations(blueprint); - const afterMoveOps = await this.afterMovePlan(blueprint); + const beforeMoveOps = await this.beforeMove(blueprint); + const moveOps = await this.move(blueprint); + const afterMoveOps = await this.afterMove(blueprint); const operations = [...updateSourceOps, ...updateTargetOps, ...beforeMoveOps, ...moveOps, ...afterMoveOps]; this.logger.pop(); @@ -157,14 +157,14 @@ export abstract class CategoryRefactorer implements Planner { * Forward: moves Gen2 resources to holding stack. * Rollback: no-op. */ - protected abstract beforeMovePlan(blueprint: RefactorBlueprint): Promise | AmplifyMigrationOperation[]; + protected abstract beforeMove(blueprint: RefactorBlueprint): Promise | AmplifyMigrationOperation[]; /** * Post-move operations. * Forward: empty. * Rollback: restores holding stack resources into Gen2, deletes holding stack. */ - protected abstract afterMovePlan(blueprint: RefactorBlueprint): Promise; + protected abstract afterMove(blueprint: RefactorBlueprint): Promise; // -- Shared workflow (concrete) -- @@ -174,9 +174,7 @@ export abstract class CategoryRefactorer implements Planner { */ protected async updateSource(source: ResolvedStack): Promise { const sourceStackName = extractStackNameFromId(source.stackId); - const header = `Update source stack '${sourceStackName}' with resolved references`; const report = await this.createChangeSetReport(source); - const description = report ? `${header}\n\n${report.trimStart()}` : `${header} (empty change-set)`; return [ { resource: this.resource, @@ -184,9 +182,11 @@ export abstract class CategoryRefactorer implements Planner { description: `Ensure no unexpected changes to ${sourceStackName}`, run: async () => ({ valid: report === undefined, report }), }), - describe: async () => [description], + describe: async () => { + const header = `Update source stack '${sourceStackName}' with resolved references`; + return [report ? `${header}\n\n${report.trimStart()}` : `${header} (empty change-set)`]; + }, execute: async () => { - this.logger.info(header); await this.cfn.update({ stackName: source.stackId, parameters: source.parameters, @@ -203,9 +203,7 @@ export abstract class CategoryRefactorer implements Planner { */ protected async updateTarget(target: ResolvedStack): Promise { const targetStackName = extractStackNameFromId(target.stackId); - const header = `Update target stack '${targetStackName}' with resolved references`; const report = await this.createChangeSetReport(target); - const description = report ? `${header}\n\n${report.trimStart()}` : `${header} (empty change-set)`; return [ { resource: this.resource, @@ -213,9 +211,11 @@ export abstract class CategoryRefactorer implements Planner { description: `Ensure no unexpected changes to ${targetStackName}`, run: async () => ({ valid: report === undefined, report }), }), - describe: async () => [description], + describe: async () => { + const header = `Update target stack '${targetStackName}' with resolved references`; + return [report ? `${header}\n\n${report.trimStart()}` : `${header} (empty change-set)`]; + }, execute: async () => { - this.logger.info(header); await this.cfn.update({ stackName: target.stackId, parameters: target.parameters, @@ -316,7 +316,7 @@ export abstract class CategoryRefactorer implements Planner { /** * Creates the move operation that executes the CloudFormation stack refactor. */ - protected async buildMoveOperations(blueprint: RefactorBlueprint): Promise { + protected async move(blueprint: RefactorBlueprint): Promise { const { source, target, mappings } = blueprint; const sourceStackName = extractStackNameFromId(source.stackId); const targetStackName = extractStackNameFromId(target.stackId); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 80e26dbfb80..56219916b5e 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -1,4 +1,4 @@ -import { GetTemplateCommand, Output, Parameter } from '@aws-sdk/client-cloudformation'; +import { Output, Parameter } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; import { AmplifyMigrationOperation } from '../../_operation'; @@ -116,7 +116,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { /** * Moves Gen2 resources to a holding stack before the main refactor. */ - protected async beforeMovePlan(blueprint: RefactorBlueprint): Promise { + protected async beforeMove(blueprint: RefactorBlueprint): Promise { // holding stack gets all mapping targets const targets = blueprint.mappings.map((m) => m.targetId); const holdingResources: Record = {}; @@ -130,12 +130,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { // each of them gets its own refactorer so the same holding stack is used twice in sequence. const existing = await this.cfn.findStack(holdingStackName); if (existing && existing.StackStatus !== 'REVIEW_IN_PROGRESS') { - const getTemplateResponse = await this.clients.cloudFormation.send( - new GetTemplateCommand({ - StackName: holdingStackName, - }), - ); - const existingTemplate = JSON.parse(getTemplateResponse.TemplateBody ?? '{}'); + const existingTemplate = await this.cfn.fetchTemplate(holdingStackName); for (const logicalId of Object.keys(existingTemplate.Resources ?? {})) { const existingResource = holdingResources[logicalId]; if (existingResource) { @@ -152,59 +147,63 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { Outputs: {}, }; - // Post-holding target = target.afterRemoval (already computed by buildBlueprint) - const postTargetTemplate = blueprint.target.afterRemoval; - - const holdingMappings: ResourceMapping[] = targets.map((id) => ({ - Source: { StackName: extractStackNameFromId(blueprint.target.stackId), LogicalResourceId: id }, - Destination: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: id }, + const holdingMoveMappings: MoveMapping[] = blueprint.mappings.map((m) => ({ + sourceId: m.targetId, + targetId: m.targetId, + resource: m.resource, + physicalResourceId: m.physicalResourceId, })); - const gen2Resources = await this.gen2Branch.fetchStackResources(blueprint.target.stackId); - const physicalIds = new Map(gen2Resources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); + const targetStackName = extractStackNameFromId(blueprint.target.stackId); - const holdingMoveMappings: MoveMapping[] = targets.map((id) => ({ - sourceId: id, - targetId: id, - resource: blueprint.target.resolvedTemplate.Resources[id], - physicalResourceId: physicalIds.get(id) ?? '', - })); + const header = `Move ${holdingMoveMappings.length} resource(s) from '${targetStackName}' to '${extractStackNameFromId( + holdingStackName, + )}'`; - const header = `Move ${holdingMappings.length} resource(s) from '${extractStackNameFromId( - blueprint.target.stackId, - )}' to '${extractStackNameFromId(holdingStackName)}'`; - const table = this.renderMappingTable(holdingMoveMappings); - const description = `${header}\n\n${table}`; + const operations: AmplifyMigrationOperation[] = []; - return [ - { + if (existing?.StackStatus === 'REVIEW_IN_PROGRESS') { + operations.push({ resource: this.resource, validate: () => undefined, - describe: async () => [description], + describe: async () => [`Delete stale holding stack '${extractStackNameFromId(holdingStackName)}'`], execute: async () => { - if (existing?.StackStatus === 'REVIEW_IN_PROGRESS') { - this.logger.info(`Deleting existing holding stack: ${holdingStackName}`); - await this.cfn.deleteStack(holdingStackName); - } - - this.logger.info(header); - await this.cfn.refactor({ - StackDefinitions: [ - { TemplateBody: JSON.stringify(postTargetTemplate), StackName: blueprint.target.stackId }, - { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, - ], - ResourceMappings: holdingMappings, - EnableStackCreation: true, - }); + await this.cfn.deleteStack(holdingStackName); }, + }); + } + + operations.push({ + resource: this.resource, + validate: () => undefined, + describe: async () => { + const table = this.renderMappingTable(holdingMoveMappings); + return [`${header}\n\n${table}`]; }, - ]; + execute: async () => { + this.logger.info(header); + const resourceMappings: ResourceMapping[] = holdingMoveMappings.map(({ sourceId, targetId }) => ({ + Source: { StackName: targetStackName, LogicalResourceId: sourceId }, + Destination: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: targetId }, + })); + await this.cfn.refactor({ + StackDefinitions: [ + { TemplateBody: JSON.stringify(blueprint.target.afterRemoval), StackName: blueprint.target.stackId }, + { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, + ], + ResourceMappings: resourceMappings, + EnableStackCreation: true, + }); + }, + }); + + return operations; } /** * Forward: no post-move operations. Holding stack survives for rollback. */ - protected async afterMovePlan(): Promise { + protected async afterMove(): Promise { return []; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 2c8ed9305f7..cc440561c8d 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -1,4 +1,4 @@ -import { GetTemplateCommand } from '@aws-sdk/client-cloudformation'; +import { DescribeChangeSetOutput } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; import { AmplifyMigrationOperation } from '../../_operation'; @@ -13,7 +13,6 @@ import { MoveMapping, RefactorBlueprint, ResolvedStack, - ResourceMapping, } from './category-refactorer'; /** @@ -100,55 +99,33 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { /** * Rollback: no pre-move operations. */ - protected beforeMovePlan(_blueprint: RefactorBlueprint): AmplifyMigrationOperation[] { + protected beforeMove(_blueprint: RefactorBlueprint): AmplifyMigrationOperation[] { return []; } /** * Restores holding stack resources into Gen2 and deletes the holding stack. */ - protected async afterMovePlan(blueprint: RefactorBlueprint): Promise { + protected async afterMove(blueprint: RefactorBlueprint): Promise { const gen2StackId = blueprint.source.stackId; const holdingStackName = this.getHoldingStackName(extractStackNameFromId(gen2StackId)); const holdingStack = await this.cfn.findStack(holdingStackName); if (!holdingStack) return []; - const holdingTemplateResponse = await this.clients.cloudFormation.send( - new GetTemplateCommand({ StackName: holdingStackName, TemplateStage: 'Original' }), - ); - if (!holdingTemplateResponse.TemplateBody) { - throw new AmplifyError('InvalidStackError', { - message: `Holding stack '${holdingStackName}' returned an empty template`, - }); - } + const holdingTemplate = await this.cfn.fetchTemplate(holdingStackName); if (blueprint.mappings.length === 0) { return []; } - const restoreMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ - Source: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: m.sourceId }, - Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: m.sourceId }, - })); - - const sourceResources = await this.gen2Branch.fetchStackResources(blueprint.source.stackId); - const physicalIds = new Map(sourceResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); - - const restoreMoveMappings: MoveMapping[] = blueprint.mappings.map((m) => ({ + const mappings = blueprint.mappings.map((m) => ({ sourceId: m.sourceId, targetId: m.sourceId, resource: m.resource, - physicalResourceId: physicalIds.get(m.sourceId) ?? '', + physicalResourceId: m.physicalResourceId, })); - const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( - holdingStackName, - )}' to '${extractStackNameFromId(gen2StackId)}'`; - const table = this.renderMappingTable(restoreMoveMappings); - const description = `${header}\n\n${table}`; - - const holdingTemplate = JSON.parse(holdingTemplateResponse.TemplateBody) as CFNTemplate; const holdingWithPlaceholder = { ...holdingTemplate, Resources: { ...holdingTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, @@ -161,27 +138,71 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { delete holdingAfterRestore.Resources[mapping.sourceId]; } + // Pre-compute the changeset report for the holding stack update + const holdingChangeSet = await this.cfn.createChangeSet({ + stackName: holdingStackName, + parameters: [], + templateBody: holdingWithPlaceholder, + }); + const holdingReport = holdingChangeSet ? this.cfn.renderChangeSet(holdingChangeSet) : undefined; + return [ { resource: this.resource, - validate: () => undefined, - describe: async () => [description], + validate: () => ({ + description: `Ensure holding stack update only adds placeholder`, + run: async () => ({ valid: this.isPlaceholderOnlyChangeSet(holdingChangeSet), report: holdingReport }), + }), + describe: async () => { + const header = `Update holding stack '${extractStackNameFromId(holdingStackName)}' with placeholder resource`; + const desc = holdingReport ? `${header}\n\n${holdingReport.trimStart()}` : `${header} (empty change-set)`; + return [desc]; + }, execute: async () => { await this.cfn.update({ stackName: holdingStackName, parameters: [], templateBody: holdingWithPlaceholder, }); - + }, + }, + { + resource: this.resource, + validate: () => undefined, + describe: async () => { + const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( + holdingStackName, + )}' to '${extractStackNameFromId(gen2StackId)}'`; + const table = this.renderMappingTable(mappings); + return [`${header}\n\n${table}`]; + }, + execute: async () => { + const resourceMappings = mappings.map(({ sourceId, targetId }) => ({ + Source: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: sourceId }, + Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: targetId }, + })); await this.cfn.refactor({ StackDefinitions: [ { TemplateBody: JSON.stringify(holdingAfterRestore), StackName: holdingStackName }, { TemplateBody: JSON.stringify(targetTemplate), StackName: gen2StackId }, ], - ResourceMappings: restoreMappings, + ResourceMappings: resourceMappings, }); }, }, ]; } + + /** + * Returns true if the changeset is empty or only adds the migration placeholder. + */ + private isPlaceholderOnlyChangeSet(changeSet: DescribeChangeSetOutput | undefined): boolean { + if (!changeSet) return true; + const changes = changeSet.Changes ?? []; + if (changes.length === 0) return true; + return changes.every((c) => { + const rc = c.ResourceChange; + return rc?.Action === 'Add' && rc?.LogicalResourceId === MIGRATION_PLACEHOLDER_LOGICAL_ID; + }); + } } From 5fd4d213387c2e301d014fa563a0891393539247 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 12:27:22 -0400 Subject: [PATCH 25/91] refactor(cli-internal): harden refactor workflow for multi-stack moves Add stack-level deduplication to prevent duplicate updates when multiple refactorers target the same stack. Thread targetStackId through buildResourceMappings for better error messages. Rework forward beforeMove to incrementally build holding stack templates by fetching existing state. In rollback, defer template computation into the execute closure and add duplicate-resource detection. Remove non-null assertions on StackResource fields. --- Prompt: commit everything I did. don't run tests. --- .../gen2-migration/refactor/stack-facade.ts | 11 ++ .../refactor/workflow/category-refactorer.ts | 3 +- .../workflow/forward-category-refactorer.ts | 113 ++++++++++-------- .../workflow/rollback-category-refactorer.ts | 43 ++++--- 4 files changed, 101 insertions(+), 69 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts index ab43113a716..eca08c8e3ef 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts @@ -8,6 +8,7 @@ import { import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { AwsClients } from '../aws-clients'; import { CFNTemplate } from '../cfn-template'; +import { ResolvedStack } from './workflow/category-refactorer'; /** * Lazy-loading, caching facade over a CloudFormation stack hierarchy. @@ -20,6 +21,8 @@ export class StackFacade { private readonly resourcesCache = new Map>(); private nestedStacksPromise: Promise | undefined; + private readonly updatedStacks = new Map(); + constructor(private readonly clients: AwsClients, public readonly rootStackName: string) {} /** @@ -72,6 +75,14 @@ export class StackFacade { }); } + public isUpdated(stack: ResolvedStack): boolean { + return this.updatedStacks.get(stack.stackId) === true; + } + + public markUpdated(stack: ResolvedStack) { + this.updatedStacks.set(stack.stackId, true); + } + private async cachedFetch(cache: Map>, key: string, fetcher: () => Promise): Promise { const existing = cache.get(key); if (existing !== undefined) return existing; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 5c46a4b1c2d..2a56aeeb0c0 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -145,6 +145,7 @@ export abstract class CategoryRefactorer implements Planner { sourceResources: Map, targetResources: Map, sourceStackId: string, + targetStackId: string, ): Promise; // -- Direction-specific (abstract) -- @@ -257,7 +258,7 @@ export abstract class CategoryRefactorer implements Planner { if (sourceResources.size === 0) return undefined; - const mappings = await this.buildResourceMappings(sourceResources, targetResources, source.stackId); + const mappings = await this.buildResourceMappings(sourceResources, targetResources, source.stackId, target.stackId); // source.afterRemoval: clone source template, remove mapped resources, add placeholder if empty const afterRemoval = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 56219916b5e..ee75dd4d3d5 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -1,4 +1,4 @@ -import { Output, Parameter } from '@aws-sdk/client-cloudformation'; +import { Output, Parameter, Stack } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; import { AmplifyMigrationOperation } from '../../_operation'; @@ -22,9 +22,10 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { sourceResources: Map, targetResources: Map, sourceStackId: string, + targetStackId: string, ): Promise { const stackResources = await this.gen1Env.fetchStackResources(sourceStackId); - const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); + const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId, r.PhysicalResourceId])); const mappings: MoveMapping[] = []; for (const [sourceId, sourceResource] of sourceResources) { @@ -37,16 +38,20 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { } if (matchedTargets.length === 0) { throw new AmplifyError('InvalidStackError', { - message: `Source resource '${sourceId}' (${sourceResource.Type}) has no corresponding target resource`, + message: `Source resource '${sourceId}' (${ + sourceResource.Type + }) has no corresponding target resource in stack: ${extractStackNameFromId(targetStackId)}`, }); } if (matchedTargets.length > 1) { throw new AmplifyError('InvalidStackError', { - message: `Source resource '${sourceId}' (${sourceResource.Type}) has multiple corresponding target resources`, + message: `Source resource '${sourceId}' (${ + sourceResource.Type + }) has multiple corresponding target resources in stack: ${extractStackNameFromId(targetStackId)}`, }); } const targetId = matchedTargets[0]; - mappings.push({ sourceId, targetId, resource: sourceResource, physicalResourceId: physicalIds.get(sourceId) ?? '' }); + mappings.push({ sourceId, targetId, resource: sourceResource, physicalResourceId: physicalIds.get(sourceId) }); } return mappings; } @@ -113,56 +118,53 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: resolved, parameters }; } - /** - * Moves Gen2 resources to a holding stack before the main refactor. - */ - protected async beforeMove(blueprint: RefactorBlueprint): Promise { - // holding stack gets all mapping targets - const targets = blueprint.mappings.map((m) => m.targetId); - const holdingResources: Record = {}; - for (const logicalId of targets) { - holdingResources[logicalId] = blueprint.target.resolvedTemplate.Resources[logicalId]; + protected override async updateSource(source: ResolvedStack): Promise { + if (this.gen1Env.isUpdated(source)) { + return []; } + const operations = super.updateSource(source); + this.gen1Env.markUpdated(source); + return operations; + } - const holdingStackName = this.getHoldingStackName(extractStackNameFromId(blueprint.target.stackId)); - - // in auth, there are two gen1 stacks (cognito, groups) that map to the same gen2 stack. - // each of them gets its own refactorer so the same holding stack is used twice in sequence. - const existing = await this.cfn.findStack(holdingStackName); - if (existing && existing.StackStatus !== 'REVIEW_IN_PROGRESS') { - const existingTemplate = await this.cfn.fetchTemplate(holdingStackName); - for (const logicalId of Object.keys(existingTemplate.Resources ?? {})) { - const existingResource = holdingResources[logicalId]; - if (existingResource) { - throw new AmplifyError('MigrationError', { message: 'WTF?' }); - } - holdingResources[logicalId] = existingTemplate.Resources[logicalId]; - } + protected override async updateTarget(target: ResolvedStack): Promise { + if (this.gen2Branch.isUpdated(target)) { + return []; } + const operations = super.updateTarget(target); + this.gen2Branch.markUpdated(target); + return operations; + } - const holdingTemplate: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'Temporary holding stack for Gen2 migration', - Resources: holdingResources, - Outputs: {}, - }; + /** + * Moves Gen2 resources to a holding stack before the main refactor. + */ + protected async beforeMove(blueprint: RefactorBlueprint): Promise { + const gen2StackName = extractStackNameFromId(blueprint.target.stackId); + const gen2StackTemplate = JSON.parse(JSON.stringify(blueprint.target.resolvedTemplate)) as CFNTemplate; + const holdingStackName = this.getHoldingStackName(gen2StackName); + const { stack: holdingStack, template: holdingStackTemplate } = await this.fetchHoldingStackTemplate(holdingStackName); - const holdingMoveMappings: MoveMapping[] = blueprint.mappings.map((m) => ({ + const mappings = blueprint.mappings.map((m) => ({ sourceId: m.targetId, targetId: m.targetId, - resource: m.resource, + resource: gen2StackTemplate.Resources[m.targetId], physicalResourceId: m.physicalResourceId, })); - const targetStackName = extractStackNameFromId(blueprint.target.stackId); + const resourceMappings = mappings.map(({ sourceId, targetId }) => ({ + Source: { StackName: gen2StackName, LogicalResourceId: sourceId }, + Destination: { StackName: holdingStackName, LogicalResourceId: targetId }, + })); - const header = `Move ${holdingMoveMappings.length} resource(s) from '${targetStackName}' to '${extractStackNameFromId( - holdingStackName, - )}'`; + for (const mapping of mappings) { + holdingStackTemplate.Resources[mapping.targetId] = mapping.resource; + delete gen2StackTemplate.Resources[mapping.sourceId]; + } const operations: AmplifyMigrationOperation[] = []; - if (existing?.StackStatus === 'REVIEW_IN_PROGRESS') { + if (holdingStack?.StackStatus === 'REVIEW_IN_PROGRESS') { operations.push({ resource: this.resource, validate: () => undefined, @@ -177,19 +179,15 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { resource: this.resource, validate: () => undefined, describe: async () => { - const table = this.renderMappingTable(holdingMoveMappings); + const header = `Move ${mappings.length} resource(s) from '${gen2StackName}' to '${extractStackNameFromId(holdingStackName)}'`; + const table = this.renderMappingTable(mappings); return [`${header}\n\n${table}`]; }, execute: async () => { - this.logger.info(header); - const resourceMappings: ResourceMapping[] = holdingMoveMappings.map(({ sourceId, targetId }) => ({ - Source: { StackName: targetStackName, LogicalResourceId: sourceId }, - Destination: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: targetId }, - })); await this.cfn.refactor({ StackDefinitions: [ - { TemplateBody: JSON.stringify(blueprint.target.afterRemoval), StackName: blueprint.target.stackId }, - { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, + { TemplateBody: JSON.stringify(gen2StackTemplate), StackName: gen2StackName }, + { TemplateBody: JSON.stringify(holdingStackTemplate), StackName: holdingStackName }, ], ResourceMappings: resourceMappings, EnableStackCreation: true, @@ -213,4 +211,21 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { protected async resolveOAuthParameters(parameters: Parameter[], _outputs: Output[]): Promise { return parameters; } + + protected async fetchHoldingStackTemplate(holdingStackName: string): Promise<{ + readonly stack?: Stack; + readonly template: CFNTemplate; + }> { + const existing = await this.cfn.findStack(holdingStackName); + const template = + existing && existing.StackStatus !== 'REVIEW_IN_PROGRESS' + ? await this.cfn.fetchTemplate(holdingStackName) + : { + AWSTemplateFormatVersion: '2010-09-09', + Description: 'Temporary holding stack for Gen2 migration', + Resources: {}, + Outputs: {}, + }; + return { stack: existing, template }; + } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index cc440561c8d..c8e672b13d4 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -28,18 +28,26 @@ import { export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { protected async buildResourceMappings( sourceResources: Map, - _targetResources: Map, + targetResources: Map, sourceStackId: string, + targetStackId: string, ): Promise { const stackResources = await this.gen2Branch.fetchStackResources(sourceStackId); - const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId!, r.PhysicalResourceId!])); + const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId, r.PhysicalResourceId])); const mappings: MoveMapping[] = []; for (const [sourceId, resource] of sourceResources) { const gen1LogicalId = this.targetLogicalId(sourceId, resource); if (!gen1LogicalId) { - throw new AmplifyError('InvalidStackError', { - message: `No known Gen1 logical ID for resource type '${resource.Type}' (source: '${sourceId}')`, + throw new AmplifyError('MigrationError', { + message: `Failed building mappings: Unable to determine target id of resource ${sourceId} (${resource.Type})`, + }); + } + if (targetResources.has(gen1LogicalId)) { + throw new AmplifyError('MigrationError', { + message: `Failed building mappings: Resource ${gen1LogicalId} (${ + resource.Type + }) already exists in target stack: ${extractStackNameFromId(targetStackId)}`, }); } mappings.push({ sourceId, targetId: gen1LogicalId, resource, physicalResourceId: physicalIds.get(sourceId) ?? '' }); @@ -88,11 +96,11 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: originalTemplate, parameters }; } - protected override async updateSource(): Promise { + protected override async updateSource(_source: ResolvedStack): Promise { return []; } - protected override async updateTarget(): Promise { + protected override async updateTarget(_target: ResolvedStack): Promise { return []; } @@ -115,10 +123,6 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { const holdingTemplate = await this.cfn.fetchTemplate(holdingStackName); - if (blueprint.mappings.length === 0) { - return []; - } - const mappings = blueprint.mappings.map((m) => ({ sourceId: m.sourceId, targetId: m.sourceId, @@ -131,14 +135,6 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { Resources: { ...holdingTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, }; - const targetTemplate = JSON.parse(JSON.stringify(blueprint.source.afterRemoval)) as CFNTemplate; - const holdingAfterRestore = JSON.parse(JSON.stringify(holdingWithPlaceholder)) as CFNTemplate; - for (const mapping of blueprint.mappings) { - targetTemplate.Resources[mapping.sourceId] = holdingWithPlaceholder.Resources[mapping.sourceId]; - delete holdingAfterRestore.Resources[mapping.sourceId]; - } - - // Pre-compute the changeset report for the holding stack update const holdingChangeSet = await this.cfn.createChangeSet({ stackName: holdingStackName, parameters: [], @@ -181,9 +177,18 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { Source: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: sourceId }, Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: targetId }, })); + + const targetTemplate = JSON.parse(JSON.stringify(blueprint.source.afterRemoval)) as CFNTemplate; + const holdingAfterRemoval = JSON.parse(JSON.stringify(holdingWithPlaceholder)) as CFNTemplate; + for (const mapping of resourceMappings) { + targetTemplate.Resources[mapping.Destination.LogicalResourceId] = + holdingWithPlaceholder.Resources[mapping.Source.LogicalResourceId]; + delete holdingAfterRemoval.Resources[mapping.Source.LogicalResourceId]; + } + await this.cfn.refactor({ StackDefinitions: [ - { TemplateBody: JSON.stringify(holdingAfterRestore), StackName: holdingStackName }, + { TemplateBody: JSON.stringify(holdingAfterRemoval), StackName: holdingStackName }, { TemplateBody: JSON.stringify(targetTemplate), StackName: gen2StackId }, ], ResourceMappings: resourceMappings, From 8e9b42b79504b3565ac979acea4fc7273e40d0cd Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 15:58:10 -0400 Subject: [PATCH 26/91] refactor(cli-internal): improve refactor logging, remove caching, add noop handling Add resource-scoped log prefixes to Cfn operations so each category/resource pair is identifiable in output. Remove StackFacade caching layer so every call fetches fresh state from CloudFormation. Introduce buildNoopOperation and suppress the Implications section when all operations are no-ops. In rollback, skip resources that already exist in the target stack instead of throwing. Reduce max wait time from 3600s to 900s and pre-check destination stack existence to select the correct waiter. --- Prompt: commit everything I did. Don't run tests. just commit. --- .../src/commands/gen2-migration/_operation.ts | 15 +++++ .../src/commands/gen2-migration/_plan.ts | 9 ++- .../commands/gen2-migration/refactor/cfn.ts | 52 +++++++++------ .../gen2-migration/refactor/stack-facade.ts | 66 +++++-------------- .../refactor/workflow/category-refactorer.ts | 12 ++-- .../workflow/rollback-category-refactorer.ts | 17 +++-- 6 files changed, 87 insertions(+), 84 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts index 9f911f075b6..d01db4cbbd8 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts @@ -1,5 +1,20 @@ import { DiscoveredResource } from './generate/_infra/gen1-app'; +export const NO_OP_MESSAGE = 'No-op\n'; + +export function buildNoopOperation(resource: DiscoveredResource): AmplifyMigrationOperation { + return { + resource: resource, + validate: () => undefined, + execute: async () => { + return; + }, + describe: async () => { + return [NO_OP_MESSAGE]; + }, + }; +} + /** * Result of a validation check. */ diff --git a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts index 0d2ee87604f..b4cee760399 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_plan.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_plan.ts @@ -1,4 +1,4 @@ -import { AmplifyMigrationOperation } from './_operation'; +import { AmplifyMigrationOperation, NO_OP_MESSAGE } from './_operation'; import { SpinningLogger } from './_spinning-logger'; import { printer } from '@aws-amplify/amplify-prompts'; import chalk from 'chalk'; @@ -74,6 +74,8 @@ export class Plan { grouped.get(label)!.push(...lines); } + let hasRealImplications = false; + if (grouped.size > 0) { printer.info(chalk.bold(chalk.underline('Operations Summary'))); printer.blankLine(); @@ -84,12 +86,15 @@ export class Plan { let step = 1; for (const description of descriptions) { printer.info(`${step}. ${description}`); + if (description !== NO_OP_MESSAGE) { + hasRealImplications = true; + } step++; } } } - if (this.implications.length > 0) { + if (hasRealImplications && this.implications.length > 0) { printer.info(chalk.bold(chalk.underline('Implications'))); printer.blankLine(); for (const implication of this.implications) { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index 54e81e9b472..6deffd9a231 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -29,8 +29,9 @@ import { SpinningLogger } from '../_spinning-logger'; import chalk from 'chalk'; import * as fs from 'fs'; import * as path from 'path'; +import { DiscoveredResource } from '../generate/_infra/gen1-app'; -const MAX_WAIT_TIME_SECONDS = 3600; +const MAX_WAIT_TIME_SECONDS = 900; const NO_UPDATES_MESSAGE = 'No updates are to be performed'; const CFN_IAM_CAPABILITY = 'CAPABILITY_NAMED_IAM'; export const OUTPUT_DIRECTORY = '.amplify/refactor.operations'; @@ -40,7 +41,11 @@ export const OUTPUT_DIRECTORY = '.amplify/refactor.operations'; * Wraps update, refactor, and change set APIs behind a single client instance. */ export class Cfn { - constructor(private readonly client: CloudFormationClient, private readonly logger: SpinningLogger) { + constructor( + private readonly client: CloudFormationClient, + private readonly logger: SpinningLogger, + private readonly resource?: DiscoveredResource, + ) { if (!fs.existsSync(OUTPUT_DIRECTORY)) { fs.mkdirSync(OUTPUT_DIRECTORY, { recursive: true }); } @@ -65,6 +70,7 @@ export class Cfn { Tags: [], }; writeUpdateSnapshot(input); + this.info(`Updating stack: ${extractStackNameFromId(stackName)}`); await this.client.send(new UpdateStackCommand(input)); } catch (e) { if (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string' && e.message.includes(NO_UPDATES_MESSAGE)) { @@ -72,7 +78,7 @@ export class Cfn { } throw e; } - this.logger.info(`Waiting for stack update to complete: ${extractStackNameFromId(stackName)}`); + this.info(`Waiting for stack update to complete: ${extractStackNameFromId(stackName)}`); await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: stackName }); } @@ -81,9 +87,18 @@ export class Cfn { * Throws on failure. */ public async refactor(input: CreateStackRefactorCommandInput): Promise { + const sourceStackName = input.StackDefinitions?.[0]?.StackName; + const destStackName = input.StackDefinitions?.[1]?.StackName; + if (!sourceStackName || !destStackName) { + throw new AmplifyError('InvalidStackError', { + message: 'Stack refactor input is missing source or destination stack name', + }); + } + input.Description = buildRefactorDescription(input); writeRefactorSnapshot(input); + this.info(`Creating stack refactor: ${extractStackNameFromId(sourceStackName)} → ${extractStackNameFromId(destStackName)}`); const { StackRefactorId } = await this.client.send(new CreateStackRefactorCommand(input)); if (!StackRefactorId) { throw new AmplifyError('StackStateError', { @@ -91,31 +106,24 @@ export class Cfn { }); } - this.logger.info(`Waiting for refactor create to complete: ${StackRefactorId}`); + const destinationStack = await this.findStack(destStackName); + + this.info(`Waiting for stack refactor creation to complete: ${StackRefactorId}`); await waitUntilStackRefactorCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); await this.client.send(new ExecuteStackRefactorCommand({ StackRefactorId })); - this.logger.info(`Waiting for refactor execute to complete: ${StackRefactorId}`); + this.info(`Waiting for stack refactor execution to complete: ${StackRefactorId}`); await waitUntilStackRefactorExecuteComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); - // Verify both stacks reached their final state - const sourceStackName = input.StackDefinitions?.[0]?.StackName; - const destStackName = input.StackDefinitions?.[1]?.StackName; - if (!sourceStackName || !destStackName) { - throw new AmplifyError('InvalidStackError', { - message: 'Stack refactor input is missing source or destination stack name', - }); - } - - this.logger.info(`Waiting for source stack update: ${extractStackNameFromId(sourceStackName)}`); + this.info(`Waiting for source stack update: ${extractStackNameFromId(sourceStackName)}`); await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: sourceStackName }); // Destination may be newly created (EnableStackCreation) or updated - this.logger.info(`Waiting for destination stack: ${extractStackNameFromId(destStackName)}`); - try { + this.info(`Waiting for destination stack: ${extractStackNameFromId(destStackName)}`); + if (destinationStack) { await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: destStackName }); - } catch { + } else { await waitUntilStackCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: destStackName }); } } @@ -208,9 +216,9 @@ export class Cfn { */ public async deleteStack(stackName: string): Promise { try { - this.logger.info(`Deleting stack: ${extractStackNameFromId(stackName)}`); + this.info(`Deleting stack: ${extractStackNameFromId(stackName)}`); await this.client.send(new DeleteStackCommand({ StackName: stackName })); - this.logger.info(`Waiting for stack deletion: ${extractStackNameFromId(stackName)}`); + this.info(`Waiting for stack deletion: ${extractStackNameFromId(stackName)}`); await waitUntilStackDeleteComplete({ client: this.client, maxWaitTime: 300 }, { StackName: stackName }); } catch (error: unknown) { if ( @@ -272,6 +280,10 @@ export class Cfn { return lines.join('\n'); } + + private info(message: string) { + this.logger.info(`${this.resource ? `[${this.resource.category}/${this.resource.resourceName}] ` : ''}${message}`); + } } function buildRefactorDescription(input: CreateStackRefactorCommandInput): string { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts index eca08c8e3ef..0fdc6ec2e9b 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts @@ -16,11 +16,6 @@ import { ResolvedStack } from './workflow/category-refactorer'; * Cache entries are evicted on rejection to allow retries. */ export class StackFacade { - private readonly templateCache = new Map>(); - private readonly stackCache = new Map>(); - private readonly resourcesCache = new Map>(); - private nestedStacksPromise: Promise | undefined; - private readonly updatedStacks = new Map(); constructor(private readonly clients: AwsClients, public readonly rootStackName: string) {} @@ -29,50 +24,39 @@ export class StackFacade { * Lists nested stacks under the root stack. Cached on first call. */ public async fetchNestedStacks(): Promise { - if (this.nestedStacksPromise === undefined) { - this.nestedStacksPromise = this.doFetchNestedStacks().catch((error) => { - this.nestedStacksPromise = undefined; - throw error; - }); - } - return this.nestedStacksPromise; + const response = await this.clients.cloudFormation.send(new DescribeStackResourcesCommand({ StackName: this.rootStackName })); + return (response.StackResources ?? []).filter((r) => r.ResourceType === 'AWS::CloudFormation::Stack'); } /** * Fetches and parses the CloudFormation template for a stack. Cached per stackId. */ public async fetchTemplate(stackId: string): Promise { - return this.cachedFetch(this.templateCache, stackId, async () => { - const response = await this.clients.cloudFormation.send(new GetTemplateCommand({ StackName: stackId, TemplateStage: 'Original' })); - if (!response.TemplateBody) { - throw new AmplifyError('InvalidStackError', { message: `Stack '${stackId}' returned an empty template` }); - } - return JSON.parse(response.TemplateBody) as CFNTemplate; - }); + const response = await this.clients.cloudFormation.send(new GetTemplateCommand({ StackName: stackId, TemplateStage: 'Original' })); + if (!response.TemplateBody) { + throw new AmplifyError('InvalidStackError', { message: `Stack '${stackId}' returned an empty template` }); + } + return JSON.parse(response.TemplateBody) as CFNTemplate; } /** * Describes a stack (parameters, outputs, status). Cached per stackId. */ public async fetchStack(stackId: string): Promise { - return this.cachedFetch(this.stackCache, stackId, async () => { - const response = await this.clients.cloudFormation.send(new DescribeStacksCommand({ StackName: stackId })); - const stack = response.Stacks?.[0]; - if (!stack) { - throw new AmplifyError('StackNotFoundError', { message: `Stack '${stackId}' not found` }); - } - return stack; - }); + const response = await this.clients.cloudFormation.send(new DescribeStacksCommand({ StackName: stackId })); + const stack = response.Stacks?.[0]; + if (!stack) { + throw new AmplifyError('StackNotFoundError', { message: `Stack '${stackId}' not found` }); + } + return stack; } /** * Lists resources in a stack. Cached per stackId. */ public async fetchStackResources(stackId: string): Promise { - return this.cachedFetch(this.resourcesCache, stackId, async () => { - const response = await this.clients.cloudFormation.send(new DescribeStackResourcesCommand({ StackName: stackId })); - return response.StackResources ?? []; - }); + const response = await this.clients.cloudFormation.send(new DescribeStackResourcesCommand({ StackName: stackId })); + return response.StackResources ?? []; } public isUpdated(stack: ResolvedStack): boolean { @@ -82,24 +66,4 @@ export class StackFacade { public markUpdated(stack: ResolvedStack) { this.updatedStacks.set(stack.stackId, true); } - - private async cachedFetch(cache: Map>, key: string, fetcher: () => Promise): Promise { - const existing = cache.get(key); - if (existing !== undefined) return existing; - - const promise = fetcher().catch((error) => { - cache.delete(key); - throw error; - }); - cache.set(key, promise); - return promise; - } - - // Uses DescribeStackResources (max 100 resources, no pagination) for test mock compatibility. - // Amplify projects are unlikely to exceed this limit. If pagination is needed in the future, - // switch to ListStackResources (paginated) and update the test mock accordingly. - private async doFetchNestedStacks(): Promise { - const response = await this.clients.cloudFormation.send(new DescribeStackResourcesCommand({ StackName: this.rootStackName })); - return (response.StackResources ?? []).filter((r) => r.ResourceType === 'AWS::CloudFormation::Stack'); - } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 2a56aeeb0c0..9552146b3e4 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -2,7 +2,7 @@ import { Parameter } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; import { Planner } from '../../planner'; -import { AmplifyMigrationOperation } from '../../_operation'; +import { AmplifyMigrationOperation, buildNoopOperation } from '../../_operation'; import { AwsClients } from '../../aws-clients'; import { StackFacade } from '../stack-facade'; import { Cfn } from '../cfn'; @@ -86,7 +86,7 @@ export abstract class CategoryRefactorer implements Planner { protected readonly logger: SpinningLogger, protected readonly resource: DiscoveredResource, ) { - this.cfn = new Cfn(clients.cloudFormation, logger); + this.cfn = new Cfn(clients.cloudFormation, logger, resource); } protected readonly cfn: Cfn; @@ -117,7 +117,7 @@ export abstract class CategoryRefactorer implements Planner { const blueprint = await this.buildBlueprint(source, target); if (!blueprint) { this.logger.pop(); - return []; // Nothing to move — skip this category + return [buildNoopOperation(this.resource)]; } const updateSourceOps = await this.updateSource(blueprint.source); @@ -230,7 +230,7 @@ export abstract class CategoryRefactorer implements Planner { /** * Creates a changeset for the given stack and returns a formatted report. */ - private async createChangeSetReport(stack: ResolvedStack): Promise { + protected async createChangeSetReport(stack: ResolvedStack): Promise { const stackName = extractStackNameFromId(stack.stackId); this.logger.push(stackName); try { @@ -260,6 +260,10 @@ export abstract class CategoryRefactorer implements Planner { const mappings = await this.buildResourceMappings(sourceResources, targetResources, source.stackId, target.stackId); + if (mappings.length === 0) { + return undefined; + } + // source.afterRemoval: clone source template, remove mapped resources, add placeholder if empty const afterRemoval = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; for (const { sourceId } of mappings) { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index c8e672b13d4..74c78a8b5f8 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -44,11 +44,12 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { }); } if (targetResources.has(gen1LogicalId)) { - throw new AmplifyError('MigrationError', { - message: `Failed building mappings: Resource ${gen1LogicalId} (${ - resource.Type - }) already exists in target stack: ${extractStackNameFromId(targetStackId)}`, - }); + continue; + // throw new AmplifyError('MigrationError', { + // message: `Failed building mappings: Resource ${gen1LogicalId} (${ + // resource.Type + // }) already exists in target stack: ${extractStackNameFromId(targetStackId)}`, + // }); } mappings.push({ sourceId, targetId: gen1LogicalId, resource, physicalResourceId: physicalIds.get(sourceId) ?? '' }); } @@ -135,23 +136,25 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { Resources: { ...holdingTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, }; + this.logger.push(extractStackNameFromId(holdingStackName)); const holdingChangeSet = await this.cfn.createChangeSet({ stackName: holdingStackName, parameters: [], templateBody: holdingWithPlaceholder, }); const holdingReport = holdingChangeSet ? this.cfn.renderChangeSet(holdingChangeSet) : undefined; + this.logger.pop(); return [ { resource: this.resource, validate: () => ({ - description: `Ensure holding stack update only adds placeholder`, + description: `Ensure holding stack ${extractStackNameFromId(holdingStackName)} update only adds placeholder`, run: async () => ({ valid: this.isPlaceholderOnlyChangeSet(holdingChangeSet), report: holdingReport }), }), describe: async () => { const header = `Update holding stack '${extractStackNameFromId(holdingStackName)}' with placeholder resource`; - const desc = holdingReport ? `${header}\n\n${holdingReport.trimStart()}` : `${header} (empty change-set)`; + const desc = holdingReport ? `${header}\n\n${holdingReport.trimStart()}\n` : `${header} (empty change-set)`; return [desc]; }, execute: async () => { From 45878ffa38ac5d9c1d89ad52900876cdb0839ff1 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 16:59:03 -0400 Subject: [PATCH 27/91] fix(cli-internal): defer template resolution to execution time in refactor workflow RefactorBlueprint now carries only mappings and stack IDs. Templates are fetched and resolved fresh inside each operation's execute() closure, so sequential refactorers targeting the same stack always see current state. This fixes the stale template bug where the second auth refactorer (user-pool-groups) would operate on a Gen2 template that the first refactorer (cognito) had already mutated. updateSource/updateTarget use plan-time resolved stacks directly (still fresh since they run before any moves). updateSource now accepts mappings to determine if a placeholder is needed. move(), beforeMove() (forward), and afterMove() (rollback) all re-fetch and re-resolve templates at execution time. --- Prompt: defer template resolution to execution time in refactor workflow to fix stale template bug when two Gen1 stacks map to the same Gen2 stack. --- .../refactor/workflow/category-refactorer.ts | 169 +++++++----------- .../workflow/forward-category-refactorer.ts | 69 ++++--- .../workflow/rollback-category-refactorer.ts | 19 +- 3 files changed, 120 insertions(+), 137 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 9552146b3e4..475a3eb74c0 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -45,23 +45,12 @@ export interface MoveMapping { } /** - * Consolidated refactor data object. All templates and mappings are pre-computed - * together inside buildBlueprint(), ensuring source/target resources stay in sync. + * Mappings-only refactor plan. Templates are fetched fresh at execution time + * so that sequential refactorers targeting the same stack always see current state. */ export interface RefactorBlueprint { - readonly source: { - readonly stackId: string; - readonly parameters: Parameter[]; - readonly resolvedTemplate: CFNTemplate; - readonly afterRemoval: CFNTemplate; - }; - readonly target: { - readonly stackId: string; - readonly parameters: Parameter[]; - readonly resolvedTemplate: CFNTemplate; - readonly afterRemoval: CFNTemplate; - readonly afterAddition: CFNTemplate; - }; + readonly sourceStackId: string; + readonly targetStackId: string; readonly mappings: MoveMapping[]; } @@ -114,14 +103,16 @@ export abstract class CategoryRefactorer implements Planner { const source = await this.resolveSource(sourceStackId); const target = await this.resolveTarget(destStackId); - const blueprint = await this.buildBlueprint(source, target); - if (!blueprint) { + const mappings = await this.buildMappings(source, target); + if (mappings.length === 0) { this.logger.pop(); return [buildNoopOperation(this.resource)]; } - const updateSourceOps = await this.updateSource(blueprint.source); - const updateTargetOps = await this.updateTarget(blueprint.target); + const blueprint: RefactorBlueprint = { sourceStackId, targetStackId: destStackId, mappings }; + + const updateSourceOps = await this.updateSource(source, mappings); + const updateTargetOps = await this.updateTarget(target); const beforeMoveOps = await this.beforeMove(blueprint); const moveOps = await this.move(blueprint); const afterMoveOps = await this.afterMove(blueprint); @@ -171,11 +162,28 @@ export abstract class CategoryRefactorer implements Planner { /** * Creates operations to update the source stack with the resolved template. + * Adds a placeholder resource if removing the mapped resources would leave the stack empty. * Rollback overrides this to return []. */ - protected async updateSource(source: ResolvedStack): Promise { + protected async updateSource(source: ResolvedStack, mappings: MoveMapping[]): Promise { const sourceStackName = extractStackNameFromId(source.stackId); - const report = await this.createChangeSetReport(source); + + // Check if removing mapped resources would leave the stack empty + const remainingResources = { ...source.resolvedTemplate.Resources }; + for (const { sourceId } of mappings) { + delete remainingResources[sourceId]; + } + const needsPlaceholder = Object.keys(remainingResources).length === 0; + + const resolvedTemplate = needsPlaceholder + ? { + ...source.resolvedTemplate, + Resources: { ...source.resolvedTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, + } + : source.resolvedTemplate; + + const resolvedStack: ResolvedStack = { ...source, resolvedTemplate: resolvedTemplate }; + const report = await this.createChangeSetReport(resolvedStack); return [ { resource: this.resource, @@ -191,7 +199,7 @@ export abstract class CategoryRefactorer implements Planner { await this.cfn.update({ stackName: source.stackId, parameters: source.parameters, - templateBody: source.resolvedTemplate, + templateBody: resolvedTemplate, }); }, }, @@ -246,89 +254,28 @@ export abstract class CategoryRefactorer implements Planner { } /** - * Builds a consolidated RefactorBlueprint from resolved source and target stacks. - * Returns undefined if there are no resources to move. - * - * This consolidates buildResourceMappings + template manipulation + placeholder logic - * into one function, ensuring resourcesToMove and logicalIdMap are always in sync. + * Builds resource mappings from resolved source and target stacks. + * Returns an empty array if there are no resources to move. */ - protected async buildBlueprint(source: ResolvedStack, target: ResolvedStack): Promise { + protected async buildMappings(source: ResolvedStack, target: ResolvedStack): Promise { const sourceResources = this.filterResourcesByType(source.resolvedTemplate); const targetResources = this.filterResourcesByType(target.resolvedTemplate); - if (sourceResources.size === 0) return undefined; - - const mappings = await this.buildResourceMappings(sourceResources, targetResources, source.stackId, target.stackId); - - if (mappings.length === 0) { - return undefined; - } - - // source.afterRemoval: clone source template, remove mapped resources, add placeholder if empty - const afterRemoval = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; - for (const { sourceId } of mappings) { - delete afterRemoval.Resources[sourceId]; - } - addPlaceholderIfEmpty(afterRemoval); - - // If afterRemoval needs a placeholder, the resolved template used by updateSource must - // also include it. The refactor API only moves existing resources — the placeholder must - // be created via UpdateStack first so it physically exists before the refactor. - const sourceResolved = afterRemoval.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] - ? { - ...source.resolvedTemplate, - Resources: { ...source.resolvedTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, - } - : source.resolvedTemplate; - - // target.afterRemoval: clone target template, remove target category resources, add placeholder if empty - const targetAfterRemoval = JSON.parse(JSON.stringify(target.resolvedTemplate)) as CFNTemplate; - for (const [id] of targetResources) { - delete targetAfterRemoval.Resources[id]; - } - addPlaceholderIfEmpty(targetAfterRemoval); - - // target.afterAddition: clone afterRemoval, add mapped resources with remapped DependsOn - const afterAddition = JSON.parse(JSON.stringify(targetAfterRemoval)) as CFNTemplate; - const idMap = new Map(mappings.map((m) => [m.sourceId, m.targetId])); - for (const { targetId, resource } of mappings) { - const cloned = JSON.parse(JSON.stringify(resource)) as CFNResource; - if (cloned.DependsOn) { - const deps = Array.isArray(cloned.DependsOn) ? cloned.DependsOn : [cloned.DependsOn]; - cloned.DependsOn = deps.map((d) => idMap.get(d) ?? d); - } - afterAddition.Resources[targetId] = cloned; - } + if (sourceResources.size === 0) return []; - return { - source: { - stackId: source.stackId, - parameters: source.parameters, - resolvedTemplate: sourceResolved, - afterRemoval, - }, - target: { - stackId: target.stackId, - parameters: target.parameters, - resolvedTemplate: target.resolvedTemplate, - afterRemoval: targetAfterRemoval, - afterAddition, - }, - mappings, - }; + return this.buildResourceMappings(sourceResources, targetResources, source.stackId, target.stackId); } /** * Creates the move operation that executes the CloudFormation stack refactor. + * Templates are fetched and resolved fresh at execution time. */ protected async move(blueprint: RefactorBlueprint): Promise { - const { source, target, mappings } = blueprint; - const sourceStackName = extractStackNameFromId(source.stackId); - const targetStackName = extractStackNameFromId(target.stackId); + const { sourceStackId, targetStackId, mappings } = blueprint; + const sourceStackName = extractStackNameFromId(sourceStackId); + const targetStackName = extractStackNameFromId(targetStackId); - const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( - sourceStackName, - )}' to '${extractStackNameFromId(targetStackName)}'`; + const header = `Move ${mappings.length} resource(s) from '${sourceStackName}' to '${targetStackName}'`; const table = this.renderMappingTable(mappings); const resourceMappings: ResourceMapping[] = mappings.map(({ sourceId, targetId }) => ({ @@ -344,10 +291,32 @@ export abstract class CategoryRefactorer implements Planner { return [`${header}\n\n${table}`]; }, execute: async () => { + const source = await this.resolveSource(sourceStackId); + const target = await this.resolveTarget(targetStackId); + + // Build afterRemoval: source template minus mapped resources. + // The placeholder (if needed) was already added by updateSource. + const afterRemoval = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; + for (const { sourceId } of mappings) { + delete afterRemoval.Resources[sourceId]; + } + + // Build afterAddition: target template plus mapped resources with remapped DependsOn + const afterAddition = JSON.parse(JSON.stringify(target.resolvedTemplate)) as CFNTemplate; + const idMap = new Map(mappings.map((m) => [m.sourceId, m.targetId])); + for (const { targetId, resource } of mappings) { + const cloned = JSON.parse(JSON.stringify(resource)) as CFNResource; + if (cloned.DependsOn) { + const deps = Array.isArray(cloned.DependsOn) ? cloned.DependsOn : [cloned.DependsOn]; + cloned.DependsOn = deps.map((d) => idMap.get(d) ?? d); + } + afterAddition.Resources[targetId] = cloned; + } + await this.cfn.refactor({ StackDefinitions: [ - { TemplateBody: JSON.stringify(source.afterRemoval), StackName: source.stackId }, - { TemplateBody: JSON.stringify(target.afterAddition), StackName: target.stackId }, + { TemplateBody: JSON.stringify(afterRemoval), StackName: sourceStackId }, + { TemplateBody: JSON.stringify(afterAddition), StackName: targetStackId }, ], ResourceMappings: resourceMappings, }); @@ -397,13 +366,3 @@ export abstract class CategoryRefactorer implements Planner { return `${table.toString()}\n`; } } - -/** - * Adds a placeholder resource if the template has no resources. - * CloudFormation requires at least one resource in a stack. - */ -function addPlaceholderIfEmpty(template: CFNTemplate): void { - if (Object.keys(template.Resources).length === 0) { - template.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; - } -} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index ee75dd4d3d5..b7509fe27ba 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -7,7 +7,7 @@ import { resolveOutputs } from '../resolvers/cfn-output-resolver'; import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { resolveConditions } from '../resolvers/cfn-condition-resolver'; import { extractStackNameFromId } from '../utils'; -import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack, ResourceMapping } from './category-refactorer'; +import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack } from './category-refactorer'; /** * Forward direction base: moves resources from Gen1 (source) to Gen2 (target). @@ -118,11 +118,11 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: resolved, parameters }; } - protected override async updateSource(source: ResolvedStack): Promise { + protected override async updateSource(source: ResolvedStack, mappings: MoveMapping[]): Promise { if (this.gen1Env.isUpdated(source)) { return []; } - const operations = super.updateSource(source); + const operations = super.updateSource(source, mappings); this.gen1Env.markUpdated(source); return operations; } @@ -138,29 +138,14 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { /** * Moves Gen2 resources to a holding stack before the main refactor. + * Templates are fetched fresh at execution time. */ protected async beforeMove(blueprint: RefactorBlueprint): Promise { - const gen2StackName = extractStackNameFromId(blueprint.target.stackId); - const gen2StackTemplate = JSON.parse(JSON.stringify(blueprint.target.resolvedTemplate)) as CFNTemplate; + const gen2StackName = extractStackNameFromId(blueprint.targetStackId); const holdingStackName = this.getHoldingStackName(gen2StackName); - const { stack: holdingStack, template: holdingStackTemplate } = await this.fetchHoldingStackTemplate(holdingStackName); - - const mappings = blueprint.mappings.map((m) => ({ - sourceId: m.targetId, - targetId: m.targetId, - resource: gen2StackTemplate.Resources[m.targetId], - physicalResourceId: m.physicalResourceId, - })); - - const resourceMappings = mappings.map(({ sourceId, targetId }) => ({ - Source: { StackName: gen2StackName, LogicalResourceId: sourceId }, - Destination: { StackName: holdingStackName, LogicalResourceId: targetId }, - })); - - for (const mapping of mappings) { - holdingStackTemplate.Resources[mapping.targetId] = mapping.resource; - delete gen2StackTemplate.Resources[mapping.sourceId]; - } + + // Pre-fetch holding stack status for plan-time description + const holdingStack = await this.cfn.findStack(holdingStackName); const operations: AmplifyMigrationOperation[] = []; @@ -179,15 +164,45 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { resource: this.resource, validate: () => undefined, describe: async () => { - const header = `Move ${mappings.length} resource(s) from '${gen2StackName}' to '${extractStackNameFromId(holdingStackName)}'`; - const table = this.renderMappingTable(mappings); + const header = `Move ${blueprint.mappings.length} resource(s) from '${gen2StackName}' to '${extractStackNameFromId( + holdingStackName, + )}'`; + const table = this.renderMappingTable( + blueprint.mappings.map((m) => ({ + sourceId: m.targetId, + targetId: m.targetId, + resource: m.resource, + physicalResourceId: m.physicalResourceId, + })), + ); return [`${header}\n\n${table}`]; }, execute: async () => { + const target = await this.resolveTarget(blueprint.targetStackId); + const gen2Template = JSON.parse(JSON.stringify(target.resolvedTemplate)) as CFNTemplate; + const { template: holdingTemplate } = await this.fetchHoldingStackTemplate(holdingStackName); + + const moveMappings = blueprint.mappings.map((m) => ({ + sourceId: m.targetId, + targetId: m.targetId, + resource: gen2Template.Resources[m.targetId], + physicalResourceId: m.physicalResourceId, + })); + + const resourceMappings = moveMappings.map(({ sourceId, targetId }) => ({ + Source: { StackName: gen2StackName, LogicalResourceId: sourceId }, + Destination: { StackName: holdingStackName, LogicalResourceId: targetId }, + })); + + for (const mapping of moveMappings) { + holdingTemplate.Resources[mapping.targetId] = mapping.resource; + delete gen2Template.Resources[mapping.sourceId]; + } + await this.cfn.refactor({ StackDefinitions: [ - { TemplateBody: JSON.stringify(gen2StackTemplate), StackName: gen2StackName }, - { TemplateBody: JSON.stringify(holdingStackTemplate), StackName: holdingStackName }, + { TemplateBody: JSON.stringify(gen2Template), StackName: gen2StackName }, + { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, ], ResourceMappings: resourceMappings, EnableStackCreation: true, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 74c78a8b5f8..0e98abaf17a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -97,7 +97,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: originalTemplate, parameters }; } - protected override async updateSource(_source: ResolvedStack): Promise { + protected override async updateSource(_source: ResolvedStack, _mappings: MoveMapping[]): Promise { return []; } @@ -114,9 +114,10 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { /** * Restores holding stack resources into Gen2 and deletes the holding stack. + * Templates are fetched fresh at execution time. */ protected async afterMove(blueprint: RefactorBlueprint): Promise { - const gen2StackId = blueprint.source.stackId; + const gen2StackId = blueprint.sourceStackId; const holdingStackName = this.getHoldingStackName(extractStackNameFromId(gen2StackId)); const holdingStack = await this.cfn.findStack(holdingStackName); @@ -176,16 +177,24 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return [`${header}\n\n${table}`]; }, execute: async () => { + // Fetch fresh templates at execution time + const source = await this.resolveSource(gen2StackId); + const currentHoldingTemplate = await this.cfn.fetchTemplate(holdingStackName); + const currentHoldingWithPlaceholder = { + ...currentHoldingTemplate, + Resources: { ...currentHoldingTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, + }; + const resourceMappings = mappings.map(({ sourceId, targetId }) => ({ Source: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: sourceId }, Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: targetId }, })); - const targetTemplate = JSON.parse(JSON.stringify(blueprint.source.afterRemoval)) as CFNTemplate; - const holdingAfterRemoval = JSON.parse(JSON.stringify(holdingWithPlaceholder)) as CFNTemplate; + const targetTemplate = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; + const holdingAfterRemoval = JSON.parse(JSON.stringify(currentHoldingWithPlaceholder)) as CFNTemplate; for (const mapping of resourceMappings) { targetTemplate.Resources[mapping.Destination.LogicalResourceId] = - holdingWithPlaceholder.Resources[mapping.Source.LogicalResourceId]; + currentHoldingWithPlaceholder.Resources[mapping.Source.LogicalResourceId]; delete holdingAfterRemoval.Resources[mapping.Source.LogicalResourceId]; } From b2d1b058986943aed7eac7dd074b780c92c82e9a Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 18:09:03 -0400 Subject: [PATCH 28/91] refactor(cli-internal): move template manipulation into Cfn.refactor and use SDK ResourceMapping Cfn.refactor() now accepts ResourceMapping[] directly, fetches both stack templates, moves resources between them, and handles the full refactor lifecycle internally. This eliminates template manipulation from callers entirely. Replace custom MoveMapping with the SDK's ResourceMapping type throughout the workflow. Simplify move(), beforeMove() (forward), and afterMove() (rollback) to just pass resource mappings. Remove fetchHoldingStackTemplate, isPlaceholderOnlyChangeSet, and the holding stack changeset validation. Move placeholder logic into addPlaceHolderIfNeeded() at the top of plan(). Fix symmetricDifference check to compare .size === 0. --- Prompt: Read what i've done and commit it. --- .../commands/gen2-migration/refactor/cfn.ts | 42 ++++-- .../refactor/workflow/category-refactorer.ts | 126 +++++------------- .../workflow/forward-category-refactorer.ts | 83 +++--------- .../workflow/rollback-category-refactorer.ts | 108 +++------------ 4 files changed, 102 insertions(+), 257 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index 6deffd9a231..5309ef7efd9 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -12,6 +12,7 @@ import { ExecuteStackRefactorCommand, GetTemplateCommand, Parameter, + ResourceMapping, Stack, UpdateStackCommand, UpdateStackCommandInput, @@ -86,19 +87,32 @@ export class Cfn { * Creates and executes a CloudFormation stack refactor. * Throws on failure. */ - public async refactor(input: CreateStackRefactorCommandInput): Promise { - const sourceStackName = input.StackDefinitions?.[0]?.StackName; - const destStackName = input.StackDefinitions?.[1]?.StackName; - if (!sourceStackName || !destStackName) { - throw new AmplifyError('InvalidStackError', { - message: 'Stack refactor input is missing source or destination stack name', - }); + public async refactor(resourceMappings: ResourceMapping[]): Promise { + const sourceStackId = resourceMappings[0].Source.StackName; + const targetStackId = resourceMappings[0].Destination.StackName; + + const sourceTemplate = await this.fetchTemplate(sourceStackId); + const targetTemplate = await this.fetchTemplate(targetStackId); + + for (const mapping of resourceMappings) { + targetTemplate.Resources[mapping.Destination.LogicalResourceId] = sourceTemplate.Resources[mapping.Source.LogicalResourceId]; + delete sourceTemplate.Resources[mapping.Source.LogicalResourceId]; } + const input: CreateStackRefactorCommandInput = { + StackDefinitions: [ + { TemplateBody: JSON.stringify(sourceTemplate), StackName: sourceStackId }, + { TemplateBody: JSON.stringify(targetTemplate), StackName: targetStackId }, + ], + ResourceMappings: resourceMappings, + EnableStackCreation: true, + }; + input.Description = buildRefactorDescription(input); writeRefactorSnapshot(input); - this.info(`Creating stack refactor: ${extractStackNameFromId(sourceStackName)} → ${extractStackNameFromId(destStackName)}`); + + this.info(`Creating stack refactor: ${extractStackNameFromId(sourceStackId)} → ${extractStackNameFromId(targetStackId)}`); const { StackRefactorId } = await this.client.send(new CreateStackRefactorCommand(input)); if (!StackRefactorId) { throw new AmplifyError('StackStateError', { @@ -106,7 +120,7 @@ export class Cfn { }); } - const destinationStack = await this.findStack(destStackName); + const destinationStack = await this.findStack(targetStackId); this.info(`Waiting for stack refactor creation to complete: ${StackRefactorId}`); await waitUntilStackRefactorCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); @@ -116,15 +130,15 @@ export class Cfn { this.info(`Waiting for stack refactor execution to complete: ${StackRefactorId}`); await waitUntilStackRefactorExecuteComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); - this.info(`Waiting for source stack update: ${extractStackNameFromId(sourceStackName)}`); - await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: sourceStackName }); + this.info(`Waiting for source stack update: ${extractStackNameFromId(sourceStackId)}`); + await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: sourceStackId }); // Destination may be newly created (EnableStackCreation) or updated - this.info(`Waiting for destination stack: ${extractStackNameFromId(destStackName)}`); + this.info(`Waiting for destination stack: ${extractStackNameFromId(targetStackId)}`); if (destinationStack) { - await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: destStackName }); + await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: targetStackId }); } else { - await waitUntilStackCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: destStackName }); + await waitUntilStackCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: targetStackId }); } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 475a3eb74c0..fcf2585e2cd 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -34,16 +34,6 @@ export interface ResourceMapping { readonly Destination: { readonly StackName: string; readonly LogicalResourceId: string }; } -/** - * A single resource to be moved from source to target stack. - */ -export interface MoveMapping { - readonly sourceId: string; - readonly targetId: string; - readonly resource: CFNResource; - readonly physicalResourceId: string; -} - /** * Mappings-only refactor plan. Templates are fetched fresh at execution time * so that sequential refactorers targeting the same stack always see current state. @@ -51,7 +41,7 @@ export interface MoveMapping { export interface RefactorBlueprint { readonly sourceStackId: string; readonly targetStackId: string; - readonly mappings: MoveMapping[]; + readonly mappings: ResourceMapping[]; } /** @@ -100,18 +90,23 @@ export abstract class CategoryRefactorer implements Planner { }); } - const source = await this.resolveSource(sourceStackId); + let source = await this.resolveSource(sourceStackId); const target = await this.resolveTarget(destStackId); - const mappings = await this.buildMappings(source, target); + const sourceResources = this.filterResourcesByType(source.resolvedTemplate); + const targetResources = this.filterResourcesByType(target.resolvedTemplate); + + const mappings = await this.buildResourceMappings(sourceResources, targetResources, source.stackId, target.stackId); if (mappings.length === 0) { this.logger.pop(); return [buildNoopOperation(this.resource)]; } + source = addPlaceHolderIfNeeded(source, mappings); + const blueprint: RefactorBlueprint = { sourceStackId, targetStackId: destStackId, mappings }; - const updateSourceOps = await this.updateSource(source, mappings); + const updateSourceOps = await this.updateSource(source); const updateTargetOps = await this.updateTarget(target); const beforeMoveOps = await this.beforeMove(blueprint); const moveOps = await this.move(blueprint); @@ -137,7 +132,7 @@ export abstract class CategoryRefactorer implements Planner { targetResources: Map, sourceStackId: string, targetStackId: string, - ): Promise; + ): Promise; // -- Direction-specific (abstract) -- @@ -165,25 +160,9 @@ export abstract class CategoryRefactorer implements Planner { * Adds a placeholder resource if removing the mapped resources would leave the stack empty. * Rollback overrides this to return []. */ - protected async updateSource(source: ResolvedStack, mappings: MoveMapping[]): Promise { + protected async updateSource(source: ResolvedStack): Promise { const sourceStackName = extractStackNameFromId(source.stackId); - - // Check if removing mapped resources would leave the stack empty - const remainingResources = { ...source.resolvedTemplate.Resources }; - for (const { sourceId } of mappings) { - delete remainingResources[sourceId]; - } - const needsPlaceholder = Object.keys(remainingResources).length === 0; - - const resolvedTemplate = needsPlaceholder - ? { - ...source.resolvedTemplate, - Resources: { ...source.resolvedTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, - } - : source.resolvedTemplate; - - const resolvedStack: ResolvedStack = { ...source, resolvedTemplate: resolvedTemplate }; - const report = await this.createChangeSetReport(resolvedStack); + const report = await this.createChangeSetReport(source); return [ { resource: this.resource, @@ -199,7 +178,7 @@ export abstract class CategoryRefactorer implements Planner { await this.cfn.update({ stackName: source.stackId, parameters: source.parameters, - templateBody: resolvedTemplate, + templateBody: source.resolvedTemplate, }); }, }, @@ -253,73 +232,25 @@ export abstract class CategoryRefactorer implements Planner { } } - /** - * Builds resource mappings from resolved source and target stacks. - * Returns an empty array if there are no resources to move. - */ - protected async buildMappings(source: ResolvedStack, target: ResolvedStack): Promise { - const sourceResources = this.filterResourcesByType(source.resolvedTemplate); - const targetResources = this.filterResourcesByType(target.resolvedTemplate); - - if (sourceResources.size === 0) return []; - - return this.buildResourceMappings(sourceResources, targetResources, source.stackId, target.stackId); - } - /** * Creates the move operation that executes the CloudFormation stack refactor. * Templates are fetched and resolved fresh at execution time. */ protected async move(blueprint: RefactorBlueprint): Promise { - const { sourceStackId, targetStackId, mappings } = blueprint; - const sourceStackName = extractStackNameFromId(sourceStackId); - const targetStackName = extractStackNameFromId(targetStackId); - - const header = `Move ${mappings.length} resource(s) from '${sourceStackName}' to '${targetStackName}'`; - const table = this.renderMappingTable(mappings); - - const resourceMappings: ResourceMapping[] = mappings.map(({ sourceId, targetId }) => ({ - Source: { StackName: sourceStackName, LogicalResourceId: sourceId }, - Destination: { StackName: targetStackName, LogicalResourceId: targetId }, - })); + const sourceStackName = extractStackNameFromId(blueprint.sourceStackId); + const targetStackName = extractStackNameFromId(blueprint.targetStackId); return [ { resource: this.resource, validate: () => undefined, describe: async () => { + const header = `Move ${blueprint.mappings.length} resource(s) from '${sourceStackName}' to '${targetStackName}'`; + const table = this.renderMappingTable(blueprint.mappings); return [`${header}\n\n${table}`]; }, execute: async () => { - const source = await this.resolveSource(sourceStackId); - const target = await this.resolveTarget(targetStackId); - - // Build afterRemoval: source template minus mapped resources. - // The placeholder (if needed) was already added by updateSource. - const afterRemoval = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; - for (const { sourceId } of mappings) { - delete afterRemoval.Resources[sourceId]; - } - - // Build afterAddition: target template plus mapped resources with remapped DependsOn - const afterAddition = JSON.parse(JSON.stringify(target.resolvedTemplate)) as CFNTemplate; - const idMap = new Map(mappings.map((m) => [m.sourceId, m.targetId])); - for (const { targetId, resource } of mappings) { - const cloned = JSON.parse(JSON.stringify(resource)) as CFNResource; - if (cloned.DependsOn) { - const deps = Array.isArray(cloned.DependsOn) ? cloned.DependsOn : [cloned.DependsOn]; - cloned.DependsOn = deps.map((d) => idMap.get(d) ?? d); - } - afterAddition.Resources[targetId] = cloned; - } - - await this.cfn.refactor({ - StackDefinitions: [ - { TemplateBody: JSON.stringify(afterRemoval), StackName: sourceStackId }, - { TemplateBody: JSON.stringify(afterAddition), StackName: targetStackId }, - ], - ResourceMappings: resourceMappings, - }); + await this.cfn.refactor(blueprint.mappings); }, }, ]; @@ -355,14 +286,29 @@ export abstract class CategoryRefactorer implements Planner { } /** Renders a CLI table of move mappings. */ - protected renderMappingTable(mappings: readonly MoveMapping[]): string { + protected renderMappingTable(mappings: readonly ResourceMapping[]): string { const table = new CLITable({ - head: ['Type', 'Source Logical ID', 'Target Logical ID', 'Physical ID'], + head: ['Source Logical ID', 'Target Logical ID'], style: { head: [] }, }); for (const m of mappings) { - table.push([m.resource.Type, m.sourceId, m.targetId, m.physicalResourceId]); + table.push([m.Source.LogicalResourceId, m.Destination.LogicalResourceId]); } return `${table.toString()}\n`; } } + +function addPlaceHolderIfNeeded(source: ResolvedStack, mappings: ResourceMapping[]): ResolvedStack { + const movedLogicalIds = new Set(mappings.map((m) => m.Source.LogicalResourceId)); + const allLogicalIds = new Set(Object.keys(source.resolvedTemplate.Resources)); + if (movedLogicalIds.symmetricDifference(allLogicalIds).size === 0) { + const resolved = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; + resolved.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; + return { + stackId: source.stackId, + parameters: source.parameters, + resolvedTemplate: resolved, + }; + } + return source; +} diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index b7509fe27ba..5eef3f37e33 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -1,13 +1,13 @@ -import { Output, Parameter, Stack } from '@aws-sdk/client-cloudformation'; +import { Output, Parameter, ResourceMapping } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { CFNResource, CFNTemplate } from '../../cfn-template'; +import { CFNResource } from '../../cfn-template'; import { AmplifyMigrationOperation } from '../../_operation'; import { resolveParameters } from '../resolvers/cfn-parameter-resolver'; import { resolveOutputs } from '../resolvers/cfn-output-resolver'; import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { resolveConditions } from '../resolvers/cfn-condition-resolver'; import { extractStackNameFromId } from '../utils'; -import { CategoryRefactorer, MoveMapping, RefactorBlueprint, ResolvedStack } from './category-refactorer'; +import { CategoryRefactorer, RefactorBlueprint, ResolvedStack } from './category-refactorer'; /** * Forward direction base: moves resources from Gen1 (source) to Gen2 (target). @@ -23,11 +23,8 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { targetResources: Map, sourceStackId: string, targetStackId: string, - ): Promise { - const stackResources = await this.gen1Env.fetchStackResources(sourceStackId); - const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId, r.PhysicalResourceId])); - - const mappings: MoveMapping[] = []; + ): Promise { + const mappings: ResourceMapping[] = []; for (const [sourceId, sourceResource] of sourceResources) { const matchedTargets = []; for (const [targetId, targetResource] of targetResources) { @@ -51,7 +48,10 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { }); } const targetId = matchedTargets[0]; - mappings.push({ sourceId, targetId, resource: sourceResource, physicalResourceId: physicalIds.get(sourceId) }); + mappings.push({ + Source: { LogicalResourceId: sourceId, StackName: sourceStackId }, + Destination: { LogicalResourceId: targetId, StackName: targetStackId }, + }); } return mappings; } @@ -118,11 +118,11 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: resolved, parameters }; } - protected override async updateSource(source: ResolvedStack, mappings: MoveMapping[]): Promise { + protected override async updateSource(source: ResolvedStack): Promise { if (this.gen1Env.isUpdated(source)) { return []; } - const operations = super.updateSource(source, mappings); + const operations = super.updateSource(source); this.gen1Env.markUpdated(source); return operations; } @@ -144,7 +144,10 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const gen2StackName = extractStackNameFromId(blueprint.targetStackId); const holdingStackName = this.getHoldingStackName(gen2StackName); - // Pre-fetch holding stack status for plan-time description + const resourceMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ + Source: { LogicalResourceId: m.Destination.LogicalResourceId, StackName: gen2StackName }, + Destination: { LogicalResourceId: m.Destination.LogicalResourceId, StackName: holdingStackName }, + })); const holdingStack = await this.cfn.findStack(holdingStackName); const operations: AmplifyMigrationOperation[] = []; @@ -167,46 +170,11 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const header = `Move ${blueprint.mappings.length} resource(s) from '${gen2StackName}' to '${extractStackNameFromId( holdingStackName, )}'`; - const table = this.renderMappingTable( - blueprint.mappings.map((m) => ({ - sourceId: m.targetId, - targetId: m.targetId, - resource: m.resource, - physicalResourceId: m.physicalResourceId, - })), - ); + const table = this.renderMappingTable(resourceMappings); return [`${header}\n\n${table}`]; }, execute: async () => { - const target = await this.resolveTarget(blueprint.targetStackId); - const gen2Template = JSON.parse(JSON.stringify(target.resolvedTemplate)) as CFNTemplate; - const { template: holdingTemplate } = await this.fetchHoldingStackTemplate(holdingStackName); - - const moveMappings = blueprint.mappings.map((m) => ({ - sourceId: m.targetId, - targetId: m.targetId, - resource: gen2Template.Resources[m.targetId], - physicalResourceId: m.physicalResourceId, - })); - - const resourceMappings = moveMappings.map(({ sourceId, targetId }) => ({ - Source: { StackName: gen2StackName, LogicalResourceId: sourceId }, - Destination: { StackName: holdingStackName, LogicalResourceId: targetId }, - })); - - for (const mapping of moveMappings) { - holdingTemplate.Resources[mapping.targetId] = mapping.resource; - delete gen2Template.Resources[mapping.sourceId]; - } - - await this.cfn.refactor({ - StackDefinitions: [ - { TemplateBody: JSON.stringify(gen2Template), StackName: gen2StackName }, - { TemplateBody: JSON.stringify(holdingTemplate), StackName: holdingStackName }, - ], - ResourceMappings: resourceMappings, - EnableStackCreation: true, - }); + await this.cfn.refactor(resourceMappings); }, }); @@ -226,21 +194,4 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { protected async resolveOAuthParameters(parameters: Parameter[], _outputs: Output[]): Promise { return parameters; } - - protected async fetchHoldingStackTemplate(holdingStackName: string): Promise<{ - readonly stack?: Stack; - readonly template: CFNTemplate; - }> { - const existing = await this.cfn.findStack(holdingStackName); - const template = - existing && existing.StackStatus !== 'REVIEW_IN_PROGRESS' - ? await this.cfn.fetchTemplate(holdingStackName) - : { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'Temporary holding stack for Gen2 migration', - Resources: {}, - Outputs: {}, - }; - return { stack: existing, template }; - } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 0e98abaf17a..9f388479805 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -1,6 +1,6 @@ -import { DescribeChangeSetOutput } from '@aws-sdk/client-cloudformation'; +import { ResourceMapping } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; -import { CFNResource, CFNTemplate } from '../../cfn-template'; +import { CFNResource } from '../../cfn-template'; import { AmplifyMigrationOperation } from '../../_operation'; import { resolveParameters } from '../resolvers/cfn-parameter-resolver'; import { resolveOutputs } from '../resolvers/cfn-output-resolver'; @@ -10,7 +10,6 @@ import { CategoryRefactorer, MIGRATION_PLACEHOLDER_LOGICAL_ID, PLACEHOLDER_RESOURCE, - MoveMapping, RefactorBlueprint, ResolvedStack, } from './category-refactorer'; @@ -31,11 +30,8 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { targetResources: Map, sourceStackId: string, targetStackId: string, - ): Promise { - const stackResources = await this.gen2Branch.fetchStackResources(sourceStackId); - const physicalIds = new Map(stackResources.map((r) => [r.LogicalResourceId, r.PhysicalResourceId])); - - const mappings: MoveMapping[] = []; + ): Promise { + const mappings: ResourceMapping[] = []; for (const [sourceId, resource] of sourceResources) { const gen1LogicalId = this.targetLogicalId(sourceId, resource); if (!gen1LogicalId) { @@ -45,13 +41,11 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { } if (targetResources.has(gen1LogicalId)) { continue; - // throw new AmplifyError('MigrationError', { - // message: `Failed building mappings: Resource ${gen1LogicalId} (${ - // resource.Type - // }) already exists in target stack: ${extractStackNameFromId(targetStackId)}`, - // }); } - mappings.push({ sourceId, targetId: gen1LogicalId, resource, physicalResourceId: physicalIds.get(sourceId) ?? '' }); + mappings.push({ + Source: { LogicalResourceId: sourceId, StackName: sourceStackId }, + Destination: { LogicalResourceId: gen1LogicalId, StackName: targetStackId }, + }); } return mappings; } @@ -97,7 +91,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: originalTemplate, parameters }; } - protected override async updateSource(_source: ResolvedStack, _mappings: MoveMapping[]): Promise { + protected override async updateSource(_source: ResolvedStack): Promise { return []; } @@ -117,52 +111,32 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { * Templates are fetched fresh at execution time. */ protected async afterMove(blueprint: RefactorBlueprint): Promise { - const gen2StackId = blueprint.sourceStackId; - const holdingStackName = this.getHoldingStackName(extractStackNameFromId(gen2StackId)); + const gen2StackName = blueprint.sourceStackId; + const holdingStackName = this.getHoldingStackName(extractStackNameFromId(gen2StackName)); const holdingStack = await this.cfn.findStack(holdingStackName); if (!holdingStack) return []; const holdingTemplate = await this.cfn.fetchTemplate(holdingStackName); - const mappings = blueprint.mappings.map((m) => ({ - sourceId: m.sourceId, - targetId: m.sourceId, - resource: m.resource, - physicalResourceId: m.physicalResourceId, + const resourceMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ + Source: { LogicalResourceId: m.Source.LogicalResourceId, StackName: holdingStackName }, + Destination: { LogicalResourceId: m.Source.LogicalResourceId, StackName: gen2StackName }, })); - const holdingWithPlaceholder = { - ...holdingTemplate, - Resources: { ...holdingTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, - }; - - this.logger.push(extractStackNameFromId(holdingStackName)); - const holdingChangeSet = await this.cfn.createChangeSet({ - stackName: holdingStackName, - parameters: [], - templateBody: holdingWithPlaceholder, - }); - const holdingReport = holdingChangeSet ? this.cfn.renderChangeSet(holdingChangeSet) : undefined; - this.logger.pop(); - return [ { resource: this.resource, - validate: () => ({ - description: `Ensure holding stack ${extractStackNameFromId(holdingStackName)} update only adds placeholder`, - run: async () => ({ valid: this.isPlaceholderOnlyChangeSet(holdingChangeSet), report: holdingReport }), - }), + validate: () => undefined, describe: async () => { - const header = `Update holding stack '${extractStackNameFromId(holdingStackName)}' with placeholder resource`; - const desc = holdingReport ? `${header}\n\n${holdingReport.trimStart()}\n` : `${header} (empty change-set)`; - return [desc]; + return [`Update holding stack '${extractStackNameFromId(holdingStackName)}' with placeholder resource`]; }, execute: async () => { + holdingTemplate.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; await this.cfn.update({ stackName: holdingStackName, parameters: [], - templateBody: holdingWithPlaceholder, + templateBody: holdingTemplate, }); }, }, @@ -172,54 +146,14 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { describe: async () => { const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( holdingStackName, - )}' to '${extractStackNameFromId(gen2StackId)}'`; - const table = this.renderMappingTable(mappings); + )}' to '${extractStackNameFromId(gen2StackName)}'`; + const table = this.renderMappingTable(resourceMappings); return [`${header}\n\n${table}`]; }, execute: async () => { - // Fetch fresh templates at execution time - const source = await this.resolveSource(gen2StackId); - const currentHoldingTemplate = await this.cfn.fetchTemplate(holdingStackName); - const currentHoldingWithPlaceholder = { - ...currentHoldingTemplate, - Resources: { ...currentHoldingTemplate.Resources, [MIGRATION_PLACEHOLDER_LOGICAL_ID]: PLACEHOLDER_RESOURCE }, - }; - - const resourceMappings = mappings.map(({ sourceId, targetId }) => ({ - Source: { StackName: extractStackNameFromId(holdingStackName), LogicalResourceId: sourceId }, - Destination: { StackName: extractStackNameFromId(gen2StackId), LogicalResourceId: targetId }, - })); - - const targetTemplate = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; - const holdingAfterRemoval = JSON.parse(JSON.stringify(currentHoldingWithPlaceholder)) as CFNTemplate; - for (const mapping of resourceMappings) { - targetTemplate.Resources[mapping.Destination.LogicalResourceId] = - currentHoldingWithPlaceholder.Resources[mapping.Source.LogicalResourceId]; - delete holdingAfterRemoval.Resources[mapping.Source.LogicalResourceId]; - } - - await this.cfn.refactor({ - StackDefinitions: [ - { TemplateBody: JSON.stringify(holdingAfterRemoval), StackName: holdingStackName }, - { TemplateBody: JSON.stringify(targetTemplate), StackName: gen2StackId }, - ], - ResourceMappings: resourceMappings, - }); + await this.cfn.refactor(resourceMappings); }, }, ]; } - - /** - * Returns true if the changeset is empty or only adds the migration placeholder. - */ - private isPlaceholderOnlyChangeSet(changeSet: DescribeChangeSetOutput | undefined): boolean { - if (!changeSet) return true; - const changes = changeSet.Changes ?? []; - if (changes.length === 0) return true; - return changes.every((c) => { - const rc = c.ResourceChange; - return rc?.Action === 'Add' && rc?.LogicalResourceId === MIGRATION_PLACEHOLDER_LOGICAL_ID; - }); - } } From 2698a8f5ea8041a45cae04a5adda8d971ba0c54d Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 18:29:32 -0400 Subject: [PATCH 29/91] refactor(cli-internal): use SDK ResourceMapping and strip all DependsOn Replace custom MoveMapping with the SDK ResourceMapping type. Cfn.refactor() now accepts ResourceMapping[] directly, fetches both stack templates internally, and moves resources between them before calling the refactor API. Simplify resolveDependencies to unconditionally strip all DependsOn from templates. DependsOn only controls deployment ordering which is irrelevant during refactor since all resources already exist. This also eliminates the partial-view problem where each refactorer only resolved dependencies for its own resource types. Remove resourceIds computation from resolveSource/resolveTarget since resolveDependencies no longer needs it. --- Prompt: use SDK ResourceMapping, move template manipulation into Cfn.refactor, strip all DependsOn unconditionally. --- .../resolvers/cfn-dependency-resolver.ts | 29 +++++-------------- .../refactor/workflow/category-refactorer.ts | 4 ++- .../workflow/forward-category-refactorer.ts | 8 ++--- .../workflow/rollback-category-refactorer.ts | 4 +-- 4 files changed, 13 insertions(+), 32 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.ts index 5ec7b56e3f7..fd11854fd16 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.ts @@ -1,31 +1,16 @@ import { CFNTemplate } from '../../cfn-template'; /** - * Resolves DependsOn references in a CloudFormation template for a stack refactor. - * Returns a new template; does not mutate input. - * - * When resources are being moved between stacks, DependsOn references that cross - * the refactor boundary must be removed: - * - Resources NOT being moved must not depend on resources being moved. - * - Resources being moved must only depend on other resources being moved. + * Strips all DependsOn references from a CloudFormation template. + * DependsOn only controls deployment ordering, which is irrelevant during + * refactor since all resources already exist. Removing them avoids + * cross-boundary issues when resources move between stacks. */ -export function resolveDependencies(template: CFNTemplate, resourcesToRefactor: string[]): CFNTemplate { +export function resolveDependencies(template: CFNTemplate): CFNTemplate { const cloned = JSON.parse(JSON.stringify(template)) as CFNTemplate; - for (const [logicalId, resource] of Object.entries(cloned.Resources)) { - if (!resource.DependsOn) continue; - - const deps = Array.isArray(resource.DependsOn) ? resource.DependsOn : [resource.DependsOn]; - const depsInRefactor = deps.filter((dep) => resourcesToRefactor.includes(dep)); - const isBeingMoved = resourcesToRefactor.includes(logicalId); - - if (!isBeingMoved && depsInRefactor.length > 0) { - // Resource stays — remove dependencies on resources being moved - resource.DependsOn = deps.filter((dep) => !resourcesToRefactor.includes(dep)); - } else if (isBeingMoved && deps.length > depsInRefactor.length) { - // Resource moves — keep only dependencies on other resources being moved - resource.DependsOn = depsInRefactor; - } + for (const resource of Object.values(cloned.Resources)) { + delete resource.DependsOn; } return cloned; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index fcf2585e2cd..013808d52d7 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -285,7 +285,9 @@ export abstract class CategoryRefactorer implements Planner { return `${prefix.substring(0, maxPrefixLength)}${tail}`; } - /** Renders a CLI table of move mappings. */ + /** + * Renders a CLI table of move mappings. + */ protected renderMappingTable(mappings: readonly ResourceMapping[]): string { const table = new CLITable({ head: ['Source Logical ID', 'Target Logical ID'], diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 5eef3f37e33..9a61ec51f10 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -72,8 +72,6 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const parameters = description.Parameters ?? []; const outputs = description.Outputs ?? []; - const resourceIds = [...this.filterResourcesByType(originalTemplate).keys()]; - const stackName = extractStackNameFromId(stackId); const withParams = resolveParameters(originalTemplate, parameters, stackName); const stackResources = await facade.fetchStackResources(stackId); @@ -84,7 +82,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { region: this.region, accountId: this.accountId, }); - const withDeps = resolveDependencies(withOutputs, resourceIds); + const withDeps = resolveDependencies(withOutputs); const resolved = resolveConditions(withDeps, parameters); const updatedParameters = await this.resolveOAuthParameters(parameters, outputs); @@ -103,10 +101,8 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const parameters = description.Parameters ?? []; const outputs = description.Outputs ?? []; - const resourceIds = [...this.filterResourcesByType(originalTemplate).keys()]; - const stackResources = await facade.fetchStackResources(stackId); - const withDeps = resolveDependencies(originalTemplate, resourceIds); + const withDeps = resolveDependencies(originalTemplate); const resolved = resolveOutputs({ template: withDeps, stackOutputs: outputs, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 9f388479805..a44460b3982 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -63,8 +63,6 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { const parameters = description.Parameters ?? []; const outputs = description.Outputs ?? []; - const resourceIds = [...this.filterResourcesByType(originalTemplate).keys()]; - const withParams = resolveParameters(originalTemplate, parameters); const stackResources = await facade.fetchStackResources(stackId); const withOutputs = resolveOutputs({ @@ -74,7 +72,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { region: this.region, accountId: this.accountId, }); - const resolved = resolveDependencies(withOutputs, resourceIds); + const resolved = resolveDependencies(withOutputs); return { stackId, resolvedTemplate: resolved, parameters }; } From aaaa3764ee4a52ab603775c303df76cc94b6cbba Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 19:53:15 -0400 Subject: [PATCH 30/91] fix(cli-internal): handle absent holding stacks and defer template fetch in rollback Check target stack existence before fetching its template in Cfn.refactor(). Use an empty holding template when the target stack doesn't exist yet (only holding stacks may be absent). Defer holdingTemplate fetch into the execute closure in rollback afterMove so it reads fresh state. Improve error messages to show resource spec instead of class name. --- Prompt: I've made changes. Commit. --- .../commands/gen2-migration/refactor/cfn.ts | 24 +++++++++++++++---- .../refactor/workflow/category-refactorer.ts | 5 ++-- .../workflow/rollback-category-refactorer.ts | 3 +-- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index 5309ef7efd9..a58c60d311e 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -37,6 +37,13 @@ const NO_UPDATES_MESSAGE = 'No updates are to be performed'; const CFN_IAM_CAPABILITY = 'CAPABILITY_NAMED_IAM'; export const OUTPUT_DIRECTORY = '.amplify/refactor.operations'; +const EMPTY_HOLDING_TEMPLATE: CFNTemplate = { + AWSTemplateFormatVersion: '2010-09-09', + Description: 'Temporary holding stack for Gen2 migration', + Resources: {}, + Outputs: {}, +}; + /** * Centralized CloudFormation operations for the refactor workflow. * Wraps update, refactor, and change set APIs behind a single client instance. @@ -91,8 +98,18 @@ export class Cfn { const sourceStackId = resourceMappings[0].Source.StackName; const targetStackId = resourceMappings[0].Destination.StackName; + this.info(`Creating stack refactor: ${extractStackNameFromId(sourceStackId)} → ${extractStackNameFromId(targetStackId)}`); + + const targetStack = await this.findStack(targetStackId); + + if (!targetStack && !targetStackId.endsWith('-holding')) { + // only holding stacks may be absent because they are + // created by the refactor operation. + throw new AmplifyError('MigrationError', { message: `Stack with id ${targetStackId} not found` }); + } + const sourceTemplate = await this.fetchTemplate(sourceStackId); - const targetTemplate = await this.fetchTemplate(targetStackId); + const targetTemplate = targetStack ? await this.fetchTemplate(targetStackId) : EMPTY_HOLDING_TEMPLATE; for (const mapping of resourceMappings) { targetTemplate.Resources[mapping.Destination.LogicalResourceId] = sourceTemplate.Resources[mapping.Source.LogicalResourceId]; @@ -112,7 +129,6 @@ export class Cfn { writeRefactorSnapshot(input); - this.info(`Creating stack refactor: ${extractStackNameFromId(sourceStackId)} → ${extractStackNameFromId(targetStackId)}`); const { StackRefactorId } = await this.client.send(new CreateStackRefactorCommand(input)); if (!StackRefactorId) { throw new AmplifyError('StackStateError', { @@ -120,8 +136,6 @@ export class Cfn { }); } - const destinationStack = await this.findStack(targetStackId); - this.info(`Waiting for stack refactor creation to complete: ${StackRefactorId}`); await waitUntilStackRefactorCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); @@ -135,7 +149,7 @@ export class Cfn { // Destination may be newly created (EnableStackCreation) or updated this.info(`Waiting for destination stack: ${extractStackNameFromId(targetStackId)}`); - if (destinationStack) { + if (targetStack) { await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: targetStackId }); } else { await waitUntilStackCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: targetStackId }); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 013808d52d7..836b4d7f534 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -79,14 +79,15 @@ export abstract class CategoryRefactorer implements Planner { const sourceStackId = await this.fetchSourceStackId(); const destStackId = await this.fetchDestStackId(); + const resourceSpec = `${this.resource.category}/${this.resource.resourceName} (${this.resource.service})`; if (!sourceStackId) { throw new AmplifyError('MigrationError', { - message: `[${this.constructor.name}] unable to find source stack`, + message: `Unable to find source stack for resource: ${resourceSpec}`, }); } if (!destStackId) { throw new AmplifyError('MigrationError', { - message: `[${this.constructor.name}] unable to find target stack`, + message: `Unable to find target stack for resource: ${resourceSpec}`, }); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index a44460b3982..36104a02d1c 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -115,8 +115,6 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { const holdingStack = await this.cfn.findStack(holdingStackName); if (!holdingStack) return []; - const holdingTemplate = await this.cfn.fetchTemplate(holdingStackName); - const resourceMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ Source: { LogicalResourceId: m.Source.LogicalResourceId, StackName: holdingStackName }, Destination: { LogicalResourceId: m.Source.LogicalResourceId, StackName: gen2StackName }, @@ -130,6 +128,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return [`Update holding stack '${extractStackNameFromId(holdingStackName)}' with placeholder resource`]; }, execute: async () => { + const holdingTemplate = await this.cfn.fetchTemplate(holdingStackName); holdingTemplate.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; await this.cfn.update({ stackName: holdingStackName, From a41cf123a5c2b1c87d12b3433be5d1c3e82eb0c3 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 20:49:18 -0400 Subject: [PATCH 31/91] refactor(cli-internal): share Cfn instance, enable rollback resolution, add resource logging Share a single Cfn instance across all refactorers. Move update dedup from StackFacade into the workflow: updateSource/updateTarget check cfn.isUpdateClaimed() and call cfn.claimUpdate() at plan time to prevent duplicate operations in the plan. Enable resolveSource/resolveTarget and updateSource/updateTarget in rollback (previously skipped). This fixes the Fn::GetAtt dangling reference error when rolling back after a Gen2 redeploy. Thread DiscoveredResource into Cfn.update(), refactor(), and deleteStack() for resource-scoped log prefixes. --- Prompt: share Cfn instance, enable rollback resolution, add resource logging, plan-time update dedup. --- .../refactor/auth/auth-cognito-forward.ts | 4 +- .../commands/gen2-migration/refactor/cfn.ts | 53 ++++++++++++------- .../gen2-migration/refactor/refactor.ts | 36 ++++++++----- .../gen2-migration/refactor/stack-facade.ts | 11 ---- .../refactor/workflow/category-refactorer.ts | 22 ++++---- .../workflow/forward-category-refactorer.ts | 22 +------- .../workflow/rollback-category-refactorer.ts | 11 +--- 7 files changed, 78 insertions(+), 81 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts index 9dd1becfeaf..cfa1a75d480 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-forward.ts @@ -4,6 +4,7 @@ import { AwsClients } from '../../aws-clients'; import { StackFacade } from '../stack-facade'; import { retrieveOAuthValues } from '../oauth-values-retriever'; import { ForwardCategoryRefactorer } from '../workflow/forward-category-refactorer'; +import { Cfn } from '../cfn'; import { SpinningLogger } from '../../_spinning-logger'; import { DiscoveredResource } from '../../generate/_infra/gen1-app'; import { CFNResource } from '../../cfn-template'; @@ -44,8 +45,9 @@ export class AuthCognitoForwardRefactorer extends ForwardCategoryRefactorer { private readonly appId: string, private readonly environmentName: string, protected readonly resource: DiscoveredResource, + cfn: Cfn, ) { - super(gen1Env, gen2Branch, clients, region, accountId, logger, resource); + super(gen1Env, gen2Branch, clients, region, accountId, logger, resource, cfn); } protected resourceTypes(): string[] { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index a58c60d311e..b7767ebf8d9 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -49,16 +49,29 @@ const EMPTY_HOLDING_TEMPLATE: CFNTemplate = { * Wraps update, refactor, and change set APIs behind a single client instance. */ export class Cfn { - constructor( - private readonly client: CloudFormationClient, - private readonly logger: SpinningLogger, - private readonly resource?: DiscoveredResource, - ) { + private readonly updateStackClaims = new Set(); + + constructor(private readonly client: CloudFormationClient, private readonly logger: SpinningLogger) { if (!fs.existsSync(OUTPUT_DIRECTORY)) { fs.mkdirSync(OUTPUT_DIRECTORY, { recursive: true }); } } + /** + * Returns true if the stack has been claimed for update by a refactorer. + */ + public isUpdateClaimed(stackName: string): boolean { + return this.updateStackClaims.has(stackName); + } + + /** + * Marks a stack as claimed for update. Call at plan time to prevent + * duplicate update operations across refactorers sharing a stack. + */ + public claimUpdate(stackName: string): void { + this.updateStackClaims.add(stackName); + } + /** * Updates a stack with the given template. * No-ops if no updates are needed. Throws on failure. @@ -67,8 +80,9 @@ export class Cfn { readonly stackName: string; readonly parameters: Parameter[]; readonly templateBody: CFNTemplate; + readonly resource?: DiscoveredResource; }): Promise { - const { stackName, parameters, templateBody } = params; + const { stackName, parameters, templateBody, resource } = params; try { const input: UpdateStackCommandInput = { TemplateBody: JSON.stringify(templateBody), @@ -78,7 +92,7 @@ export class Cfn { Tags: [], }; writeUpdateSnapshot(input); - this.info(`Updating stack: ${extractStackNameFromId(stackName)}`); + this.info(`Updating stack: ${extractStackNameFromId(stackName)}`, resource); await this.client.send(new UpdateStackCommand(input)); } catch (e) { if (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string' && e.message.includes(NO_UPDATES_MESSAGE)) { @@ -86,7 +100,7 @@ export class Cfn { } throw e; } - this.info(`Waiting for stack update to complete: ${extractStackNameFromId(stackName)}`); + this.info(`Waiting for stack update to complete: ${extractStackNameFromId(stackName)}`, resource); await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: stackName }); } @@ -94,11 +108,11 @@ export class Cfn { * Creates and executes a CloudFormation stack refactor. * Throws on failure. */ - public async refactor(resourceMappings: ResourceMapping[]): Promise { + public async refactor(resourceMappings: ResourceMapping[], resource?: DiscoveredResource): Promise { const sourceStackId = resourceMappings[0].Source.StackName; const targetStackId = resourceMappings[0].Destination.StackName; - this.info(`Creating stack refactor: ${extractStackNameFromId(sourceStackId)} → ${extractStackNameFromId(targetStackId)}`); + this.info(`Creating stack refactor: ${extractStackNameFromId(sourceStackId)} → ${extractStackNameFromId(targetStackId)}`, resource); const targetStack = await this.findStack(targetStackId); @@ -136,19 +150,19 @@ export class Cfn { }); } - this.info(`Waiting for stack refactor creation to complete: ${StackRefactorId}`); + this.info(`Waiting for stack refactor creation to complete: ${StackRefactorId}`, resource); await waitUntilStackRefactorCreateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); await this.client.send(new ExecuteStackRefactorCommand({ StackRefactorId })); - this.info(`Waiting for stack refactor execution to complete: ${StackRefactorId}`); + this.info(`Waiting for stack refactor execution to complete: ${StackRefactorId}`, resource); await waitUntilStackRefactorExecuteComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackRefactorId }); - this.info(`Waiting for source stack update: ${extractStackNameFromId(sourceStackId)}`); + this.info(`Waiting for source stack update: ${extractStackNameFromId(sourceStackId)}`, resource); await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: sourceStackId }); // Destination may be newly created (EnableStackCreation) or updated - this.info(`Waiting for destination stack: ${extractStackNameFromId(targetStackId)}`); + this.info(`Waiting for destination stack: ${extractStackNameFromId(targetStackId)}`, resource); if (targetStack) { await waitUntilStackUpdateComplete({ client: this.client, maxWaitTime: MAX_WAIT_TIME_SECONDS }, { StackName: targetStackId }); } else { @@ -242,11 +256,11 @@ export class Cfn { * Deletes a stack and waits for deletion to complete. * No-ops if the stack does not exist. */ - public async deleteStack(stackName: string): Promise { + public async deleteStack(stackName: string, resource?: DiscoveredResource): Promise { try { - this.info(`Deleting stack: ${extractStackNameFromId(stackName)}`); + this.info(`Deleting stack: ${extractStackNameFromId(stackName)}`, resource); await this.client.send(new DeleteStackCommand({ StackName: stackName })); - this.info(`Waiting for stack deletion: ${extractStackNameFromId(stackName)}`); + this.info(`Waiting for stack deletion: ${extractStackNameFromId(stackName)}`, resource); await waitUntilStackDeleteComplete({ client: this.client, maxWaitTime: 300 }, { StackName: stackName }); } catch (error: unknown) { if ( @@ -309,8 +323,9 @@ export class Cfn { return lines.join('\n'); } - private info(message: string) { - this.logger.info(`${this.resource ? `[${this.resource.category}/${this.resource.resourceName}] ` : ''}${message}`); + private info(message: string, resource?: DiscoveredResource) { + const prefix = resource ? `[${resource.category}/${resource.resourceName}] ` : ''; + this.logger.info(`${prefix}${message}`); } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts index 69eb0156060..0ec61fe48b1 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts @@ -20,6 +20,7 @@ import { Gen1App } from '../generate/_infra/gen1-app'; import { Assessment } from '../_assessment'; import { AuthUserPoolGroupsForwardRefactorer } from './auth/auth-user-pool-groups-forward'; import { AuthUserPoolGroupsRollbackRefactorer } from './auth/auth-user-pool-groups-rollback'; +import { Cfn } from './cfn'; export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { /** @@ -52,7 +53,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { public async forward(): Promise { const toStack = this.extractParameters(); - const { clients, accountId, gen1Env, gen2Branch } = await this.createInfrastructure(toStack); + const { clients, accountId, gen1Env, gen2Branch, cfn } = await this.createInfrastructure(toStack); const gen1App = await Gen1App.create({ appId: this.appId, region: this.region, envName: this.currentEnvName, clients }); const discovered = gen1App.discover(); @@ -73,23 +74,28 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { this.appId, this.currentEnvName, resource, + cfn, ), ); break; case 'auth:Cognito-UserPool-Groups': refactorers.push( - new AuthUserPoolGroupsForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + new AuthUserPoolGroupsForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), ); break; case 'storage:S3': - refactorers.push(new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); + refactorers.push( + new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), + ); break; case 'storage:DynamoDB': - refactorers.push(new StorageDynamoForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); + refactorers.push( + new StorageDynamoForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), + ); break; case 'analytics:Kinesis': refactorers.push( - new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), ); break; // Stateless categories — nothing to refactor @@ -117,7 +123,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { public async rollback(): Promise { const toStack = this.extractParameters(); - const { clients, accountId, gen1Env, gen2Branch } = await this.createInfrastructure(toStack); + const { clients, accountId, gen1Env, gen2Branch, cfn } = await this.createInfrastructure(toStack); const gen1App = await Gen1App.create({ appId: this.appId, region: this.region, envName: this.currentEnvName, clients }); const discovered = gen1App.discover(); @@ -127,24 +133,28 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { for (const resource of discovered) { switch (resource.key) { case 'auth:Cognito': - refactorers.push(new AuthCognitoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); + refactorers.push( + new AuthCognitoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), + ); break; case 'auth:Cognito-UserPool-Groups': refactorers.push( - new AuthUserPoolGroupsRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + new AuthUserPoolGroupsRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), ); break; case 'storage:S3': - refactorers.push(new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource)); + refactorers.push( + new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), + ); break; case 'storage:DynamoDB': refactorers.push( - new StorageDynamoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + new StorageDynamoRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), ); break; case 'analytics:Kinesis': refactorers.push( - new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource), + new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, this.region, accountId, this.logger, resource, cfn), ); break; // Stateless categories — nothing to rollback @@ -172,6 +182,7 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { accountId: string; gen1Env: StackFacade; gen2Branch: StackFacade; + cfn: Cfn; }> { const stsClient = new STSClient({}); const { Account: accountId } = await stsClient.send(new GetCallerIdentityCommand({})); @@ -182,8 +193,9 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { const clients = new AwsClients({ region: this.region }); const gen1Env = new StackFacade(clients, this.rootStackName); const gen2Branch = new StackFacade(clients, toStack); + const cfn = new Cfn(clients.cloudFormation, this.logger); - return { clients, accountId, gen1Env, gen2Branch }; + return { clients, accountId, gen1Env, gen2Branch, cfn }; } /** diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts index 0fdc6ec2e9b..44f8f130258 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts @@ -8,7 +8,6 @@ import { import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { AwsClients } from '../aws-clients'; import { CFNTemplate } from '../cfn-template'; -import { ResolvedStack } from './workflow/category-refactorer'; /** * Lazy-loading, caching facade over a CloudFormation stack hierarchy. @@ -16,8 +15,6 @@ import { ResolvedStack } from './workflow/category-refactorer'; * Cache entries are evicted on rejection to allow retries. */ export class StackFacade { - private readonly updatedStacks = new Map(); - constructor(private readonly clients: AwsClients, public readonly rootStackName: string) {} /** @@ -58,12 +55,4 @@ export class StackFacade { const response = await this.clients.cloudFormation.send(new DescribeStackResourcesCommand({ StackName: stackId })); return response.StackResources ?? []; } - - public isUpdated(stack: ResolvedStack): boolean { - return this.updatedStacks.get(stack.stackId) === true; - } - - public markUpdated(stack: ResolvedStack) { - this.updatedStacks.set(stack.stackId, true); - } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 836b4d7f534..a949306654b 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -64,11 +64,8 @@ export abstract class CategoryRefactorer implements Planner { protected readonly accountId: string, protected readonly logger: SpinningLogger, protected readonly resource: DiscoveredResource, - ) { - this.cfn = new Cfn(clients.cloudFormation, logger, resource); - } - - protected readonly cfn: Cfn; + protected readonly cfn: Cfn, + ) {} /** * Computes the full operation plan for this category. @@ -158,10 +155,12 @@ export abstract class CategoryRefactorer implements Planner { /** * Creates operations to update the source stack with the resolved template. - * Adds a placeholder resource if removing the mapped resources would leave the stack empty. - * Rollback overrides this to return []. + * Skips if the stack was already updated by a previous refactorer. */ protected async updateSource(source: ResolvedStack): Promise { + if (this.cfn.isUpdateClaimed(source.stackId)) return []; + this.cfn.claimUpdate(source.stackId); + const sourceStackName = extractStackNameFromId(source.stackId); const report = await this.createChangeSetReport(source); return [ @@ -180,6 +179,7 @@ export abstract class CategoryRefactorer implements Planner { stackName: source.stackId, parameters: source.parameters, templateBody: source.resolvedTemplate, + resource: this.resource, }); }, }, @@ -188,9 +188,12 @@ export abstract class CategoryRefactorer implements Planner { /** * Creates operations to update the target stack with the resolved template. - * Rollback overrides this to return []. + * Skips if the stack was already updated by a previous refactorer. */ protected async updateTarget(target: ResolvedStack): Promise { + if (this.cfn.isUpdateClaimed(target.stackId)) return []; + this.cfn.claimUpdate(target.stackId); + const targetStackName = extractStackNameFromId(target.stackId); const report = await this.createChangeSetReport(target); return [ @@ -209,6 +212,7 @@ export abstract class CategoryRefactorer implements Planner { stackName: target.stackId, parameters: target.parameters, templateBody: target.resolvedTemplate, + resource: this.resource, }); }, }, @@ -251,7 +255,7 @@ export abstract class CategoryRefactorer implements Planner { return [`${header}\n\n${table}`]; }, execute: async () => { - await this.cfn.refactor(blueprint.mappings); + await this.cfn.refactor(blueprint.mappings, this.resource); }, }, ]; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 9a61ec51f10..5f40cc7f790 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -114,24 +114,6 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: resolved, parameters }; } - protected override async updateSource(source: ResolvedStack): Promise { - if (this.gen1Env.isUpdated(source)) { - return []; - } - const operations = super.updateSource(source); - this.gen1Env.markUpdated(source); - return operations; - } - - protected override async updateTarget(target: ResolvedStack): Promise { - if (this.gen2Branch.isUpdated(target)) { - return []; - } - const operations = super.updateTarget(target); - this.gen2Branch.markUpdated(target); - return operations; - } - /** * Moves Gen2 resources to a holding stack before the main refactor. * Templates are fetched fresh at execution time. @@ -154,7 +136,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { validate: () => undefined, describe: async () => [`Delete stale holding stack '${extractStackNameFromId(holdingStackName)}'`], execute: async () => { - await this.cfn.deleteStack(holdingStackName); + await this.cfn.deleteStack(holdingStackName, this.resource); }, }); } @@ -170,7 +152,7 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return [`${header}\n\n${table}`]; }, execute: async () => { - await this.cfn.refactor(resourceMappings); + await this.cfn.refactor(resourceMappings, this.resource); }, }); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 36104a02d1c..cdceb3f1bbb 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -89,14 +89,6 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return { stackId, resolvedTemplate: originalTemplate, parameters }; } - protected override async updateSource(_source: ResolvedStack): Promise { - return []; - } - - protected override async updateTarget(_target: ResolvedStack): Promise { - return []; - } - /** * Rollback: no pre-move operations. */ @@ -134,6 +126,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { stackName: holdingStackName, parameters: [], templateBody: holdingTemplate, + resource: this.resource, }); }, }, @@ -148,7 +141,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return [`${header}\n\n${table}`]; }, execute: async () => { - await this.cfn.refactor(resourceMappings); + await this.cfn.refactor(resourceMappings, this.resource); }, }, ]; From 32091b14639295066172cf6fec2b6751346272f4 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 22:10:21 -0400 Subject: [PATCH 32/91] test(cli-internal): update refactor tests for new interfaces Update all refactor test files to match the new API: SDK ResourceMapping instead of MoveMapping, slim RefactorBlueprint with only mappings + stack IDs, shared Cfn instance passed to constructors, and resolveDependencies taking no resource IDs. Update rollback plan test to expect updateSource/updateTarget operations (rollback now resolves and updates both stacks). Remove holding-stack.test.ts (module no longer exists). Rewrite build-refactor-templates.test.ts as minimal constant tests since buildBlueprint was removed. Update refactor.md docs to reflect current architecture. --- Prompt: make all the tests compile, update docs. --- .../src/commands/gen2-migration/refactor.md | 390 ++++++------------ .../refactor/auth-forward-mapping.test.ts | 35 +- .../refactor/auth-forward-plan.test.ts | 8 +- .../refactor/auth-rollback-plan.test.ts | 17 +- .../refactor/build-refactor-templates.test.ts | 187 +-------- .../refactor/cfn-dependency-resolver.test.ts | 51 +-- .../default-resource-mappings.test.ts | 73 ++-- .../refactor/forward-beforemove.test.ts | 110 +++-- .../refactor/holding-stack.test.ts | 44 -- .../refactor/rollback-aftermove.test.ts | 142 +++---- .../workflow/rollback-category-refactorer.ts | 2 +- 11 files changed, 319 insertions(+), 740 deletions(-) delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/holding-stack.test.ts diff --git a/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md b/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md index 68871b4f1dc..ab9b0a94eab 100644 --- a/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md +++ b/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md @@ -1,316 +1,174 @@ # refactor -The refactor module is a CloudFormation stack refactoring utility for moving stateful resources from AWS Amplify Gen1 stacks to Gen2 stacks. It uses the CloudFormation StackRefactor API to atomically transfer resource ownership between stacks without recreating resources, preserving data and avoiding service disruption during migration. - -During Amplify Gen1 to Gen2 migration, stateful resources like Cognito User Pools and S3 buckets cannot simply be deleted and recreated—this would result in data loss (user accounts, stored files). The refactor module solves this by using CloudFormation's stack refactor capability to transfer resource ownership between stacks while keeping the physical resources intact. The module provides an interactive workflow that assesses available resources, allows selective category migration, and generates the necessary CloudFormation templates. - -Primary consumers include the `AmplifyMigrationRefactorStep` in gen2-migration-core, Amplify CLI users running the refactor migration step, and DevOps engineers managing Amplify infrastructure transitions. - -## Key Responsibilities - -- Parse and validate Gen1 and Gen2 CloudFormation stack structures to identify category stacks (auth, storage) and their resources -- Assess available resources for migration with interactive category selection, displaying resource counts and types per category -- Generate pre-processed CloudFormation templates by resolving parameters, conditions, outputs, and dependencies for both source and destination stacks -- Execute CloudFormation stack refactor operations to atomically move resources between Gen1 and Gen2 stacks using resource mappings -- Handle OAuth provider credentials retrieval from SSM and Cognito for auth category migrations with social login providers +The refactor module moves stateful CloudFormation resources between Amplify Gen1 and Gen2 stacks using the CloudFormation StackRefactor API. Resources are transferred atomically without recreation, preserving data (user accounts, stored files, etc.) during migration. ## Architecture -The module uses a layered architecture with orchestration, template generation, and resolution layers. `AmplifyMigrationRefactorStep` orchestrates the workflow, `TemplateGenerator` manages category-level operations, `CategoryTemplateGenerator` handles resource-level transformations, and four resolver classes (Parameter, Condition, Dependency, Output) transform CloudFormation templates for refactoring. The module uses CloudFormation's `CreateStackRefactor` and `ExecuteStackRefactor` APIs for atomic resource transfers. +The module follows a plan-then-execute model. Each category (auth, storage, analytics) gets a `CategoryRefactorer` that produces a list of `AmplifyMigrationOperation`s during planning. Operations are collected into a `Plan`, presented to the user for confirmation, then executed sequentially. -```mermaid -flowchart TD - subgraph Orchestration - AMRS["AmplifyMigrationRefactorStep"] - end - - subgraph "Template Generation" - TG["TemplateGenerator"] - CTG["CategoryTemplateGenerator"] - end - - subgraph "Resolvers" - PR["CfnParameterResolver"] - OR["CfnOutputResolver"] - DR["CfnDependencyResolver"] - CR["CFNConditionResolver"] - end - - subgraph "Stack Operations" - CSU["cfn-stack-updater"] - CSRU["cfn-stack-refactor-updater"] - end - - subgraph "OAuth Support" - OVR["oauth-values-retriever"] - end - - AMRS -->|"orchestrates"| TG - TG -->|"per category"| CTG - CTG -->|"1. resolve params"| PR - PR -->|"2. resolve outputs"| OR - OR -->|"3. resolve deps"| DR - DR -->|"4. resolve conditions"| CR - CTG -->|"update stacks"| CSU - CTG -->|"refactor stacks"| CSRU - CTG -->|"auth with OAuth"| OVR ``` - -| Component | File | Purpose | -| -------------------------------------- | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AmplifyMigrationRefactorStep` | `refactor.ts` | Main orchestrator implementing `AmplifyMigrationStep` interface. Handles parameter extraction, resource mapping validation, interactive category selection, and delegates to TemplateGenerator for execution. | -| `TemplateGenerator` (internal) | `generators/template-generator.ts` | Core engine that parses category stacks from Gen1/Gen2 root stacks, initializes CategoryTemplateGenerators for each category, and coordinates the refactor process across categories. | -| `CategoryTemplateGenerator` (internal) | `generators/category-template-generator.ts` | Category-specific template processor that generates pre-processed templates for Gen1 and Gen2 stacks, builds logical ID mappings between stacks, and produces final refactor templates. | -| `CfnParameterResolver` (internal) | `resolvers/cfn-parameter-resolver.ts` | Resolves CloudFormation `Ref` expressions for parameters by substituting actual values. Handles `CommaDelimitedList` and `List` types, and `AWS::StackName` pseudo-parameter. | -| `CFNConditionResolver` | `resolvers/cfn-condition-resolver.ts` | Evaluates CloudFormation conditions (`Fn::Equals`, `Fn::Not`, `Fn::Or`, `Fn::And`) and resolves `Fn::If` expressions in resource properties. Removes resources with unmet conditions. | -| `CfnDependencyResolver` | `resolvers/cfn-dependency-resolver.ts` | Adjusts `DependsOn` relationships for resources being refactored. Ensures resources moving to Gen2 only depend on other moving resources. | -| `CfnOutputResolver` | `resolvers/cfn-output-resolver.ts` | Resolves `Ref` and `Fn::GetAtt` expressions using stack outputs and physical resource IDs. Constructs ARNs for S3, Cognito, IAM, SQS, and Lambda resources. | -| `cfn-stack-updater` | `cfn-stack-updater.ts` | CloudFormation stack update utilities with polling for completion state. Handles 'no updates' scenarios gracefully. | -| `cfn-stack-refactor-updater` | `cfn-stack-refactor-updater.ts` | CloudFormation stack refactor execution using `CreateStackRefactor` and `ExecuteStackRefactor` APIs. Polls for completion and validates both source and destination stack states. | -| `oauth-values-retriever` | `oauth-values-retriever.ts` | Retrieves OAuth provider credentials from Cognito (client_id, client_secret) and SSM (Sign In With Apple private key) for auth migrations with social login. | - -## Interface - -### CLI Command - -The refactor step is invoked as part of the gen2-migration workflow: - -```bash -amplify gen2-migration refactor --to [--resourceMappings file:///path/to/mappings.json] +AmplifyMigrationRefactorStep (refactor.ts) + ├── discovers resources via Gen1App + ├── creates shared Cfn instance + StackFacade per root stack + └── instantiates CategoryRefactorers per discovered resource + │ + ├── ForwardCategoryRefactorer (Gen1 → Gen2) + │ ├── auth/auth-cognito-forward.ts + │ ├── auth/auth-user-pool-groups-forward.ts + │ ├── storage/storage-forward.ts + │ ├── storage/storage-dynamo-forward.ts + │ └── analytics/analytics-forward.ts + │ + └── RollbackCategoryRefactorer (Gen2 → Gen1) + ├── auth/auth-cognito-rollback.ts + ├── auth/auth-user-pool-groups-rollback.ts + ├── storage/storage-rollback.ts + ├── storage/storage-dynamo-rollback.ts + └── analytics/analytics-rollback.ts ``` -| Option | Description | -| --------------------------- | ----------------------------------------------------------------------- | -| `--to ` | Required. Target Gen2 stack name for resource migration. | -| `--resourceMappings ` | Optional. Custom resource mappings file with `file://` protocol prefix. | - -### Exports - -| Export | Type | Signature | Description | -| ------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `AmplifyMigrationRefactorStep` | class | `forward(): Promise; rollback(): Promise; assess(assessment: Assessment): Promise` | Main entry point implementing the `AmplifyMigrationStep` interface. | -| `TemplateGenerator` | class | `initializeForAssessment(): Promise; getStackTemplate(stackId): Promise; getResourcesToMigrate(template, category): string[]; generateSelectedCategories(categories, resourceMap?): Promise` | Core template generation engine. | -| `CategoryTemplateGenerator` | class | `generateGen1PreProcessTemplate(): Promise; generateGen2PreProcessTemplate(): Promise; moveGen2ResourcesToHoldingStack(resolvedGen2Template: CFNTemplate): Promise; generateRefactorTemplates(...): CFNStackRefactorTemplates` | Category-specific template generator. | -| `tryRefactorStack` | function | `async (cfnClient, input, attempts?): Promise<[boolean, FailedRefactorResponse \| undefined]>` | Executes CloudFormation stack refactor operation with polling. | -| `tryUpdateStack` | function | `async (cfnClient, stackName, parameters, templateBody, attempts?): Promise` | Updates a CloudFormation stack with given template. | -| `CfnParameterResolver` | class | `resolve(parameters: Parameter[]): CFNTemplate` | Resolves CloudFormation parameter references. | -| `CFNConditionResolver` | class | `resolve(parameters: Parameter[]): CFNTemplate` | Resolves CloudFormation conditions. | -| `CfnDependencyResolver` | class | `resolve(resourcesToRefactor: string[]): CFNTemplate` | Resolves DependsOn relationships. | -| `CfnOutputResolver` | class | `resolve(logicalResourceIds, stackOutputs, stackResources): CFNTemplate` | Resolves Ref and Fn::GetAtt references. | -| `retrieveOAuthValues` | function | `async (params: RetrieveOAuthValuesParameters): Promise` | Retrieves OAuth provider credentials from Cognito and SSM. | - -### Supported Resource Types +### Key Components -The module supports migrating the following CloudFormation resource types: +| Component | File | Purpose | +| ------------------------------ | ------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AmplifyMigrationRefactorStep` | `refactor.ts` | Orchestrator. Creates infrastructure, discovers resources, instantiates refactorers, builds the plan. | +| `CategoryRefactorer` | `workflow/category-refactorer.ts` | Abstract base class. Implements the shared plan() workflow: resolve → build mappings → update → beforeMove → move → afterMove. | +| `ForwardCategoryRefactorer` | `workflow/forward-category-refactorer.ts` | Forward direction base. Resolves Gen1 source and Gen2 target templates. Moves Gen2 resources to a holding stack before the main refactor. | +| `RollbackCategoryRefactorer` | `workflow/rollback-category-refactorer.ts` | Rollback direction base. Resolves Gen2 source and Gen1 target. Restores holding stack resources back to Gen2 after the main refactor. | +| `Cfn` | `cfn.ts` | Shared CloudFormation client wrapper. Handles update, refactor, changeset, delete, and template fetch operations. Tracks update claims to prevent duplicate stack updates across refactorers. | +| `StackFacade` | `stack-facade.ts` | Read-only facade over a CloudFormation stack hierarchy. Fetches nested stacks, templates, stack descriptions, and resources. | +| Resolvers | `resolvers/` | Pure functions that transform CloudFormation templates: parameter substitution, output resolution, dependency stripping, condition evaluation. | +| `oauth-values-retriever` | `oauth-values-retriever.ts` | Retrieves OAuth provider credentials from Cognito and SSM for auth migrations with social login. | -| Category | Resource Types | Refactorer Class | -| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------- | -| `auth` | `AWS::Cognito::UserPool`, `AWS::Cognito::UserPoolClient`, `AWS::Cognito::IdentityPool`, `AWS::Cognito::IdentityPoolRoleAttachment`, `AWS::Cognito::UserPoolDomain` | `AuthCognitoForwardRefactorer` | -| `auth-user-pool-group` | `AWS::Cognito::UserPoolGroup` | (handled by AuthCognitoForwardRefactorer) | -| `storage` (S3) | `AWS::S3::Bucket` | `StorageS3ForwardRefactorer` | -| `storage` (DynamoDB) | `AWS::DynamoDB::Table` | `StorageDynamoForwardRefactorer` | -| `analytics` | `AWS::Kinesis::Stream` | `AnalyticsKinesisForwardRefactorer` | +## Workflow -### Resource Discovery +### Forward (Gen1 → Gen2) -The refactor step uses `Gen1App.discover()` to iterate all resources from `amplify-meta.json` and dispatches by `resource.key` (a typed `ResourceKey`) via an exhaustive switch statement. The same switch is used by the `assess()` method to record support into an `Assessment` collector. - -Stateless categories (function, api) are skipped during refactoring — they have no stateful resources to move. - -### Multi-Resource Category Validation - -Refactorers assume a single resource per category. The `validateSingleResourcePerCategory()` function throws `AmplifyError` if any refactorer category (auth, storage, analytics) has more than one resource. - -## Dependencies - -**Internal:** - -- `gen2-migration-core` — `AmplifyMigrationStep` base class, `Plan` class, `SpinningLogger` class, `AmplifyGen2MigrationValidations` for lock status validation - -**External:** -| Package | Purpose | -|---------|---------| -| `@aws-sdk/client-cloudformation` | CloudFormation operations: DescribeStacks, DescribeStackResources, GetTemplate, UpdateStack, CreateStackRefactor, ExecuteStackRefactor, DescribeStackRefactor | -| `@aws-sdk/client-ssm` | SSM GetParameter for retrieving Sign In With Apple private key during OAuth migrations | -| `@aws-sdk/client-cognito-identity-provider` | DescribeIdentityProvider for retrieving OAuth provider details (client_id, client_secret) | -| `@aws-sdk/client-sts` | GetCallerIdentity for AWS account ID used in ARN construction | -| `@aws-amplify/amplify-cli-core` | AmplifyError for structured error handling, stateManager for project state | -| `@aws-amplify/amplify-prompts` | prompter for interactive category selection (yesOrNo) | -| `fs-extra` | File system operations for reading resource mappings JSON files | -| `node:fs/promises` | Creating templates output directory | -| `node:assert` | Runtime assertions for validation throughout the codebase | - -## Code Patterns - -### Resolver Chain Pattern - -Four resolver classes are applied sequentially to transform CloudFormation templates. Each resolver handles a specific aspect of template resolution, producing a fully resolved template ready for refactoring. The order matters because each resolver depends on previous transformations. - -```typescript -// Order: Parameter → Output → Dependency → Condition -const gen1ParametersResolvedTemplate = new CfnParameterResolver(oldGen1Template, stackName).resolve(Parameters); -const gen1TemplateWithOutputsResolved = new CfnOutputResolver(gen1ParametersResolvedTemplate, region, accountId).resolve( - logicalResourceIds, - Outputs, - stackResources, -); -const gen1TemplateWithDepsResolved = new CfnDependencyResolver(gen1TemplateWithOutputsResolved).resolve(logicalResourceIds); -const gen1TemplateWithConditionsResolved = new CFNConditionResolver(gen1TemplateWithDepsResolved).resolve(Parameters); +```mermaid +flowchart TD + A[Resolve Gen1 source template] --> B[Resolve Gen2 target template] + B --> C[Build resource mappings by type] + C --> D{mappings empty?} + D -- yes --> E[no-op] + D -- no --> F[Add placeholder if source would be empty] + F --> G["Update Gen1 stack (resolve refs)"] + G --> H["Update Gen2 stack (resolve refs)"] + H --> I[Move Gen2 resources → holding stack] + I --> J[Move Gen1 resources → Gen2 stack] ``` -### Logical ID Mapping +The forward workflow resolves both stack templates to replace `Ref`/`Fn::GetAtt` with literal values, then pushes those resolved templates via UpdateStack. This ensures no dangling references when resources are later removed. Gen2 resources are moved to a temporary holding stack first (preserving test data), then Gen1 resources are moved into the Gen2 stack. -Maps Gen1 resource logical IDs to Gen2 equivalents based on resource type. Handles special cases like UserPoolClient (Web vs Native) and UserPoolGroup naming conventions. +### Rollback (Gen2 → Gen1) -```typescript -const GEN1_RESOURCE_TYPE_TO_LOGICAL_RESOURCE_IDS_MAP = new Map([ - [CFN_AUTH_TYPE.UserPool.valueOf(), 'UserPool'], - [CFN_AUTH_TYPE.UserPoolClient.valueOf(), 'UserPoolClientWeb'], - [CFN_AUTH_TYPE.IdentityPool.valueOf(), 'IdentityPool'], -]); +```mermaid +flowchart TD + A[Resolve Gen2 source template] --> B[Resolve Gen1 target template] + B --> C[Build resource mappings by Gen1 logical IDs] + C --> D{mappings empty?} + D -- yes --> E[no-op] + D -- no --> F[Add placeholder if source would be empty] + F --> G["Update Gen2 stack (resolve refs)"] + G --> H["Update Gen1 stack (resolve refs)"] + H --> I[Move Gen2 resources → Gen1 stack] + I --> J{holding stack exists?} + J -- no --> K[done] + J -- yes --> L[Add placeholder to holding stack] + L --> M[Move holding resources → Gen2 stack] ``` -### Polling with Timeout +The rollback workflow mirrors forward but in reverse. It resolves and updates both stacks (necessary if the Gen2 app was redeployed after forward, which introduces fresh `Fn::GetAtt` references). After moving resources back to Gen1, it restores any holding stack resources back to Gen2. The holding stack is left with just a placeholder resource — cleanup is handled by `amplify gen2-migration decommission`. -CloudFormation operations are asynchronous. The module polls for completion state with configurable attempts and intervals. Stack updates poll every 1.5s for 60 attempts (90s), refactor operations poll every 12s for 300 attempts (60min). +### plan() Lifecycle -```typescript -const POLL_ATTEMPTS = 300; -const POLL_INTERVAL_MS = 12000; -do { - const response = await cfnClient.send(new DescribeStackRefactorCommand({ StackRefactorId })); - if (exitCondition(response)) return response; - await new Promise((res) => setTimeout(() => res(''), POLL_INTERVAL_MS)); - attempts--; -} while (attempts > 0); -``` +Each `CategoryRefactorer.plan()` follows this sequence: -### Category Configuration Map +1. **Discover stacks**: `fetchSourceStackId()` / `fetchDestStackId()` find the nested stacks by logical ID prefix. +2. **Resolve templates**: `resolveSource()` / `resolveTarget()` fetch templates from CloudFormation and run the resolver chain to replace intrinsic functions with actual values. +3. **Build mappings**: `buildResourceMappings()` matches source resources to target resources by type (forward) or by known Gen1 logical IDs (rollback). Returns `ResourceMapping[]` (SDK type). +4. **Add placeholder**: If removing all mapped resources would leave the source stack empty, a `WaitConditionHandle` placeholder is added to the resolved template. +5. **Update stacks**: `updateSource()` / `updateTarget()` push the resolved templates to CloudFormation via `Cfn.update()`. This replaces `Ref`/`Fn::GetAtt` with literal values so resources can be safely removed later. Dedup: if a stack was already claimed by a previous refactorer, the update is skipped. +6. **Before move** (forward only): Moves Gen2 target resources to a temporary holding stack via `Cfn.refactor()`. +7. **Move**: The main refactor — moves resources from source to target via `Cfn.refactor()`. +8. **After move** (rollback only): Restores holding stack resources back to Gen2, then deletes the holding stack. -Uses a configuration object to define which CloudFormation resource types can be migrated for each category. This enables extensibility for new categories. +### Template Resolution -```typescript -private readonly categoryGeneratorConfig = { - auth: { resourcesToRefactor: AUTH_RESOURCES_TO_REFACTOR }, - 'auth-user-pool-group': { resourcesToRefactor: AUTH_USER_POOL_GROUP_RESOURCES_TO_REFACTOR }, - storage: { resourcesToRefactor: STORAGE_RESOURCES_TO_REFACTOR }, -} as const; -``` +Templates are resolved to replace CloudFormation intrinsic functions with literal values. This is necessary because the StackRefactor API submits new template bodies for both stacks, and any `Ref`/`Fn::GetAtt` pointing to a resource being moved would become a dangling reference. -### ARN Construction +**Forward (Gen1 source):** parameters → outputs → dependencies → conditions +**Forward (Gen2 target):** dependencies → outputs +**Rollback (Gen2 source):** parameters → outputs → dependencies +**Rollback (Gen1 target):** no resolution (template used as-is) -Constructs ARNs for various AWS resource types when resolving `Fn::GetAtt` references. Uses region and account ID from AWS context. +The dependency resolver unconditionally strips all `DependsOn` from templates. `DependsOn` only controls deployment ordering, which is irrelevant during refactor since all resources already exist. -```typescript -case 'AWS::Cognito::UserPool': - return { Arn: `arn:aws:cognito-idp:${this.region}:${this.accountId}:userpool/${resourceIdentifier}` }; -case 'AWS::S3::Bucket': - return { Arn: `arn:aws:s3:::${resourceIdentifier}` }; -``` +### Deferred Template Fetching -### Graceful No-Op Handling +The `RefactorBlueprint` carries only mappings and stack IDs — no templates. Templates are fetched fresh at execution time inside each operation's `execute()` closure. This ensures that when multiple refactorers target the same stack (e.g., auth Cognito and auth UserPoolGroups both target the Gen2 auth stack), the second refactorer sees the stack as it actually is after the first refactorer has already modified it. -Stack update operations handle 'No updates are to be performed' responses gracefully, returning `UPDATE_COMPLETE` instead of throwing errors. +`updateSource`/`updateTarget` are the exception — they use plan-time resolved templates because they run before any moves and the templates are still fresh. -```typescript -try { - await cfnClient.send(new UpdateStackCommand({ ... })); - return pollStackForCompletionState(cfnClient, stackName, attempts); -} catch (e) { - if (e.message.includes('No updates are to be performed')) { - return UPDATE_COMPLETE; - } - throw e; -} -``` +### Update Deduplication -### Resource Mapping File Protocol +When two refactorers share a stack (e.g., both auth refactorers target the same Gen2 auth stack), only the first one should update it. The shared `Cfn` instance tracks "update claims" — the first refactorer claims the stack at plan time, and the second sees it's already claimed and returns no update operations. -Custom resource mappings must use `file://` protocol prefix for security and clarity. The module validates this prefix before reading the JSON file. +`Cfn.update()` also tracks completed updates so that the `isUpdateClaimed()` check reflects both plan-time claims and execution-time completions. -```typescript -if (!this.resourceMappings.startsWith(FILE_PROTOCOL_PREFIX)) { - throw new Error(`Resource mappings path must start with ${FILE_PROTOCOL_PREFIX}. Example: file:///path/to/mappings.json`); -} -const resourceMapPath = this.resourceMappings.split(FILE_PROTOCOL_PREFIX)[1]; -``` +### Cfn.refactor() Internals -## Known Limitations +`Cfn.refactor()` accepts `ResourceMapping[]` and handles all template manipulation internally: -- Multiple resources of the same type (e.g., multiple DynamoDB tables) are matched arbitrarily by type alone—the mapping may not preserve correct resource correspondence without explicit `--resourceMappings` -- The `--resourceMappings` CLI option is currently disabled (commented out in code) -- Auth with OAuth providers is known to be broken—fails on deployment after refactor when trying to replace IdP that already exists -- The refactor operation has a 60-minute timeout (300 attempts × 12s)—very large stacks may timeout +1. Checks if the target stack exists (only holding stacks may be absent — they're created by `EnableStackCreation`). +2. Fetches both stack templates (or uses an empty template for absent holding stacks). +3. Moves resources between templates based on the mappings. +4. Submits the refactor via `CreateStackRefactor` + `ExecuteStackRefactor`. +5. Waits for both stacks to reach their final state (update or create complete). -## Holding Stack (Gen2 Resource Retention) +## Holding Stack -During forward migration, Gen2 stateful resources are moved to a temporary "holding stack" instead of being deleted. This preserves test data that customers may have created while testing the Gen2 deployment. +During forward migration, Gen2 resources are moved to a temporary holding stack before Gen1 resources are moved into the Gen2 stack. This preserves Gen2 test data and enables rollback. -### How It Works +**Naming:** `{gen2CategoryStackPrefix}-{cfnHashSuffix}-holding` (truncated to 128 chars). -**Forward Migration:** +**Forward:** Gen2 resources → holding stack → Gen1 resources → Gen2 stack. +**Rollback:** Gen2 resources → Gen1 stack → holding resources → Gen2 stack → delete holding stack. -1. Gen1 stack is pre-processed (references resolved) -2. A holding stack is created: `{gen2CategoryStackPrefix}-{cfnHashSuffix}-holding` (the CloudFormation hash suffix after the last dash is preserved for uniqueness; the prefix is truncated if the name would exceed 128 characters) -3. Gen2 stateful resources are moved to the holding stack via StackRefactor -4. Gen1 resources are moved to Gen2 stack via StackRefactor +## Supported Categories -**Rollback:** +| Category | Resource Types | Forward Refactorer | Rollback Refactorer | +| ---------------------- | ---------------------------------------------------------------------------------- | ------------------------------------- | -------------------------------------- | +| auth (Cognito) | UserPool, UserPoolClient, IdentityPool, IdentityPoolRoleAttachment, UserPoolDomain | `AuthCognitoForwardRefactorer` | `AuthCognitoRollbackRefactorer` | +| auth (UserPool Groups) | UserPoolGroup | `AuthUserPoolGroupsForwardRefactorer` | `AuthUserPoolGroupsRollbackRefactorer` | +| storage (S3) | S3::Bucket | `StorageS3ForwardRefactorer` | `StorageS3RollbackRefactorer` | +| storage (DynamoDB) | DynamoDB::Table | `StorageDynamoForwardRefactorer` | `StorageDynamoRollbackRefactorer` | +| analytics (Kinesis) | Kinesis::Stream | `AnalyticsKinesisForwardRefactorer` | `AnalyticsKinesisRollbackRefactorer` | -1. Resources are moved from Gen2 back to Gen1 (existing logic) -2. If a holding stack exists, resources are restored from holding stack to Gen2 -3. The empty holding stack is deleted +Auth Cognito and UserPoolGroups are separate refactorers because they come from different Gen1 stacks but map to the same Gen2 auth stack. -**Decommission:** -After successful migration, run `amplify gen2-migration decommission` to delete any remaining holding stacks. +## Validations -### Holding Stack Structure +Before execution, the `Plan` runs a validation pass over all operations. Each operation can optionally return a validation check that runs before the user is asked to confirm. -```yaml -AWSTemplateFormatVersion: '2010-09-09' -Description: 'Temporary holding stack for Gen2 migration' -Metadata: - AmplifyMigration: - SourceCategoryStack: 'arn:aws:cloudformation:...' - Category: 'auth' -Resources: - # Gen2 resources moved here via StackRefactor - UserPool: - Type: AWS::Cognito::UserPool - ... -``` - -### Key Design Decisions - -- **One holding stack per category**: Matches the per-category refactor flow -- **Logical IDs preserved**: Gen2 logical IDs are kept in the holding stack, simplifying rollback -- **Graceful rollback**: If holding stack is missing during rollback, a warning is logged and rollback continues -- **Standalone stack**: Not nested under Gen1 or Gen2 to avoid CDK interference - -### Related Files - -| File | Purpose | -| ------------------ | ------------------------------------------------------------ | -| `holding-stack.ts` | Utilities for creating, finding, and deleting holding stacks | -| `decommission.ts` | Decommission command implementation | +| Validation | When | What it checks | +| ---------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Lock status | Before all operations | Fetches the Gen1 root stack's CloudFormation stack policy via `GetStackPolicy` and verifies it matches the expected deny-all policy (`Deny Update:* on *`). This confirms the stack was locked by `amplify gen2-migration lock`, which prevents accidental `amplify push` operations from modifying the Gen1 stack during migration. Fails if no policy exists or if the policy doesn't match exactly. | +| Source stack changeset | Per updateSource operation | Creates a CloudFormation changeset with the resolved template and checks that it produces no unexpected changes. The resolved template should only differ from the deployed template in that intrinsic functions (`Ref`, `Fn::GetAtt`) are replaced with literal values — no resource additions, deletions, or property changes should appear. A non-empty changeset is flagged as a validation failure and the report is shown to the user. | +| Target stack changeset | Per updateTarget operation | Same as source — verifies the resolved target template introduces no unexpected changes. | -## AI Development Notes +Validations that fail are reported in a summary table. The user can choose to proceed despite failures, but the report gives visibility into what will change. -**Important considerations:** +## CLI -- The module uses CloudFormation's StackRefactor API which atomically moves resources between stacks—this is a relatively new AWS feature and may have limitations not documented here -- Four resolver classes must be applied in the correct order: Parameter → Output → Dependency → Condition. The order matters because each resolver depends on previous transformations -- The logical ID mapping between Gen1 and Gen2 is critical—UserPoolClient has special handling (Web vs Native) and UserPoolGroup uses CDK hash suffixes that must be stripped -- OAuth migrations require credentials from both Cognito (client_id, client_secret) and SSM (Sign In With Apple private key)—ensure proper IAM permissions -- The module supports both forward migration (Gen1→Gen2) and rollback (Gen2→Gen1) operations, but rollback has different logical ID mapping logic -- Category stacks are identified by parsing the nested stack's `Description` field as JSON and checking the `stackType` property (e.g., `auth` vs `UserPool-Groups`). - -**Common pitfalls:** +```bash +amplify gen2-migration refactor --to +``` -- The `--to` parameter is required and must point to a valid Gen2 stack name—`InputValidationError` is thrown if missing -- Resource mappings file must use `file://` protocol prefix (e.g., `file:///path/to/mappings.json`)—relative paths without protocol will fail -- User pool groups and auth resources are in the same stack in Gen2 but different stacks in Gen1—the module handles this with 'auth-user-pool-group' category -- Holding stacks must be cleaned up after successful migration using `amplify gen2-migration decommission` +## Dependencies -**Testing guidance:** -Test with deployed Amplify Gen1 projects that have auth and storage categories. Verify the assessment correctly identifies resources to migrate. Test with `--resourceMappings` to verify custom mapping support. Test OAuth migrations with social login providers (Google, Facebook, Sign In With Apple). Verify rollback behavior when refactor fails mid-operation. Test rollback operation (Gen2→Gen1) to ensure bidirectional support works. +| Package | Purpose | +| ------------------------------------------- | ----------------------------------------------------------------------------- | +| `@aws-sdk/client-cloudformation` | Stack operations: describe, update, refactor, changeset, delete, get template | +| `@aws-sdk/client-ssm` | Sign In With Apple private key retrieval | +| `@aws-sdk/client-cognito-identity-provider` | OAuth provider credential retrieval | +| `@aws-sdk/client-sts` | Account ID for ARN construction | diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts index 80054e1704f..f700a5b9848 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts @@ -2,12 +2,12 @@ import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migratio import { CFNResource } from '../../../../commands/gen2-migration/cfn-template'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; +import { ResourceMapping } from '@aws-sdk/client-cloudformation'; import { noOpLogger } from '../_framework/logger'; -/** Helper: convert MoveMapping[] to Map for easy assertions */ -function toIdMap(mappings: MoveMapping[]): Map { - return new Map(mappings.map((m) => [m.sourceId, m.targetId])); +function toIdMap(mappings: ResourceMapping[]): Map { + return new Map(mappings.map((m) => [m.Source!.LogicalResourceId!, m.Destination!.LogicalResourceId!])); } describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient disambiguation', () => { @@ -17,15 +17,26 @@ describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient di const gen2Branch = new StackFacade(clients, 'gen2'); return new (class extends AuthCognitoForwardRefactorer { constructor() { - super(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), 'appId', 'main', { - category: 'auth', - resourceName: 'test', - service: 'Cognito', - key: 'auth:Cognito', - }); + super( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123456789', + noOpLogger(), + 'appId', + 'main', + { + category: 'auth', + resourceName: 'test', + service: 'Cognito', + key: 'auth:Cognito', + }, + null as unknown as Cfn, + ); } - public testBuildResourceMappings(source: Map, target: Map): MoveMapping[] { - return this.buildResourceMappings(source, target); + public testBuildResourceMappings(source: Map, target: Map): ResourceMapping[] { + return this.buildResourceMappings(source, target, 'gen1-auth', 'gen2-auth') as unknown as ResourceMapping[]; } })(); } diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts index 4e5f9484a72..f6cf5ede497 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts @@ -12,9 +12,11 @@ import { ResourceStatus, CreateChangeSetCommand, DescribeChangeSetCommand, + DeleteChangeSetCommand, } from '@aws-sdk/client-cloudformation'; import { SSMClient } from '@aws-sdk/client-ssm'; import { CognitoIdentityProviderClient, DescribeIdentityProviderCommand } from '@aws-sdk/client-cognito-identity-provider'; +import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; const ts = new Date(); const rs = ResourceStatus.CREATE_COMPLETE; @@ -80,6 +82,7 @@ function setupMocks(cfnMock: ReturnType) { cfnMock.on(CreateChangeSetCommand).resolves({}); cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); + cfnMock.on(DeleteChangeSetCommand).resolves({}); } describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { @@ -112,6 +115,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { 'appId', 'main', { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, + new Cfn(new CloudFormationClient({}), noOpLogger()), ); const ops = await refactorer.plan(); @@ -203,6 +207,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { 'appId', 'main', { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, + new Cfn(new CloudFormationClient({}), noOpLogger()), ); const ops = await refactorer.plan(); @@ -259,8 +264,9 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { 'appId', 'main', { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, + new Cfn(new CloudFormationClient({}), noOpLogger()), ); - await expect(refactorer.plan()).rejects.toThrow('unable to find target stack'); + await expect(refactorer.plan()).rejects.toThrow('Unable to find target stack'); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts index 212361eecb3..ac170fc1a47 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts @@ -10,7 +10,11 @@ import { DescribeStacksCommand, DescribeStackResourcesCommand, ResourceStatus, + CreateChangeSetCommand, + DescribeChangeSetCommand, + DeleteChangeSetCommand, } from '@aws-sdk/client-cloudformation'; +import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; const ts = new Date(); const rs = ResourceStatus.CREATE_COMPLETE; @@ -85,12 +89,17 @@ describe('AuthCognitoRollbackRefactorer.plan()', () => { cfnMock.on(GetTemplateCommand, { StackName: 'gen2-auth' }).resolves({ TemplateBody: JSON.stringify(gen2AuthTemplate) }); cfnMock.on(GetTemplateCommand, { StackName: 'gen1-auth' }).resolves({ TemplateBody: JSON.stringify(gen1AuthTemplate) }); + + cfnMock.on(CreateChangeSetCommand).resolves({}); + cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); + cfnMock.on(DeleteChangeSetCommand).resolves({}); } - it('main auth only: produces move operations (no updateSource/updateTarget for rollback)', async () => { + it('main auth: produces updateSource → updateTarget → move → afterMove', async () => { setupBasicMocks(); const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); + const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); const refactorer = new AuthCognitoRollbackRefactorer( new StackFacade(clients, 'gen1-root'), new StackFacade(clients, 'gen2-root'), @@ -99,13 +108,15 @@ describe('AuthCognitoRollbackRefactorer.plan()', () => { '123', noOpLogger(), { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, + cfn, ); const ops = await refactorer.plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); - // Rollback: no updateSource/updateTarget, just move ops + afterMove - expect(descriptions.every((d) => !d.includes('Update source') && !d.includes('Update target'))).toBe(true); + // Rollback now resolves and updates both stacks before moving + expect(descriptions.some((d) => d.includes('Update source'))).toBe(true); + expect(descriptions.some((d) => d.includes('Update target'))).toBe(true); expect(descriptions.some((d) => d.includes('Move'))).toBe(true); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts index 83af72a07ec..07fda32f0a1 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts @@ -1,183 +1,26 @@ -import { CFNResource, CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; import { - CategoryRefactorer, - RefactorBlueprint, - ResolvedStack, - MoveMapping, MIGRATION_PLACEHOLDER_LOGICAL_ID, + PLACEHOLDER_RESOURCE, } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; -import { noOpLogger } from '../_framework/logger'; +import { ResourceMapping } from '@aws-sdk/client-cloudformation'; -// Minimal concrete subclass to access protected methods -class TestRefactorer extends (CategoryRefactorer as any) { - private mappingsToReturn: MoveMapping[] = []; - - constructor() { - super(null, null, null, 'us-east-1', '123', noOpLogger()); - } - - setMappings(mappings: MoveMapping[]) { - this.mappingsToReturn = mappings; - } - - public testBuildBlueprint(source: ResolvedStack, target: ResolvedStack): RefactorBlueprint | undefined { - return (this as any).buildBlueprint(source, target); - } - - protected async fetchSourceStackId() { - return undefined; - } - protected async fetchDestStackId() { - return undefined; - } - protected resourceTypes() { - return ['AWS::S3::Bucket', 'AWS::DynamoDB::Table', 'AWS::S3::BucketPolicy', 'AWS::IAM::Policy']; - } - protected buildResourceMappings() { - return this.mappingsToReturn; - } - protected resolveSource() { - return Promise.resolve({} as any); - } - protected resolveTarget() { - return Promise.resolve({} as any); - } - protected beforeMovePlan() { - return []; - } - protected async afterMovePlan() { - return []; - } -} - -const makeTemplate = (resources: Record): CFNTemplate => ({ - AWSTemplateFormatVersion: '2010-09-09', - Description: 'test', - Resources: resources, - Outputs: {}, -}); - -describe('buildBlueprint', () => { - const refactorer = new TestRefactorer(); - - it('returns undefined when source has no matching resources', () => { - const source: ResolvedStack = { - stackId: 'source-stack', - resolvedTemplate: makeTemplate({ - Lambda: { Type: 'AWS::Lambda::Function', Properties: {} }, - }), - parameters: [], - }; - const target: ResolvedStack = { - stackId: 'target-stack', - resolvedTemplate: makeTemplate({}), - parameters: [], - }; - refactorer.setMappings([]); - expect(refactorer.testBuildBlueprint(source, target)).toBeUndefined(); +describe('placeholder constants', () => { + it('placeholder resource is a WaitConditionHandle', () => { + expect(PLACEHOLDER_RESOURCE.Type).toBe('AWS::CloudFormation::WaitConditionHandle'); }); - it('removes resources from source and adds them to target with remapped IDs', () => { - const bucket: CFNResource = { Type: 'AWS::S3::Bucket', Properties: { BucketName: 'my-bucket' } }; - const source: ResolvedStack = { - stackId: 'source-stack', - resolvedTemplate: makeTemplate({ - S3Bucket: bucket, - OtherResource: { Type: 'AWS::Lambda::Function', Properties: {} }, - }), - parameters: [], - }; - const target: ResolvedStack = { - stackId: 'target-stack', - resolvedTemplate: makeTemplate({ - amplifyStorageBucket12345678: { Type: 'AWS::S3::Bucket', Properties: {} }, - }), - parameters: [], - }; - refactorer.setMappings([{ sourceId: 'S3Bucket', targetId: 'amplifyStorageBucket12345678', resource: bucket }]); - - const blueprint = refactorer.testBuildBlueprint(source, target)!; - - // Source afterRemoval: S3Bucket removed, OtherResource stays - expect(blueprint.source.afterRemoval.Resources.S3Bucket).toBeUndefined(); - expect(blueprint.source.afterRemoval.Resources.OtherResource).toBeDefined(); - - // Target afterAddition: remapped ID, properties preserved - expect(blueprint.target.afterAddition.Resources.amplifyStorageBucket12345678).toBeDefined(); - expect(blueprint.target.afterAddition.Resources.amplifyStorageBucket12345678.Properties.BucketName).toBe('my-bucket'); - }); - - it('remaps DependsOn references (both string and array forms)', () => { - const bucket: CFNResource = { Type: 'AWS::S3::Bucket', Properties: {} }; - const bucketPolicy: CFNResource = { Type: 'AWS::S3::BucketPolicy', Properties: {}, DependsOn: 'S3Bucket' }; - const iamPolicy: CFNResource = { Type: 'AWS::IAM::Policy', Properties: {}, DependsOn: ['S3Bucket', 'UnmappedResource'] }; - - const source: ResolvedStack = { - stackId: 'source-stack', - resolvedTemplate: makeTemplate({ S3Bucket: bucket, BucketPolicy: bucketPolicy, IamPolicy: iamPolicy }), - parameters: [], - }; - const target: ResolvedStack = { - stackId: 'target-stack', - resolvedTemplate: makeTemplate({ - TargetBucket: { Type: 'AWS::S3::Bucket', Properties: {} }, - TargetBucketPolicy: { Type: 'AWS::S3::BucketPolicy', Properties: {} }, - TargetIamPolicy: { Type: 'AWS::IAM::Policy', Properties: {} }, - }), - parameters: [], - }; - refactorer.setMappings([ - { sourceId: 'S3Bucket', targetId: 'TargetBucket', resource: bucket }, - { sourceId: 'BucketPolicy', targetId: 'TargetBucketPolicy', resource: bucketPolicy }, - { sourceId: 'IamPolicy', targetId: 'TargetIamPolicy', resource: iamPolicy }, - ]); - - const blueprint = refactorer.testBuildBlueprint(source, target)!; - - // String DependsOn remapped to array with target ID - expect(blueprint.target.afterAddition.Resources.TargetBucketPolicy.DependsOn).toEqual(['TargetBucket']); - - // Array DependsOn: S3Bucket remapped, UnmappedResource kept as-is (fallback) - expect(blueprint.target.afterAddition.Resources.TargetIamPolicy.DependsOn).toEqual(['TargetBucket', 'UnmappedResource']); - }); - - it('adds placeholder to source.afterRemoval when all source resources are mapped', () => { - const bucket: CFNResource = { Type: 'AWS::S3::Bucket', Properties: {} }; - const source: ResolvedStack = { - stackId: 'source-stack', - resolvedTemplate: makeTemplate({ OnlyBucket: bucket }), - parameters: [], - }; - const target: ResolvedStack = { - stackId: 'target-stack', - resolvedTemplate: makeTemplate({ TargetBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }), - parameters: [], - }; - refactorer.setMappings([{ sourceId: 'OnlyBucket', targetId: 'TargetBucket', resource: bucket }]); - - const blueprint = refactorer.testBuildBlueprint(source, target)!; - expect(blueprint.source.afterRemoval.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID]).toBeDefined(); + it('placeholder logical ID is MigrationPlaceholder', () => { + expect(MIGRATION_PLACEHOLDER_LOGICAL_ID).toBe('MigrationPlaceholder'); }); +}); - it('adds placeholder to target.afterRemoval when all target category resources are removed', () => { - const bucket: CFNResource = { Type: 'AWS::S3::Bucket', Properties: {} }; - const source: ResolvedStack = { - stackId: 'source-stack', - resolvedTemplate: makeTemplate({ - SourceBucket: bucket, - Lambda: { Type: 'AWS::Lambda::Function', Properties: {} }, - }), - parameters: [], - }; - const target: ResolvedStack = { - stackId: 'target-stack', - resolvedTemplate: makeTemplate({ TargetBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }), - parameters: [], +describe('ResourceMapping shape', () => { + it('carries source and destination stack + logical ID', () => { + const mapping: ResourceMapping = { + Source: { StackName: 'gen1-auth', LogicalResourceId: 'UserPool' }, + Destination: { StackName: 'gen2-auth', LogicalResourceId: 'amplifyAuthUserPool' }, }; - refactorer.setMappings([{ sourceId: 'SourceBucket', targetId: 'TargetBucket', resource: bucket }]); - - const blueprint = refactorer.testBuildBlueprint(source, target)!; - expect(blueprint.target.afterRemoval.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID]).toBeDefined(); - expect(blueprint.target.afterRemoval.Resources.TargetBucket).toBeUndefined(); + expect(mapping.Source!.StackName).toBe('gen1-auth'); + expect(mapping.Destination!.LogicalResourceId).toBe('amplifyAuthUserPool'); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-dependency-resolver.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-dependency-resolver.test.ts index be333d60e2f..8a3ab543f0c 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-dependency-resolver.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-dependency-resolver.test.ts @@ -9,62 +9,37 @@ const makeTemplate = (resources: Record { - it('removes cross-boundary DependsOn from staying resources', () => { + it('strips all DependsOn from every resource', () => { const template = makeTemplate({ StayingResource: { Type: 'AWS::Lambda::Function', DependsOn: ['MovingResource', 'OtherStaying'] }, MovingResource: { Type: 'AWS::S3::Bucket' }, - OtherStaying: { Type: 'AWS::IAM::Role' }, + OtherStaying: { Type: 'AWS::IAM::Role', DependsOn: 'MovingResource' }, }); - const result = resolveDependencies(template, ['MovingResource']); - // StayingResource should no longer depend on MovingResource - expect(result.Resources.StayingResource.DependsOn).toEqual(['OtherStaying']); - }); - - it('keeps within-boundary DependsOn for moving resources', () => { - const template = makeTemplate({ - MovingA: { Type: 'AWS::S3::Bucket', DependsOn: ['MovingB', 'StayingResource'] }, - MovingB: { Type: 'AWS::S3::BucketPolicy' }, - StayingResource: { Type: 'AWS::Lambda::Function' }, - }); - - const result = resolveDependencies(template, ['MovingA', 'MovingB']); - // MovingA keeps dep on MovingB (both moving), loses dep on StayingResource - expect(result.Resources.MovingA.DependsOn).toEqual(['MovingB']); + const result = resolveDependencies(template); + expect(result.Resources.StayingResource.DependsOn).toBeUndefined(); + expect(result.Resources.MovingResource.DependsOn).toBeUndefined(); + expect(result.Resources.OtherStaying.DependsOn).toBeUndefined(); }); it('passes through resources without DependsOn unchanged', () => { const template = makeTemplate({ NoDeps: { Type: 'AWS::S3::Bucket' }, - Moving: { Type: 'AWS::DynamoDB::Table' }, + AlsoNoDeps: { Type: 'AWS::DynamoDB::Table' }, }); - const result = resolveDependencies(template, ['Moving']); + const result = resolveDependencies(template); expect(result.Resources.NoDeps.DependsOn).toBeUndefined(); + expect(result.Resources.AlsoNoDeps.DependsOn).toBeUndefined(); }); - it('handles string DependsOn (not array) for staying resources', () => { - const template = makeTemplate({ - Staying: { Type: 'AWS::Lambda::Function', DependsOn: 'Moving' }, - Moving: { Type: 'AWS::S3::Bucket' }, - }); - - const result = resolveDependencies(template, ['Moving']); - // String normalized to array, then filtered — result is empty array (not undefined) - expect(result.Resources.Staying.DependsOn).toEqual([]); - }); - - it('leaves DependsOn unchanged when all resources are moving together', () => { + it('does not mutate the input template', () => { const template = makeTemplate({ A: { Type: 'AWS::S3::Bucket', DependsOn: ['B'] }, - B: { Type: 'AWS::S3::BucketPolicy', DependsOn: ['C'] }, - C: { Type: 'AWS::IAM::Role' }, + B: { Type: 'AWS::S3::BucketPolicy' }, }); - const result = resolveDependencies(template, ['A', 'B', 'C']); - // Neither filter condition triggers — deps.length === depsInRefactor.length for all - expect(result.Resources.A.DependsOn).toEqual(['B']); - expect(result.Resources.B.DependsOn).toEqual(['C']); - expect(result.Resources.C.DependsOn).toBeUndefined(); + resolveDependencies(template); + expect(template.Resources.A.DependsOn).toEqual(['B']); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts index 98e3d23734a..d44f9d9fa57 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts @@ -1,8 +1,9 @@ import { ForwardCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/forward-category-refactorer'; import { RollbackCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/rollback-category-refactorer'; import { CFNResource } from '../../../../commands/gen2-migration/cfn-template'; -import { MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { ResourceMapping } from '@aws-sdk/client-cloudformation'; import { noOpLogger } from '../_framework/logger'; +import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; class TestForwardRefactorer extends ForwardCategoryRefactorer { protected async fetchSourceStackId() { @@ -14,8 +15,8 @@ class TestForwardRefactorer extends ForwardCategoryRefactorer { protected resourceTypes() { return ['AWS::S3::Bucket']; } - public testBuildResourceMappings(source: Map, target: Map): MoveMapping[] { - return this.buildResourceMappings(source, target); + public testBuildResourceMappings(source: Map, target: Map): ResourceMapping[] { + return this.buildResourceMappings(source, target, 'gen1-stack', 'gen2-stack') as unknown as ResourceMapping[]; } } @@ -23,12 +24,16 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { private readonly ids: ReadonlyMap; constructor(ids: ReadonlyMap) { - super(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }); + super( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + null as unknown as Cfn, + ); this.ids = ids; } // eslint-disable-next-line @typescript-eslint/no-unused-vars @@ -44,25 +49,28 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { protected resourceTypes() { return []; } - public testBuildResourceMappings(source: Map, target: Map): MoveMapping[] { - return this.buildResourceMappings(source, target); + public testBuildResourceMappings(source: Map, target: Map): ResourceMapping[] { + return this.buildResourceMappings(source, target, 'gen2-stack', 'gen1-stack') as unknown as ResourceMapping[]; } } const r = (type: string): CFNResource => ({ Type: type, Properties: {} }); -/** Helper: convert MoveMapping[] to Map for easy assertions */ -function toIdMap(mappings: MoveMapping[]): Map { - return new Map(mappings.map((m) => [m.sourceId, m.targetId])); +function toIdMap(mappings: ResourceMapping[]): Map { + return new Map(mappings.map((m) => [m.Source!.LogicalResourceId!, m.Destination!.LogicalResourceId!])); } describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching)', () => { - const refactorer = new TestForwardRefactorer(null as any, null as any, null as any, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }); + const refactorer = new TestForwardRefactorer( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + null as unknown as Cfn, + ); it('maps single resource per type', () => { const mappings = refactorer.testBuildResourceMappings( @@ -91,34 +99,11 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching expect(map.get('Table')).toBe('GenTable'); }); - it('maps multiple source resources to same target when types match', () => { - const mappings = refactorer.testBuildResourceMappings( - new Map([ - ['BucketA', r('AWS::S3::Bucket')], - ['BucketB', r('AWS::S3::Bucket')], - ]), - new Map([['GenBucket', r('AWS::S3::Bucket')]]), - ); - const map = toIdMap(mappings); - expect(map.size).toBe(2); - expect(map.get('BucketA')).toBe('GenBucket'); - expect(map.get('BucketB')).toBe('GenBucket'); - }); - it('throws when no types match', () => { expect(() => refactorer.testBuildResourceMappings(new Map([['Stream', r('AWS::Kinesis::Stream')]]), new Map([['Bucket', r('AWS::S3::Bucket')]])), ).toThrow("Source resource 'Stream' (AWS::Kinesis::Stream) has no corresponding target resource"); }); - - it('includes resource in MoveMapping', () => { - const bucket = r('AWS::S3::Bucket'); - const mappings = refactorer.testBuildResourceMappings( - new Map([['S3Bucket', bucket]]), - new Map([['amplifyBucket', r('AWS::S3::Bucket')]]), - ); - expect(mappings[0].resource).toBe(bucket); - }); }); describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based)', () => { @@ -145,7 +130,7 @@ describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based it('throws for resource with no known Gen1 logical ID', () => { const refactorer = new TestRollbackRefactorer(new Map()); expect(() => refactorer.testBuildResourceMappings(new Map([['amplifyTopic', r('AWS::SNS::Topic')]]), new Map())).toThrow( - "No known Gen1 logical ID for resource type 'AWS::SNS::Topic' (source: 'amplifyTopic')", + 'Unable to determine target id of resource amplifyTopic', ); }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts index 5fa8c2bab98..5b3bf58093f 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts @@ -1,8 +1,8 @@ import { ForwardCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/forward-category-refactorer'; -import { CFNResource, CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; -import { RefactorBlueprint, MoveMapping } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { RefactorBlueprint } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; +import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; import { noOpLogger } from '../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { @@ -12,9 +12,11 @@ import { CreateStackRefactorCommand, DescribeStackRefactorCommand, ExecuteStackRefactorCommand, + GetTemplateCommand, DeleteStackCommand, StackRefactorStatus, StackRefactorExecutionStatus, + ResourceMapping, } from '@aws-sdk/client-cloudformation'; class TestForwardRefactorer extends ForwardCategoryRefactorer { @@ -29,51 +31,15 @@ class TestForwardRefactorer extends ForwardCategoryRefactorer { } } -function makeBlueprint(overrides: { - targetResolved?: Record; - targetAfterRemoval?: Record; - mappings?: MoveMapping[]; -}): RefactorBlueprint { - const sourceTemplate: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'source', - Resources: {}, - Outputs: {}, - }; - const targetResources = overrides.targetResolved ?? {}; - const targetTemplate: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'target', - Resources: targetResources, - Outputs: {}, - }; - const afterRemovalResources = overrides.targetAfterRemoval ?? {}; - const afterRemoval: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'target after removal', - Resources: afterRemovalResources, - Outputs: {}, - }; - +function makeBlueprint(mappings: ResourceMapping[]): RefactorBlueprint { return { - source: { - stackId: 'gen1-stack', - parameters: [], - resolvedTemplate: sourceTemplate, - afterRemoval: sourceTemplate, - }, - target: { - stackId: 'gen2-stack', - parameters: [], - resolvedTemplate: targetTemplate, - afterRemoval, - afterAddition: afterRemoval, - }, - mappings: overrides.mappings ?? [], + sourceStackId: 'gen1-stack', + targetStackId: 'gen2-stack', + mappings, }; } -describe('ForwardCategoryRefactorer.beforeMovePlan', () => { +describe('ForwardCategoryRefactorer.beforeMove', () => { let cfnMock: ReturnType; beforeEach(() => { @@ -81,8 +47,9 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { }); afterEach(() => cfnMock.restore()); - it('returns empty operations when target has no category resources', async () => { + it('returns empty operations when no mappings', async () => { const clients = new AwsClients({ region: 'us-east-1' }); + const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); const refactorer = new TestForwardRefactorer( new StackFacade(clients, 'g1'), new StackFacade(clients, 'g2'), @@ -91,16 +58,15 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { '123', noOpLogger(), { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + cfn, ); - const blueprint = makeBlueprint({ - targetResolved: { Lambda: { Type: 'AWS::Lambda::Function', Properties: {} } }, - }); + const blueprint = makeBlueprint([]); - const operations = await (refactorer as any).beforeMovePlan(blueprint); + const operations = await (refactorer as any).beforeMove(blueprint); expect(operations).toHaveLength(0); }); - it('creates holding stack operation when target has category resources', async () => { + it('creates holding stack operation when mappings exist', async () => { cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); cfnMock.on(CreateStackRefactorCommand).resolves({ StackRefactorId: 'r1' }); cfnMock @@ -108,9 +74,17 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { .resolves({ Status: StackRefactorStatus.CREATE_COMPLETE, ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_COMPLETE }); cfnMock.on(ExecuteStackRefactorCommand).resolves({}); cfnMock.on(DescribeStackResourcesCommand).resolves({ StackResources: [] }); + cfnMock.on(GetTemplateCommand).resolves({ + TemplateBody: JSON.stringify({ + AWSTemplateFormatVersion: '2010-09-09', + Resources: { MyBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }, + Outputs: {}, + }), + }); const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); + const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); const refactorer = new TestForwardRefactorer( new StackFacade(clients, 'g1'), new StackFacade(clients, 'g2'), @@ -119,19 +93,17 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { '123', noOpLogger(), { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + cfn, ); - const blueprint = makeBlueprint({ - targetResolved: { - MyBucket: { Type: 'AWS::S3::Bucket', Properties: {} }, - Other: { Type: 'AWS::Lambda::Function', Properties: {} }, + const blueprint = makeBlueprint([ + { + Source: { StackName: 'gen1-stack', LogicalResourceId: 'S3Bucket' }, + Destination: { StackName: 'gen2-stack', LogicalResourceId: 'MyBucket' }, }, - targetAfterRemoval: { - Other: { Type: 'AWS::Lambda::Function', Properties: {} }, - }, - }); + ]); - const operations = await (refactorer as any).beforeMovePlan(blueprint); + const operations = await (refactorer as any).beforeMove(blueprint); expect(operations).toHaveLength(1); expect(await operations[0].describe()).toEqual([expect.stringContaining('holding')]); }); @@ -149,9 +121,17 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { .resolves({ Status: StackRefactorStatus.CREATE_COMPLETE, ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_COMPLETE }); cfnMock.on(ExecuteStackRefactorCommand).resolves({}); cfnMock.on(DescribeStackResourcesCommand).resolves({ StackResources: [] }); + cfnMock.on(GetTemplateCommand).resolves({ + TemplateBody: JSON.stringify({ + AWSTemplateFormatVersion: '2010-09-09', + Resources: { MyBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }, + Outputs: {}, + }), + }); const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); + const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); const refactorer = new TestForwardRefactorer( new StackFacade(clients, 'g1'), new StackFacade(clients, 'g2'), @@ -160,14 +140,18 @@ describe('ForwardCategoryRefactorer.beforeMovePlan', () => { '123', noOpLogger(), { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + cfn, ); - const blueprint = makeBlueprint({ - targetResolved: { MyBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }, - targetAfterRemoval: {}, - }); + const blueprint = makeBlueprint([ + { + Source: { StackName: 'gen1-stack', LogicalResourceId: 'S3Bucket' }, + Destination: { StackName: 'gen2-stack', LogicalResourceId: 'MyBucket' }, + }, + ]); - const operations = await (refactorer as any).beforeMovePlan(blueprint); + const operations = await (refactorer as any).beforeMove(blueprint); + expect(operations).toHaveLength(2); await operations[0].execute(); expect(cfnMock.commandCalls(DeleteStackCommand).length).toBeGreaterThan(0); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/holding-stack.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/holding-stack.test.ts deleted file mode 100644 index 4ba4208e8e4..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/holding-stack.test.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { getHoldingStackName, findHoldingStack } from '../../../../commands/gen2-migration/refactor/holding-stack'; -import { mockClient } from 'aws-sdk-client-mock'; -import { CloudFormationClient, DescribeStacksCommand } from '@aws-sdk/client-cloudformation'; - -describe('holding-stack', () => { - describe('getHoldingStackName', () => { - it('appends -holding after the hash suffix', () => { - const name = getHoldingStackName('amplify-app-main-auth-ABCD1234'); - expect(name).toBe('amplify-app-main-auth-ABCD1234-holding'); - }); - - it('truncates prefix when result would exceed 128 characters', () => { - const longPrefix = 'a'.repeat(120); - const stackId = `${longPrefix}-HASH1234`; - const name = getHoldingStackName(stackId); - expect(name.length).toBeLessThanOrEqual(128); - expect(name).toContain('-HASH1234-holding'); - }); - }); - - describe('findHoldingStack', () => { - let cfnMock: ReturnType; - beforeEach(() => { - cfnMock = mockClient(CloudFormationClient); - }); - afterEach(() => cfnMock.restore()); - - it('returns the stack when it exists', async () => { - cfnMock.on(DescribeStacksCommand).resolves({ - Stacks: [{ StackName: 'holding', StackStatus: 'CREATE_COMPLETE', CreationTime: new Date() }], - }); - const result = await findHoldingStack(new CloudFormationClient({}), 'holding'); - expect(result).not.toBeNull(); - expect(result?.StackName).toBe('holding'); - }); - - it('returns null when stack does not exist (ValidationError)', async () => { - // Mock returns empty stacks — findHoldingStack returns null - cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); - const result = await findHoldingStack(new CloudFormationClient({}), 'nonexistent'); - expect(result).toBeNull(); - }); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts index a9064d0d96b..deb4d4e7b32 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts @@ -3,6 +3,7 @@ import { CFNResource, CFNTemplate } from '../../../../commands/gen2-migration/cf import { RefactorBlueprint } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; +import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; import { noOpLogger } from '../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { @@ -10,16 +11,15 @@ import { GetTemplateCommand, DescribeStacksCommand, DescribeStackResourcesCommand, - DeleteStackCommand, UpdateStackCommand, CreateStackRefactorCommand, DescribeStackRefactorCommand, ExecuteStackRefactorCommand, StackRefactorStatus, StackRefactorExecutionStatus, + ResourceMapping, } from '@aws-sdk/client-cloudformation'; -// Concrete test subclass class TestRollbackRefactorer extends RollbackCategoryRefactorer { // eslint-disable-next-line @typescript-eslint/no-unused-vars protected targetLogicalId(_sourceId: string, _sourceResource: CFNResource): string | undefined { @@ -36,48 +36,23 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { } } -function makeBlueprint(sourceAfterRemoval: CFNTemplate): RefactorBlueprint { - const emptyTemplate: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'empty', - Resources: {}, - Outputs: {}, - }; +function makeBlueprint(mappings: ResourceMapping[]): RefactorBlueprint { return { - source: { - stackId: 'gen2-auth-stack-id', - parameters: [], - resolvedTemplate: emptyTemplate, - afterRemoval: sourceAfterRemoval, - }, - target: { - stackId: 'gen1-stack-id', - parameters: [], - resolvedTemplate: emptyTemplate, - afterRemoval: emptyTemplate, - afterAddition: emptyTemplate, - }, - mappings: [], + sourceStackId: 'gen2-auth-stack-id', + targetStackId: 'gen1-stack-id', + mappings, }; } -/** - * afterMovePlan reads the holding stack template during plan() and returns - * 3 separate operations: (1) update holding stack with placeholder, - * (2) refactor resources back to Gen2, (3) delete holding stack. - */ -describe('RollbackCategoryRefactorer.afterMovePlan', () => { +describe('RollbackCategoryRefactorer.afterMove', () => { let cfnMock: ReturnType; beforeEach(() => { cfnMock = mockClient(CloudFormationClient); }); + afterEach(() => cfnMock.restore()); - afterEach(() => { - cfnMock.restore(); - }); - - it('reads holding stack during plan and splits into 3 operations', async () => { + it('returns operations to update holding stack and move resources back', async () => { const holdingTemplate: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', Description: 'holding', @@ -98,57 +73,35 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_COMPLETE, }); cfnMock.on(ExecuteStackRefactorCommand).resolves({}); - cfnMock.on(DeleteStackCommand).resolves({}); cfnMock.on(DescribeStackResourcesCommand).resolves({ StackResources: [] }); const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); - const gen1Env = new StackFacade(clients, 'gen1-root'); - const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3', - }); - - const sourceAfterRemoval: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'gen2 after move', - Resources: { OtherResource: { Type: 'AWS::Lambda::Function', Properties: {} } }, - Outputs: {}, - }; - - const blueprint = makeBlueprint(sourceAfterRemoval); - - const operations = await (refactorer as any).afterMovePlan(blueprint); + const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); + const refactorer = new TestRollbackRefactorer( + new StackFacade(clients, 'gen1-root'), + new StackFacade(clients, 'gen2-root'), + clients, + 'us-east-1', + '123456789', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' }, + cfn, + ); + + const blueprint = makeBlueprint([ + { + Source: { StackName: 'gen2-auth-stack-id', LogicalResourceId: 'MyBucket' }, + Destination: { StackName: 'gen1-stack-id', LogicalResourceId: 'S3Bucket' }, + }, + ]); - // 3 operations: update holding with placeholder, refactor back, delete holding - expect(operations).toHaveLength(3); + const operations = await (refactorer as any).afterMove(blueprint); - // Verify descriptions + // 2 operations: update holding with placeholder, refactor back to Gen2 + expect(operations).toHaveLength(2); expect(await operations[0].describe()).toEqual([expect.stringContaining('placeholder')]); - expect(await operations[1].describe()).toEqual([expect.stringContaining('Restore')]); - expect(await operations[2].describe()).toEqual([expect.stringContaining('Delete')]); - - // Execute all 3 operations - await operations[0].execute(); - await operations[1].execute(); - await operations[2].execute(); - - // Verify the restore template passed to CreateStackRefactor (op 2) - const refactorCalls = cfnMock.commandCalls(CreateStackRefactorCommand); - expect(refactorCalls.length).toBeGreaterThan(0); - - const destTemplate = JSON.parse(refactorCalls[0].args[0].input.StackDefinitions![1].TemplateBody!); - - // Restore template = source.afterRemoval + holding stack resources - expect(destTemplate.Resources.OtherResource).toBeDefined(); - expect(destTemplate.Resources.MyBucket).toBeDefined(); - expect(destTemplate.Resources.MyBucket.Properties.BucketName).toBe('test-bucket'); - - // Verify delete was called (op 3) - expect(cfnMock.commandCalls(DeleteStackCommand).length).toBeGreaterThan(0); + expect(await operations[1].describe()).toEqual([expect.stringContaining('Move')]); }); it('returns empty operations when no holding stack exists', async () => { @@ -156,24 +109,21 @@ describe('RollbackCategoryRefactorer.afterMovePlan', () => { const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); - const gen1Env = new StackFacade(clients, 'gen1-root'); - const gen2Branch = new StackFacade(clients, 'gen2-root'); - const refactorer = new TestRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123456789', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3', - }); - - const emptyTemplate: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'test', - Resources: {}, - Outputs: {}, - }; - const blueprint = makeBlueprint(emptyTemplate); - - const operations = await (refactorer as any).afterMovePlan(blueprint); + const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); + const refactorer = new TestRollbackRefactorer( + new StackFacade(clients, 'gen1-root'), + new StackFacade(clients, 'gen2-root'), + clients, + 'us-east-1', + '123456789', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' }, + cfn, + ); + + const blueprint = makeBlueprint([]); + + const operations = await (refactorer as any).afterMove(blueprint); expect(operations).toHaveLength(0); }); }); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index cdceb3f1bbb..8b3e368ea87 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -97,7 +97,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { } /** - * Restores holding stack resources into Gen2 and deletes the holding stack. + * Restores holding stack resources into Gen2. * Templates are fetched fresh at execution time. */ protected async afterMove(blueprint: RefactorBlueprint): Promise { From 3ba49397aa7f9f170c3ca05aa8db78e4bc5377a4 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 22:19:45 -0400 Subject: [PATCH 33/91] fix(cli-internal): prevent test hangs with missing mocks and async fixes Add DeleteChangeSetCommand mock to OAuth test. Make testBuildResourceMappings async and await all callers since buildResourceMappings is async. Convert sync throw assertions to async rejects.toThrow. --- Prompt: make sure the test won't hang by configuring all necessary mocks. --- .../refactor/auth-forward-mapping.test.ts | 11 ++++--- .../refactor/auth-forward-plan.test.ts | 1 + .../default-resource-mappings.test.ts | 30 +++++++++---------- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts index f700a5b9848..d9e1bdf86e0 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts @@ -35,13 +35,16 @@ describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient di null as unknown as Cfn, ); } - public testBuildResourceMappings(source: Map, target: Map): ResourceMapping[] { - return this.buildResourceMappings(source, target, 'gen1-auth', 'gen2-auth') as unknown as ResourceMapping[]; + public async testBuildResourceMappings( + source: Map, + target: Map, + ): Promise { + return this.buildResourceMappings(source, target, 'gen1-auth', 'gen2-auth'); } })(); } - it('maps main auth resources with correct Web/Native disambiguation', () => { + it('maps main auth resources with correct Web/Native disambiguation', async () => { const refactorer = createRefactorer(); const targetResources = new Map([ @@ -60,7 +63,7 @@ describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient di ['IdentityPoolRoleMap', { Type: 'AWS::Cognito::IdentityPoolRoleAttachment', Properties: {} }], ]); - const mappings = refactorer.testBuildResourceMappings(mainAuthSource, targetResources); + const mappings = await refactorer.testBuildResourceMappings(mainAuthSource, targetResources); const map = toIdMap(mappings); // All source resources are mapped diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts index f6cf5ede497..c227b8ed8cd 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts @@ -186,6 +186,7 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { cfnMock.on(GetTemplateCommand, { StackName: 'gen2-auth-stack' }).resolves({ TemplateBody: JSON.stringify(gen2AuthTemplate) }); cfnMock.on(CreateChangeSetCommand).resolves({}); cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); + cfnMock.on(DeleteChangeSetCommand).resolves({}); const cognitoMock = mockClient(CognitoIdentityProviderClient); cognitoMock.on(DescribeIdentityProviderCommand).resolves({ diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts index d44f9d9fa57..ce6c9936f23 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts @@ -15,8 +15,8 @@ class TestForwardRefactorer extends ForwardCategoryRefactorer { protected resourceTypes() { return ['AWS::S3::Bucket']; } - public testBuildResourceMappings(source: Map, target: Map): ResourceMapping[] { - return this.buildResourceMappings(source, target, 'gen1-stack', 'gen2-stack') as unknown as ResourceMapping[]; + public async testBuildResourceMappings(source: Map, target: Map): Promise { + return this.buildResourceMappings(source, target, 'gen1-stack', 'gen2-stack'); } } @@ -49,8 +49,8 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { protected resourceTypes() { return []; } - public testBuildResourceMappings(source: Map, target: Map): ResourceMapping[] { - return this.buildResourceMappings(source, target, 'gen2-stack', 'gen1-stack') as unknown as ResourceMapping[]; + public async testBuildResourceMappings(source: Map, target: Map): Promise { + return this.buildResourceMappings(source, target, 'gen2-stack', 'gen1-stack'); } } @@ -72,8 +72,8 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching null as unknown as Cfn, ); - it('maps single resource per type', () => { - const mappings = refactorer.testBuildResourceMappings( + it('maps single resource per type', async () => { + const mappings = await refactorer.testBuildResourceMappings( new Map([['S3Bucket', r('AWS::S3::Bucket')]]), new Map([['amplifyBucket', r('AWS::S3::Bucket')]]), ); @@ -82,8 +82,8 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching expect(map.get('S3Bucket')).toBe('amplifyBucket'); }); - it('maps multiple types independently', () => { - const mappings = refactorer.testBuildResourceMappings( + it('maps multiple types independently', async () => { + const mappings = await refactorer.testBuildResourceMappings( new Map([ ['Bucket', r('AWS::S3::Bucket')], ['Table', r('AWS::DynamoDB::Table')], @@ -99,22 +99,22 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching expect(map.get('Table')).toBe('GenTable'); }); - it('throws when no types match', () => { - expect(() => + it('throws when no types match', async () => { + await expect( refactorer.testBuildResourceMappings(new Map([['Stream', r('AWS::Kinesis::Stream')]]), new Map([['Bucket', r('AWS::S3::Bucket')]])), - ).toThrow("Source resource 'Stream' (AWS::Kinesis::Stream) has no corresponding target resource"); + ).rejects.toThrow("Source resource 'Stream' (AWS::Kinesis::Stream) has no corresponding target resource"); }); }); describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based)', () => { - it('maps source resources to Gen1 logical IDs', () => { + it('maps source resources to Gen1 logical IDs', async () => { const refactorer = new TestRollbackRefactorer( new Map([ ['amplifyBucket', 'S3Bucket'], ['amplifyTable', 'DynamoDBTable'], ]), ); - const mappings = refactorer.testBuildResourceMappings( + const mappings = await refactorer.testBuildResourceMappings( new Map([ ['amplifyBucket', r('AWS::S3::Bucket')], ['amplifyTable', r('AWS::DynamoDB::Table')], @@ -127,9 +127,9 @@ describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based expect(map.get('amplifyTable')).toBe('DynamoDBTable'); }); - it('throws for resource with no known Gen1 logical ID', () => { + it('throws for resource with no known Gen1 logical ID', async () => { const refactorer = new TestRollbackRefactorer(new Map()); - expect(() => refactorer.testBuildResourceMappings(new Map([['amplifyTopic', r('AWS::SNS::Topic')]]), new Map())).toThrow( + await expect(refactorer.testBuildResourceMappings(new Map([['amplifyTopic', r('AWS::SNS::Topic')]]), new Map())).rejects.toThrow( 'Unable to determine target id of resource amplifyTopic', ); }); From a66f7cc986289ad9441b8122090cb91634f4b262 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 22:56:47 -0400 Subject: [PATCH 34/91] =?UTF-8?q?test(cli-internal):=20fix=20all=20refacto?= =?UTF-8?q?r=20tests=20=E2=80=94=2017=20suites,=2092=20tests=20pass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Delete tests for removed modules (cfn-stack-updater, cfn-stack-refactor-updater, legacy-custom-resource). Fix category-plan-orchestration constructor calls with shared Cfn. Update rollback assertions to expect no-op when resources already exist in target. Add default DescribeStacksCommand mocks for holding stack lookups. Mock SDK waiters in snapshot tests to avoid 30s polling delays. Handle missing template files in test framework GetTemplateCommand mock. Update snapshot files for DependsOn stripping. Add early return in beforeMove for empty mappings. Replace symmetricDifference with simple every() check in addPlaceHolderIfNeeded. --- Prompt: start running tests and fix what's needed. --- ...79371D7-SEM95NL3BKFT-holding.mappings.json | 40 +- ...-SEM95NL3BKFT-holding.source.template.json | 28 +- ...-SEM95NL3BKFT-holding.target.template.json | 83 ++-- ...C3F24A-1BTE7UH0TFE2I-holding.mappings.json | 8 +- ...1BTE7UH0TFE2I-holding.source.template.json | 153 +++++-- ...1BTE7UH0TFE2I-holding.target.template.json | 1 - ...10-auth179371D7-SEM95NL3BKFT.mappings.json | 40 +- ...179371D7-SEM95NL3BKFT.source.template.json | 78 +++- ...179371D7-SEM95NL3BKFT.target.template.json | 348 +++++++++------- ...torage0EC3F24A-1BTE7UH0TFE2I.mappings.json | 8 +- ...EC3F24A-1BTE7UH0TFE2I.source.template.json | 184 ++++++--- ...EC3F24A-1BTE7UH0TFE2I.target.template.json | 295 ++++++++++---- ...10-auth179371D7-SEM95NL3BKFT.template.json | 4 - ...torage0EC3F24A-1BTE7UH0TFE2I.template.json | 6 - ...endonlyf8c4c57b-SC9H4E2DZU7A.template.json | 15 +- ...orages3c31471c3-MQFWTKK6ETYR.template.json | 7 - ...79371D7-DAPL7YOMHRB4-holding.mappings.json | 40 +- ...-DAPL7YOMHRB4-holding.source.template.json | 28 +- ...-DAPL7YOMHRB4-holding.target.template.json | 83 ++-- ...EC3F24A-QQN18S0SITDH-holding.mappings.json | 8 +- ...-QQN18S0SITDH-holding.source.template.json | 18 +- ...-QQN18S0SITDH-holding.target.template.json | 1 - ...44-auth179371D7-DAPL7YOMHRB4.mappings.json | 40 +- ...179371D7-DAPL7YOMHRB4.source.template.json | 123 ++++-- ...179371D7-DAPL7YOMHRB4.target.template.json | 381 +++++++++++------- ...storage0EC3F24A-QQN18S0SITDH.mappings.json | 8 +- ...0EC3F24A-QQN18S0SITDH.source.template.json | 49 ++- ...0EC3F24A-QQN18S0SITDH.target.template.json | 64 ++- ...44-auth179371D7-DAPL7YOMHRB4.template.json | 4 - ...2367c6822367c68-XLSGP9AEXCHG.template.json | 18 +- ...94DE4A-11L4X799ZG2NW-holding.mappings.json | 8 +- ...11L4X799ZG2NW-holding.source.template.json | 32 +- ...11L4X799ZG2NW-holding.target.template.json | 1 - ...h179371D7-UGINV3RD10-holding.mappings.json | 40 +- ...D7-UGINV3RD10-holding.source.template.json | 28 +- ...D7-UGINV3RD10-holding.target.template.json | 83 ++-- ...C3F24A-11PWXC3G56PPP-holding.mappings.json | 8 +- ...11PWXC3G56PPP-holding.source.template.json | 153 +++++-- ...11PWXC3G56PPP-holding.target.template.json | 1 - ...lytics5794DE4A-11L4X799ZG2NW.mappings.json | 8 +- ...794DE4A-11L4X799ZG2NW.source.template.json | 49 ++- ...794DE4A-11L4X799ZG2NW.target.template.json | 68 +++- ...eabb-auth179371D7-UGINV3RD10.mappings.json | 40 +- ...th179371D7-UGINV3RD10.source.template.json | 78 +++- ...th179371D7-UGINV3RD10.target.template.json | 348 +++++++++------- ...torage0EC3F24A-11PWXC3G56PPP.mappings.json | 8 +- ...EC3F24A-11PWXC3G56PPP.source.template.json | 184 ++++++--- ...EC3F24A-11PWXC3G56PPP.target.template.json | 295 ++++++++++---- ...eabb-auth179371D7-UGINV3RD10.template.json | 4 - ...torage0EC3F24A-11PWXC3G56PPP.template.json | 6 - ...odboard759ae00a-55VYEATUY8WM.template.json | 15 +- ...oodboardStorage-4QIRO85L6OVA.template.json | 7 - ...9371D7-1RF1TAQPAA1WW-holding.mappings.json | 40 +- ...1RF1TAQPAA1WW-holding.source.template.json | 32 +- ...1RF1TAQPAA1WW-holding.target.template.json | 83 ++-- ...C3F24A-13PB5LDXDDFTY-holding.mappings.json | 8 +- ...13PB5LDXDDFTY-holding.source.template.json | 171 ++++++-- ...13PB5LDXDDFTY-holding.target.template.json | 1 - ...a-auth179371D7-1RF1TAQPAA1WW.mappings.json | 40 +- ...79371D7-1RF1TAQPAA1WW.source.template.json | 78 +++- ...79371D7-1RF1TAQPAA1WW.target.template.json | 352 +++++++++------- ...torage0EC3F24A-13PB5LDXDDFTY.mappings.json | 8 +- ...EC3F24A-13PB5LDXDDFTY.source.template.json | 243 ++++++++--- ...EC3F24A-13PB5LDXDDFTY.target.template.json | 345 +++++++++++----- ...a-auth179371D7-1RF1TAQPAA1WW.template.json | 4 - ...torage0EC3F24A-13PB5LDXDDFTY.template.json | 14 - ...atalog90174ac4-1DKM3MK2JKRFC.template.json | 15 +- ...orages338e5b439-DQ7IMC8LEGGI.template.json | 9 +- ...79371D7-CFDKYQIOG2UJ-holding.mappings.json | 40 +- ...-CFDKYQIOG2UJ-holding.source.template.json | 28 +- ...-CFDKYQIOG2UJ-holding.target.template.json | 83 ++-- ...EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json | 8 +- ...-MCTM3Q2BCVCJ-holding.source.template.json | 153 +++++-- ...-MCTM3Q2BCVCJ-holding.target.template.json | 1 - ...ec-auth179371D7-CFDKYQIOG2UJ.mappings.json | 40 +- ...179371D7-CFDKYQIOG2UJ.source.template.json | 78 +++- ...179371D7-CFDKYQIOG2UJ.target.template.json | 348 +++++++++------- ...storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json | 8 +- ...0EC3F24A-MCTM3Q2BCVCJ.source.template.json | 184 ++++++--- ...0EC3F24A-MCTM3Q2BCVCJ.target.template.json | 295 ++++++++++---- ...ec-auth179371D7-CFDKYQIOG2UJ.template.json | 4 - ...storage0EC3F24A-MCTM3Q2BCVCJ.template.json | 6 - ...tboards54040ecc-PH0BQLGBQAYV.template.json | 15 +- ...orages369f8ff1c-WRT91DP311WY.template.json | 7 - .../_framework/clients/cloudformation.ts | 58 +-- .../refactor/auth-forward-plan.test.ts | 6 + .../category-plan-orchestration.test.ts | 217 ++++++---- .../cfn-stack-refactor-updater.test.ts | 103 ----- .../refactor/cfn-stack-updater.test.ts | 145 ------- .../refactor/legacy-custom-resource.test.ts | 43 -- .../gen2-migration/refactor/refactor.test.ts | 16 + .../refactor/stack-facade.test.ts | 23 +- .../refactor/workflow/category-refactorer.ts | 21 +- .../workflow/forward-category-refactorer.ts | 2 + 94 files changed, 4444 insertions(+), 2558 deletions(-) delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-refactor-updater.test.ts delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-updater.test.ts delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/legacy-custom-resource.test.ts diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json index 759c58ea547..67e2b307779 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json index d4c0a8b779b..db80849fda7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json @@ -10,7 +10,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +62,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -380,19 +384,29 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": "us-east-1_W9u2NBSRe" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": "55m5602upkjiv7819hcf2ht5v3" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json index 01658891def..29fda378b1a 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -71,27 +70,6 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -118,19 +96,46 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": "us-east-1_W9u2NBSRe" + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { "AllowUnauthenticatedIdentities": true, "CognitoIdentityProviders": [ { - "ClientId": "55m5602upkjiv7819hcf2ht5v3", + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, "ProviderName": { "Fn::Join": [ "", @@ -140,7 +145,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_W9u2NBSRe" + { + "Ref": "amplifyAuthUserPool4BA7F805" + } ] ] } @@ -177,7 +184,9 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5", + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -190,9 +199,13 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_W9u2NBSRe", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, ":", - "55m5602upkjiv7819hcf2ht5v3" + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } ] ] }, @@ -200,8 +213,18 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J", - "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } } }, "DependsOn": [ diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json index 606b64a3606..11b99a35613 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json index 28297393fb9..16a16be4e9f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json @@ -4,7 +4,9 @@ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + "Bucket": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +21,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +52,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +93,15 @@ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + } }, "DependsOn": [ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" @@ -115,14 +149,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + }, " S3 bucket." ] ] @@ -148,7 +189,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Value": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + } }, "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -166,7 +209,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -183,7 +231,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Resource": { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -212,7 +265,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -221,7 +279,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/protected/*" ] ] @@ -230,7 +293,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/private/*" ] ] @@ -245,7 +313,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -254,7 +327,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/protected/*" ] ] @@ -263,7 +341,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/private/*" ] ] @@ -285,7 +368,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Resource": { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -295,7 +383,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -304,7 +397,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/protected/*" ] ] @@ -313,7 +411,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/private/*" ] ] @@ -621,7 +724,9 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Value": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json index 03d10f9a77a..1ca97bc8112 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { "Type": "AWS::S3::Bucket", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json index c5c90be833c..6fafe3b1474 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json index 5278197515b..77c4ab35e3c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json @@ -114,7 +114,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] } @@ -136,24 +138,36 @@ ] }, "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRolef8c4c57b", - { - "Fn::Select": [ - 3, + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRolef8c4c57b", { - "Fn::Split": [ - "-", - "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } ] + }, + "-", + { + "Ref": "env" } ] - }, - "-", - "main" - ] + ] + } ] } } @@ -162,29 +176,49 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8" + "Value": { + "Ref": "IdentityPool" + } }, "IdentityPoolName": { - "Value": "backendonlyf8c4c57b_identitypool_f8c4c57b__main" + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } }, "UserPoolId": { "Description": "Id for the user pool", - "Value": "us-east-1_1rvCNKN5B" + "Value": { + "Ref": "UserPool" + } }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1rvCNKN5B" + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } }, "UserPoolName": { - "Value": "backendonlyf8c4c57b_userpool_f8c4c57b" + "Value": { + "Ref": "userPoolName" + } }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": "2udsup370on7n0b1gdf8hpijc6" + "Value": { + "Ref": "UserPoolClientWeb" + } }, "AppClientID": { "Description": "The user pool app client id", - "Value": "773c808k3864f2k0sqk4j71gsj" + "Value": { + "Ref": "UserPoolClient" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json index 15d25475c46..571da77b726 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json @@ -1,6 +1,176 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "backendonlyf8c4c57b_identitypool_f8c4c57b", + { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_identitypool_f8c4c57b__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -10,7 +180,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +232,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -101,150 +275,34 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } + "IdentityPoolId": { + "Ref": "IdentityPool" }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_userpool_f8c4c57b", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_1rvCNKN5B" }, "DependsOn": [ - "amplifyAuthUserPool4BA7F805" + "IdentityPool" ] }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", "Properties": { - "ClientName": "backenf8c4c57b_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_1rvCNKN5B" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "773c808k3864f2k0sqk4j71gsj", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_1rvCNKN5B" - } - ] - } - }, - { - "ClientId": "2udsup370on7n0b1gdf8hpijc6", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_1rvCNKN5B" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_identitypool_f8c4c57b__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" - } + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/CDKMetadata/Default" }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + "Condition": "CDKMetadataAvailable" } }, "Conditions": { @@ -515,19 +573,29 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": "us-east-1_W9u2NBSRe" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": "55m5602upkjiv7819hcf2ht5v3" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json index d2fc08ac276..a7741f3e5d5 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json index d623d0c18b3..2a102385b61 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json @@ -84,7 +84,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] }, @@ -92,7 +94,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, "DISALLOW" ] } @@ -102,7 +106,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, "DISALLOW" ] } @@ -112,7 +118,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, "DISALLOW" ] } @@ -122,7 +130,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject", + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, "DISALLOW" ] } @@ -132,7 +142,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:GetObject", + { + "Ref": "s3PermissionsGuestPublic" + }, "DISALLOW" ] } @@ -142,7 +154,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "DISALLOW", + { + "Ref": "s3PermissionsGuestUploads" + }, "DISALLOW" ] } @@ -152,7 +166,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "ALLOW", + { + "Ref": "AuthenticatedAllowList" + }, "DISALLOW" ] } @@ -162,7 +178,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "ALLOW", + { + "Ref": "GuestAllowList" + }, "DISALLOW" ] } @@ -172,10 +190,14 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" + "Value": { + "Ref": "S3Bucket" + } }, "Region": { - "Value": "us-east-1" + "Value": { + "Ref": "AWS::Region" + } } }, "Resources": { @@ -190,7 +212,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPublic" + } ] }, "Resource": [ @@ -199,7 +223,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + { + "Ref": "S3Bucket" + }, "/public/*" ] ] @@ -208,12 +234,18 @@ } ] }, - "PolicyName": "Public_policy_c31471c3", + "PolicyName": { + "Ref": "s3PublicPolicy" + }, "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -227,7 +259,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedProtected" + } ] }, "Resource": [ @@ -236,7 +270,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + { + "Ref": "S3Bucket" + }, "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -245,12 +281,18 @@ } ] }, - "PolicyName": "Protected_policy_c31471c3", + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -264,7 +306,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } ] }, "Resource": [ @@ -273,7 +317,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + { + "Ref": "S3Bucket" + }, "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -282,12 +328,18 @@ } ] }, - "PolicyName": "Private_policy_c31471c3", + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -301,7 +353,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject" + { + "Ref": "s3PermissionsAuthenticatedUploads" + } ] }, "Resource": [ @@ -310,7 +364,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + { + "Ref": "S3Bucket" + }, "/uploads/*" ] ] @@ -319,12 +375,18 @@ } ] }, - "PolicyName": "Uploads_policy_c31471c3", + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -338,7 +400,9 @@ "Action": { "Fn::Split": [ ",", - "s3:GetObject" + { + "Ref": "s3PermissionsGuestPublic" + } ] }, "Resource": [ @@ -347,7 +411,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + { + "Ref": "S3Bucket" + }, "/public/*" ] ] @@ -356,12 +422,18 @@ } ] }, - "PolicyName": "Public_policy_c31471c3", + "PolicyName": { + "Ref": "s3PublicPolicy" + }, "Roles": [ - "amplify-backendonly-main-5e0fa-unauthRole" + { + "Ref": "unauthRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -377,7 +449,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + { + "Ref": "S3Bucket" + }, "/protected/*" ] ] @@ -403,7 +477,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -411,12 +487,18 @@ ], "Version": "2012-10-17" }, - "PolicyName": "read_policy_c31471c3", + "PolicyName": { + "Ref": "s3ReadPolicy" + }, "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -432,7 +514,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + { + "Ref": "S3Bucket" + }, "/protected/*" ] ] @@ -456,7 +540,9 @@ "", [ "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -464,12 +550,18 @@ ], "Version": "2012-10-17" }, - "PolicyName": "read_policy_c31471c3", + "PolicyName": { + "Ref": "s3ReadPolicy" + }, "Roles": [ - "amplify-backendonly-main-5e0fa-unauthRole" + { + "Ref": "unauthRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json index a7608416efc..ec4746eb723 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json @@ -1,10 +1,90 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + "Bucket": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +99,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +130,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +171,15 @@ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + } }, "DependsOn": [ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" @@ -115,14 +227,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + }, " S3 bucket." ] ] @@ -148,7 +267,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Value": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + } }, "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -166,7 +287,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -183,7 +309,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Resource": { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -212,7 +343,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -221,7 +357,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/protected/*" ] ] @@ -230,7 +371,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/private/*" ] ] @@ -245,7 +391,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -254,7 +405,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/protected/*" ] ] @@ -263,7 +419,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/private/*" ] ] @@ -285,7 +446,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Resource": { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -295,7 +461,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/public/*" ] ] @@ -304,7 +475,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/protected/*" ] ] @@ -313,7 +489,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "Arn" + ] + }, "/private/*" ] ] @@ -343,70 +524,6 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "backendonlycb1a13ab81664ecaa7d015068ab2d016", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" } }, "Conditions": { @@ -685,7 +802,9 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" + "Value": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json index 215b67b1a19..e4c6ac26f39 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json @@ -303,10 +303,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json index 4c65e86344c..7d2b002bc3d 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, - "DependsOn": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -200,9 +197,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json index fcc393b3d08..f92f2b63239 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json index 79c87cef7b1..87ee6202dd7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json @@ -277,7 +277,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -314,7 +313,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -351,7 +349,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -388,7 +385,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -425,7 +421,6 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -480,7 +475,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -533,7 +527,6 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json index 514e117ec84..53219238c26 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json index 847baa10ccd..ab4940ac52f 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json @@ -10,7 +10,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +62,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -380,19 +384,29 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPool9D23206ERef": { - "Value": "us-east-1_olNpwuJIL" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPoolAppClientCD70FA03Ref": { - "Value": "6bdqt8vavvh3efopgb031lc3jg" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthIdentityPoolA0C42AE7Ref": { - "Value": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthauthenticatedUserRole95356EEFRef": { - "Value": "amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthunauthenticatedUserRoleE19AFD6CRef": { - "Value": "amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json index f5445c5ca22..0eb97dec084 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -76,27 +75,6 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_olNpwuJIL" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -123,19 +101,46 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": "us-east-1_olNpwuJIL" + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { "AllowUnauthenticatedIdentities": false, "CognitoIdentityProviders": [ { - "ClientId": "6bdqt8vavvh3efopgb031lc3jg", + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, "ProviderName": { "Fn::Join": [ "", @@ -145,7 +150,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_olNpwuJIL" + { + "Ref": "amplifyAuthUserPool4BA7F805" + } ] ] } @@ -182,7 +189,9 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689", + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -195,9 +204,13 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_olNpwuJIL", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, ":", - "6bdqt8vavvh3efopgb031lc3jg" + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } ] ] }, @@ -205,8 +218,18 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X", - "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } } }, "DependsOn": [ diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json index 0484781a42e..2bc43c0d589 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", - "LogicalResourceId": "activity1E902D9C" + "LogicalResourceId": "activity1E902D9C", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding", - "LogicalResourceId": "activity1E902D9C" + "LogicalResourceId": "activity1E902D9C", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json index 925acc7bf10..b420ceb50fa 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json @@ -280,13 +280,25 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" + "Value": { + "Fn::GetAtt": [ + "activity1E902D9C", + "Arn" + ] + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDStreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS/stream/2026-03-07T18:02:23.205" + "Value": { + "Fn::GetAtt": [ + "activity1E902D9C", + "StreamArn" + ] + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDRef": { - "Value": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" + "Value": { + "Ref": "activity1E902D9C" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json index 9d199bf4263..c827d83e268 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "activity1E902D9C": { "Type": "AWS::DynamoDB::Table", diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json index 46ccb104e47..eba71ce8ad5 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json index 8d216ad870f..ea99bcb0fee 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json @@ -129,7 +129,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] } @@ -176,24 +178,34 @@ } ], "RoleName": { - "Fn::Join": [ - "", - [ - "sns22367c68", - { - "Fn::Select": [ - 3, + "Fn::If": [ + "ShouldNotCreateEnvResources", + "discus22367c68_sns-role", + { + "Fn::Join": [ + "", + [ + "sns22367c68", { - "Fn::Split": [ - "-", - "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } ] + }, + "-", + { + "Ref": "env" } ] - }, - "-", - "main" - ] + ] + } ] } } @@ -214,24 +226,36 @@ ] }, "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole22367c68", - { - "Fn::Select": [ - 3, + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole22367c68", { - "Fn::Split": [ - "-", - "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } ] + }, + "-", + { + "Ref": "env" } ] - }, - "-", - "main" - ] + ] + } ] } } @@ -240,33 +264,58 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": "us-east-1:d1df5c0c-2dd2-4471-bb0b-59c99bdbfe7f" + "Value": { + "Ref": "IdentityPool" + } }, "IdentityPoolName": { - "Value": "discussions22367c68_identitypool_22367c68__main" + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } }, "UserPoolId": { "Description": "Id for the user pool", - "Value": "us-east-1_Zs9EZpCYX" + "Value": { + "Ref": "UserPool" + } }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Zs9EZpCYX" + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } }, "UserPoolName": { - "Value": "discussions22367c68_userpool_22367c68" + "Value": { + "Ref": "userPoolName" + } }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": "ptm2eqjiee7l3e202lstfjd3r" + "Value": { + "Ref": "UserPoolClientWeb" + } }, "AppClientID": { "Description": "The user pool app client id", - "Value": "75sq8s16g37d0as1148og20p3i" + "Value": { + "Ref": "UserPoolClient" + } }, "CreatedSNSRole": { "Description": "role arn", - "Value": "arn:aws:iam::123456789012:role/sns22367c68d5a80-main" + "Value": { + "Fn::GetAtt": [ + "SNSRole", + "Arn" + ] + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json index 05a72f6824d..d3d5d06d016 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json @@ -1,6 +1,199 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsAuthenticationMessage": { + "Ref": "smsAuthenticationMessage" + }, + "SmsConfiguration": { + "ExternalId": "discus22367c68_role_external_id", + "SnsCallerArn": { + "Fn::GetAtt": [ + "SNSRole", + "Arn" + ] + } + }, + "SmsVerificationMessage": { + "Ref": "smsVerificationMessage" + }, + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + }, + "DependsOn": [ + "SNSRole" + ] + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discus22367c68_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discus22367c68_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "discussions22367c68_identitypool_22367c68", + { + "Fn::Join": [ + "", + [ + "discussions22367c68_identitypool_22367c68__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -10,7 +203,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +255,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -101,162 +298,34 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Here is your verification code {####}", - "EmailVerificationSubject": "Verification", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } + "IdentityPoolId": { + "Ref": "IdentityPool" }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true + "authenticated": { + "Ref": "authRoleArn" } - ], - "SmsAuthenticationMessage": "Your authentication code is {####}", - "SmsConfiguration": { - "ExternalId": "discus22367c68_role_external_id", - "SnsCallerArn": "arn:aws:iam::123456789012:role/sns22367c68d5a80-main" - }, - "SmsVerificationMessage": "Your verification code is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "discussions22367c68_userpool_22367c68", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false } }, - "DependsOn": [] - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discus22367c68_app_clientWeb", - "RefreshTokenValidity": "120", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Zs9EZpCYX" - }, "DependsOn": [ - "amplifyAuthUserPool4BA7F805" + "IdentityPool" ] }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", "Properties": { - "ClientName": "discus22367c68_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "120", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Zs9EZpCYX" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "75sq8s16g37d0as1148og20p3i", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Zs9EZpCYX" - } - ] - } - }, - { - "ClientId": "ptm2eqjiee7l3e202lstfjd3r", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Zs9EZpCYX" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "discussions22367c68_identitypool_22367c68__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:d1df5c0c-2dd2-4471-bb0b-59c99bdbfe7f", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole" - } + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/CDKMetadata/Default" }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + "Condition": "CDKMetadataAvailable" } }, "Conditions": { @@ -527,19 +596,29 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPool9D23206ERef": { - "Value": "us-east-1_olNpwuJIL" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPoolAppClientCD70FA03Ref": { - "Value": "6bdqt8vavvh3efopgb031lc3jg" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthIdentityPoolA0C42AE7Ref": { - "Value": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthauthenticatedUserRole95356EEFRef": { - "Value": "amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthunauthenticatedUserRoleE19AFD6CRef": { - "Value": "amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json index 7c0f1c98009..1a8df8dff20 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4", - "LogicalResourceId": "DynamoDBTable" + "LogicalResourceId": "DynamoDBTable", + "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", - "LogicalResourceId": "activity1E902D9C" + "LogicalResourceId": "activity1E902D9C", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json index 93866f1ecab..e9b1282aba4 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json @@ -24,41 +24,60 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] } }, - "Resources": { - "MigrationPlaceholder": { - "Type": "AWS::CloudFormation::WaitConditionHandle", - "Properties": {} - } - }, + "Resources": {}, "Outputs": { "Name": { - "Value": "activity-main" + "Value": { + "Ref": "DynamoDBTable" + } }, "Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main" + "Value": { + "Fn::GetAtt": [ + "DynamoDBTable", + "Arn" + ] + } }, "StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-07T17:11:10.591" + "Value": { + "Fn::GetAtt": [ + "DynamoDBTable", + "StreamArn" + ] + } }, "PartitionKeyName": { - "Value": "id" + "Value": { + "Ref": "partitionKeyName" + } }, "PartitionKeyType": { - "Value": "S" + "Value": { + "Ref": "partitionKeyType" + } }, "SortKeyName": { - "Value": "userId" + "Value": { + "Ref": "sortKeyName" + } }, "SortKeyType": { - "Value": "S" + "Value": { + "Ref": "sortKeyType" + } }, "Region": { - "Value": "us-east-1" + "Value": { + "Ref": "AWS::Region" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json index c801abd04fe..a5383227fe4 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json @@ -1,16 +1,6 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", "Resources": { - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ6MGi+3tLdReJplZiJ8EnERZxLsvaPWeAdPUUBV4ina06NVbuDqWxDQkdIvCUyb6BdwiWbhGtCur9hue3KpniXl3fKsQiWGW8jAG6g9UxSze6z2H5DeG/vUPUV/XUG4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, "activity1E902D9C": { "Type": "AWS::DynamoDB::Table", "Properties": { @@ -68,16 +58,38 @@ "StreamViewType": "NEW_IMAGE" }, "TableName": { - "Fn::Join": [ - "", - [ - "activity", - "-", - "main" - ] + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "tableName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "tableName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } ] } } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ6MGi+3tLdReJplZiJ8EnERZxLsvaPWeAdPUUBV4ina06NVbuDqWxDQkdIvCUyb6BdwiWbhGtCur9hue3KpniXl3fKsQiWGW8jAG6g9UxSze6z2H5DeG/vUPUV/XUG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" } }, "Conditions": { @@ -348,13 +360,25 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" + "Value": { + "Fn::GetAtt": [ + "activity1E902D9C", + "Arn" + ] + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDStreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS/stream/2026-03-07T18:02:23.205" + "Value": { + "Fn::GetAtt": [ + "activity1E902D9C", + "StreamArn" + ] + } }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDRef": { - "Value": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" + "Value": { + "Ref": "activity1E902D9C" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json index 995d534b583..c51c35ae518 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json @@ -308,10 +308,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json index b9cb6fb96d4..e93e870ea9b 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json @@ -255,8 +255,7 @@ "UsernameConfiguration": { "CaseSensitive": false } - }, - "DependsOn": [] + } }, "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", @@ -267,10 +266,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -282,10 +278,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -378,10 +371,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json index 18fe4e64dc6..b4e92bdd13e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json index e689d3fe4c5..4a4cb7d7ad0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json @@ -13,7 +13,12 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Resource": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } } ] }, @@ -40,7 +45,12 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Resource": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } } ] }, @@ -68,16 +78,28 @@ }, "Outputs": { "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Value": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } }, "kinesisStreamId": { - "Value": "moodboardKinesis-gen2-main" + "Value": { + "Ref": "moodboardKinesisKinesisStreamD5E97047" + } }, "kinesisStreamShardCount": { "Value": "1" }, "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Value": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } } }, "Conditions": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json index 0e5ee0af9e1..ddf15cda6e6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "moodboardKinesisKinesisStreamD5E97047": { "Type": "AWS::Kinesis::Stream", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json index 1c699ef3e6d..55c5abf24ff 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json index ec18192c664..67f424dedeb 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json @@ -10,7 +10,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +62,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -380,19 +384,29 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": "us-east-1_1A4RMvPNr" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": "2otm0qh3fj270k5tdn95cgjlm5" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json index e41793ca420..7897d21f3e0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -71,27 +70,6 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -118,19 +96,46 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": "us-east-1_1A4RMvPNr" + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { "AllowUnauthenticatedIdentities": true, "CognitoIdentityProviders": [ { - "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, "ProviderName": { "Fn::Join": [ "", @@ -140,7 +145,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_1A4RMvPNr" + { + "Ref": "amplifyAuthUserPool4BA7F805" + } ] ] } @@ -177,7 +184,9 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -190,9 +199,13 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_1A4RMvPNr", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, ":", - "2otm0qh3fj270k5tdn95cgjlm5" + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } ] ] }, @@ -200,8 +213,18 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } } }, "DependsOn": [ diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json index 48bd336abd1..4bf067c041c 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json index 26152a149ed..55aeb882f39 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json @@ -4,7 +4,9 @@ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + "Bucket": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +21,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +52,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +93,15 @@ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + } }, "DependsOn": [ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" @@ -115,14 +149,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + }, " S3 bucket." ] ] @@ -148,7 +189,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Value": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + } }, "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -166,7 +209,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -183,7 +231,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Resource": { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -212,7 +265,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -221,7 +279,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/protected/*" ] ] @@ -230,7 +293,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/private/*" ] ] @@ -245,7 +313,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -254,7 +327,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/protected/*" ] ] @@ -263,7 +341,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/private/*" ] ] @@ -285,7 +368,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Resource": { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -295,7 +383,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -304,7 +397,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/protected/*" ] ] @@ -313,7 +411,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/private/*" ] ] @@ -621,7 +724,9 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Value": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json index d40a0c67f7d..ad47f276319 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { "Type": "AWS::S3::Bucket", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json index 2f3cfeed033..f551223b652 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S", - "LogicalResourceId": "KinesisStream" + "LogicalResourceId": "KinesisStream", + "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json index 0133af0ad57..3e220a77f7d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json @@ -28,7 +28,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] } @@ -37,9 +39,13 @@ "CognitoUnauthPolicy": { "Type": "AWS::IAM::Policy", "Properties": { - "PolicyName": "kinesis_amplify_bca5ce95", + "PolicyName": { + "Ref": "unauthPolicyName" + }, "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" + { + "Ref": "unauthRoleName" + } ], "PolicyDocument": { "Version": "2012-10-17", @@ -50,7 +56,12 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" + "Resource": { + "Fn::GetAtt": [ + "KinesisStream", + "Arn" + ] + } } ] } @@ -59,9 +70,13 @@ "CognitoAuthPolicy": { "Type": "AWS::IAM::Policy", "Properties": { - "PolicyName": "kinesis_amplify_bca5ce95", + "PolicyName": { + "Ref": "authPolicyName" + }, "Roles": [ - "amplify-moodboard-main-1959a-authRole" + { + "Ref": "authRoleName" + } ], "PolicyDocument": { "Version": "2012-10-17", @@ -72,7 +87,12 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" + "Resource": { + "Fn::GetAtt": [ + "KinesisStream", + "Arn" + ] + } } ] } @@ -81,13 +101,22 @@ }, "Outputs": { "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" + "Value": { + "Fn::GetAtt": [ + "KinesisStream", + "Arn" + ] + } }, "kinesisStreamId": { - "Value": "moodboardKinesis-main" + "Value": { + "Ref": "KinesisStream" + } }, "kinesisStreamShardCount": { - "Value": "1" + "Value": { + "Ref": "kinesisStreamShardCount" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json index 838bc149392..48200112d2a 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json @@ -1,6 +1,27 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", "Resources": { + "moodboardKinesisKinesisStreamD5E97047": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": { + "Fn::Join": [ + "-", + [ + { + "Ref": "kinesisStreamName" + }, + { + "Ref": "env" + } + ] + ] + }, + "ShardCount": { + "Ref": "kinesisStreamShardCount" + } + } + }, "moodboardKinesisCognitoAuthPolicyB69F4FA6": { "Type": "AWS::IAM::Policy", "Properties": { @@ -13,7 +34,12 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Resource": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } } ] }, @@ -40,7 +66,12 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Resource": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } } ] }, @@ -64,35 +95,32 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" - }, - "moodboardKinesisKinesisStreamD5E97047": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": { - "Fn::Join": [ - "-", - [ - "moodboardKinesis", - "main" - ] - ] - }, - "ShardCount": "1" - } } }, "Outputs": { "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Value": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } }, "kinesisStreamId": { - "Value": "moodboardKinesis-gen2-main" + "Value": { + "Ref": "moodboardKinesisKinesisStreamD5E97047" + } }, "kinesisStreamShardCount": { "Value": "1" }, "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" + "Value": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } } }, "Conditions": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json index cc0780fc7cc..60893879984 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json index 82f9fd72f24..fd5808dfb0f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json @@ -114,7 +114,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] } @@ -136,24 +138,36 @@ ] }, "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole759ae00a", - { - "Fn::Select": [ - 3, + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole759ae00a", { - "Fn::Split": [ - "-", - "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } ] + }, + "-", + { + "Ref": "env" } ] - }, - "-", - "main" - ] + ] + } ] } } @@ -162,29 +176,49 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d" + "Value": { + "Ref": "IdentityPool" + } }, "IdentityPoolName": { - "Value": "moodboard759ae00a_identitypool_759ae00a__main" + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } }, "UserPoolId": { "Description": "Id for the user pool", - "Value": "us-east-1_Cwvqs93Nc" + "Value": { + "Ref": "UserPool" + } }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Cwvqs93Nc" + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } }, "UserPoolName": { - "Value": "moodboard759ae00a_userpool_759ae00a" + "Value": { + "Ref": "userPoolName" + } }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": "5t2df7ru217mr5ar6r44r61uqg" + "Value": { + "Ref": "UserPoolClientWeb" + } }, "AppClientID": { "Description": "The user pool app client id", - "Value": "1ssdipb0d8rfa77rq3o7u8t16c" + "Value": { + "Ref": "UserPoolClient" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json index 1ba32e13166..1e01fb7431e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json @@ -1,6 +1,176 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "moodboard759ae00a_identitypool_759ae00a", + { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_identitypool_759ae00a__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -10,7 +180,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +232,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -101,150 +275,34 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } + "IdentityPoolId": { + "Ref": "IdentityPool" }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_userpool_759ae00a", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Cwvqs93Nc" }, "DependsOn": [ - "amplifyAuthUserPool4BA7F805" + "IdentityPool" ] }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", "Properties": { - "ClientName": "moodbo759ae00a_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Cwvqs93Nc" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "1ssdipb0d8rfa77rq3o7u8t16c", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Cwvqs93Nc" - } - ] - } - }, - { - "ClientId": "5t2df7ru217mr5ar6r44r61uqg", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Cwvqs93Nc" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_identitypool_759ae00a__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" - } + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/CDKMetadata/Default" }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + "Condition": "CDKMetadataAvailable" } }, "Conditions": { @@ -515,19 +573,29 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": "us-east-1_1A4RMvPNr" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": "2otm0qh3fj270k5tdn95cgjlm5" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json index 7300a23d4f8..f0f58245b71 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json index 06a94faaeaf..2a102385b61 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json @@ -84,7 +84,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] }, @@ -92,7 +94,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, "DISALLOW" ] } @@ -102,7 +106,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, "DISALLOW" ] } @@ -112,7 +118,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, "DISALLOW" ] } @@ -122,7 +130,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject", + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, "DISALLOW" ] } @@ -132,7 +142,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:GetObject", + { + "Ref": "s3PermissionsGuestPublic" + }, "DISALLOW" ] } @@ -142,7 +154,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "DISALLOW", + { + "Ref": "s3PermissionsGuestUploads" + }, "DISALLOW" ] } @@ -152,7 +166,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "ALLOW", + { + "Ref": "AuthenticatedAllowList" + }, "DISALLOW" ] } @@ -162,7 +178,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "ALLOW", + { + "Ref": "GuestAllowList" + }, "DISALLOW" ] } @@ -172,10 +190,14 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" + "Value": { + "Ref": "S3Bucket" + } }, "Region": { - "Value": "us-east-1" + "Value": { + "Ref": "AWS::Region" + } } }, "Resources": { @@ -190,7 +212,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPublic" + } ] }, "Resource": [ @@ -199,7 +223,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + { + "Ref": "S3Bucket" + }, "/public/*" ] ] @@ -208,12 +234,18 @@ } ] }, - "PolicyName": "Public_policy_206c638b", + "PolicyName": { + "Ref": "s3PublicPolicy" + }, "Roles": [ - "amplify-moodboard-main-1959a-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -227,7 +259,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedProtected" + } ] }, "Resource": [ @@ -236,7 +270,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + { + "Ref": "S3Bucket" + }, "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -245,12 +281,18 @@ } ] }, - "PolicyName": "Protected_policy_206c638b", + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, "Roles": [ - "amplify-moodboard-main-1959a-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -264,7 +306,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } ] }, "Resource": [ @@ -273,7 +317,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + { + "Ref": "S3Bucket" + }, "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -282,12 +328,18 @@ } ] }, - "PolicyName": "Private_policy_206c638b", + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, "Roles": [ - "amplify-moodboard-main-1959a-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -301,7 +353,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject" + { + "Ref": "s3PermissionsAuthenticatedUploads" + } ] }, "Resource": [ @@ -310,7 +364,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + { + "Ref": "S3Bucket" + }, "/uploads/*" ] ] @@ -319,12 +375,18 @@ } ] }, - "PolicyName": "Uploads_policy_206c638b", + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, "Roles": [ - "amplify-moodboard-main-1959a-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -338,7 +400,9 @@ "Action": { "Fn::Split": [ ",", - "s3:GetObject" + { + "Ref": "s3PermissionsGuestPublic" + } ] }, "Resource": [ @@ -347,7 +411,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + { + "Ref": "S3Bucket" + }, "/public/*" ] ] @@ -356,12 +422,18 @@ } ] }, - "PolicyName": "Public_policy_206c638b", + "PolicyName": { + "Ref": "s3PublicPolicy" + }, "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" + { + "Ref": "unauthRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -377,7 +449,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + { + "Ref": "S3Bucket" + }, "/protected/*" ] ] @@ -403,7 +477,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -411,12 +487,18 @@ ], "Version": "2012-10-17" }, - "PolicyName": "read_policy_206c638b", + "PolicyName": { + "Ref": "s3ReadPolicy" + }, "Roles": [ - "amplify-moodboard-main-1959a-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -432,7 +514,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + { + "Ref": "S3Bucket" + }, "/protected/*" ] ] @@ -456,7 +540,9 @@ "", [ "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -464,12 +550,18 @@ ], "Version": "2012-10-17" }, - "PolicyName": "read_policy_206c638b", + "PolicyName": { + "Ref": "s3ReadPolicy" + }, "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" + { + "Ref": "unauthRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json index 603dfa5b725..06532d58281 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json @@ -1,10 +1,90 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + "Bucket": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +99,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +130,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +171,15 @@ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + } }, "DependsOn": [ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" @@ -115,14 +227,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + }, " S3 bucket." ] ] @@ -148,7 +267,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Value": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + } }, "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -166,7 +287,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -183,7 +309,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Resource": { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -212,7 +343,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -221,7 +357,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/protected/*" ] ] @@ -230,7 +371,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/private/*" ] ] @@ -245,7 +391,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -254,7 +405,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/protected/*" ] ] @@ -263,7 +419,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/private/*" ] ] @@ -285,7 +446,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Resource": { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -295,7 +461,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/public/*" ] ] @@ -304,7 +475,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/protected/*" ] ] @@ -313,7 +489,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "Arn" + ] + }, "/private/*" ] ] @@ -343,70 +524,6 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "moodboard20e29595008142e3ad16f01c4066e1c4", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" } }, "Conditions": { @@ -685,7 +802,9 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" + "Value": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json index 3557a8fa1e2..3c4e609fcb2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json @@ -303,10 +303,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json index 8721f5c0e54..b62dc855c35 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, - "DependsOn": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -200,9 +197,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json index ef08b4cd597..97ac6185c7d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json index 8ae961bc698..0ec74d2088d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json @@ -277,7 +277,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -314,7 +313,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -351,7 +349,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -388,7 +385,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -425,7 +421,6 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -480,7 +475,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -533,7 +527,6 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json index c32bf4971d4..4f9173460d0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json index f7d0aa04db5..c790141bfca 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json @@ -10,7 +10,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -81,7 +83,9 @@ }, "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", "Roles": [ - "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" + { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } ] }, "Metadata": { @@ -97,7 +101,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -417,19 +423,29 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": "us-east-1_OFRBVzhq5" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": "61e6oq3acg1at7f9da6cfna70d" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json index c1c890be0a7..622cf4dd33c 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -71,27 +70,6 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -118,19 +96,46 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": "us-east-1_OFRBVzhq5" + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { "AllowUnauthenticatedIdentities": false, "CognitoIdentityProviders": [ { - "ClientId": "61e6oq3acg1at7f9da6cfna70d", + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, "ProviderName": { "Fn::Join": [ "", @@ -140,7 +145,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_OFRBVzhq5" + { + "Ref": "amplifyAuthUserPool4BA7F805" + } ] ] } @@ -177,7 +184,9 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f", + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -190,9 +199,13 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_OFRBVzhq5", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, ":", - "61e6oq3acg1at7f9da6cfna70d" + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } ] ] }, @@ -200,8 +213,18 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M", - "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } } }, "DependsOn": [ diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json index 4df170487c2..e19a55f6415 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json index 3d7eee45f75..d10c85c655b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json @@ -4,7 +4,9 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + "Bucket": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +21,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +52,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +93,15 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + } }, "DependsOn": [ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" @@ -81,8 +115,15 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { "Type": "Custom::S3BucketNotifications", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + "ServiceToken": { + "Fn::GetAtt": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "Arn" + ] + }, + "BucketName": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + }, "NotificationConfiguration": { "LambdaFunctionConfigurations": [ { @@ -125,7 +166,12 @@ "SourceAccount": { "Ref": "AWS::AccountId" }, - "SourceArn": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "SourceArn": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + } }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" @@ -168,14 +214,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + }, " S3 bucket." ] ] @@ -250,7 +303,12 @@ { "Action": "s3:PutBucketNotification", "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Resource": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -274,7 +332,12 @@ "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" }, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Role": { + "Fn::GetAtt": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Arn" + ] + }, "Runtime": "python3.13", "Timeout": 300, "Tags": [ @@ -315,7 +378,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Value": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + } }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -334,7 +399,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/public/*" ] ] @@ -343,7 +413,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/protected/*" ] ] @@ -352,7 +427,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/private/*" ] ] @@ -367,7 +447,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/public/*" ] ] @@ -376,7 +461,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/protected/*" ] ] @@ -385,7 +475,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/private/*" ] ] @@ -407,7 +502,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Resource": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -417,7 +517,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/public/*" ] ] @@ -426,7 +531,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/protected/*" ] ] @@ -435,7 +545,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/private/*" ] ] @@ -743,7 +858,9 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Value": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json index d75aadd5327..f053e3640a5 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { "Type": "AWS::S3::Bucket", diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json index d48c12ba206..dcbb7ff0bfa 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json index 9cf5ab554b8..fbecb1771b3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json @@ -114,7 +114,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] } @@ -136,24 +138,36 @@ ] }, "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole90174ac4", - { - "Fn::Select": [ - 3, + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole90174ac4", { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } ] + }, + "-", + { + "Ref": "env" } ] - }, - "-", - "main" - ] + ] + } ] } } @@ -162,29 +176,49 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc" + "Value": { + "Ref": "IdentityPool" + } }, "IdentityPoolName": { - "Value": "productcatalog90174ac4_identitypool_90174ac4__main" + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } }, "UserPoolId": { "Description": "Id for the user pool", - "Value": "us-east-1_66BkqNfdX" + "Value": { + "Ref": "UserPool" + } }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_66BkqNfdX" + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } }, "UserPoolName": { - "Value": "productcatalog90174ac4_userpool_90174ac4" + "Value": { + "Ref": "userPoolName" + } }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": "7ogg1fkk68io03i95o0viqhibk" + "Value": { + "Ref": "UserPoolClientWeb" + } }, "AppClientID": { "Description": "The user pool app client id", - "Value": "27jbakm3s7vgm116b36evi830d" + "Value": { + "Ref": "UserPoolClient" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json index 187486f41fc..76fba05b4e4 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json @@ -1,6 +1,176 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "productcatalog90174ac4_identitypool_90174ac4", + { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_identitypool_90174ac4__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -10,7 +180,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -81,7 +253,9 @@ }, "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", "Roles": [ - "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" + { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } ] }, "Metadata": { @@ -97,7 +271,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -138,150 +314,34 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LvQ6CMBSFn4W9XKFxcDVMLsZgnE1tr3qhtAm9SkjTdzdIUKbznT8JcltCkakh5Nq0uaUbxCMGRnNmpVuhhnCN2j8csYd4CdifvLeiursfL1BZQsfr6p8cDDomHpfz2tfe4p5Z6WeHjpMg1UGcwmn41ZO3pMfJzpRSEs4bhCZs3lJCuYMiawJR3r8cU4dQz/oBzysbsN8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } + "IdentityPoolId": { + "Ref": "IdentityPool" }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_userpool_90174ac4", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_66BkqNfdX" }, "DependsOn": [ - "amplifyAuthUserPool4BA7F805" + "IdentityPool" ] }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", "Properties": { - "ClientName": "produc90174ac4_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_66BkqNfdX" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LvQ6CMBSFn4W9XKFxcDVMLsZgnE1tr3qhtAm9SkjTdzdIUKbznT8JcltCkakh5Nq0uaUbxCMGRnNmpVuhhnCN2j8csYd4CdifvLeiursfL1BZQsfr6p8cDDomHpfz2tfe4p5Z6WeHjpMg1UGcwmn41ZO3pMfJzpRSEs4bhCZs3lJCuYMiawJR3r8cU4dQz/oBzysbsN8AAAA=" }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "27jbakm3s7vgm116b36evi830d", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_66BkqNfdX" - } - ] - } - }, - { - "ClientId": "7ogg1fkk68io03i95o0viqhibk", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_66BkqNfdX" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_identitypool_90174ac4__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" - } + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/CDKMetadata/Default" }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + "Condition": "CDKMetadataAvailable" } }, "Conditions": { @@ -552,19 +612,29 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": "us-east-1_OFRBVzhq5" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": "61e6oq3acg1at7f9da6cfna70d" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json index bf796ac778b..8caf8958ceb 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json index 931e6107b36..fdf07ca7045 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json @@ -99,7 +99,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] }, @@ -107,7 +109,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, "DISALLOW" ] } @@ -117,7 +121,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, "DISALLOW" ] } @@ -127,7 +133,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, "DISALLOW" ] } @@ -137,7 +145,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject", + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, "DISALLOW" ] } @@ -147,7 +157,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "DISALLOW", + { + "Ref": "s3PermissionsGuestPublic" + }, "DISALLOW" ] } @@ -157,7 +169,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "DISALLOW", + { + "Ref": "s3PermissionsGuestUploads" + }, "DISALLOW" ] } @@ -167,7 +181,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "ALLOW", + { + "Ref": "AuthenticatedAllowList" + }, "DISALLOW" ] } @@ -177,7 +193,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "DISALLOW", + { + "Ref": "GuestAllowList" + }, "DISALLOW" ] } @@ -187,10 +205,14 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" + "Value": { + "Ref": "S3Bucket" + } }, "Region": { - "Value": "us-east-1" + "Value": { + "Ref": "AWS::Region" + } } }, "Resources": { @@ -198,7 +220,9 @@ "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", - "FunctionName": "S3Trigger1ef46783-main", + "FunctionName": { + "Ref": "functionS3Trigger1ef46783Name" + }, "Principal": "s3.amazonaws.com", "SourceAccount": { "Ref": "AWS::AccountId" @@ -211,25 +235,33 @@ { "Fn::If": [ "ShouldNotCreateEnvResources", - "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Ref": "bucketName" + }, { "Fn::Join": [ "", [ - "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Ref": "bucketName" + }, { "Fn::Select": [ 3, { "Fn::Split": [ "-", - "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" + { + "Ref": "AWS::StackName" + } ] } ] }, "-", - "main" + { + "Ref": "env" + } ] ] } @@ -251,7 +283,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPublic" + } ] }, "Resource": [ @@ -260,7 +294,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + { + "Ref": "S3Bucket" + }, "/public/*" ] ] @@ -269,12 +305,18 @@ } ] }, - "PolicyName": "Public_policy_38e5b439", + "PolicyName": { + "Ref": "s3PublicPolicy" + }, "Roles": [ - "amplify-productcatalog-main-31323-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -288,7 +330,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedProtected" + } ] }, "Resource": [ @@ -297,7 +341,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + { + "Ref": "S3Bucket" + }, "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -306,12 +352,18 @@ } ] }, - "PolicyName": "Protected_policy_38e5b439", + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, "Roles": [ - "amplify-productcatalog-main-31323-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -325,7 +377,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } ] }, "Resource": [ @@ -334,7 +388,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + { + "Ref": "S3Bucket" + }, "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -343,12 +399,18 @@ } ] }, - "PolicyName": "Private_policy_38e5b439", + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, "Roles": [ - "amplify-productcatalog-main-31323-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -362,7 +424,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject" + { + "Ref": "s3PermissionsAuthenticatedUploads" + } ] }, "Resource": [ @@ -371,7 +435,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + { + "Ref": "S3Bucket" + }, "/uploads/*" ] ] @@ -380,12 +446,18 @@ } ] }, - "PolicyName": "Uploads_policy_38e5b439", + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, "Roles": [ - "amplify-productcatalog-main-31323-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthUploads" }, "S3AuthReadPolicy": { @@ -401,7 +473,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + { + "Ref": "S3Bucket" + }, "/protected/*" ] ] @@ -427,7 +501,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -435,14 +511,83 @@ ], "Version": "2012-10-17" }, - "PolicyName": "read_policy_38e5b439", + "PolicyName": { + "Ref": "s3ReadPolicy" + }, "Roles": [ - "amplify-productcatalog-main-31323-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "AuthReadAndList" }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "GuestReadAndList" + }, "S3TriggerBucketPolicy": { "Type": "AWS::IAM::Policy", "Properties": { @@ -460,7 +605,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -480,7 +627,9 @@ "", [ "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + { + "Ref": "S3Bucket" + }, "/*" ] ] @@ -491,10 +640,14 @@ }, "PolicyName": "amplify-lambda-execution-policy-storage", "Roles": [ - "S3Trigger1ef46783LambdaRole1ef46783-main" + { + "Ref": "functionS3Trigger1ef46783LambdaExecutionRole" + } ] }, - "DependsOn": [] + "DependsOn": [ + "S3Bucket" + ] } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json index ee4724de7d0..d32f945665a 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json @@ -1,10 +1,109 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "NotificationConfiguration": { + "LambdaConfigurations": [ + { + "Event": "s3:ObjectCreated:*", + "Function": { + "Ref": "functionS3Trigger1ef46783Arn" + } + }, + { + "Event": "s3:ObjectRemoved:*", + "Function": { + "Ref": "functionS3Trigger1ef46783Arn" + } + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "DependsOn": [ + "TriggerPermissions" + ], + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + "Bucket": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +118,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +149,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +190,15 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + } }, "DependsOn": [ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" @@ -81,8 +212,15 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { "Type": "Custom::S3BucketNotifications", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + "ServiceToken": { + "Fn::GetAtt": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "Arn" + ] + }, + "BucketName": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + }, "NotificationConfiguration": { "LambdaFunctionConfigurations": [ { @@ -125,7 +263,12 @@ "SourceAccount": { "Ref": "AWS::AccountId" }, - "SourceArn": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "SourceArn": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + } }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" @@ -168,14 +311,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + }, " S3 bucket." ] ] @@ -250,7 +400,12 @@ { "Action": "s3:PutBucketNotification", "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Resource": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -274,7 +429,12 @@ "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" }, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Role": { + "Fn::GetAtt": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Arn" + ] + }, "Runtime": "python3.13", "Timeout": 300, "Tags": [ @@ -315,7 +475,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Value": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + } }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -334,7 +496,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/public/*" ] ] @@ -343,7 +510,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/protected/*" ] ] @@ -352,7 +524,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/private/*" ] ] @@ -367,7 +544,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/public/*" ] ] @@ -376,7 +558,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/protected/*" ] ] @@ -385,7 +572,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/private/*" ] ] @@ -407,7 +599,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Resource": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -417,7 +614,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/public/*" ] ] @@ -426,7 +628,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/protected/*" ] ] @@ -435,7 +642,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "Arn" + ] + }, "/private/*" ] ] @@ -465,83 +677,6 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "productcatalogf95af07481f845caa6594c26ac9c8ed3", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "NotificationConfiguration": { - "LambdaConfigurations": [ - { - "Event": "s3:ObjectCreated:*", - "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - }, - { - "Event": "s3:ObjectRemoved:*", - "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "DependsOn": [], - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" } }, "Conditions": { @@ -820,7 +955,9 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" + "Value": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json index 9a3f81d31df..ba390bdc15b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json @@ -340,10 +340,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json index 3eddc81943c..4f29cfcc0ed 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -178,10 +175,6 @@ "Managed": true, "SkipDestinationValidation": false }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -253,9 +246,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -368,10 +358,6 @@ } ] }, - "DependsOn": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json index b2b78850e70..f680f1c6eb8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json index a490d8b9de5..a194d381190 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json @@ -267,7 +267,6 @@ ] } }, - "DependsOn": [], "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain" }, @@ -351,7 +350,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -388,7 +386,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -425,7 +422,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -462,7 +458,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3AuthReadPolicy": { @@ -517,7 +512,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3TriggerBucketPolicy": { @@ -570,8 +564,7 @@ "Roles": [ "S3Trigger1ef46783LambdaRole1ef46783-main" ] - }, - "DependsOn": [] + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json index ff5c6741705..a5ab68ecc4a 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json index 29d614e77f0..ee566c058c1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json @@ -10,7 +10,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +62,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -380,19 +384,29 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": "us-east-1_pXlpWF7QY" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": "oqgm3faeod0cr1b4v63iv4a7a" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json index 4bd455c3620..d5de4129ebf 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -71,27 +70,6 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -118,19 +96,46 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": "us-east-1_pXlpWF7QY" + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { "AllowUnauthenticatedIdentities": true, "CognitoIdentityProviders": [ { - "ClientId": "oqgm3faeod0cr1b4v63iv4a7a", + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, "ProviderName": { "Fn::Join": [ "", @@ -140,7 +145,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_pXlpWF7QY" + { + "Ref": "amplifyAuthUserPool4BA7F805" + } ] ] } @@ -177,7 +184,9 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba", + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -190,9 +199,13 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_pXlpWF7QY", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, ":", - "oqgm3faeod0cr1b4v63iv4a7a" + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } ] ] }, @@ -200,8 +213,18 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT", - "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } } }, "DependsOn": [ diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json index a5ea8fd59de..20edd36515b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json index 580eda74c18..b64485d5894 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json @@ -4,7 +4,9 @@ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + "Bucket": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +21,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +52,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +93,15 @@ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + } }, "DependsOn": [ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" @@ -115,14 +149,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + }, " S3 bucket." ] ] @@ -148,7 +189,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Value": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + } }, "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -166,7 +209,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -183,7 +231,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Resource": { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -212,7 +265,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -221,7 +279,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/protected/*" ] ] @@ -230,7 +293,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/private/*" ] ] @@ -245,7 +313,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -254,7 +327,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/protected/*" ] ] @@ -263,7 +341,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/private/*" ] ] @@ -285,7 +368,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Resource": { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -295,7 +383,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -304,7 +397,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/protected/*" ] ] @@ -313,7 +411,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/private/*" ] ] @@ -621,7 +724,9 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Value": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json index 7375ab1657a..159fcea7fe2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json @@ -1,6 +1,5 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", "Resources": { "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { "Type": "AWS::S3::Bucket", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json index 07eccbab939..53e3abf3235 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json index 0a3ee93ddce..f63ce7339e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json @@ -114,7 +114,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] } @@ -136,24 +138,36 @@ ] }, "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole54040ecc", - { - "Fn::Select": [ - 3, + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole54040ecc", { - "Fn::Split": [ - "-", - "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } ] + }, + "-", + { + "Ref": "env" } ] - }, - "-", - "main" - ] + ] + } ] } } @@ -162,29 +176,49 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791" + "Value": { + "Ref": "IdentityPool" + } }, "IdentityPoolName": { - "Value": "projectboards54040ecc_identitypool_54040ecc__main" + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } }, "UserPoolId": { "Description": "Id for the user pool", - "Value": "us-east-1_ct5s4IEz3" + "Value": { + "Ref": "UserPool" + } }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_ct5s4IEz3" + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } }, "UserPoolName": { - "Value": "projectboards54040ecc_userpool_54040ecc" + "Value": { + "Ref": "userPoolName" + } }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": "1vpeihq8svf62sepfnkuvp8sld" + "Value": { + "Ref": "UserPoolClientWeb" + } }, "AppClientID": { "Description": "The user pool app client id", - "Value": "3dbqrlfs0a0g4a6ihsanen6i5" + "Value": { + "Ref": "UserPoolClient" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json index 06fb757fe75..5cc2cce7f81 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json @@ -1,6 +1,176 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "projectboards54040ecc_identitypool_54040ecc", + { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_identitypool_54040ecc__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -10,7 +180,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +232,9 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -101,150 +275,34 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } + "IdentityPoolId": { + "Ref": "IdentityPool" }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_userpool_54040ecc", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_ct5s4IEz3" }, "DependsOn": [ - "amplifyAuthUserPool4BA7F805" + "IdentityPool" ] }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", "Properties": { - "ClientName": "projec54040ecc_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_ct5s4IEz3" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "3dbqrlfs0a0g4a6ihsanen6i5", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_ct5s4IEz3" - } - ] - } - }, - { - "ClientId": "1vpeihq8svf62sepfnkuvp8sld", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_ct5s4IEz3" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_identitypool_54040ecc__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" - } + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/CDKMetadata/Default" }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + "Condition": "CDKMetadataAvailable" } }, "Conditions": { @@ -515,19 +573,29 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": "us-east-1_pXlpWF7QY" + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": "oqgm3faeod0cr1b4v63iv4a7a" + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json index 129799390d2..e8be4aa2427 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json index fadc25c61f3..2a102385b61 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json @@ -84,7 +84,9 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - "main", + { + "Ref": "env" + }, "NONE" ] }, @@ -92,7 +94,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, "DISALLOW" ] } @@ -102,7 +106,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, "DISALLOW" ] } @@ -112,7 +118,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, "DISALLOW" ] } @@ -122,7 +130,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:PutObject", + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, "DISALLOW" ] } @@ -132,7 +142,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "s3:GetObject", + { + "Ref": "s3PermissionsGuestPublic" + }, "DISALLOW" ] } @@ -142,7 +154,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "DISALLOW", + { + "Ref": "s3PermissionsGuestUploads" + }, "DISALLOW" ] } @@ -152,7 +166,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "ALLOW", + { + "Ref": "AuthenticatedAllowList" + }, "DISALLOW" ] } @@ -162,7 +178,9 @@ "Fn::Not": [ { "Fn::Equals": [ - "ALLOW", + { + "Ref": "GuestAllowList" + }, "DISALLOW" ] } @@ -172,10 +190,14 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-main" + "Value": { + "Ref": "S3Bucket" + } }, "Region": { - "Value": "us-east-1" + "Value": { + "Ref": "AWS::Region" + } } }, "Resources": { @@ -190,7 +212,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPublic" + } ] }, "Resource": [ @@ -199,7 +223,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + { + "Ref": "S3Bucket" + }, "/public/*" ] ] @@ -208,12 +234,18 @@ } ] }, - "PolicyName": "Public_policy_69f8ff1c", + "PolicyName": { + "Ref": "s3PublicPolicy" + }, "Roles": [ - "amplify-projectboards-main-02940-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -227,7 +259,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedProtected" + } ] }, "Resource": [ @@ -236,7 +270,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + { + "Ref": "S3Bucket" + }, "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -245,12 +281,18 @@ } ] }, - "PolicyName": "Protected_policy_69f8ff1c", + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, "Roles": [ - "amplify-projectboards-main-02940-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -264,7 +306,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } ] }, "Resource": [ @@ -273,7 +317,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + { + "Ref": "S3Bucket" + }, "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -282,12 +328,18 @@ } ] }, - "PolicyName": "Private_policy_69f8ff1c", + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, "Roles": [ - "amplify-projectboards-main-02940-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -301,7 +353,9 @@ "Action": { "Fn::Split": [ ",", - "s3:PutObject" + { + "Ref": "s3PermissionsAuthenticatedUploads" + } ] }, "Resource": [ @@ -310,7 +364,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + { + "Ref": "S3Bucket" + }, "/uploads/*" ] ] @@ -319,12 +375,18 @@ } ] }, - "PolicyName": "Uploads_policy_69f8ff1c", + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, "Roles": [ - "amplify-projectboards-main-02940-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -338,7 +400,9 @@ "Action": { "Fn::Split": [ ",", - "s3:GetObject" + { + "Ref": "s3PermissionsGuestPublic" + } ] }, "Resource": [ @@ -347,7 +411,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + { + "Ref": "S3Bucket" + }, "/public/*" ] ] @@ -356,12 +422,18 @@ } ] }, - "PolicyName": "Public_policy_69f8ff1c", + "PolicyName": { + "Ref": "s3PublicPolicy" + }, "Roles": [ - "amplify-projectboards-main-02940-unauthRole" + { + "Ref": "unauthRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -377,7 +449,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + { + "Ref": "S3Bucket" + }, "/protected/*" ] ] @@ -403,7 +477,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -411,12 +487,18 @@ ], "Version": "2012-10-17" }, - "PolicyName": "read_policy_69f8ff1c", + "PolicyName": { + "Ref": "s3ReadPolicy" + }, "Roles": [ - "amplify-projectboards-main-02940-authRole" + { + "Ref": "authRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -432,7 +514,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + { + "Ref": "S3Bucket" + }, "/protected/*" ] ] @@ -456,7 +540,9 @@ "", [ "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main" + { + "Ref": "S3Bucket" + } ] ] } @@ -464,12 +550,18 @@ ], "Version": "2012-10-17" }, - "PolicyName": "read_policy_69f8ff1c", + "PolicyName": { + "Ref": "s3ReadPolicy" + }, "Roles": [ - "amplify-projectboards-main-02940-unauthRole" + { + "Ref": "unauthRoleName" + } ] }, - "DependsOn": [], + "DependsOn": [ + "S3Bucket" + ], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json index 60a42386506..4f69c5395a5 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json @@ -1,10 +1,90 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + "Bucket": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + }, "PolicyDocument": { "Statement": [ { @@ -19,12 +99,22 @@ "AWS": "*" }, "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/*" ] ] @@ -40,15 +130,30 @@ ], "Effect": "Allow", "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } }, "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, { "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/*" ] ] @@ -66,8 +171,15 @@ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + } }, "DependsOn": [ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" @@ -115,14 +227,21 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + }, " S3 bucket." ] ] @@ -148,7 +267,9 @@ "created-by": "amplify" }, "Type": "String", - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Value": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + } }, "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -166,7 +287,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -183,7 +309,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Resource": { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + } } ], "Version": "2012-10-17" @@ -212,7 +343,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -221,7 +357,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/protected/*" ] ] @@ -230,7 +371,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/private/*" ] ] @@ -245,7 +391,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -254,7 +405,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/protected/*" ] ] @@ -263,7 +419,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/private/*" ] ] @@ -285,7 +446,12 @@ } }, "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Resource": { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + } }, { "Action": "s3:DeleteObject", @@ -295,7 +461,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/public/*" ] ] @@ -304,7 +475,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/protected/*" ] ] @@ -313,7 +489,12 @@ "Fn::Join": [ "", [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "Arn" + ] + }, "/private/*" ] ] @@ -343,70 +524,6 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "projectboards34b9a7f3c2ca489293910116c994688b", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" } }, "Conditions": { @@ -685,7 +802,9 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" + "Value": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json index ce3bc368f1b..e004bc868c5 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json @@ -303,10 +303,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json index 0c2b9cd2a9c..89a6d81ca6f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, - "DependsOn": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -200,9 +197,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json index 3aa2d612914..92d9ab6fde9 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json index eed789328a5..1ebeee344f7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json @@ -277,7 +277,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -314,7 +313,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -351,7 +349,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -388,7 +385,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -425,7 +421,6 @@ "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -480,7 +475,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -533,7 +527,6 @@ "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts index 3033c4660c7..0031ba2a989 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts @@ -104,31 +104,25 @@ export class CloudFormationMock { const invocationCount = this._describeStackCounter.get(input.StackName!) ?? 0; this._describeStackCounter.set(input.StackName!, invocationCount + 1); if (input.StackName!.endsWith('-holding')) { - switch (invocationCount) { - case 0: - // first time is before executing refactor when we check if it already - // exists. simulate a standard pre-refactor state where it doesn't. - throw new cloudformation.CloudFormationServiceException({ - name: 'ValidationError', - message: `stack ${input.StackName} does not exist`, - $fault: 'client', - $metadata: {}, - }); - case 1: - // second time is after we execute the refactor and CloudFormation is supposed - // to create the stack for us. all we need is a completion status here. - return { - Stacks: [ - { - StackName: input.StackName, - StackStatus: 'UPDATE_COMPLETE', - CreationTime: undefined, - }, - ], - }; - default: - throw new Error(`Unexpected invocation of DescribeStacks with input: ${JSON.stringify(input)}`); + if (invocationCount === 0) { + // first call: findStack check before refactor — stack doesn't exist yet + throw new cloudformation.CloudFormationServiceException({ + name: 'ValidationError', + message: `stack ${input.StackName} does not exist`, + $fault: 'client', + $metadata: {}, + }); } + // subsequent calls: after refactor creates the stack, waiters poll for completion + return { + Stacks: [ + { + StackName: input.StackName, + StackStatus: cloudformation.StackStatus.CREATE_COMPLETE, + CreationTime: new Date(), + }, + ], + }; } const parameters = this.app.cfnParametersForStack(input.StackName!); const outputs = this.app.cfnOutputsForStack(input.StackName!); @@ -138,8 +132,8 @@ export class CloudFormationMock { { StackName: input.StackName!, Parameters: parameters, - CreationTime: undefined, - StackStatus: 'UPDATE_COMPLETE', + CreationTime: new Date(), + StackStatus: cloudformation.StackStatus.UPDATE_COMPLETE, Description: description, Outputs: outputs, }, @@ -153,6 +147,18 @@ export class CloudFormationMock { .on(cloudformation.GetTemplateCommand) .callsFake(async (input: cloudformation.GetTemplateCommandInput): Promise => { const templatePath = this.app.templatePathForStack(input.StackName!); + // Holding stacks are created dynamically during refactor and have no snapshot file. + // Return an empty template so Cfn.refactor() can populate it with moved resources. + if (!fs.existsSync(templatePath)) { + return { + TemplateBody: JSON.stringify({ + AWSTemplateFormatVersion: '2010-09-09', + Resources: {}, + Outputs: {}, + }), + $metadata: {}, + }; + } return { TemplateBody: fs.readFileSync(templatePath, { encoding: 'utf-8' }), $metadata: {}, diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts index c227b8ed8cd..9925bf408dd 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts @@ -36,6 +36,9 @@ const gen2AuthTemplate: CFNTemplate = { }; function setupMocks(cfnMock: ReturnType) { + // Default: no stacks found (used by findStack for holding stacks) + cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); + const gen1NestedStacks = [ { LogicalResourceId: 'authtestStack', @@ -139,6 +142,9 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { }, }; + // Default: no stacks found (for holding stack lookup) + cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); + cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen1-root' }).resolves({ StackResources: [ { diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts index d294e177faa..7855d1dc9aa 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts @@ -15,7 +15,9 @@ import { ResourceStatus, CreateChangeSetCommand, DescribeChangeSetCommand, + DeleteChangeSetCommand, } from '@aws-sdk/client-cloudformation'; +import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; const ts = new Date(); const rs = ResourceStatus.CREATE_COMPLETE; @@ -65,7 +67,8 @@ function makeInstances() { (clients as any).cloudFormation = new CloudFormationClient({}); const gen1Env = new StackFacade(clients, 'gen1-root'); const gen2Branch = new StackFacade(clients, 'gen2-root'); - return { clients, gen1Env, gen2Branch }; + const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); + return { clients, gen1Env, gen2Branch, cfn }; } describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefactorer', () => { @@ -74,6 +77,8 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock = mockClient(CloudFormationClient); cfnMock.on(CreateChangeSetCommand).resolves({}); cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); + cfnMock.on(DeleteChangeSetCommand).resolves({}); + cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); }); afterEach(() => cfnMock.restore()); @@ -81,15 +86,24 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen1-root' }).resolves({ StackResources: [] }); cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); - const { clients, gen1Env, gen2Branch } = makeInstances(); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); await expect( - new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }).plan(), - ).rejects.toThrow('unable to find source stack'); + new StorageS3ForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }, + cfn, + ).plan(), + ).rejects.toThrow('Unable to find source stack'); }); it('throws when source exists but destination does not (Path B)', async () => { @@ -98,15 +112,24 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact }); cfnMock.on(DescribeStackResourcesCommand, { StackName: 'gen2-root' }).resolves({ StackResources: [] }); - const { clients, gen1Env, gen2Branch } = makeInstances(); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); await expect( - new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }).plan(), - ).rejects.toThrow('unable to find target stack'); + new StorageS3ForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }, + cfn, + ).plan(), + ).rejects.toThrow('Unable to find target stack'); }); it('throws when destination exists but source does not (Path B reversed)', async () => { @@ -115,15 +138,24 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact StackResources: [nestedStack('storageGen2', 'gen2-storage-stack')], }); - const { clients, gen1Env, gen2Branch } = makeInstances(); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); await expect( - new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }).plan(), - ).rejects.toThrow('unable to find source stack'); + new StorageS3ForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }, + cfn, + ).plan(), + ).rejects.toThrow('Unable to find source stack'); }); it('returns empty array when no matching resource types in source (Path D)', async () => { @@ -136,26 +168,44 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact setupStorageMocks(cfnMock); cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(noStorageTemplate) }); - const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }).plan(); - expect(ops).toEqual([]); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); + const ops = await new StorageS3ForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }, + cfn, + ).plan(); + expect(ops).toHaveLength(1); // no-op operation }); it('produces updateSource → updateTarget → beforeMove → move for forward plan', async () => { setupStorageMocks(cfnMock); - const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3ForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }).plan(); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); + const ops = await new StorageS3ForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }, + cfn, + ).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -172,10 +222,12 @@ describe('StorageS3RollbackRefactorer.plan() — rollback without holding stack' cfnMock = mockClient(CloudFormationClient); cfnMock.on(CreateChangeSetCommand).resolves({}); cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); + cfnMock.on(DeleteChangeSetCommand).resolves({}); + cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); }); afterEach(() => cfnMock.restore()); - it('produces move only (no updateSource/updateTarget, no afterMove ops)', async () => { + it('produces no-op when resources already exist in target', async () => { // Default DescribeStacks returns empty (findHoldingStack → null) cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); @@ -202,19 +254,25 @@ describe('StorageS3RollbackRefactorer.plan() — rollback without holding stack' }); cfnMock.on(GetTemplateCommand, { StackName: 'gen1-storage-stack' }).resolves({ TemplateBody: JSON.stringify(gen1StorageTemplate) }); - const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new StorageS3RollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'storage', - resourceName: 'test', - service: 'S3', - key: 'storage:S3' as const, - }).plan(); - const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); + const ops = await new StorageS3RollbackRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'storage', + resourceName: 'test', + service: 'S3', + key: 'storage:S3' as const, + }, + cfn, + ).plan(); - // Rollback: no updateSource/updateTarget, just move - expect(descriptions.every((d) => !d.includes('Update source') && !d.includes('Update target'))).toBe(true); - expect(descriptions.some((d) => d.includes('Move'))).toBe(true); - expect(descriptions).toHaveLength(1); + // Resources already exist in Gen1 target, so rollback produces no-op + expect(ops).toHaveLength(1); // no-op operation }); }); @@ -224,6 +282,8 @@ describe('Analytics wiring tests', () => { cfnMock = mockClient(CloudFormationClient); cfnMock.on(CreateChangeSetCommand).resolves({}); cfnMock.on(DescribeChangeSetCommand).resolves({ Status: 'CREATE_COMPLETE', Changes: [] }); + cfnMock.on(DeleteChangeSetCommand).resolves({}); + cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); }); afterEach(() => cfnMock.restore()); @@ -261,13 +321,22 @@ describe('Analytics wiring tests', () => { it('forward: discovers analytics stacks and maps Kinesis stream', async () => { setupAnalyticsMocks(cfnMock); - const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisForwardRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'analytics', - resourceName: 'test', - service: 'Kinesis', - key: 'analytics:Kinesis' as const, - }).plan(); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); + const ops = await new AnalyticsKinesisForwardRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'analytics', + resourceName: 'test', + service: 'Kinesis', + key: 'analytics:Kinesis' as const, + }, + cfn, + ).plan(); const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); expect(descriptions).toHaveLength(4); @@ -277,16 +346,24 @@ describe('Analytics wiring tests', () => { it('rollback: discovers analytics stacks and maps to Gen1 KinesisStream ID', async () => { cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); // no holding stack setupAnalyticsMocks(cfnMock); - const { clients, gen1Env, gen2Branch } = makeInstances(); - const ops = await new AnalyticsKinesisRollbackRefactorer(gen1Env, gen2Branch, clients, 'us-east-1', '123', noOpLogger(), { - category: 'analytics', - resourceName: 'test', - service: 'Kinesis', - key: 'analytics:Kinesis' as const, - }).plan(); - const descriptions = (await Promise.all(ops.map((o) => o.describe()))).flat(); + const { clients, gen1Env, gen2Branch, cfn } = makeInstances(); + const ops = await new AnalyticsKinesisRollbackRefactorer( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'analytics', + resourceName: 'test', + service: 'Kinesis', + key: 'analytics:Kinesis' as const, + }, + cfn, + ).plan(); - expect(descriptions).toHaveLength(1); - expect(descriptions[0]).toContain('Move 1 resource'); + // Resources already exist in Gen1 target, so rollback produces no-op + expect(ops).toHaveLength(1); // no-op operation }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-refactor-updater.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-refactor-updater.test.ts deleted file mode 100644 index f561576c0b2..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-refactor-updater.test.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { tryRefactorStack, RefactorFailure } from '../../../../commands/gen2-migration/refactor/cfn-stack-refactor-updater'; -import { mockClient } from 'aws-sdk-client-mock'; -import { - CloudFormationClient, - CreateStackRefactorCommand, - DescribeStackRefactorCommand, - ExecuteStackRefactorCommand, - DescribeStacksCommand, - StackRefactorStatus, - StackRefactorExecutionStatus, -} from '@aws-sdk/client-cloudformation'; - -jest.mock('../../../../commands/gen2-migration/refactor/snap', () => ({ - preRefactorStack: jest.fn(), -})); - -const input = { - StackDefinitions: [ - { StackName: 'source-stack', TemplateBody: '{}' }, - { StackName: 'dest-stack', TemplateBody: '{}' }, - ], - ResourceMappings: [ - { Source: { StackName: 'source-stack', LogicalResourceId: 'A' }, Destination: { StackName: 'dest-stack', LogicalResourceId: 'B' } }, - ], -}; - -describe('tryRefactorStack', () => { - let cfnMock: ReturnType; - - beforeEach(() => { - cfnMock = mockClient(CloudFormationClient); - }); - afterEach(() => cfnMock.restore()); - - it('happy path: create → execute → poll stacks → success', async () => { - cfnMock.on(CreateStackRefactorCommand).resolves({ StackRefactorId: 'refactor-1' }); - cfnMock - .on(DescribeStackRefactorCommand) - .resolvesOnce({ Status: StackRefactorStatus.CREATE_COMPLETE }) - .resolvesOnce({ ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_COMPLETE }); - cfnMock.on(ExecuteStackRefactorCommand).resolves({}); - cfnMock - .on(DescribeStacksCommand) - .resolvesOnce({ Stacks: [{ StackName: 'source-stack', StackStatus: 'UPDATE_COMPLETE', CreationTime: new Date() }] }) - .resolvesOnce({ Stacks: [{ StackName: 'dest-stack', StackStatus: 'UPDATE_COMPLETE', CreationTime: new Date() }] }); - - const result = await tryRefactorStack(new CloudFormationClient({}), input, 1); - expect(result.success).toBe(true); - }); - - it('returns failure when create lands on CREATE_FAILED', async () => { - cfnMock.on(CreateStackRefactorCommand).resolves({ StackRefactorId: 'refactor-1' }); - cfnMock.on(DescribeStackRefactorCommand).resolves({ - Status: StackRefactorStatus.CREATE_FAILED, - StatusReason: 'Update operations not permitted', - }); - - const result = await tryRefactorStack(new CloudFormationClient({}), input, 1); - expect(result.success).toBe(false); - if (!result.success) { - const failure = result as RefactorFailure; - expect(failure.reason).toContain('Update operations not permitted'); - expect(failure.stackRefactorId).toBe('refactor-1'); - } - }); - - it('returns failure when execute lands on EXECUTE_FAILED', async () => { - cfnMock.on(CreateStackRefactorCommand).resolves({ StackRefactorId: 'refactor-1' }); - cfnMock - .on(DescribeStackRefactorCommand) - .resolvesOnce({ Status: StackRefactorStatus.CREATE_COMPLETE }) - .resolvesOnce({ ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_FAILED, ExecutionStatusReason: 'conflict' }); - cfnMock.on(ExecuteStackRefactorCommand).resolves({}); - - const result = await tryRefactorStack(new CloudFormationClient({}), input, 1); - expect(result.success).toBe(false); - if (!result.success) { - expect((result as RefactorFailure).reason).toContain('conflict'); - } - }); - - it('throws on polling timeout', async () => { - jest.useFakeTimers(); - cfnMock.on(CreateStackRefactorCommand).resolves({ StackRefactorId: 'refactor-1' }); - cfnMock.on(DescribeStackRefactorCommand).resolves({ Status: StackRefactorStatus.CREATE_IN_PROGRESS }); - - let error: Error | undefined; - const promise = tryRefactorStack(new CloudFormationClient({}), input, 1).catch((e) => { - error = e; - }); - // Flush all pending timers - await jest.runAllTimersAsync(); - await promise; - expect(error?.message).toContain('did not reach a completion state'); - jest.useRealTimers(); - }); - - it('throws when CreateStackRefactor returns no StackRefactorId', async () => { - cfnMock.on(CreateStackRefactorCommand).resolves({}); - - await expect(tryRefactorStack(new CloudFormationClient({}), input, 1)).rejects.toThrow('no StackRefactorId'); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-updater.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-updater.test.ts deleted file mode 100644 index 80a34cf0dee..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-stack-updater.test.ts +++ /dev/null @@ -1,145 +0,0 @@ -import { tryUpdateStack, pollStackForCompletionState } from '../../../../commands/gen2-migration/refactor/cfn-stack-updater'; -import { mockClient } from 'aws-sdk-client-mock'; -import { CloudFormationClient, UpdateStackCommand, DescribeStacksCommand } from '@aws-sdk/client-cloudformation'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; - -jest.mock('../../../../commands/gen2-migration/refactor/snap', () => ({ - preUpdateStack: jest.fn(), -})); - -const template: CFNTemplate = { - AWSTemplateFormatVersion: '2010-09-09', - Description: 'test', - Resources: { Bucket: { Type: 'AWS::S3::Bucket', Properties: {} } }, - Outputs: {}, -}; - -describe('tryUpdateStack', () => { - let cfnMock: ReturnType; - beforeEach(() => { - cfnMock = mockClient(CloudFormationClient); - }); - afterEach(() => cfnMock.restore()); - - it('updates stack and returns completion status', async () => { - cfnMock.on(UpdateStackCommand).resolves({}); - cfnMock.on(DescribeStacksCommand).resolves({ - Stacks: [{ StackName: 'my-stack', StackStatus: 'UPDATE_COMPLETE', CreationTime: new Date() }], - }); - - const result = await tryUpdateStack({ - cfnClient: new CloudFormationClient({}), - stackName: 'my-stack', - parameters: [], - templateBody: template, - attempts: 1, - }); - expect(result).toBe('UPDATE_COMPLETE'); - }); - - it('returns UPDATE_COMPLETE without polling when no updates needed', async () => { - cfnMock.on(UpdateStackCommand).rejects({ message: 'No updates are to be performed' }); - - const result = await tryUpdateStack({ - cfnClient: new CloudFormationClient({}), - stackName: 'my-stack', - parameters: [], - templateBody: template, - }); - expect(result).toBe('UPDATE_COMPLETE'); - expect(cfnMock.commandCalls(DescribeStacksCommand)).toHaveLength(0); - }); - - it('rethrows non-no-update errors', async () => { - cfnMock.on(UpdateStackCommand).rejects(new Error('Template format error')); - - await expect( - tryUpdateStack({ - cfnClient: new CloudFormationClient({}), - stackName: 'my-stack', - parameters: [], - templateBody: template, - }), - ).rejects.toThrow('Template format error'); - }); -}); - -describe('pollStackForCompletionState', () => { - let cfnMock: ReturnType; - beforeEach(() => { - cfnMock = mockClient(CloudFormationClient); - }); - afterEach(() => cfnMock.restore()); - - it('returns immediately when stack is already complete', async () => { - cfnMock.on(DescribeStacksCommand).resolves({ - Stacks: [{ StackName: 's', StackStatus: 'UPDATE_COMPLETE', CreationTime: new Date() }], - }); - - const result = await pollStackForCompletionState(new CloudFormationClient({}), 's', 1); - expect(result).toBe('UPDATE_COMPLETE'); - expect(cfnMock.commandCalls(DescribeStacksCommand)).toHaveLength(1); - }); - - it('polls through in-progress states until completion', async () => { - jest.useFakeTimers(); - cfnMock - .on(DescribeStacksCommand) - .resolvesOnce({ Stacks: [{ StackName: 's', StackStatus: 'UPDATE_IN_PROGRESS', CreationTime: new Date() }] }) - .resolvesOnce({ Stacks: [{ StackName: 's', StackStatus: 'UPDATE_COMPLETE', CreationTime: new Date() }] }); - - let result: string | undefined; - const promise = pollStackForCompletionState(new CloudFormationClient({}), 's', 2).then((r) => { - result = r; - }); - await jest.runAllTimersAsync(); - await promise; - - expect(result).toBe('UPDATE_COMPLETE'); - expect(cfnMock.commandCalls(DescribeStacksCommand)).toHaveLength(2); - jest.useRealTimers(); - }); - - it('returns non-UPDATE_COMPLETE completion states', async () => { - cfnMock.on(DescribeStacksCommand).resolves({ - Stacks: [{ StackName: 's', StackStatus: 'UPDATE_ROLLBACK_COMPLETE', CreationTime: new Date() }], - }); - - const result = await pollStackForCompletionState(new CloudFormationClient({}), 's', 1); - expect(result).toBe('UPDATE_ROLLBACK_COMPLETE'); - }); - - it('throws when stack not found during polling', async () => { - cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); - - await expect(pollStackForCompletionState(new CloudFormationClient({}), 'gone-stack', 1)).rejects.toThrow( - "Stack 'gone-stack' not found while polling", - ); - }); - - it('throws when stack has no status', async () => { - cfnMock.on(DescribeStacksCommand).resolves({ - Stacks: [{ StackName: 's', StackStatus: undefined, CreationTime: new Date() }], - }); - - await expect(pollStackForCompletionState(new CloudFormationClient({}), 's', 1)).rejects.toThrow('has no status'); - }); - - it('throws on polling timeout', async () => { - jest.useFakeTimers(); - cfnMock.on(DescribeStacksCommand).resolves({ - Stacks: [{ StackName: 's', StackStatus: 'UPDATE_IN_PROGRESS', CreationTime: new Date() }], - }); - - let error: Error | undefined; - const promise = pollStackForCompletionState(new CloudFormationClient({}), 's', 1).catch((e) => { - error = e; - }); - await jest.runAllTimersAsync(); - await promise; - - expect(error?.message).toContain('did not reach a completion state'); - expect(cfnMock.commandCalls(DescribeStacksCommand)).toHaveLength(1); - jest.useRealTimers(); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/legacy-custom-resource.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/legacy-custom-resource.test.ts deleted file mode 100644 index 50f82212a1a..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/legacy-custom-resource.test.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { parseResourceMappings } from '../../../../commands/gen2-migration/refactor/legacy-custom-resource'; -import fs from 'fs-extra'; - -jest.mock('fs-extra'); -const mockFs = fs as jest.Mocked; - -describe('parseResourceMappings', () => { - afterEach(() => jest.restoreAllMocks()); - - it('parses valid resource mappings file', async () => { - const mappings = [{ Source: { StackName: 'src', LogicalResourceId: 'A' }, Destination: { StackName: 'dst', LogicalResourceId: 'B' } }]; - mockFs.pathExists.mockResolvedValue(true as never); - mockFs.readFile.mockResolvedValue(JSON.stringify(mappings) as never); - - const result = await parseResourceMappings('file:///path/to/mappings.json'); - expect(result).toEqual(mappings); - }); - - it('throws when path does not start with file://', async () => { - await expect(parseResourceMappings('/path/to/file.json')).rejects.toThrow('must start with file://'); - }); - - it('throws when path after file:// is empty', async () => { - await expect(parseResourceMappings('file://')).rejects.toThrow('Invalid resource mappings path'); - }); - - it('throws when file does not exist', async () => { - mockFs.pathExists.mockResolvedValue(false as never); - await expect(parseResourceMappings('file:///nonexistent.json')).rejects.toThrow('not found'); - }); - - it('throws when file contains invalid JSON', async () => { - mockFs.pathExists.mockResolvedValue(true as never); - mockFs.readFile.mockResolvedValue('not json' as never); - await expect(parseResourceMappings('file:///bad.json')).rejects.toThrow('Failed to parse JSON'); - }); - - it('throws when structure is invalid', async () => { - mockFs.pathExists.mockResolvedValue(true as never); - mockFs.readFile.mockResolvedValue(JSON.stringify([{ bad: 'shape' }]) as never); - await expect(parseResourceMappings('file:///invalid.json')).rejects.toThrow('Invalid resource mappings structure'); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts index 43bd05e63b6..fae31be1fe0 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts @@ -13,6 +13,22 @@ const TIMEOUT_MINUTES = 60; jest.setTimeout(60 * 1000 * TIMEOUT_MINUTES); +// Mock SDK waiters to resolve immediately. The underlying DescribeStacks/DescribeStackRefactor +// mocks return the correct terminal status, but the SDK waiters have a 30-second minDelay +// between polls. With multiple refactor operations per test, this adds minutes of dead time. +jest.mock('@aws-sdk/client-cloudformation', () => { + const actual = jest.requireActual('@aws-sdk/client-cloudformation'); + return { + ...actual, + waitUntilStackUpdateComplete: jest.fn().mockResolvedValue({ state: 'SUCCESS' }), + waitUntilStackCreateComplete: jest.fn().mockResolvedValue({ state: 'SUCCESS' }), + waitUntilStackDeleteComplete: jest.fn().mockResolvedValue({ state: 'SUCCESS' }), + waitUntilStackRefactorCreateComplete: jest.fn().mockResolvedValue({ state: 'SUCCESS' }), + waitUntilStackRefactorExecuteComplete: jest.fn().mockResolvedValue({ state: 'SUCCESS' }), + waitUntilChangeSetCreateComplete: jest.fn().mockResolvedValue({ state: 'SUCCESS' }), + }; +}); + // fs-extra is (for some reason) globally mocked in tests via the __mocks__ directory. // unmock it because we actually need the proper implementation. // note that this must be declared in the top level since jest will hoist it such that it diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/stack-facade.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/stack-facade.test.ts index f6c875e7655..f3993221cf4 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/stack-facade.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/stack-facade.test.ts @@ -16,31 +16,20 @@ describe('StackFacade', () => { afterEach(() => cfnMock.restore()); - it('returns cached template on second call without hitting AWS', async () => { + it('fetches and parses template from CloudFormation', async () => { cfnMock.on(GetTemplateCommand).resolves({ TemplateBody: JSON.stringify({ AWSTemplateFormatVersion: '2010-09-09', Description: 'test', Resources: {}, Outputs: {} }), }); - const first = await facade.fetchTemplate('stack-1'); - const second = await facade.fetchTemplate('stack-1'); - - expect(first).toBe(second); + const result = await facade.fetchTemplate('stack-1'); + expect(result.Description).toBe('test'); expect(cfnMock.commandCalls(GetTemplateCommand)).toHaveLength(1); }); - it('evicts cache entry on rejection and retries on next call', async () => { - cfnMock - .on(GetTemplateCommand) - .rejectsOnce(new Error('throttle')) - .resolves({ - TemplateBody: JSON.stringify({ AWSTemplateFormatVersion: '2010-09-09', Description: 'ok', Resources: {}, Outputs: {} }), - }); + it('throws when template body is empty', async () => { + cfnMock.on(GetTemplateCommand).resolves({ TemplateBody: undefined }); - await expect(facade.fetchTemplate('stack-1')).rejects.toThrow('throttle'); - - const result = await facade.fetchTemplate('stack-1'); - expect(result.Description).toBe('ok'); - expect(cfnMock.commandCalls(GetTemplateCommand)).toHaveLength(2); + await expect(facade.fetchTemplate('stack-1')).rejects.toThrow('returned an empty template'); }); it('fetchNestedStacks filters to AWS::CloudFormation::Stack resources only', async () => { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index a949306654b..180bab3c1b1 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -307,15 +307,14 @@ export abstract class CategoryRefactorer implements Planner { function addPlaceHolderIfNeeded(source: ResolvedStack, mappings: ResourceMapping[]): ResolvedStack { const movedLogicalIds = new Set(mappings.map((m) => m.Source.LogicalResourceId)); - const allLogicalIds = new Set(Object.keys(source.resolvedTemplate.Resources)); - if (movedLogicalIds.symmetricDifference(allLogicalIds).size === 0) { - const resolved = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; - resolved.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; - return { - stackId: source.stackId, - parameters: source.parameters, - resolvedTemplate: resolved, - }; - } - return source; + const allRemoved = Object.keys(source.resolvedTemplate.Resources).every((id) => movedLogicalIds.has(id)); + if (!allRemoved) return source; + + const resolved = JSON.parse(JSON.stringify(source.resolvedTemplate)) as CFNTemplate; + resolved.Resources[MIGRATION_PLACEHOLDER_LOGICAL_ID] = PLACEHOLDER_RESOURCE; + return { + stackId: source.stackId, + parameters: source.parameters, + resolvedTemplate: resolved, + }; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 5f40cc7f790..ec624c3f908 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -119,6 +119,8 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { * Templates are fetched fresh at execution time. */ protected async beforeMove(blueprint: RefactorBlueprint): Promise { + if (blueprint.mappings.length === 0) return []; + const gen2StackName = extractStackNameFromId(blueprint.targetStackId); const holdingStackName = this.getHoldingStackName(gen2StackName); From ee86aa1c98c47896cd30d99b168791e9944902a6 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 23:40:49 -0400 Subject: [PATCH 35/91] docs(cli-internal): update JSDoc for refactor workflow changes Remove stale "Cached" references from StackFacade. Fix class-level JSDoc in CategoryRefactorer and RollbackCategoryRefactorer to match current method names. Add JSDoc to buildNoopOperation, buildResourceMappings, match, targetLogicalId, updateStackClaims, and createInfrastructure. --- Prompt: compare our code against the gen2-migration branch and make all necessary JSDoc changes. --- .../src/commands/gen2-migration/_operation.ts | 3 +++ .../src/commands/gen2-migration/refactor/cfn.ts | 4 ++++ .../commands/gen2-migration/refactor/refactor.ts | 3 +++ .../gen2-migration/refactor/stack-facade.ts | 13 ++++++------- .../refactor/workflow/category-refactorer.ts | 13 ++++++------- .../workflow/forward-category-refactorer.ts | 8 ++++++++ .../workflow/rollback-category-refactorer.ts | 13 +++++++++---- 7 files changed, 39 insertions(+), 18 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts index d01db4cbbd8..679a6d0d9e2 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/_operation.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/_operation.ts @@ -2,6 +2,9 @@ import { DiscoveredResource } from './generate/_infra/gen1-app'; export const NO_OP_MESSAGE = 'No-op\n'; +/** + * Creates a no-op operation for a resource with nothing to migrate. + */ export function buildNoopOperation(resource: DiscoveredResource): AmplifyMigrationOperation { return { resource: resource, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index b7767ebf8d9..8aea4a70e8a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -49,6 +49,10 @@ const EMPTY_HOLDING_TEMPLATE: CFNTemplate = { * Wraps update, refactor, and change set APIs behind a single client instance. */ export class Cfn { + /** + * Stack IDs claimed for update at plan time. Prevents duplicate update operations + * when multiple refactorers share a stack. + */ private readonly updateStackClaims = new Set(); constructor(private readonly client: CloudFormationClient, private readonly logger: SpinningLogger) { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts index 0ec61fe48b1..e16ba074fef 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/refactor.ts @@ -177,6 +177,9 @@ export class AmplifyMigrationRefactorStep extends AmplifyMigrationStep { ); } + /** + * Creates shared AWS clients, stack facades, and the Cfn instance. + */ private async createInfrastructure(toStack: string): Promise<{ clients: AwsClients; accountId: string; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts index 44f8f130258..dea2476eb3a 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/stack-facade.ts @@ -10,15 +10,14 @@ import { AwsClients } from '../aws-clients'; import { CFNTemplate } from '../cfn-template'; /** - * Lazy-loading, caching facade over a CloudFormation stack hierarchy. - * Instantiate once per root stack (Gen1 or Gen2). All reads go through here. - * Cache entries are evicted on rejection to allow retries. + * Read-only facade over a CloudFormation stack hierarchy. + * Instantiate once per root stack (Gen1 or Gen2). */ export class StackFacade { constructor(private readonly clients: AwsClients, public readonly rootStackName: string) {} /** - * Lists nested stacks under the root stack. Cached on first call. + * Lists nested stacks under the root stack. */ public async fetchNestedStacks(): Promise { const response = await this.clients.cloudFormation.send(new DescribeStackResourcesCommand({ StackName: this.rootStackName })); @@ -26,7 +25,7 @@ export class StackFacade { } /** - * Fetches and parses the CloudFormation template for a stack. Cached per stackId. + * Fetches and parses the CloudFormation template for a stack. */ public async fetchTemplate(stackId: string): Promise { const response = await this.clients.cloudFormation.send(new GetTemplateCommand({ StackName: stackId, TemplateStage: 'Original' })); @@ -37,7 +36,7 @@ export class StackFacade { } /** - * Describes a stack (parameters, outputs, status). Cached per stackId. + * Describes a stack (parameters, outputs, status). */ public async fetchStack(stackId: string): Promise { const response = await this.clients.cloudFormation.send(new DescribeStacksCommand({ StackName: stackId })); @@ -49,7 +48,7 @@ export class StackFacade { } /** - * Lists resources in a stack. Cached per stackId. + * Lists resources in a stack. */ public async fetchStackResources(stackId: string): Promise { const response = await this.clients.cloudFormation.send(new DescribeStackResourcesCommand({ StackName: stackId })); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 180bab3c1b1..fc3cece3765 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -47,13 +47,13 @@ export interface RefactorBlueprint { /** * Abstract base class implementing the shared refactor workflow. * - * Concrete plan() enforces a rigid phase sequence. Category-specific methods - * (fetchSourceStackId, fetchDestStackId, buildResourceMappings, resourceTypes) - * are abstract. Direction-specific methods (resolveSource, resolveTarget, - * beforeMovePlan, afterMovePlan) are abstract. + * plan() enforces a rigid phase sequence: resolve → build mappings → + * update stacks → beforeMove → move → afterMove. * - * Shared workflow methods (updateSource, updateTarget, buildBlueprint, buildMoveOperations) - * are concrete on this base class. + * Category-specific methods (fetchSourceStackId, fetchDestStackId, + * buildResourceMappings, resourceTypes) are abstract. + * Direction-specific methods (resolveSource, resolveTarget, + * beforeMove, afterMove) are abstract. */ export abstract class CategoryRefactorer implements Planner { constructor( @@ -123,7 +123,6 @@ export abstract class CategoryRefactorer implements Planner { /** * Builds the resource mappings from source to destination. - * Called internally by buildBlueprint() with already-filtered resources. */ protected abstract buildResourceMappings( sourceResources: Map, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index ec624c3f908..e1ed920c2d0 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -18,6 +18,10 @@ import { CategoryRefactorer, RefactorBlueprint, ResolvedStack } from './category * afterMovePlan: empty (holding stack survives for rollback) */ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { + /** + * Matches source resources to target resources by type. + * Subclasses can override match() for custom disambiguation. + */ protected async buildResourceMappings( sourceResources: Map, targetResources: Map, @@ -56,6 +60,10 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return mappings; } + /** + * Returns true if a source resource corresponds to a target resource. + * Default: matches by type. Override for disambiguation (e.g., UserPoolClient). + */ protected match(_sourceId: string, sourceResource: CFNResource, _targetId: string, targetResource: CFNResource): boolean { // default matching - assumes one resource per type in source/target return sourceResource.Type === targetResource.Type; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index 8b3e368ea87..e89326e0cc3 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -19,12 +19,14 @@ import { * * resolveSource: Gen2 resolution — params → outputs → deps * resolveTarget: Gen1 — reads template as-is, no resolution needed - * beforeMovePlan: empty - * afterMovePlan: restores holding stack resources into Gen2, deletes holding stack - * - * Does NOT pre-update stacks (overrides updateSource/updateTarget to return []). + * beforeMove: empty + * afterMove: restores holding stack resources into Gen2 */ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { + /** + * Maps Gen2 source resources to Gen1 target logical IDs via targetLogicalId(). + * Skips resources that already exist in the target stack. + */ protected async buildResourceMappings( sourceResources: Map, targetResources: Map, @@ -50,6 +52,9 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { return mappings; } + /** + * Returns the Gen1 logical ID for a Gen2 resource. Subclasses implement per category. + */ protected abstract targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined; /** From 5545ea46fff3c6799f30e0a4dfaf25990007bc63 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Sun, 22 Mar 2026 23:45:01 -0400 Subject: [PATCH 36/91] docs(cli-internal): fix remaining JSDoc inaccuracies Fix afterMove JSDoc to not mention holding stack deletion. Fix "resources resources" typo in UserPoolGroups rollback. --- Prompt: do another pass. --- .../refactor/auth/auth-user-pool-groups-rollback.ts | 2 +- .../gen2-migration/refactor/workflow/category-refactorer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts index 3499b546c54..ad8a08bfe36 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.ts @@ -5,7 +5,7 @@ import { RESOURCE_TYPES, USER_POOL_GROUP_TYPE } from './auth-user-pool-groups-fo /** * Rollback refactorer for the auth:UserPoolGroups resource. * - * Moves user pool groups auth resources resources from Gen2 back to Gen1. + * Moves user pool groups auth resources from Gen2 back to Gen1. */ export class AuthUserPoolGroupsRollbackRefactorer extends RollbackCategoryRefactorer { protected resourceTypes(): string[] { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index fc3cece3765..26f39447e90 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -146,7 +146,7 @@ export abstract class CategoryRefactorer implements Planner { /** * Post-move operations. * Forward: empty. - * Rollback: restores holding stack resources into Gen2, deletes holding stack. + * Rollback: restores holding stack resources into Gen2. */ protected abstract afterMove(blueprint: RefactorBlueprint): Promise; From cec05b735ce67e03b07867f7de9cfea6458f6fbe Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 09:22:57 -0400 Subject: [PATCH 37/91] test(cli-internal): make CloudFormation mock stateful with template map Replace invocation counter with a _templateForStack map pre-populated from snapshot files. DescribeStacks and GetTemplate now read from the map. CreateStackRefactor writes both stack templates to the map on create. UpdateStack writes the new template body to the map. DescribeStacks throws ValidationError for stacks not in the map, and returns minimal metadata for dynamically created stacks that lack snapshot files. --- Prompt: commit my changes. --- .../_framework/clients/cloudformation.ts | 81 +++++++++---------- 1 file changed, 37 insertions(+), 44 deletions(-) diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts index 0031ba2a989..af781ffacd7 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts @@ -3,6 +3,7 @@ import * as cloudformation from '@aws-sdk/client-cloudformation'; import { MigrationApp } from '../app'; import { JSONUtilities } from '@aws-amplify/amplify-cli-core'; import * as fs from 'fs-extra'; +import * as path from 'path'; /** * Mock for the AWS CloudFormation service client (`@aws-sdk/client-cloudformation`). @@ -34,11 +35,17 @@ export class CloudFormationMock { public readonly mock; private readonly _stackNameForResource: Map = new Map(); - - private readonly _describeStackCounter: Map = new Map(); + private readonly _templateForStack: Map = new Map(); constructor(private readonly app: MigrationApp) { this.mock = mockClient(cloudformation.CloudFormationClient); + + const refactorInputPath = this.app.snapshots.refactor.props.inputPath; + for (const stackFile of fs.readdirSync(refactorInputPath).filter((f) => f.endsWith('.template.json'))) { + const stackName = stackFile.replace('.template.json', ''); + this._templateForStack.set(stackName, fs.readFileSync(path.join(refactorInputPath, stackFile), { encoding: 'utf-8' })); + } + this.mockDescribeStackResources(); this.mockDescribeStacks(); this.mockGetTemplate(); @@ -46,6 +53,7 @@ export class CloudFormationMock { this.mockDescribeStackRefactor(); this.mockCreateChangeSet(); this.mockDescribeChangeSet(); + this.mockUpdateStack(); } public stackNameForResource(physicalId: string) { @@ -101,41 +109,26 @@ export class CloudFormationMock { this.mock .on(cloudformation.DescribeStacksCommand) .callsFake(async (input: cloudformation.DescribeStacksInput): Promise => { - const invocationCount = this._describeStackCounter.get(input.StackName!) ?? 0; - this._describeStackCounter.set(input.StackName!, invocationCount + 1); - if (input.StackName!.endsWith('-holding')) { - if (invocationCount === 0) { - // first call: findStack check before refactor — stack doesn't exist yet - throw new cloudformation.CloudFormationServiceException({ - name: 'ValidationError', - message: `stack ${input.StackName} does not exist`, - $fault: 'client', - $metadata: {}, - }); - } - // subsequent calls: after refactor creates the stack, waiters poll for completion - return { - Stacks: [ - { - StackName: input.StackName, - StackStatus: cloudformation.StackStatus.CREATE_COMPLETE, - CreationTime: new Date(), - }, - ], - }; + const template = this._templateForStack.get(input.StackName!); + if (!template) { + throw new cloudformation.CloudFormationServiceException({ + name: 'ValidationError', + message: `stack ${input.StackName} does not exist`, + $fault: 'client', + $metadata: {}, + }); } - const parameters = this.app.cfnParametersForStack(input.StackName!); - const outputs = this.app.cfnOutputsForStack(input.StackName!); - const description = this.app.cfnDescriptionForStack(input.StackName!); + + const preExistingStack = fs.existsSync(this.app.templatePathForStack(input.StackName!)); return { Stacks: [ { StackName: input.StackName!, - Parameters: parameters, CreationTime: new Date(), StackStatus: cloudformation.StackStatus.UPDATE_COMPLETE, - Description: description, - Outputs: outputs, + Parameters: preExistingStack ? this.app.cfnParametersForStack(input.StackName!) : undefined, + Description: preExistingStack ? this.app.cfnDescriptionForStack(input.StackName!) : undefined, + Outputs: preExistingStack ? this.app.cfnOutputsForStack(input.StackName!) : undefined, }, ], }; @@ -146,21 +139,8 @@ export class CloudFormationMock { this.mock .on(cloudformation.GetTemplateCommand) .callsFake(async (input: cloudformation.GetTemplateCommandInput): Promise => { - const templatePath = this.app.templatePathForStack(input.StackName!); - // Holding stacks are created dynamically during refactor and have no snapshot file. - // Return an empty template so Cfn.refactor() can populate it with moved resources. - if (!fs.existsSync(templatePath)) { - return { - TemplateBody: JSON.stringify({ - AWSTemplateFormatVersion: '2010-09-09', - Resources: {}, - Outputs: {}, - }), - $metadata: {}, - }; - } return { - TemplateBody: fs.readFileSync(templatePath, { encoding: 'utf-8' }), + TemplateBody: this._templateForStack.get(input.StackName!), $metadata: {}, }; }); @@ -170,6 +150,10 @@ export class CloudFormationMock { this.mock.on(cloudformation.CreateStackRefactorCommand).callsFake( // eslint-disable-next-line @typescript-eslint/no-unused-vars async (input: cloudformation.CreateStackRefactorCommandInput): Promise => { + const source = input.StackDefinitions![0]; + const target = input.StackDefinitions![1]; + this._templateForStack.set(source.StackName!, source.TemplateBody!); + this._templateForStack.set(target.StackName!, target.TemplateBody!); return { StackRefactorId: `${Date.now()}`, $metadata: {} }; }, ); @@ -201,4 +185,13 @@ export class CloudFormationMock { }, ); } + + private mockUpdateStack() { + this.mock + .on(cloudformation.UpdateStackCommand) + .callsFake(async (input: cloudformation.UpdateStackCommandInput): Promise => { + this._templateForStack.set(input.StackName!, input.TemplateBody!); + return { StackId: input.StackName, $metadata: {} }; + }); + } } From 50ef166fd6dadf2a29b6f96ae06b4e442bd927be Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 09:58:40 -0400 Subject: [PATCH 38/91] test(cli-internal): reorganize refactor tests to mirror source structure Move test files into subdirectories matching the source layout: resolvers/, auth/, workflow/. Merge auth-forward-mapping tests into auth/auth-cognito-forward.test.ts. Merge build-refactor-templates tests into workflow/category-refactorer.test.ts. Split default-resource-mappings tests into the forward and rollback workflow test files. Delete flat test files that were replaced. Update all import paths for the new directory depth. --- Prompt: reorganize refactor tests to mirror source structure. --- ...-SEM95NL3BKFT-holding.source.template.json | 28 +- ...-SEM95NL3BKFT-holding.target.template.json | 191 ++++-- ...1BTE7UH0TFE2I-holding.source.template.json | 159 +---- ...1BTE7UH0TFE2I-holding.target.template.json | 351 +++++++++++ ...179371D7-SEM95NL3BKFT.source.template.json | 78 +-- ...179371D7-SEM95NL3BKFT.target.template.json | 343 ++++------- ...EC3F24A-1BTE7UH0TFE2I.source.template.json | 177 ++---- ...EC3F24A-1BTE7UH0TFE2I.target.template.json | 301 +++------ ...-DAPL7YOMHRB4-holding.source.template.json | 28 +- ...-DAPL7YOMHRB4-holding.target.template.json | 263 ++++++-- ...-QQN18S0SITDH-holding.source.template.json | 18 +- ...-QQN18S0SITDH-holding.target.template.json | 428 +++++++++++++ ...179371D7-DAPL7YOMHRB4.source.template.json | 123 ++-- ...179371D7-DAPL7YOMHRB4.target.template.json | 377 +++++------- ...0EC3F24A-QQN18S0SITDH.source.template.json | 49 +- ...0EC3F24A-QQN18S0SITDH.target.template.json | 64 +- ...11L4X799ZG2NW-holding.source.template.json | 32 +- ...11L4X799ZG2NW-holding.target.template.json | 576 ++++++++++++++++++ ...D7-UGINV3RD10-holding.source.template.json | 28 +- ...D7-UGINV3RD10-holding.target.template.json | 344 +++++++++-- ...11PWXC3G56PPP-holding.source.template.json | 159 +---- ...11PWXC3G56PPP-holding.target.template.json | 504 +++++++++++++++ ...794DE4A-11L4X799ZG2NW.source.template.json | 49 +- ...794DE4A-11L4X799ZG2NW.target.template.json | 68 +-- ...th179371D7-UGINV3RD10.source.template.json | 78 +-- ...th179371D7-UGINV3RD10.target.template.json | 343 ++++------- ...EC3F24A-11PWXC3G56PPP.source.template.json | 177 ++---- ...EC3F24A-11PWXC3G56PPP.target.template.json | 301 +++------ ...1RF1TAQPAA1WW-holding.source.template.json | 32 +- ...1RF1TAQPAA1WW-holding.target.template.json | 47 +- ...13PB5LDXDDFTY-holding.source.template.json | 185 +----- ...13PB5LDXDDFTY-holding.target.template.json | 207 +++++++ ...79371D7-1RF1TAQPAA1WW.source.template.json | 78 +-- ...79371D7-1RF1TAQPAA1WW.target.template.json | 347 ++++------- ...EC3F24A-13PB5LDXDDFTY.source.template.json | 239 ++------ ...EC3F24A-13PB5LDXDDFTY.target.template.json | 358 ++++------- ...-CFDKYQIOG2UJ-holding.source.template.json | 28 +- ...-CFDKYQIOG2UJ-holding.target.template.json | 119 ++-- ...-MCTM3Q2BCVCJ-holding.source.template.json | 159 +---- ...-MCTM3Q2BCVCJ-holding.target.template.json | 279 +++++++++ ...179371D7-CFDKYQIOG2UJ.source.template.json | 78 +-- ...179371D7-CFDKYQIOG2UJ.target.template.json | 343 ++++------- ...0EC3F24A-MCTM3Q2BCVCJ.source.template.json | 177 ++---- ...0EC3F24A-MCTM3Q2BCVCJ.target.template.json | 301 +++------ .../refactor/auth-forward-mapping.test.ts | 79 --- .../auth-cognito-forward.test.ts} | 80 ++- .../auth-cognito-rollback.test.ts} | 12 +- .../refactor/build-refactor-templates.test.ts | 26 - .../default-resource-mappings.test.ts | 136 ----- .../cfn-condition-resolver.test.ts | 4 +- .../cfn-dependency-resolver.test.ts | 4 +- .../cfn-output-resolver.test.ts | 4 +- .../cfn-parameter-resolver.test.ts | 4 +- .../{ => resolvers}/cfn-tree-walker.test.ts | 2 +- .../category-refactorer.test.ts} | 33 +- .../forward-category-refactorer.test.ts} | 81 ++- .../rollback-category-refactorer.test.ts} | 83 ++- 57 files changed, 4922 insertions(+), 4240 deletions(-) delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{auth-forward-plan.test.ts => auth/auth-cognito-forward.test.ts} (75%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{auth-rollback-plan.test.ts => auth/auth-cognito-rollback.test.ts} (89%) delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts delete mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{ => resolvers}/cfn-condition-resolver.test.ts (97%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{ => resolvers}/cfn-dependency-resolver.test.ts (88%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{ => resolvers}/cfn-output-resolver.test.ts (98%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{ => resolvers}/cfn-parameter-resolver.test.ts (95%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{ => resolvers}/cfn-tree-walker.test.ts (93%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{category-plan-orchestration.test.ts => workflow/category-refactorer.test.ts} (91%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{forward-beforemove.test.ts => workflow/forward-category-refactorer.test.ts} (65%) rename packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/{rollback-aftermove.test.ts => workflow/rollback-category-refactorer.test.ts} (58%) diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json index db80849fda7..d4c0a8b779b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json @@ -10,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -62,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -384,29 +380,19 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_W9u2NBSRe" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "55m5602upkjiv7819hcf2ht5v3" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json index 29fda378b1a..e10bab8c187 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json @@ -1,5 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -96,9 +97,7 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_W9u2NBSRe" }, "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" @@ -119,9 +118,7 @@ "TokenValidityUnits": { "RefreshToken": "minutes" }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_W9u2NBSRe" }, "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" @@ -133,9 +130,7 @@ "AllowUnauthenticatedIdentities": true, "CognitoIdentityProviders": [ { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, + "ClientId": "55m5602upkjiv7819hcf2ht5v3", "ProviderName": { "Fn::Join": [ "", @@ -145,9 +140,7 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "us-east-1_W9u2NBSRe" ] ] } @@ -184,9 +177,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, + "IdentityPoolId": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5", "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -199,13 +190,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, + "us-east-1_W9u2NBSRe", ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "55m5602upkjiv7819hcf2ht5v3" ] ] }, @@ -213,27 +200,157 @@ } }, "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J", + "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" + } } }, "Outputs": {} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json index 16a16be4e9f..dfdd342e50f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json @@ -4,9 +4,7 @@ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - }, + "Bucket": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "PolicyDocument": { "Statement": [ { @@ -21,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/*" ] ] @@ -52,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/*" ] ] @@ -93,19 +66,9 @@ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, - "DependsOn": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -149,29 +112,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - }, + "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -189,9 +142,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } + "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -209,12 +160,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -231,12 +177,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" } ], "Version": "2012-10-17" @@ -265,12 +206,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -279,12 +215,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/protected/*" ] ] @@ -293,12 +224,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/private/*" ] ] @@ -313,12 +239,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -327,12 +248,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/protected/*" ] ] @@ -341,12 +257,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/private/*" ] ] @@ -368,12 +279,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, { "Action": "s3:DeleteObject", @@ -383,12 +289,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -397,12 +298,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/protected/*" ] ] @@ -411,12 +307,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/private/*" ] ] @@ -724,9 +615,7 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } + "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json index 1ca97bc8112..7555863aae2 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json @@ -1,6 +1,357 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "backendonly", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_W9u2NBSRe" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_W9u2NBSRe" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "55m5602upkjiv7819hcf2ht5v3", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_W9u2NBSRe" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "backendonly" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_W9u2NBSRe", + ":", + "55m5602upkjiv7819hcf2ht5v3" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J", + "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" + } + }, "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json index 77c4ab35e3c..5278197515b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json @@ -114,9 +114,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] } @@ -138,36 +136,24 @@ ] }, "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRolef8c4c57b", + "Fn::Join": [ + "", + [ + "upClientLambdaRolef8c4c57b", + { + "Fn::Select": [ + 3, { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } + "Fn::Split": [ + "-", + "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" ] - }, - "-", - { - "Ref": "env" } ] - ] - } + }, + "-", + "main" + ] ] } } @@ -176,49 +162,29 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } + "Value": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8" }, "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } + "Value": "backendonlyf8c4c57b_identitypool_f8c4c57b__main" }, "UserPoolId": { "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } + "Value": "us-east-1_1rvCNKN5B" }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1rvCNKN5B" }, "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } + "Value": "backendonlyf8c4c57b_userpool_f8c4c57b" }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } + "Value": "2udsup370on7n0b1gdf8hpijc6" }, "AppClientID": { "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } + "Value": "773c808k3864f2k0sqk4j71gsj" } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json index 571da77b726..178ab4671af 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json @@ -1,176 +1,6 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "backendonlyf8c4c57b_identitypool_f8c4c57b", - { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_identitypool_f8c4c57b__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -180,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -232,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -275,25 +101,6 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { @@ -303,6 +110,132 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_userpool_f8c4c57b", + "-", + "main" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_1rvCNKN5B" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_1rvCNKN5B" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "773c808k3864f2k0sqk4j71gsj", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_1rvCNKN5B" + } + ] + } + }, + { + "ClientId": "2udsup370on7n0b1gdf8hpijc6", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_1rvCNKN5B" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_identitypool_f8c4c57b__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" + } + } } }, "Conditions": { @@ -573,29 +506,19 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_W9u2NBSRe" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "55m5602upkjiv7819hcf2ht5v3" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" }, "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" } } } \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json index 2a102385b61..c3476642330 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json @@ -84,9 +84,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] }, @@ -94,9 +92,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -106,9 +102,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -118,9 +112,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -130,9 +122,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, + "s3:PutObject", "DISALLOW" ] } @@ -142,9 +132,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, + "s3:GetObject", "DISALLOW" ] } @@ -154,9 +142,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, + "DISALLOW", "DISALLOW" ] } @@ -166,9 +152,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, + "ALLOW", "DISALLOW" ] } @@ -178,9 +162,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, + "ALLOW", "DISALLOW" ] } @@ -190,14 +172,10 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" }, "Region": { - "Value": { - "Ref": "AWS::Region" - } + "Value": "us-east-1" } }, "Resources": { @@ -212,9 +190,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -223,9 +199,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", "/public/*" ] ] @@ -234,18 +208,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, + "PolicyName": "Public_policy_c31471c3", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -259,9 +226,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -270,9 +235,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -281,18 +244,11 @@ } ] }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, + "PolicyName": "Protected_policy_c31471c3", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -306,9 +262,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -317,9 +271,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -328,18 +280,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, + "PolicyName": "Private_policy_c31471c3", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -353,9 +298,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } + "s3:PutObject" ] }, "Resource": [ @@ -364,9 +307,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", "/uploads/*" ] ] @@ -375,18 +316,11 @@ } ] }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, + "PolicyName": "Uploads_policy_c31471c3", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -400,9 +334,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsGuestPublic" - } + "s3:GetObject" ] }, "Resource": [ @@ -411,9 +343,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", "/public/*" ] ] @@ -422,18 +352,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, + "PolicyName": "Public_policy_c31471c3", "Roles": [ - { - "Ref": "unauthRoleName" - } + "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -449,9 +372,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", "/protected/*" ] ] @@ -477,9 +398,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" ] ] } @@ -487,18 +406,11 @@ ], "Version": "2012-10-17" }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, + "PolicyName": "read_policy_c31471c3", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -514,9 +426,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", "/protected/*" ] ] @@ -540,9 +450,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" ] ] } @@ -550,18 +458,11 @@ ], "Version": "2012-10-17" }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, + "PolicyName": "read_policy_c31471c3", "Roles": [ - { - "Ref": "unauthRoleName" - } + "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json index ec4746eb723..2c4aa9226e0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json @@ -1,90 +1,10 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - }, + "Bucket": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "PolicyDocument": { "Statement": [ { @@ -99,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/*" ] ] @@ -130,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/*" ] ] @@ -171,19 +66,9 @@ "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, - "DependsOn": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -227,29 +112,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - }, + "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -267,9 +142,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } + "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -287,12 +160,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -309,12 +177,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" } ], "Version": "2012-10-17" @@ -343,12 +206,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -357,12 +215,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/protected/*" ] ] @@ -371,12 +224,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/private/*" ] ] @@ -391,12 +239,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -405,12 +248,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/protected/*" ] ] @@ -419,12 +257,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/private/*" ] ] @@ -446,12 +279,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, { "Action": "s3:DeleteObject", @@ -461,12 +289,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/public/*" ] ] @@ -475,12 +298,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/protected/*" ] ] @@ -489,12 +307,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, + "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", "/private/*" ] ] @@ -524,6 +337,70 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" + ] + } + ] + }, + "-", + "main" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" } }, "Conditions": { @@ -802,9 +679,7 @@ }, "Outputs": { "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } + "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json index ab4940ac52f..847baa10ccd 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.source.template.json @@ -10,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -62,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -384,29 +380,19 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPool9D23206ERef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_olNpwuJIL" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPoolAppClientCD70FA03Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "6bdqt8vavvh3efopgb031lc3jg" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthIdentityPoolA0C42AE7Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthauthenticatedUserRole95356EEFRef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthunauthenticatedUserRoleE19AFD6CRef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json index 0eb97dec084..cf563147a8d 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json @@ -1,5 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -101,9 +102,7 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_olNpwuJIL" }, "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPoolAppClient/Resource" @@ -124,9 +123,7 @@ "TokenValidityUnits": { "RefreshToken": "minutes" }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_olNpwuJIL" }, "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" @@ -138,9 +135,7 @@ "AllowUnauthenticatedIdentities": false, "CognitoIdentityProviders": [ { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, + "ClientId": "6bdqt8vavvh3efopgb031lc3jg", "ProviderName": { "Fn::Join": [ "", @@ -150,9 +145,7 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "us-east-1_olNpwuJIL" ] ] } @@ -189,9 +182,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, + "IdentityPoolId": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689", "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -204,13 +195,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, + "us-east-1_olNpwuJIL", ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "6bdqt8vavvh3efopgb031lc3jg" ] ] }, @@ -218,27 +205,229 @@ } }, "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X", + "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "backendonly" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" + } } }, "Outputs": {} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json index b420ceb50fa..925acc7bf10 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.source.template.json @@ -280,25 +280,13 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDArn": { - "Value": { - "Fn::GetAtt": [ - "activity1E902D9C", - "Arn" - ] - } + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDStreamArn": { - "Value": { - "Fn::GetAtt": [ - "activity1E902D9C", - "StreamArn" - ] - } + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS/stream/2026-03-07T18:02:23.205" }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDRef": { - "Value": { - "Ref": "activity1E902D9C" - } + "Value": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json index c827d83e268..5cba06b4afa 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json @@ -1,6 +1,434 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Here is your verification code {####}", + "EmailVerificationSubject": "Verification", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "discussions", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Here is your verification code {####}", + "EmailSubject": "Verification", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_olNpwuJIL" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_olNpwuJIL" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "6bdqt8vavvh3efopgb031lc3jg", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_olNpwuJIL" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "discussions" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_olNpwuJIL", + ":", + "6bdqt8vavvh3efopgb031lc3jg" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X", + "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "backendonly" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" + } + }, "activity1E902D9C": { "Type": "AWS::DynamoDB::Table", "Properties": { diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json index ea99bcb0fee..8d216ad870f 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.source.template.json @@ -129,9 +129,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] } @@ -178,34 +176,24 @@ } ], "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discus22367c68_sns-role", - { - "Fn::Join": [ - "", - [ - "sns22367c68", + "Fn::Join": [ + "", + [ + "sns22367c68", + { + "Fn::Select": [ + 3, { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } + "Fn::Split": [ + "-", + "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" ] - }, - "-", - { - "Ref": "env" } ] - ] - } + }, + "-", + "main" + ] ] } } @@ -226,36 +214,24 @@ ] }, "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole22367c68", + "Fn::Join": [ + "", + [ + "upClientLambdaRole22367c68", + { + "Fn::Select": [ + 3, { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } + "Fn::Split": [ + "-", + "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" ] - }, - "-", - { - "Ref": "env" } ] - ] - } + }, + "-", + "main" + ] ] } } @@ -264,58 +240,33 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } + "Value": "us-east-1:d1df5c0c-2dd2-4471-bb0b-59c99bdbfe7f" }, "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } + "Value": "discussions22367c68_identitypool_22367c68__main" }, "UserPoolId": { "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } + "Value": "us-east-1_Zs9EZpCYX" }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Zs9EZpCYX" }, "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } + "Value": "discussions22367c68_userpool_22367c68" }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } + "Value": "ptm2eqjiee7l3e202lstfjd3r" }, "AppClientID": { "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } + "Value": "75sq8s16g37d0as1148og20p3i" }, "CreatedSNSRole": { "Description": "role arn", - "Value": { - "Fn::GetAtt": [ - "SNSRole", - "Arn" - ] - } + "Value": "arn:aws:iam::123456789012:role/sns22367c68d5a80-main" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json index d3d5d06d016..eccbf15fe65 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json @@ -1,199 +1,6 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsAuthenticationMessage": { - "Ref": "smsAuthenticationMessage" - }, - "SmsConfiguration": { - "ExternalId": "discus22367c68_role_external_id", - "SnsCallerArn": { - "Fn::GetAtt": [ - "SNSRole", - "Arn" - ] - } - }, - "SmsVerificationMessage": { - "Ref": "smsVerificationMessage" - }, - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - }, - "DependsOn": [ - "SNSRole" - ] - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discus22367c68_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discus22367c68_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discussions22367c68_identitypool_22367c68", - { - "Fn::Join": [ - "", - [ - "discussions22367c68_identitypool_22367c68__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -203,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -255,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -298,25 +101,6 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { @@ -326,6 +110,143 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Here is your verification code {####}", + "EmailVerificationSubject": "Verification", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsAuthenticationMessage": "Your authentication code is {####}", + "SmsConfiguration": { + "ExternalId": "discus22367c68_role_external_id", + "SnsCallerArn": "arn:aws:iam::123456789012:role/sns22367c68d5a80-main" + }, + "SmsVerificationMessage": "Your verification code is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "discussions22367c68_userpool_22367c68", + "-", + "main" + ] + ] + }, + "UsernameAttributes": [ + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discus22367c68_app_clientWeb", + "RefreshTokenValidity": "120", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Zs9EZpCYX" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discus22367c68_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "120", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Zs9EZpCYX" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "75sq8s16g37d0as1148og20p3i", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Zs9EZpCYX" + } + ] + } + }, + { + "ClientId": "ptm2eqjiee7l3e202lstfjd3r", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Zs9EZpCYX" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "discussions22367c68_identitypool_22367c68__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:d1df5c0c-2dd2-4471-bb0b-59c99bdbfe7f", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole" + } + } } }, "Conditions": { @@ -596,29 +517,19 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPool9D23206ERef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_olNpwuJIL" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthUserPoolAppClientCD70FA03Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "6bdqt8vavvh3efopgb031lc3jg" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthIdentityPoolA0C42AE7Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthauthenticatedUserRole95356EEFRef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" }, "amplifydiscussionsgen2mainbranch96dfd1dc44authamplifyAuthunauthenticatedUserRoleE19AFD6CRef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json index e9b1282aba4..93866f1ecab 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.source.template.json @@ -24,60 +24,41 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] } }, - "Resources": {}, + "Resources": { + "MigrationPlaceholder": { + "Type": "AWS::CloudFormation::WaitConditionHandle", + "Properties": {} + } + }, "Outputs": { "Name": { - "Value": { - "Ref": "DynamoDBTable" - } + "Value": "activity-main" }, "Arn": { - "Value": { - "Fn::GetAtt": [ - "DynamoDBTable", - "Arn" - ] - } + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main" }, "StreamArn": { - "Value": { - "Fn::GetAtt": [ - "DynamoDBTable", - "StreamArn" - ] - } + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-07T17:11:10.591" }, "PartitionKeyName": { - "Value": { - "Ref": "partitionKeyName" - } + "Value": "id" }, "PartitionKeyType": { - "Value": { - "Ref": "partitionKeyType" - } + "Value": "S" }, "SortKeyName": { - "Value": { - "Ref": "sortKeyName" - } + "Value": "userId" }, "SortKeyType": { - "Value": { - "Ref": "sortKeyType" - } + "Value": "S" }, "Region": { - "Value": { - "Ref": "AWS::Region" - } + "Value": "us-east-1" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json index a5383227fe4..c801abd04fe 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.target.template.json @@ -1,6 +1,16 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", "Resources": { + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ6MGi+3tLdReJplZiJ8EnERZxLsvaPWeAdPUUBV4ina06NVbuDqWxDQkdIvCUyb6BdwiWbhGtCur9hue3KpniXl3fKsQiWGW8jAG6g9UxSze6z2H5DeG/vUPUV/XUG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, "activity1E902D9C": { "Type": "AWS::DynamoDB::Table", "Properties": { @@ -58,38 +68,16 @@ "StreamViewType": "NEW_IMAGE" }, "TableName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "tableName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "tableName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } + "Fn::Join": [ + "", + [ + "activity", + "-", + "main" + ] ] } } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ6MGi+3tLdReJplZiJ8EnERZxLsvaPWeAdPUUBV4ina06NVbuDqWxDQkdIvCUyb6BdwiWbhGtCur9hue3KpniXl3fKsQiWGW8jAG6g9UxSze6z2H5DeG/vUPUV/XUG4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" } }, "Conditions": { @@ -360,25 +348,13 @@ }, "Outputs": { "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDArn": { - "Value": { - "Fn::GetAtt": [ - "activity1E902D9C", - "Arn" - ] - } + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDStreamArn": { - "Value": { - "Fn::GetAtt": [ - "activity1E902D9C", - "StreamArn" - ] - } + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS/stream/2026-03-07T18:02:23.205" }, "amplifydiscussionsgen2mainbranch96dfd1dc44storageactivityEF3255CDRef": { - "Value": { - "Ref": "activity1E902D9C" - } + "Value": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-activity1E902D9C-TT6R2GXJ05FS" } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json index 4a4cb7d7ad0..e689d3fe4c5 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json @@ -13,12 +13,7 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" } ] }, @@ -45,12 +40,7 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" } ] }, @@ -78,28 +68,16 @@ }, "Outputs": { "kinesisStreamArn": { - "Value": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" }, "kinesisStreamId": { - "Value": { - "Ref": "moodboardKinesisKinesisStreamD5E97047" - } + "Value": "moodboardKinesis-gen2-main" }, "kinesisStreamShardCount": { "Value": "1" }, "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" } }, "Conditions": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json index ddf15cda6e6..ea38364c9a5 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json @@ -1,6 +1,582 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "moodboard", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_1A4RMvPNr" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1A4RMvPNr" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1A4RMvPNr" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "moodboard" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1A4RMvPNr", + ":", + "2otm0qh3fj270k5tdn95cgjlm5" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "backendonly" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" + } + }, + "activity1E902D9C": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "discussions" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain", + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/activity/Resource" + } + }, + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "moodboard" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Resource" + } + }, "moodboardKinesisKinesisStreamD5E97047": { "Type": "AWS::Kinesis::Stream", "Properties": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json index 67f424dedeb..ec18192c664 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json @@ -10,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -62,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -384,29 +380,19 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_1A4RMvPNr" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "2otm0qh3fj270k5tdn95cgjlm5" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json index 7897d21f3e0..a481abd3935 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json @@ -1,5 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -96,9 +97,7 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_1A4RMvPNr" }, "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" @@ -119,9 +118,7 @@ "TokenValidityUnits": { "RefreshToken": "minutes" }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_1A4RMvPNr" }, "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" @@ -133,9 +130,7 @@ "AllowUnauthenticatedIdentities": true, "CognitoIdentityProviders": [ { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, + "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", "ProviderName": { "Fn::Join": [ "", @@ -145,9 +140,7 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "us-east-1_1A4RMvPNr" ] ] } @@ -184,9 +177,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, + "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -199,13 +190,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, + "us-east-1_1A4RMvPNr", ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "2otm0qh3fj270k5tdn95cgjlm5" ] ] }, @@ -213,27 +200,310 @@ } }, "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "backendonly" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" + } + }, + "activity1E902D9C": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "discussions" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain", + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/activity/Resource" + } } }, "Outputs": {} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json index 55aeb882f39..3a7e2136339 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json @@ -4,9 +4,7 @@ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - }, + "Bucket": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "PolicyDocument": { "Statement": [ { @@ -21,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/*" ] ] @@ -52,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/*" ] ] @@ -93,19 +66,9 @@ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, - "DependsOn": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -149,29 +112,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - }, + "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -189,9 +142,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } + "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -209,12 +160,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -231,12 +177,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" } ], "Version": "2012-10-17" @@ -265,12 +206,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -279,12 +215,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/protected/*" ] ] @@ -293,12 +224,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/private/*" ] ] @@ -313,12 +239,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -327,12 +248,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/protected/*" ] ] @@ -341,12 +257,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/private/*" ] ] @@ -368,12 +279,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, { "Action": "s3:DeleteObject", @@ -383,12 +289,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -397,12 +298,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/protected/*" ] ] @@ -411,12 +307,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/private/*" ] ] @@ -724,9 +615,7 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } + "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json index ad47f276319..6fe3a05384c 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json @@ -1,6 +1,510 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "moodboard", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_1A4RMvPNr" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1A4RMvPNr" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1A4RMvPNr" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "moodboard" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1A4RMvPNr", + ":", + "2otm0qh3fj270k5tdn95cgjlm5" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "backendonly" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" + } + }, + "activity1E902D9C": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "discussions" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain", + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/activity/Resource" + } + }, "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json index 3e220a77f7d..0133af0ad57 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json @@ -28,9 +28,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] } @@ -39,13 +37,9 @@ "CognitoUnauthPolicy": { "Type": "AWS::IAM::Policy", "Properties": { - "PolicyName": { - "Ref": "unauthPolicyName" - }, + "PolicyName": "kinesis_amplify_bca5ce95", "Roles": [ - { - "Ref": "unauthRoleName" - } + "amplify-moodboard-main-1959a-unauthRole" ], "PolicyDocument": { "Version": "2012-10-17", @@ -56,12 +50,7 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": { - "Fn::GetAtt": [ - "KinesisStream", - "Arn" - ] - } + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" } ] } @@ -70,13 +59,9 @@ "CognitoAuthPolicy": { "Type": "AWS::IAM::Policy", "Properties": { - "PolicyName": { - "Ref": "authPolicyName" - }, + "PolicyName": "kinesis_amplify_bca5ce95", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-moodboard-main-1959a-authRole" ], "PolicyDocument": { "Version": "2012-10-17", @@ -87,12 +72,7 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": { - "Fn::GetAtt": [ - "KinesisStream", - "Arn" - ] - } + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" } ] } @@ -101,22 +81,13 @@ }, "Outputs": { "kinesisStreamArn": { - "Value": { - "Fn::GetAtt": [ - "KinesisStream", - "Arn" - ] - } + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" }, "kinesisStreamId": { - "Value": { - "Ref": "KinesisStream" - } + "Value": "moodboardKinesis-main" }, "kinesisStreamShardCount": { - "Value": { - "Ref": "kinesisStreamShardCount" - } + "Value": "1" } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json index 48200112d2a..838bc149392 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json @@ -1,27 +1,6 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", "Resources": { - "moodboardKinesisKinesisStreamD5E97047": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": { - "Fn::Join": [ - "-", - [ - { - "Ref": "kinesisStreamName" - }, - { - "Ref": "env" - } - ] - ] - }, - "ShardCount": { - "Ref": "kinesisStreamShardCount" - } - } - }, "moodboardKinesisCognitoAuthPolicyB69F4FA6": { "Type": "AWS::IAM::Policy", "Properties": { @@ -34,12 +13,7 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" } ] }, @@ -66,12 +40,7 @@ "kinesis:PutRecord", "kinesis:PutRecords" ], - "Resource": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" } ] }, @@ -95,32 +64,35 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "moodboardKinesisKinesisStreamD5E97047": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": { + "Fn::Join": [ + "-", + [ + "moodboardKinesis", + "main" + ] + ] + }, + "ShardCount": "1" + } } }, "Outputs": { "kinesisStreamArn": { - "Value": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" }, "kinesisStreamId": { - "Value": { - "Ref": "moodboardKinesisKinesisStreamD5E97047" - } + "Value": "moodboardKinesis-gen2-main" }, "kinesisStreamShardCount": { "Value": "1" }, "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" } }, "Conditions": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json index fd5808dfb0f..82f9fd72f24 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json @@ -114,9 +114,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] } @@ -138,36 +136,24 @@ ] }, "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole759ae00a", + "Fn::Join": [ + "", + [ + "upClientLambdaRole759ae00a", + { + "Fn::Select": [ + 3, { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } + "Fn::Split": [ + "-", + "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" ] - }, - "-", - { - "Ref": "env" } ] - ] - } + }, + "-", + "main" + ] ] } } @@ -176,49 +162,29 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } + "Value": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d" }, "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } + "Value": "moodboard759ae00a_identitypool_759ae00a__main" }, "UserPoolId": { "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } + "Value": "us-east-1_Cwvqs93Nc" }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Cwvqs93Nc" }, "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } + "Value": "moodboard759ae00a_userpool_759ae00a" }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } + "Value": "5t2df7ru217mr5ar6r44r61uqg" }, "AppClientID": { "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } + "Value": "1ssdipb0d8rfa77rq3o7u8t16c" } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json index 1e01fb7431e..75f291f8426 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json @@ -1,176 +1,6 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "moodboard759ae00a_identitypool_759ae00a", - { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_identitypool_759ae00a__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -180,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -232,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -275,25 +101,6 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { @@ -303,6 +110,132 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_userpool_759ae00a", + "-", + "main" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Cwvqs93Nc" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Cwvqs93Nc" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "1ssdipb0d8rfa77rq3o7u8t16c", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Cwvqs93Nc" + } + ] + } + }, + { + "ClientId": "5t2df7ru217mr5ar6r44r61uqg", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Cwvqs93Nc" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_identitypool_759ae00a__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" + } + } } }, "Conditions": { @@ -573,29 +506,19 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_1A4RMvPNr" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "2otm0qh3fj270k5tdn95cgjlm5" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" }, "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" } } } \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json index 2a102385b61..91330cd6b72 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json @@ -84,9 +84,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] }, @@ -94,9 +92,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -106,9 +102,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -118,9 +112,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -130,9 +122,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, + "s3:PutObject", "DISALLOW" ] } @@ -142,9 +132,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, + "s3:GetObject", "DISALLOW" ] } @@ -154,9 +142,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, + "DISALLOW", "DISALLOW" ] } @@ -166,9 +152,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, + "ALLOW", "DISALLOW" ] } @@ -178,9 +162,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, + "ALLOW", "DISALLOW" ] } @@ -190,14 +172,10 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } + "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" }, "Region": { - "Value": { - "Ref": "AWS::Region" - } + "Value": "us-east-1" } }, "Resources": { @@ -212,9 +190,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -223,9 +199,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", "/public/*" ] ] @@ -234,18 +208,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, + "PolicyName": "Public_policy_206c638b", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -259,9 +226,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -270,9 +235,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -281,18 +244,11 @@ } ] }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, + "PolicyName": "Protected_policy_206c638b", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -306,9 +262,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -317,9 +271,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -328,18 +280,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, + "PolicyName": "Private_policy_206c638b", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -353,9 +298,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } + "s3:PutObject" ] }, "Resource": [ @@ -364,9 +307,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", "/uploads/*" ] ] @@ -375,18 +316,11 @@ } ] }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, + "PolicyName": "Uploads_policy_206c638b", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -400,9 +334,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsGuestPublic" - } + "s3:GetObject" ] }, "Resource": [ @@ -411,9 +343,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", "/public/*" ] ] @@ -422,18 +352,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, + "PolicyName": "Public_policy_206c638b", "Roles": [ - { - "Ref": "unauthRoleName" - } + "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -449,9 +372,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", "/protected/*" ] ] @@ -477,9 +398,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" ] ] } @@ -487,18 +406,11 @@ ], "Version": "2012-10-17" }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, + "PolicyName": "read_policy_206c638b", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -514,9 +426,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", "/protected/*" ] ] @@ -540,9 +450,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" ] ] } @@ -550,18 +458,11 @@ ], "Version": "2012-10-17" }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, + "PolicyName": "read_policy_206c638b", "Roles": [ - { - "Ref": "unauthRoleName" - } + "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json index 06532d58281..b5962a18290 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json @@ -1,90 +1,10 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - }, + "Bucket": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "PolicyDocument": { "Statement": [ { @@ -99,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/*" ] ] @@ -130,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/*" ] ] @@ -171,19 +66,9 @@ "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, - "DependsOn": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -227,29 +112,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - }, + "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -267,9 +142,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } + "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -287,12 +160,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -309,12 +177,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" } ], "Version": "2012-10-17" @@ -343,12 +206,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -357,12 +215,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/protected/*" ] ] @@ -371,12 +224,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/private/*" ] ] @@ -391,12 +239,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -405,12 +248,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/protected/*" ] ] @@ -419,12 +257,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/private/*" ] ] @@ -446,12 +279,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, { "Action": "s3:DeleteObject", @@ -461,12 +289,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/public/*" ] ] @@ -475,12 +298,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/protected/*" ] ] @@ -489,12 +307,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, + "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", "/private/*" ] ] @@ -524,6 +337,70 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "moodboard20e29595008142e3ad16f01c4066e1c4", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" + ] + } + ] + }, + "-", + "main" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" } }, "Conditions": { @@ -802,9 +679,7 @@ }, "Outputs": { "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } + "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json index c790141bfca..f7d0aa04db5 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json @@ -10,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -83,9 +81,7 @@ }, "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", "Roles": [ - { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" ] }, "Metadata": { @@ -101,9 +97,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -423,29 +417,19 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_OFRBVzhq5" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "61e6oq3acg1at7f9da6cfna70d" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json index 622cf4dd33c..f86fae3e9c3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json @@ -1,5 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -96,9 +97,7 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_OFRBVzhq5" }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" @@ -119,9 +118,7 @@ "TokenValidityUnits": { "RefreshToken": "minutes" }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_OFRBVzhq5" }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" @@ -133,9 +130,7 @@ "AllowUnauthenticatedIdentities": false, "CognitoIdentityProviders": [ { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, + "ClientId": "61e6oq3acg1at7f9da6cfna70d", "ProviderName": { "Fn::Join": [ "", @@ -145,9 +140,7 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "us-east-1_OFRBVzhq5" ] ] } @@ -184,9 +177,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, + "IdentityPoolId": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f", "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -199,13 +190,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, + "us-east-1_OFRBVzhq5", ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "61e6oq3acg1at7f9da6cfna70d" ] ] }, @@ -213,24 +200,10 @@ } }, "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M", + "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json index d10c85c655b..436640b9b85 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json @@ -4,9 +4,7 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, + "Bucket": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "PolicyDocument": { "Statement": [ { @@ -21,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/*" ] ] @@ -52,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/*" ] ] @@ -93,19 +66,9 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -115,15 +78,8 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { "Type": "Custom::S3BucketNotifications", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "Arn" - ] - }, - "BucketName": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "NotificationConfiguration": { "LambdaFunctionConfigurations": [ { @@ -147,10 +103,6 @@ "Managed": true, "SkipDestinationValidation": false }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -166,12 +118,7 @@ "SourceAccount": { "Ref": "AWS::AccountId" }, - "SourceArn": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } + "SourceArn": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" @@ -214,29 +161,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, + "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -303,12 +240,7 @@ { "Action": "s3:PutBucketNotification", "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" } ], "Version": "2012-10-17" @@ -332,12 +264,7 @@ "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" }, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", "Runtime": "python3.13", "Timeout": 300, "Tags": [ @@ -359,10 +286,6 @@ } ] }, - "DependsOn": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } @@ -378,9 +301,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } + "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -399,12 +320,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/public/*" ] ] @@ -413,12 +329,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/protected/*" ] ] @@ -427,12 +338,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/private/*" ] ] @@ -447,12 +353,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/public/*" ] ] @@ -461,12 +362,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/protected/*" ] ] @@ -475,12 +371,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/private/*" ] ] @@ -502,12 +393,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, { "Action": "s3:DeleteObject", @@ -517,12 +403,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/public/*" ] ] @@ -531,12 +412,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/protected/*" ] ] @@ -545,12 +421,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/private/*" ] ] @@ -858,9 +729,7 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } + "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json index f053e3640a5..aa18626f494 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json @@ -1,6 +1,213 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "productcatalog", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_OFRBVzhq5" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_OFRBVzhq5" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "61e6oq3acg1at7f9da6cfna70d", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_OFRBVzhq5" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_OFRBVzhq5", + ":", + "61e6oq3acg1at7f9da6cfna70d" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M", + "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json index fbecb1771b3..9cf5ab554b8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json @@ -114,9 +114,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] } @@ -138,36 +136,24 @@ ] }, "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole90174ac4", + "Fn::Join": [ + "", + [ + "upClientLambdaRole90174ac4", + { + "Fn::Select": [ + 3, { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } + "Fn::Split": [ + "-", + "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" ] - }, - "-", - { - "Ref": "env" } ] - ] - } + }, + "-", + "main" + ] ] } } @@ -176,49 +162,29 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } + "Value": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc" }, "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } + "Value": "productcatalog90174ac4_identitypool_90174ac4__main" }, "UserPoolId": { "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } + "Value": "us-east-1_66BkqNfdX" }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_66BkqNfdX" }, "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } + "Value": "productcatalog90174ac4_userpool_90174ac4" }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } + "Value": "7ogg1fkk68io03i95o0viqhibk" }, "AppClientID": { "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } + "Value": "27jbakm3s7vgm116b36evi830d" } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json index 76fba05b4e4..a69d3b0e16d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json @@ -1,176 +1,6 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "productcatalog90174ac4_identitypool_90174ac4", - { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_identitypool_90174ac4__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -180,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -253,9 +81,7 @@ }, "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", "Roles": [ - { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" ] }, "Metadata": { @@ -271,9 +97,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -314,25 +138,6 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { @@ -342,6 +147,132 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_userpool_90174ac4", + "-", + "main" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_66BkqNfdX" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_66BkqNfdX" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "27jbakm3s7vgm116b36evi830d", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_66BkqNfdX" + } + ] + } + }, + { + "ClientId": "7ogg1fkk68io03i95o0viqhibk", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_66BkqNfdX" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_identitypool_90174ac4__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" + } + } } }, "Conditions": { @@ -612,29 +543,19 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_OFRBVzhq5" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "61e6oq3acg1at7f9da6cfna70d" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" }, "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json index fdf07ca7045..da74f677807 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json @@ -99,9 +99,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] }, @@ -109,9 +107,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -121,9 +117,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -133,9 +127,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -145,9 +137,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, + "s3:PutObject", "DISALLOW" ] } @@ -157,9 +147,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, + "DISALLOW", "DISALLOW" ] } @@ -169,9 +157,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, + "DISALLOW", "DISALLOW" ] } @@ -181,9 +167,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, + "ALLOW", "DISALLOW" ] } @@ -193,9 +177,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, + "DISALLOW", "DISALLOW" ] } @@ -205,14 +187,10 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" }, "Region": { - "Value": { - "Ref": "AWS::Region" - } + "Value": "us-east-1" } }, "Resources": { @@ -220,9 +198,7 @@ "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "functionS3Trigger1ef46783Name" - }, + "FunctionName": "S3Trigger1ef46783-main", "Principal": "s3.amazonaws.com", "SourceAccount": { "Ref": "AWS::AccountId" @@ -235,33 +211,25 @@ { "Fn::If": [ "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3", { "Fn::Join": [ "", [ - { - "Ref": "bucketName" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3", { "Fn::Select": [ 3, { "Fn::Split": [ "-", - { - "Ref": "AWS::StackName" - } + "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" ] } ] }, "-", - { - "Ref": "env" - } + "main" ] ] } @@ -283,9 +251,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -294,9 +260,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", "/public/*" ] ] @@ -305,18 +269,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, + "PolicyName": "Public_policy_38e5b439", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -330,9 +287,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -341,9 +296,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -352,18 +305,11 @@ } ] }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, + "PolicyName": "Protected_policy_38e5b439", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -377,9 +323,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -388,9 +332,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -399,18 +341,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, + "PolicyName": "Private_policy_38e5b439", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -424,9 +359,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } + "s3:PutObject" ] }, "Resource": [ @@ -435,9 +368,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", "/uploads/*" ] ] @@ -446,18 +377,11 @@ } ] }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, + "PolicyName": "Uploads_policy_38e5b439", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthUploads" }, "S3AuthReadPolicy": { @@ -473,9 +397,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", "/protected/*" ] ] @@ -501,9 +423,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" ] ] } @@ -511,83 +431,13 @@ ], "Version": "2012-10-17" }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, + "PolicyName": "read_policy_38e5b439", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "AuthReadAndList" }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "GuestReadAndList" - }, "S3TriggerBucketPolicy": { "Type": "AWS::IAM::Policy", "Properties": { @@ -605,9 +455,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" ] ] } @@ -627,9 +475,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", "/*" ] ] @@ -640,14 +486,9 @@ }, "PolicyName": "amplify-lambda-execution-policy-storage", "Roles": [ - { - "Ref": "functionS3Trigger1ef46783LambdaExecutionRole" - } + "S3Trigger1ef46783LambdaRole1ef46783-main" ] - }, - "DependsOn": [ - "S3Bucket" - ] + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json index d32f945665a..9a1ece0d4ba 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json @@ -1,109 +1,10 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "NotificationConfiguration": { - "LambdaConfigurations": [ - { - "Event": "s3:ObjectCreated:*", - "Function": { - "Ref": "functionS3Trigger1ef46783Arn" - } - }, - { - "Event": "s3:ObjectRemoved:*", - "Function": { - "Ref": "functionS3Trigger1ef46783Arn" - } - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "DependsOn": [ - "TriggerPermissions" - ], - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, + "Bucket": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "PolicyDocument": { "Statement": [ { @@ -118,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/*" ] ] @@ -149,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/*" ] ] @@ -190,19 +66,9 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -212,15 +78,8 @@ "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { "Type": "Custom::S3BucketNotifications", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "Arn" - ] - }, - "BucketName": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "NotificationConfiguration": { "LambdaFunctionConfigurations": [ { @@ -244,10 +103,6 @@ "Managed": true, "SkipDestinationValidation": false }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -263,12 +118,7 @@ "SourceAccount": { "Ref": "AWS::AccountId" }, - "SourceArn": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } + "SourceArn": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" @@ -311,29 +161,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, + "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -400,12 +240,7 @@ { "Action": "s3:PutBucketNotification", "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" } ], "Version": "2012-10-17" @@ -429,12 +264,7 @@ "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" }, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", "Runtime": "python3.13", "Timeout": 300, "Tags": [ @@ -456,10 +286,6 @@ } ] }, - "DependsOn": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } @@ -475,9 +301,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } + "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -496,12 +320,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/public/*" ] ] @@ -510,12 +329,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/protected/*" ] ] @@ -524,12 +338,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/private/*" ] ] @@ -544,12 +353,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/public/*" ] ] @@ -558,12 +362,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/protected/*" ] ] @@ -572,12 +371,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/private/*" ] ] @@ -599,12 +393,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, { "Action": "s3:DeleteObject", @@ -614,12 +403,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/public/*" ] ] @@ -628,12 +412,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/protected/*" ] ] @@ -642,12 +421,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, + "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", "/private/*" ] ] @@ -677,6 +451,82 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" + ] + } + ] + }, + "-", + "main" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "NotificationConfiguration": { + "LambdaConfigurations": [ + { + "Event": "s3:ObjectCreated:*", + "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" + }, + { + "Event": "s3:ObjectRemoved:*", + "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" } }, "Conditions": { @@ -955,9 +805,7 @@ }, "Outputs": { "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } + "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json index ee566c058c1..29d614e77f0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json @@ -10,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -62,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -384,29 +380,19 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_pXlpWF7QY" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "oqgm3faeod0cr1b4v63iv4a7a" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json index d5de4129ebf..0c82664165a 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json @@ -1,5 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -96,9 +97,7 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_pXlpWF7QY" }, "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" @@ -119,9 +118,7 @@ "TokenValidityUnits": { "RefreshToken": "minutes" }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "UserPoolId": "us-east-1_pXlpWF7QY" }, "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" @@ -133,9 +130,7 @@ "AllowUnauthenticatedIdentities": true, "CognitoIdentityProviders": [ { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, + "ClientId": "oqgm3faeod0cr1b4v63iv4a7a", "ProviderName": { "Fn::Join": [ "", @@ -145,9 +140,7 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "us-east-1_pXlpWF7QY" ] ] } @@ -184,9 +177,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, + "IdentityPoolId": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba", "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -199,13 +190,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, + "us-east-1_pXlpWF7QY", ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "oqgm3faeod0cr1b4v63iv4a7a" ] ] }, @@ -213,27 +200,85 @@ } }, "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT", + "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } } }, "Outputs": {} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json index b64485d5894..ead58590739 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json @@ -4,9 +4,7 @@ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - }, + "Bucket": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "PolicyDocument": { "Statement": [ { @@ -21,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/*" ] ] @@ -52,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/*" ] ] @@ -93,19 +66,9 @@ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, - "DependsOn": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -149,29 +112,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - }, + "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -189,9 +142,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } + "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -209,12 +160,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -231,12 +177,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" } ], "Version": "2012-10-17" @@ -265,12 +206,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -279,12 +215,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/protected/*" ] ] @@ -293,12 +224,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/private/*" ] ] @@ -313,12 +239,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -327,12 +248,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/protected/*" ] ] @@ -341,12 +257,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/private/*" ] ] @@ -368,12 +279,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, { "Action": "s3:DeleteObject", @@ -383,12 +289,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -397,12 +298,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/protected/*" ] ] @@ -411,12 +307,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/private/*" ] ] @@ -724,9 +615,7 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } + "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json index 159fcea7fe2..548f64920d8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json @@ -1,6 +1,285 @@ { "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "projectboards", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_pXlpWF7QY" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_pXlpWF7QY" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "oqgm3faeod0cr1b4v63iv4a7a", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_pXlpWF7QY" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "projectboards" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_pXlpWF7QY", + ":", + "oqgm3faeod0cr1b4v63iv4a7a" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT", + "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "productcatalog" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" + } + }, "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json index f63ce7339e7..0a3ee93ddce 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json @@ -114,9 +114,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] } @@ -138,36 +136,24 @@ ] }, "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole54040ecc", + "Fn::Join": [ + "", + [ + "upClientLambdaRole54040ecc", + { + "Fn::Select": [ + 3, { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } + "Fn::Split": [ + "-", + "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" ] - }, - "-", - { - "Ref": "env" } ] - ] - } + }, + "-", + "main" + ] ] } } @@ -176,49 +162,29 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } + "Value": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791" }, "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } + "Value": "projectboards54040ecc_identitypool_54040ecc__main" }, "UserPoolId": { "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } + "Value": "us-east-1_ct5s4IEz3" }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_ct5s4IEz3" }, "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } + "Value": "projectboards54040ecc_userpool_54040ecc" }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } + "Value": "1vpeihq8svf62sepfnkuvp8sld" }, "AppClientID": { "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } + "Value": "3dbqrlfs0a0g4a6ihsanen6i5" } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json index 5cc2cce7f81..9e7b4fc0c68 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json @@ -1,176 +1,6 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "projectboards54040ecc_identitypool_54040ecc", - { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_identitypool_54040ecc__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -180,9 +10,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -232,9 +60,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -275,25 +101,6 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { @@ -303,6 +110,132 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_userpool_54040ecc", + "-", + "main" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_ct5s4IEz3" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_ct5s4IEz3" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "3dbqrlfs0a0g4a6ihsanen6i5", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_ct5s4IEz3" + } + ] + } + }, + { + "ClientId": "1vpeihq8svf62sepfnkuvp8sld", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_ct5s4IEz3" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_identitypool_54040ecc__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" + } + } } }, "Conditions": { @@ -573,29 +506,19 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } + "Value": "us-east-1_pXlpWF7QY" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } + "Value": "oqgm3faeod0cr1b4v63iv4a7a" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } + "Value": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } + "Value": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" }, "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } + "Value": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json index 2a102385b61..5df877c8f45 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json @@ -84,9 +84,7 @@ "Conditions": { "ShouldNotCreateEnvResources": { "Fn::Equals": [ - { - "Ref": "env" - }, + "main", "NONE" ] }, @@ -94,9 +92,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -106,9 +102,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -118,9 +112,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, + "s3:PutObject,s3:GetObject,s3:DeleteObject", "DISALLOW" ] } @@ -130,9 +122,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, + "s3:PutObject", "DISALLOW" ] } @@ -142,9 +132,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, + "s3:GetObject", "DISALLOW" ] } @@ -154,9 +142,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, + "DISALLOW", "DISALLOW" ] } @@ -166,9 +152,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, + "ALLOW", "DISALLOW" ] } @@ -178,9 +162,7 @@ "Fn::Not": [ { "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, + "ALLOW", "DISALLOW" ] } @@ -190,14 +172,10 @@ "Outputs": { "BucketName": { "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } + "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-main" }, "Region": { - "Value": { - "Ref": "AWS::Region" - } + "Value": "us-east-1" } }, "Resources": { @@ -212,9 +190,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -223,9 +199,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "projectboards34b9a7f3c2ca489293910116c994688b02940-main", "/public/*" ] ] @@ -234,18 +208,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, + "PolicyName": "Public_policy_69f8ff1c", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -259,9 +226,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -270,9 +235,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "projectboards34b9a7f3c2ca489293910116c994688b02940-main", "/protected/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -281,18 +244,11 @@ } ] }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, + "PolicyName": "Protected_policy_69f8ff1c", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -306,9 +262,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } + "s3:PutObject,s3:GetObject,s3:DeleteObject" ] }, "Resource": [ @@ -317,9 +271,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "projectboards34b9a7f3c2ca489293910116c994688b02940-main", "/private/${cognito-identity.amazonaws.com:sub}/*" ] ] @@ -328,18 +280,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, + "PolicyName": "Private_policy_69f8ff1c", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -353,9 +298,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } + "s3:PutObject" ] }, "Resource": [ @@ -364,9 +307,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "projectboards34b9a7f3c2ca489293910116c994688b02940-main", "/uploads/*" ] ] @@ -375,18 +316,11 @@ } ] }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, + "PolicyName": "Uploads_policy_69f8ff1c", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -400,9 +334,7 @@ "Action": { "Fn::Split": [ ",", - { - "Ref": "s3PermissionsGuestPublic" - } + "s3:GetObject" ] }, "Resource": [ @@ -411,9 +343,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "projectboards34b9a7f3c2ca489293910116c994688b02940-main", "/public/*" ] ] @@ -422,18 +352,11 @@ } ] }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, + "PolicyName": "Public_policy_69f8ff1c", "Roles": [ - { - "Ref": "unauthRoleName" - } + "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -449,9 +372,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "projectboards34b9a7f3c2ca489293910116c994688b02940-main", "/protected/*" ] ] @@ -477,9 +398,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "projectboards34b9a7f3c2ca489293910116c994688b02940-main" ] ] } @@ -487,18 +406,11 @@ ], "Version": "2012-10-17" }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, + "PolicyName": "read_policy_69f8ff1c", "Roles": [ - { - "Ref": "authRoleName" - } + "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -514,9 +426,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, + "projectboards34b9a7f3c2ca489293910116c994688b02940-main", "/protected/*" ] ] @@ -540,9 +450,7 @@ "", [ "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } + "projectboards34b9a7f3c2ca489293910116c994688b02940-main" ] ] } @@ -550,18 +458,11 @@ ], "Version": "2012-10-17" }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, + "PolicyName": "read_policy_69f8ff1c", "Roles": [ - { - "Ref": "unauthRoleName" - } + "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [ - "S3Bucket" - ], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json index 4f69c5395a5..3f1975883b2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json @@ -1,90 +1,10 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", "Resources": { - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { "Type": "AWS::S3::BucketPolicy", "Properties": { - "Bucket": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - }, + "Bucket": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "PolicyDocument": { "Statement": [ { @@ -99,22 +19,12 @@ "AWS": "*" }, "Resource": [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/*" ] ] @@ -130,30 +40,15 @@ ], "Effect": "Allow", "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } + "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" }, "Resource": [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", { "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/*" ] ] @@ -171,19 +66,9 @@ "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { "Type": "Custom::S3AutoDeleteObjects", "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, - "DependsOn": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -227,29 +112,19 @@ "Timeout": 900, "MemorySize": 128, "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, + "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", "Runtime": "nodejs22.x", "Description": { "Fn::Join": [ "", [ "Lambda function for auto-deleting objects in ", - { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - }, + "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", " S3 bucket." ] ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -267,9 +142,7 @@ "created-by": "amplify" }, "Type": "String", - "Value": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } + "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" @@ -287,12 +160,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -309,12 +177,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" } ], "Version": "2012-10-17" @@ -343,12 +206,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -357,12 +215,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/protected/*" ] ] @@ -371,12 +224,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/private/*" ] ] @@ -391,12 +239,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -405,12 +248,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/protected/*" ] ] @@ -419,12 +257,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/private/*" ] ] @@ -446,12 +279,7 @@ } }, "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - } + "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, { "Action": "s3:DeleteObject", @@ -461,12 +289,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/public/*" ] ] @@ -475,12 +298,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/protected/*" ] ] @@ -489,12 +307,7 @@ "Fn::Join": [ "", [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, + "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", "/private/*" ] ] @@ -524,6 +337,70 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" + }, + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "projectboards34b9a7f3c2ca489293910116c994688b", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" + ] + } + ] + }, + "-", + "main" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" } }, "Conditions": { @@ -802,9 +679,7 @@ }, "Outputs": { "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } + "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" } } } \ No newline at end of file diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts deleted file mode 100644 index d9e1bdf86e0..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-mapping.test.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-cognito-forward'; -import { CFNResource } from '../../../../commands/gen2-migration/cfn-template'; -import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; -import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; -import { ResourceMapping } from '@aws-sdk/client-cloudformation'; -import { noOpLogger } from '../_framework/logger'; - -function toIdMap(mappings: ResourceMapping[]): Map { - return new Map(mappings.map((m) => [m.Source!.LogicalResourceId!, m.Destination!.LogicalResourceId!])); -} - -describe('AuthCognitoForwardRefactorer.buildResourceMappings - UserPoolClient disambiguation', () => { - function createRefactorer() { - const clients = new AwsClients({ region: 'us-east-1' }); - const gen1Env = new StackFacade(clients, 'gen1'); - const gen2Branch = new StackFacade(clients, 'gen2'); - return new (class extends AuthCognitoForwardRefactorer { - constructor() { - super( - gen1Env, - gen2Branch, - clients, - 'us-east-1', - '123456789', - noOpLogger(), - 'appId', - 'main', - { - category: 'auth', - resourceName: 'test', - service: 'Cognito', - key: 'auth:Cognito', - }, - null as unknown as Cfn, - ); - } - public async testBuildResourceMappings( - source: Map, - target: Map, - ): Promise { - return this.buildResourceMappings(source, target, 'gen1-auth', 'gen2-auth'); - } - })(); - } - - it('maps main auth resources with correct Web/Native disambiguation', async () => { - const refactorer = createRefactorer(); - - const targetResources = new Map([ - ['amplifyAuthUserPool1234ABCD', { Type: 'AWS::Cognito::UserPool', Properties: {} }], - ['amplifyAuthUserPoolAppClient1234ABCD', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], - ['amplifyAuthUserPoolNativeAppClient1234ABCD', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], - ['amplifyAuthIdentityPool1234ABCD', { Type: 'AWS::Cognito::IdentityPool', Properties: {} }], - ['amplifyAuthIdentityPoolRoleMap1234ABCD', { Type: 'AWS::Cognito::IdentityPoolRoleAttachment', Properties: {} }], - ]); - - const mainAuthSource = new Map([ - ['UserPool', { Type: 'AWS::Cognito::UserPool', Properties: {} }], - ['UserPoolClientWeb', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], - ['UserPoolClient', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], - ['IdentityPool', { Type: 'AWS::Cognito::IdentityPool', Properties: {} }], - ['IdentityPoolRoleMap', { Type: 'AWS::Cognito::IdentityPoolRoleAttachment', Properties: {} }], - ]); - - const mappings = await refactorer.testBuildResourceMappings(mainAuthSource, targetResources); - const map = toIdMap(mappings); - - // All source resources are mapped - expect(map.size).toBe(5); - - // UserPoolClient Web/Native disambiguation is correct - expect(map.get('UserPoolClientWeb')).toBe('amplifyAuthUserPoolAppClient1234ABCD'); - expect(map.get('UserPoolClient')).toBe('amplifyAuthUserPoolNativeAppClient1234ABCD'); - - // Other mappings - expect(map.get('UserPool')).toBe('amplifyAuthUserPool1234ABCD'); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-forward.test.ts similarity index 75% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-forward.test.ts index 9925bf408dd..0b93f82949a 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-forward-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-forward.test.ts @@ -1,8 +1,8 @@ -import { AuthCognitoForwardRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-cognito-forward'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; -import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; -import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { noOpLogger } from '../_framework/logger'; +import { AuthCognitoForwardRefactorer } from '../../../../../commands/gen2-migration/refactor/auth/auth-cognito-forward'; +import { CFNResource, CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; +import { AwsClients } from '../../../../../commands/gen2-migration/aws-clients'; +import { StackFacade } from '../../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -13,10 +13,11 @@ import { CreateChangeSetCommand, DescribeChangeSetCommand, DeleteChangeSetCommand, + ResourceMapping, } from '@aws-sdk/client-cloudformation'; import { SSMClient } from '@aws-sdk/client-ssm'; import { CognitoIdentityProviderClient, DescribeIdentityProviderCommand } from '@aws-sdk/client-cognito-identity-provider'; -import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; const ts = new Date(); const rs = ResourceStatus.CREATE_COMPLETE; @@ -277,3 +278,70 @@ describe('AuthCognitoForwardRefactorer.plan() — operation sequence', () => { await expect(refactorer.plan()).rejects.toThrow('Unable to find target stack'); }); }); + +function toIdMap(mappings: ResourceMapping[]): Map { + return new Map(mappings.map((m) => [m.Source!.LogicalResourceId!, m.Destination!.LogicalResourceId!])); +} + +describe('AuthCognitoForwardRefactorer.buildResourceMappings — UserPoolClient disambiguation', () => { + function createRefactorer() { + const clients = new AwsClients({ region: 'us-east-1' }); + const gen1Env = new StackFacade(clients, 'gen1'); + const gen2Branch = new StackFacade(clients, 'gen2'); + return new (class extends AuthCognitoForwardRefactorer { + constructor() { + super( + gen1Env, + gen2Branch, + clients, + 'us-east-1', + '123456789', + noOpLogger(), + 'appId', + 'main', + { + category: 'auth', + resourceName: 'test', + service: 'Cognito', + key: 'auth:Cognito', + }, + null as unknown as Cfn, + ); + } + public async testBuildResourceMappings( + source: Map, + target: Map, + ): Promise { + return this.buildResourceMappings(source, target, 'gen1-auth', 'gen2-auth'); + } + })(); + } + + it('maps main auth resources with correct Web/Native disambiguation', async () => { + const refactorer = createRefactorer(); + + const targetResources = new Map([ + ['amplifyAuthUserPool1234ABCD', { Type: 'AWS::Cognito::UserPool', Properties: {} }], + ['amplifyAuthUserPoolAppClient1234ABCD', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], + ['amplifyAuthUserPoolNativeAppClient1234ABCD', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], + ['amplifyAuthIdentityPool1234ABCD', { Type: 'AWS::Cognito::IdentityPool', Properties: {} }], + ['amplifyAuthIdentityPoolRoleMap1234ABCD', { Type: 'AWS::Cognito::IdentityPoolRoleAttachment', Properties: {} }], + ]); + + const mainAuthSource = new Map([ + ['UserPool', { Type: 'AWS::Cognito::UserPool', Properties: {} }], + ['UserPoolClientWeb', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], + ['UserPoolClient', { Type: 'AWS::Cognito::UserPoolClient', Properties: {} }], + ['IdentityPool', { Type: 'AWS::Cognito::IdentityPool', Properties: {} }], + ['IdentityPoolRoleMap', { Type: 'AWS::Cognito::IdentityPoolRoleAttachment', Properties: {} }], + ]); + + const mappings = await refactorer.testBuildResourceMappings(mainAuthSource, targetResources); + const map = toIdMap(mappings); + + expect(map.size).toBe(5); + expect(map.get('UserPoolClientWeb')).toBe('amplifyAuthUserPoolAppClient1234ABCD'); + expect(map.get('UserPoolClient')).toBe('amplifyAuthUserPoolNativeAppClient1234ABCD'); + expect(map.get('UserPool')).toBe('amplifyAuthUserPool1234ABCD'); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-rollback.test.ts similarity index 89% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-rollback.test.ts index ac170fc1a47..a65cede8a74 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth-rollback-plan.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-rollback.test.ts @@ -1,8 +1,8 @@ -import { AuthCognitoRollbackRefactorer } from '../../../../commands/gen2-migration/refactor/auth/auth-cognito-rollback'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; -import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; -import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { noOpLogger } from '../_framework/logger'; +import { AuthCognitoRollbackRefactorer } from '../../../../../commands/gen2-migration/refactor/auth/auth-cognito-rollback'; +import { CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; +import { AwsClients } from '../../../../../commands/gen2-migration/aws-clients'; +import { StackFacade } from '../../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -14,7 +14,7 @@ import { DescribeChangeSetCommand, DeleteChangeSetCommand, } from '@aws-sdk/client-cloudformation'; -import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; const ts = new Date(); const rs = ResourceStatus.CREATE_COMPLETE; diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts deleted file mode 100644 index 07fda32f0a1..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/build-refactor-templates.test.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { - MIGRATION_PLACEHOLDER_LOGICAL_ID, - PLACEHOLDER_RESOURCE, -} from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; -import { ResourceMapping } from '@aws-sdk/client-cloudformation'; - -describe('placeholder constants', () => { - it('placeholder resource is a WaitConditionHandle', () => { - expect(PLACEHOLDER_RESOURCE.Type).toBe('AWS::CloudFormation::WaitConditionHandle'); - }); - - it('placeholder logical ID is MigrationPlaceholder', () => { - expect(MIGRATION_PLACEHOLDER_LOGICAL_ID).toBe('MigrationPlaceholder'); - }); -}); - -describe('ResourceMapping shape', () => { - it('carries source and destination stack + logical ID', () => { - const mapping: ResourceMapping = { - Source: { StackName: 'gen1-auth', LogicalResourceId: 'UserPool' }, - Destination: { StackName: 'gen2-auth', LogicalResourceId: 'amplifyAuthUserPool' }, - }; - expect(mapping.Source!.StackName).toBe('gen1-auth'); - expect(mapping.Destination!.LogicalResourceId).toBe('amplifyAuthUserPool'); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts deleted file mode 100644 index ce6c9936f23..00000000000 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/default-resource-mappings.test.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { ForwardCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/forward-category-refactorer'; -import { RollbackCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/rollback-category-refactorer'; -import { CFNResource } from '../../../../commands/gen2-migration/cfn-template'; -import { ResourceMapping } from '@aws-sdk/client-cloudformation'; -import { noOpLogger } from '../_framework/logger'; -import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; - -class TestForwardRefactorer extends ForwardCategoryRefactorer { - protected async fetchSourceStackId() { - return 'gen1-stack'; - } - protected async fetchDestStackId() { - return 'gen2-stack'; - } - protected resourceTypes() { - return ['AWS::S3::Bucket']; - } - public async testBuildResourceMappings(source: Map, target: Map): Promise { - return this.buildResourceMappings(source, target, 'gen1-stack', 'gen2-stack'); - } -} - -class TestRollbackRefactorer extends RollbackCategoryRefactorer { - private readonly ids: ReadonlyMap; - - constructor(ids: ReadonlyMap) { - super( - null as any, - null as any, - null as any, - 'us-east-1', - '123', - noOpLogger(), - { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, - null as unknown as Cfn, - ); - this.ids = ids; - } - // eslint-disable-next-line @typescript-eslint/no-unused-vars - protected targetLogicalId(sourceId: string, _sourceResource: CFNResource): string | undefined { - return this.ids.get(sourceId); - } - protected async fetchSourceStackId() { - return 'gen2-stack'; - } - protected async fetchDestStackId() { - return 'gen1-stack'; - } - protected resourceTypes() { - return []; - } - public async testBuildResourceMappings(source: Map, target: Map): Promise { - return this.buildResourceMappings(source, target, 'gen2-stack', 'gen1-stack'); - } -} - -const r = (type: string): CFNResource => ({ Type: type, Properties: {} }); - -function toIdMap(mappings: ResourceMapping[]): Map { - return new Map(mappings.map((m) => [m.Source!.LogicalResourceId!, m.Destination!.LogicalResourceId!])); -} - -describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching)', () => { - const refactorer = new TestForwardRefactorer( - null as any, - null as any, - null as any, - 'us-east-1', - '123', - noOpLogger(), - { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, - null as unknown as Cfn, - ); - - it('maps single resource per type', async () => { - const mappings = await refactorer.testBuildResourceMappings( - new Map([['S3Bucket', r('AWS::S3::Bucket')]]), - new Map([['amplifyBucket', r('AWS::S3::Bucket')]]), - ); - const map = toIdMap(mappings); - expect(map.size).toBe(1); - expect(map.get('S3Bucket')).toBe('amplifyBucket'); - }); - - it('maps multiple types independently', async () => { - const mappings = await refactorer.testBuildResourceMappings( - new Map([ - ['Bucket', r('AWS::S3::Bucket')], - ['Table', r('AWS::DynamoDB::Table')], - ]), - new Map([ - ['GenBucket', r('AWS::S3::Bucket')], - ['GenTable', r('AWS::DynamoDB::Table')], - ]), - ); - const map = toIdMap(mappings); - expect(map.size).toBe(2); - expect(map.get('Bucket')).toBe('GenBucket'); - expect(map.get('Table')).toBe('GenTable'); - }); - - it('throws when no types match', async () => { - await expect( - refactorer.testBuildResourceMappings(new Map([['Stream', r('AWS::Kinesis::Stream')]]), new Map([['Bucket', r('AWS::S3::Bucket')]])), - ).rejects.toThrow("Source resource 'Stream' (AWS::Kinesis::Stream) has no corresponding target resource"); - }); -}); - -describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based)', () => { - it('maps source resources to Gen1 logical IDs', async () => { - const refactorer = new TestRollbackRefactorer( - new Map([ - ['amplifyBucket', 'S3Bucket'], - ['amplifyTable', 'DynamoDBTable'], - ]), - ); - const mappings = await refactorer.testBuildResourceMappings( - new Map([ - ['amplifyBucket', r('AWS::S3::Bucket')], - ['amplifyTable', r('AWS::DynamoDB::Table')], - ]), - new Map(), - ); - const map = toIdMap(mappings); - expect(map.size).toBe(2); - expect(map.get('amplifyBucket')).toBe('S3Bucket'); - expect(map.get('amplifyTable')).toBe('DynamoDBTable'); - }); - - it('throws for resource with no known Gen1 logical ID', async () => { - const refactorer = new TestRollbackRefactorer(new Map()); - await expect(refactorer.testBuildResourceMappings(new Map([['amplifyTopic', r('AWS::SNS::Topic')]]), new Map())).rejects.toThrow( - 'Unable to determine target id of resource amplifyTopic', - ); - }); -}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-condition-resolver.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.test.ts similarity index 97% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-condition-resolver.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.test.ts index 8d821cca276..57979966a0c 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-condition-resolver.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.test.ts @@ -1,5 +1,5 @@ -import { resolveConditions } from '../../../../commands/gen2-migration/refactor/resolvers/cfn-condition-resolver'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; +import { resolveConditions } from '../../../../../commands/gen2-migration/refactor/resolvers/cfn-condition-resolver'; +import { CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; /** * Builds a template with one condition gating one resource. diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-dependency-resolver.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.test.ts similarity index 88% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-dependency-resolver.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.test.ts index 8a3ab543f0c..1ef045e91fd 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-dependency-resolver.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.test.ts @@ -1,5 +1,5 @@ -import { resolveDependencies } from '../../../../commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; +import { resolveDependencies } from '../../../../../commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver'; +import { CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; const makeTemplate = (resources: Record): CFNTemplate => ({ AWSTemplateFormatVersion: '2010-09-09', diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-output-resolver.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.test.ts similarity index 98% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-output-resolver.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.test.ts index 703361e6867..e3db01b33a7 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-output-resolver.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.test.ts @@ -1,5 +1,5 @@ -import { resolveOutputs } from '../../../../commands/gen2-migration/refactor/resolvers/cfn-output-resolver'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; +import { resolveOutputs } from '../../../../../commands/gen2-migration/refactor/resolvers/cfn-output-resolver'; +import { CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; const baseTemplate: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-parameter-resolver.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.test.ts similarity index 95% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-parameter-resolver.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.test.ts index 5a508bf8519..90d458ff267 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-parameter-resolver.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.test.ts @@ -1,5 +1,5 @@ -import { resolveParameters } from '../../../../commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; +import { resolveParameters } from '../../../../../commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver'; +import { CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; const baseTemplate: CFNTemplate = { AWSTemplateFormatVersion: '2010-09-09', diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-tree-walker.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.test.ts similarity index 93% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-tree-walker.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.test.ts index 558f5076538..9292c2eb16d 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/cfn-tree-walker.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.test.ts @@ -1,4 +1,4 @@ -import { walkCfnTree } from '../../../../commands/gen2-migration/refactor/resolvers/cfn-tree-walker'; +import { walkCfnTree } from '../../../../../commands/gen2-migration/refactor/resolvers/cfn-tree-walker'; describe('walkCfnTree', () => { it('returns primitives unchanged', () => { diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/category-refactorer.test.ts similarity index 91% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/category-refactorer.test.ts index 7855d1dc9aa..183cb67225a 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/category-plan-orchestration.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/category-refactorer.test.ts @@ -1,11 +1,11 @@ -import { StorageS3ForwardRefactorer } from '../../../../commands/gen2-migration/refactor/storage/storage-forward'; -import { StorageS3RollbackRefactorer } from '../../../../commands/gen2-migration/refactor/storage/storage-rollback'; -import { AnalyticsKinesisForwardRefactorer } from '../../../../commands/gen2-migration/refactor/analytics/analytics-forward'; -import { AnalyticsKinesisRollbackRefactorer } from '../../../../commands/gen2-migration/refactor/analytics/analytics-rollback'; -import { CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; -import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; -import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { noOpLogger } from '../_framework/logger'; +import { StorageS3ForwardRefactorer } from '../../../../../commands/gen2-migration/refactor/storage/storage-forward'; +import { StorageS3RollbackRefactorer } from '../../../../../commands/gen2-migration/refactor/storage/storage-rollback'; +import { AnalyticsKinesisForwardRefactorer } from '../../../../../commands/gen2-migration/refactor/analytics/analytics-forward'; +import { AnalyticsKinesisRollbackRefactorer } from '../../../../../commands/gen2-migration/refactor/analytics/analytics-rollback'; +import { CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; +import { AwsClients } from '../../../../../commands/gen2-migration/aws-clients'; +import { StackFacade } from '../../../../../commands/gen2-migration/refactor/stack-facade'; +import { noOpLogger } from '../../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -17,7 +17,7 @@ import { DescribeChangeSetCommand, DeleteChangeSetCommand, } from '@aws-sdk/client-cloudformation'; -import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; const ts = new Date(); const rs = ResourceStatus.CREATE_COMPLETE; @@ -367,3 +367,18 @@ describe('Analytics wiring tests', () => { expect(ops).toHaveLength(1); // no-op operation }); }); + +import { + MIGRATION_PLACEHOLDER_LOGICAL_ID, + PLACEHOLDER_RESOURCE, +} from '../../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; + +describe('placeholder constants', () => { + it('placeholder resource is a WaitConditionHandle', () => { + expect(PLACEHOLDER_RESOURCE.Type).toBe('AWS::CloudFormation::WaitConditionHandle'); + }); + + it('placeholder logical ID is MigrationPlaceholder', () => { + expect(MIGRATION_PLACEHOLDER_LOGICAL_ID).toBe('MigrationPlaceholder'); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts similarity index 65% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts index 5b3bf58093f..4478faf4a1b 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/forward-beforemove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts @@ -1,9 +1,9 @@ -import { ForwardCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/forward-category-refactorer'; -import { RefactorBlueprint } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; -import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; -import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; -import { noOpLogger } from '../_framework/logger'; +import { ForwardCategoryRefactorer } from '../../../../../commands/gen2-migration/refactor/workflow/forward-category-refactorer'; +import { RefactorBlueprint } from '../../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { AwsClients } from '../../../../../commands/gen2-migration/aws-clients'; +import { StackFacade } from '../../../../../commands/gen2-migration/refactor/stack-facade'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; +import { noOpLogger } from '../../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -157,3 +157,72 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { expect(cfnMock.commandCalls(DeleteStackCommand).length).toBeGreaterThan(0); }); }); + +import { CFNResource } from '../../../../../commands/gen2-migration/cfn-template'; + +class TestForwardMappingRefactorer extends ForwardCategoryRefactorer { + protected async fetchSourceStackId() { + return 'gen1-stack'; + } + protected async fetchDestStackId() { + return 'gen2-stack'; + } + protected resourceTypes() { + return ['AWS::S3::Bucket']; + } + public async testBuildResourceMappings(source: Map, target: Map): Promise { + return this.buildResourceMappings(source, target, 'gen1-stack', 'gen2-stack'); + } +} + +const r = (type: string): CFNResource => ({ Type: type, Properties: {} }); + +function toIdMap(mappings: ResourceMapping[]): Map { + return new Map(mappings.map((m) => [m.Source!.LogicalResourceId!, m.Destination!.LogicalResourceId!])); +} + +describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching)', () => { + const refactorer = new TestForwardMappingRefactorer( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + null as unknown as Cfn, + ); + + it('maps single resource per type', async () => { + const mappings = await refactorer.testBuildResourceMappings( + new Map([['S3Bucket', r('AWS::S3::Bucket')]]), + new Map([['amplifyBucket', r('AWS::S3::Bucket')]]), + ); + const map = toIdMap(mappings); + expect(map.size).toBe(1); + expect(map.get('S3Bucket')).toBe('amplifyBucket'); + }); + + it('maps multiple types independently', async () => { + const mappings = await refactorer.testBuildResourceMappings( + new Map([ + ['Bucket', r('AWS::S3::Bucket')], + ['Table', r('AWS::DynamoDB::Table')], + ]), + new Map([ + ['GenBucket', r('AWS::S3::Bucket')], + ['GenTable', r('AWS::DynamoDB::Table')], + ]), + ); + const map = toIdMap(mappings); + expect(map.size).toBe(2); + expect(map.get('Bucket')).toBe('GenBucket'); + expect(map.get('Table')).toBe('GenTable'); + }); + + it('throws when no types match', async () => { + await expect( + refactorer.testBuildResourceMappings(new Map([['Stream', r('AWS::Kinesis::Stream')]]), new Map([['Bucket', r('AWS::S3::Bucket')]])), + ).rejects.toThrow("Source resource 'Stream' (AWS::Kinesis::Stream) has no corresponding target resource"); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts similarity index 58% rename from packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts rename to packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts index deb4d4e7b32..b787b952b5e 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/rollback-aftermove.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts @@ -1,10 +1,10 @@ -import { RollbackCategoryRefactorer } from '../../../../commands/gen2-migration/refactor/workflow/rollback-category-refactorer'; -import { CFNResource, CFNTemplate } from '../../../../commands/gen2-migration/cfn-template'; -import { RefactorBlueprint } from '../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; -import { AwsClients } from '../../../../commands/gen2-migration/aws-clients'; -import { StackFacade } from '../../../../commands/gen2-migration/refactor/stack-facade'; -import { Cfn } from '../../../../commands/gen2-migration/refactor/cfn'; -import { noOpLogger } from '../_framework/logger'; +import { RollbackCategoryRefactorer } from '../../../../../commands/gen2-migration/refactor/workflow/rollback-category-refactorer'; +import { CFNResource, CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; +import { RefactorBlueprint } from '../../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; +import { AwsClients } from '../../../../../commands/gen2-migration/aws-clients'; +import { StackFacade } from '../../../../../commands/gen2-migration/refactor/stack-facade'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; +import { noOpLogger } from '../../_framework/logger'; import { mockClient } from 'aws-sdk-client-mock'; import { CloudFormationClient, @@ -127,3 +127,72 @@ describe('RollbackCategoryRefactorer.afterMove', () => { expect(operations).toHaveLength(0); }); }); + +class TestRollbackMappingRefactorer extends RollbackCategoryRefactorer { + private readonly ids: ReadonlyMap; + + constructor(ids: ReadonlyMap) { + super( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + null as unknown as Cfn, + ); + this.ids = ids; + } + // eslint-disable-next-line @typescript-eslint/no-unused-vars + protected targetLogicalId(sourceId: string, _sourceResource: CFNResource): string | undefined { + return this.ids.get(sourceId); + } + protected async fetchSourceStackId() { + return 'gen2-stack'; + } + protected async fetchDestStackId() { + return 'gen1-stack'; + } + protected resourceTypes() { + return []; + } + public async testBuildResourceMappings(source: Map, target: Map): Promise { + return this.buildResourceMappings(source, target, 'gen2-stack', 'gen1-stack'); + } +} + +const r = (type: string): CFNResource => ({ Type: type, Properties: {} }); + +function toIdMap(mappings: ResourceMapping[]): Map { + return new Map(mappings.map((m) => [m.Source!.LogicalResourceId!, m.Destination!.LogicalResourceId!])); +} + +describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based)', () => { + it('maps source resources to Gen1 logical IDs', async () => { + const refactorer = new TestRollbackMappingRefactorer( + new Map([ + ['amplifyBucket', 'S3Bucket'], + ['amplifyTable', 'DynamoDBTable'], + ]), + ); + const mappings = await refactorer.testBuildResourceMappings( + new Map([ + ['amplifyBucket', r('AWS::S3::Bucket')], + ['amplifyTable', r('AWS::DynamoDB::Table')], + ]), + new Map(), + ); + const map = toIdMap(mappings); + expect(map.size).toBe(2); + expect(map.get('amplifyBucket')).toBe('S3Bucket'); + expect(map.get('amplifyTable')).toBe('DynamoDBTable'); + }); + + it('throws for resource with no known Gen1 logical ID', async () => { + const refactorer = new TestRollbackMappingRefactorer(new Map()); + await expect(refactorer.testBuildResourceMappings(new Map([['amplifyTopic', r('AWS::SNS::Topic')]]), new Map())).rejects.toThrow( + 'Unable to determine target id of resource amplifyTopic', + ); + }); +}); From 8b3d080a312308ab32fe412cc30ede13dc085087 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Mon, 23 Mar 2026 15:05:33 -0400 Subject: [PATCH 39/91] chore: revert snapshots --- amplify-migration-apps/README.md | 6 - ...79371D7-SEM95NL3BKFT-holding.mappings.json | 40 +- ...-SEM95NL3BKFT-holding.target.template.json | 190 +----- ...C3F24A-1BTE7UH0TFE2I-holding.mappings.json | 8 +- ...1BTE7UH0TFE2I-holding.source.template.json | 6 + ...1BTE7UH0TFE2I-holding.target.template.json | 350 ----------- ...10-auth179371D7-SEM95NL3BKFT.mappings.json | 40 +- ...179371D7-SEM95NL3BKFT.target.template.json | 15 +- ...torage0EC3F24A-1BTE7UH0TFE2I.mappings.json | 8 +- ...EC3F24A-1BTE7UH0TFE2I.source.template.json | 7 + ...EC3F24A-1BTE7UH0TFE2I.target.template.json | 6 + ...10-auth179371D7-SEM95NL3BKFT.template.json | 4 + ...torage0EC3F24A-1BTE7UH0TFE2I.template.json | 6 + ...endonlyf8c4c57b-SC9H4E2DZU7A.template.json | 15 +- ...orages3c31471c3-MQFWTKK6ETYR.template.json | 7 + .../quotegeneratorbe/src/package.json | 2 +- .../quotegeneratorbe/src/package.json | 2 +- ...79371D7-DAPL7YOMHRB4-holding.mappings.json | 40 +- ...-DAPL7YOMHRB4-holding.target.template.json | 262 +------- ...EC3F24A-QQN18S0SITDH-holding.mappings.json | 8 +- ...-QQN18S0SITDH-holding.target.template.json | 427 ------------- ...44-auth179371D7-DAPL7YOMHRB4.mappings.json | 40 +- ...179371D7-DAPL7YOMHRB4.target.template.json | 18 +- ...storage0EC3F24A-QQN18S0SITDH.mappings.json | 8 +- ...44-auth179371D7-DAPL7YOMHRB4.template.json | 4 + ...2367c6822367c68-XLSGP9AEXCHG.template.json | 18 +- .../fitness-tracker/README.md | 29 +- ...94DE4A-11L4X799ZG2NW-holding.mappings.json | 8 +- ...11L4X799ZG2NW-holding.target.template.json | 575 ------------------ ...h179371D7-UGINV3RD10-holding.mappings.json | 40 +- ...D7-UGINV3RD10-holding.target.template.json | 343 +---------- ...C3F24A-11PWXC3G56PPP-holding.mappings.json | 8 +- ...11PWXC3G56PPP-holding.source.template.json | 6 + ...11PWXC3G56PPP-holding.target.template.json | 503 --------------- ...lytics5794DE4A-11L4X799ZG2NW.mappings.json | 8 +- ...eabb-auth179371D7-UGINV3RD10.mappings.json | 40 +- ...th179371D7-UGINV3RD10.target.template.json | 15 +- ...torage0EC3F24A-11PWXC3G56PPP.mappings.json | 8 +- ...EC3F24A-11PWXC3G56PPP.source.template.json | 7 + ...EC3F24A-11PWXC3G56PPP.target.template.json | 6 + ...eabb-auth179371D7-UGINV3RD10.template.json | 4 + ...torage0EC3F24A-11PWXC3G56PPP.template.json | 6 + ...odboard759ae00a-55VYEATUY8WM.template.json | 15 +- ...oodboardStorage-4QIRO85L6OVA.template.json | 7 + ...9371D7-1RF1TAQPAA1WW-holding.mappings.json | 40 +- ...1RF1TAQPAA1WW-holding.target.template.json | 46 +- ...C3F24A-13PB5LDXDDFTY-holding.mappings.json | 8 +- ...13PB5LDXDDFTY-holding.source.template.json | 14 + ...13PB5LDXDDFTY-holding.target.template.json | 206 ------- ...a-auth179371D7-1RF1TAQPAA1WW.mappings.json | 40 +- ...79371D7-1RF1TAQPAA1WW.target.template.json | 15 +- ...torage0EC3F24A-13PB5LDXDDFTY.mappings.json | 8 +- ...EC3F24A-13PB5LDXDDFTY.source.template.json | 8 +- ...EC3F24A-13PB5LDXDDFTY.target.template.json | 15 + ...a-auth179371D7-1RF1TAQPAA1WW.template.json | 4 + ...torage0EC3F24A-13PB5LDXDDFTY.template.json | 14 + ...atalog90174ac4-1DKM3MK2JKRFC.template.json | 15 +- ...orages338e5b439-DQ7IMC8LEGGI.template.json | 9 +- .../S3Trigger1ef46783/src/package.json | 2 +- .../S3Trigger1ef46783/src/package.json | 2 +- ...79371D7-CFDKYQIOG2UJ-holding.mappings.json | 40 +- ...-CFDKYQIOG2UJ-holding.target.template.json | 118 +--- ...EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json | 8 +- ...-MCTM3Q2BCVCJ-holding.source.template.json | 6 + ...-MCTM3Q2BCVCJ-holding.target.template.json | 278 --------- ...ec-auth179371D7-CFDKYQIOG2UJ.mappings.json | 40 +- ...179371D7-CFDKYQIOG2UJ.target.template.json | 15 +- ...storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json | 8 +- ...0EC3F24A-MCTM3Q2BCVCJ.source.template.json | 7 + ...0EC3F24A-MCTM3Q2BCVCJ.target.template.json | 6 + ...ec-auth179371D7-CFDKYQIOG2UJ.template.json | 4 + ...storage0EC3F24A-MCTM3Q2BCVCJ.template.json | 6 + ...tboards54040ecc-PH0BQLGBQAYV.template.json | 15 +- ...orages369f8ff1c-WRT91DP311WY.template.json | 7 + 74 files changed, 702 insertions(+), 3467 deletions(-) diff --git a/amplify-migration-apps/README.md b/amplify-migration-apps/README.md index 749a5306190..7c920739c6c 100644 --- a/amplify-migration-apps/README.md +++ b/amplify-migration-apps/README.md @@ -344,9 +344,3 @@ npx jest --no-coverage src/__tests__/commands/gen2-migration/generate/codegen-he ``` Always review the diff after updating to make sure the changes are intentional. - -> [!NOTE] -> Updating a snapshot for one phase (e.g., `generate`) currently requires updating -> snapshots for all phases (`generate` and `refactor`). The phases share state, so -> a change in one phase's expected output can affect the inputs or expectations of -> subsequent phases. diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json index 67e2b307779..759c58ea547 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json index e10bab8c187..01658891def 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_W9u2NBSRe" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,153 +204,13 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } } }, "Outputs": {} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json index 11b99a35613..606b64a3606 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" }, "Destination": { - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json index dfdd342e50f..28297393fb9 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, + "DependsOn": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -125,6 +128,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json index 7555863aae2..03d10f9a77a 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json @@ -2,356 +2,6 @@ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Temporary holding stack for Gen2 migration", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "55m5602upkjiv7819hcf2ht5v3", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_W9u2NBSRe" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_W9u2NBSRe", - ":", - "55m5602upkjiv7819hcf2ht5v3" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J", - "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json index 6fafe3b1474..c5c90be833c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json index 178ab4671af..15d25475c46 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json @@ -168,7 +168,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -180,7 +183,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -235,7 +241,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" } - } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC" + ] } }, "Conditions": { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json index a7741f3e5d5..d2fc08ac276 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" + "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json index c3476642330..d623d0c18b3 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json @@ -213,6 +213,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -249,6 +250,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -285,6 +287,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -321,6 +324,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -357,6 +361,7 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, + "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -411,6 +416,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -463,6 +469,7 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, + "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json index 2c4aa9226e0..a7608416efc 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, + "DependsOn": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -125,6 +128,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json index e4c6ac26f39..215b67b1a19 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json @@ -303,6 +303,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json index 7d2b002bc3d..4c65e86344c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json @@ -141,6 +141,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, + "DependsOn": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -197,6 +200,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json index f92f2b63239..fcc393b3d08 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json @@ -177,7 +177,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -189,7 +192,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -282,7 +288,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" } - } + }, + "DependsOn": [ + "IdentityPool" + ] } }, "Outputs": { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json index 87ee6202dd7..79c87cef7b1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json @@ -277,6 +277,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -313,6 +314,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -349,6 +351,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -385,6 +388,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -421,6 +425,7 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, + "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -475,6 +480,7 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -527,6 +533,7 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, + "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json index 333ff04a2bb..2143bf92d00 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json @@ -10,4 +10,4 @@ "dependencies": { "cli-table3": "0.6.5" } -} +} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json index 333ff04a2bb..2143bf92d00 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json @@ -10,4 +10,4 @@ "dependencies": { "cli-table3": "0.6.5" } -} +} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json index 53219238c26..514e117ec84 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json index cf563147a8d..f5445c5ca22 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json @@ -76,6 +76,27 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_olNpwuJIL" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -108,27 +129,6 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_olNpwuJIL" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -209,225 +209,13 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } } }, "Outputs": {} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json index 2bc43c0d589..0484781a42e 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "activity1E902D9C", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", + "LogicalResourceId": "activity1E902D9C" }, "Destination": { - "LogicalResourceId": "activity1E902D9C", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding", + "LogicalResourceId": "activity1E902D9C" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json index 5cba06b4afa..9d199bf4263 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.target.template.json @@ -2,433 +2,6 @@ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Temporary holding stack for Gen2 migration", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Here is your verification code {####}", - "EmailVerificationSubject": "Verification", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Here is your verification code {####}", - "EmailSubject": "Verification", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_olNpwuJIL" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_olNpwuJIL" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "6bdqt8vavvh3efopgb031lc3jg", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_olNpwuJIL" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:84e99afb-f5e8-4fa4-bc21-875242ea6689", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_olNpwuJIL", - ":", - "6bdqt8vavvh3efopgb031lc3jg" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthunauthenticate-LUKlk2oThU8X", - "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } - }, "activity1E902D9C": { "Type": "AWS::DynamoDB::Table", "Properties": { diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json index eba71ce8ad5..46ccb104e47 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json index eccbf15fe65..05a72f6824d 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json @@ -168,7 +168,8 @@ "UsernameConfiguration": { "CaseSensitive": false } - } + }, + "DependsOn": [] }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", @@ -179,7 +180,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -191,7 +195,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -246,7 +253,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole" } - } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC" + ] } }, "Conditions": { diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json index 1a8df8dff20..7c0f1c98009 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "DynamoDBTable", - "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4" + "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4", + "LogicalResourceId": "DynamoDBTable" }, "Destination": { - "LogicalResourceId": "activity1E902D9C", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", + "LogicalResourceId": "activity1E902D9C" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json index c51c35ae518..995d534b583 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json @@ -308,6 +308,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json index e93e870ea9b..b9cb6fb96d4 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json @@ -255,7 +255,8 @@ "UsernameConfiguration": { "CaseSensitive": false } - } + }, + "DependsOn": [] }, "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", @@ -266,7 +267,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -278,7 +282,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -371,7 +378,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole" } - } + }, + "DependsOn": [ + "IdentityPool" + ] } }, "Outputs": { diff --git a/amplify-migration-apps/fitness-tracker/README.md b/amplify-migration-apps/fitness-tracker/README.md index 4b556232426..bb575803389 100644 --- a/amplify-migration-apps/fitness-tracker/README.md +++ b/amplify-migration-apps/fitness-tracker/README.md @@ -300,6 +300,30 @@ npx amplify gen2-migration generate + branchName: "gen2-main" ``` +**Edit in `./amplify/backend.ts`:** + +Navigate to the Amplify Console to find the `` and `` on the ApiGateway AWS Console. For example: + +![](./images/gen1-rest-api-id.png) +![](./images/gen1-root-resource-id.png) + +```diff ++ const gen1RestApi = RestApi.fromRestApiAttributes(restApiStack, "Gen1RestApi", { ++ restApiId: '', ++ rootResourceId: '', ++ }) ++ const gen1RestApiPolicy = new Policy(restApiStack, "Gen1RestApiPolicy", { ++ statements: [ ++ new PolicyStatement({ ++ actions: ["execute-api:Invoke"], ++ resources: [`${gen1RestApi.arnForExecuteApi("*", "/*")}`] ++ }) ++ ] ++ }); ++ backend.auth.resources.authenticatedUserIamRole.attachInlinePolicy(gen1RestApiPolicy); +``` + + **Edit in `./amplify/function/lognutrition/resource.ts`:** ```diff @@ -374,6 +398,7 @@ npx amplify gen2-migration generate - const bodyParser = require('body-parser'); - const awsServerlessExpressMiddleware = require('aws-serverless-express/middleware'); - const { CognitoIdentityProviderClient, ListUsersCommand } = require('@aws-sdk/client-cognito-identity-provider'); +- module.exports = app; + import express from 'express'; + import bodyParser from 'body-parser'; + import awsServerlessExpressMiddleware from 'aws-serverless-express/middleware'; @@ -395,7 +420,7 @@ npx amplify gen2-migration generate + resourceGroupName: 'auth', ``` -**Edit in `./amplify/auth/fitnesstrackerd21d4fcdd21d4fcdPreSignup/index.js`:** +**Edit in `./amplify/auth/fitnesstrackerd21d4fcdd21d4fcdPreSignup/src/index.js`:** > Note: The hash value after `fitnesstracker` changes for each app; you will have a different one. @@ -409,7 +434,7 @@ npx amplify gen2-migration generate + export async function handler(event, context) { ``` -**Edit in `./amplify/function/fitnesstrackerd21d4fcdd21d4fcdPreSignup/email-filter-allowlist.js`:** +**Edit in `./amplify/function/fitnesstrackerd21d4fcdd21d4fcdPreSignup/src/email-filter-allowlist.js`:** > Note: The hash value after `fitnesstracker` changes for each app; you will have a different one. diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json index b4e92bdd13e..18fe4e64dc6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" }, "Destination": { - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json index ea38364c9a5..0e5ee0af9e1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json @@ -2,581 +2,6 @@ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Temporary holding stack for Gen2 migration", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr", - ":", - "2otm0qh3fj270k5tdn95cgjlm5" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } - }, - "activity1E902D9C": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/activity/Resource" - } - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Resource" - } - }, "moodboardKinesisKinesisStreamD5E97047": { "Type": "AWS::Kinesis::Stream", "Properties": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json index 55c5abf24ff..1c699ef3e6d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json index a481abd3935..e41793ca420 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1A4RMvPNr" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,306 +204,13 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } - }, - "activity1E902D9C": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/activity/Resource" - } } }, "Outputs": {} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json index 4bf067c041c..48bd336abd1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" }, "Destination": { - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json index 3a7e2136339..26152a149ed 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, + "DependsOn": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -125,6 +128,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json index 6fe3a05384c..d40a0c67f7d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json @@ -2,509 +2,6 @@ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Temporary holding stack for Gen2 migration", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr", - ":", - "2otm0qh3fj270k5tdn95cgjlm5" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } - }, - "activity1E902D9C": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/storage/activity/Resource" - } - }, "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json index f551223b652..2f3cfeed033 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "KinesisStream", - "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S" + "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S", + "LogicalResourceId": "KinesisStream" }, "Destination": { - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json index 60893879984..cc0780fc7cc 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json index 75f291f8426..1ba32e13166 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json @@ -168,7 +168,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -180,7 +183,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -235,7 +241,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" } - } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC" + ] } }, "Conditions": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json index f0f58245b71..7300a23d4f8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" + "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json index 91330cd6b72..06a94faaeaf 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json @@ -213,6 +213,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -249,6 +250,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -285,6 +287,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -321,6 +324,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -357,6 +361,7 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, + "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -411,6 +416,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -463,6 +469,7 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, + "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json index b5962a18290..603dfa5b725 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, + "DependsOn": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -125,6 +128,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json index 3c4e609fcb2..3557a8fa1e2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json @@ -303,6 +303,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json index b62dc855c35..8721f5c0e54 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json @@ -141,6 +141,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, + "DependsOn": [ + "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -197,6 +200,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json index 97ac6185c7d..ef08b4cd597 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json @@ -177,7 +177,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -189,7 +192,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -282,7 +288,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" } - } + }, + "DependsOn": [ + "IdentityPool" + ] } }, "Outputs": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json index 0ec74d2088d..8ae961bc698 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json @@ -277,6 +277,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -313,6 +314,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -349,6 +351,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -385,6 +388,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -421,6 +425,7 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, + "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -475,6 +480,7 @@ "amplify-moodboard-main-1959a-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -527,6 +533,7 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, + "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json index 4f9173460d0..c32bf4971d4 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json index f86fae3e9c3..c1c890be0a7 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_OFRBVzhq5" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,6 +204,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json index e19a55f6415..4df170487c2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" }, "Destination": { - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json index 436640b9b85..3d7eee45f75 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -103,6 +106,10 @@ "Managed": true, "SkipDestinationValidation": false }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -174,6 +181,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -286,6 +296,10 @@ } ] }, + "DependsOn": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json index aa18626f494..d75aadd5327 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json @@ -2,212 +2,6 @@ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Temporary holding stack for Gen2 migration", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "61e6oq3acg1at7f9da6cfna70d", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_OFRBVzhq5" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_OFRBVzhq5", - ":", - "61e6oq3acg1at7f9da6cfna70d" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M", - "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json index dcbb7ff0bfa..d48c12ba206 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json index a69d3b0e16d..187486f41fc 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json @@ -205,7 +205,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -217,7 +220,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -272,7 +278,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" } - } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC" + ] } }, "Conditions": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json index 8caf8958ceb..bf796ac778b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" + "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json index da74f677807..931e6107b36 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json @@ -274,6 +274,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -310,6 +311,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -346,6 +348,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -382,6 +385,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3AuthReadPolicy": { @@ -436,6 +440,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3TriggerBucketPolicy": { @@ -488,7 +493,8 @@ "Roles": [ "S3Trigger1ef46783LambdaRole1ef46783-main" ] - } + }, + "DependsOn": [] } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json index 9a1ece0d4ba..ee4724de7d0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -103,6 +106,10 @@ "Managed": true, "SkipDestinationValidation": false }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -174,6 +181,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -286,6 +296,10 @@ } ] }, + "DependsOn": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } @@ -525,6 +539,7 @@ ] } }, + "DependsOn": [], "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json index ba390bdc15b..9a3f81d31df 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json @@ -340,6 +340,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json index 4f29cfcc0ed..3eddc81943c 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json @@ -141,6 +141,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -175,6 +178,10 @@ "Managed": true, "SkipDestinationValidation": false }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", + "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -246,6 +253,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -358,6 +368,10 @@ } ] }, + "DependsOn": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json index f680f1c6eb8..b2b78850e70 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json @@ -177,7 +177,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -189,7 +192,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -282,7 +288,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" } - } + }, + "DependsOn": [ + "IdentityPool" + ] } }, "Outputs": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json index a194d381190..a490d8b9de5 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json @@ -267,6 +267,7 @@ ] } }, + "DependsOn": [], "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain" }, @@ -350,6 +351,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -386,6 +388,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -422,6 +425,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -458,6 +462,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3AuthReadPolicy": { @@ -512,6 +517,7 @@ "amplify-productcatalog-main-31323-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3TriggerBucketPolicy": { @@ -564,7 +570,8 @@ "Roles": [ "S3Trigger1ef46783LambdaRole1ef46783-main" ] - } + }, + "DependsOn": [] } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json index 540015a8b70..c090d8e5360 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json @@ -13,4 +13,4 @@ "@aws-sdk/protocol-http": "^3.58.0", "@aws-sdk/signature-v4": "^3.58.0" } -} +} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json index 540015a8b70..c090d8e5360 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json @@ -13,4 +13,4 @@ "@aws-sdk/protocol-http": "^3.58.0", "@aws-sdk/signature-v4": "^3.58.0" } -} +} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json index a5ab68ecc4a..ff5c6741705 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json index 0c82664165a..4bd455c3620 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_pXlpWF7QY" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,81 +204,13 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } } }, "Outputs": {} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json index 20edd36515b..a5ea8fd59de 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" }, "Destination": { - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json index ead58590739..580eda74c18 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, + "DependsOn": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -125,6 +128,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json index 548f64920d8..7375ab1657a 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json @@ -2,284 +2,6 @@ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Temporary holding stack for Gen2 migration", "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "oqgm3faeod0cr1b4v63iv4a7a", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_pXlpWF7QY" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_pXlpWF7QY", - ":", - "oqgm3faeod0cr1b4v63iv4a7a" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT", - "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { "Type": "AWS::S3::Bucket", "Properties": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json index 53e3abf3235..07eccbab939 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json index 9e7b4fc0c68..06fb757fe75 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json @@ -168,7 +168,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -180,7 +183,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - } + }, + "DependsOn": [ + "amplifyAuthUserPool4BA7F805" + ] }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -235,7 +241,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" } - } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC" + ] } }, "Conditions": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json index e8be4aa2427..129799390d2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" + "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json index 5df877c8f45..fadc25c61f3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json @@ -213,6 +213,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -249,6 +250,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -285,6 +287,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -321,6 +324,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -357,6 +361,7 @@ "amplify-projectboards-main-02940-unauthRole" ] }, + "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -411,6 +416,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -463,6 +469,7 @@ "amplify-projectboards-main-02940-unauthRole" ] }, + "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json index 3f1975883b2..60a42386506 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json @@ -69,6 +69,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, + "DependsOn": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -125,6 +128,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json index e004bc868c5..ce3bc368f1b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json @@ -303,6 +303,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json index 89a6d81ca6f..0c2b9cd2a9c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json @@ -141,6 +141,9 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, + "DependsOn": [ + "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" + ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -197,6 +200,9 @@ ] } }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json index 92d9ab6fde9..3aa2d612914 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json @@ -177,7 +177,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -189,7 +192,10 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - } + }, + "DependsOn": [ + "UserPool" + ] }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -282,7 +288,10 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" } - } + }, + "DependsOn": [ + "IdentityPool" + ] } }, "Outputs": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json index 1ebeee344f7..eed789328a5 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json @@ -277,6 +277,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -313,6 +314,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -349,6 +351,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -385,6 +388,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -421,6 +425,7 @@ "amplify-projectboards-main-02940-unauthRole" ] }, + "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -475,6 +480,7 @@ "amplify-projectboards-main-02940-authRole" ] }, + "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -527,6 +533,7 @@ "amplify-projectboards-main-02940-unauthRole" ] }, + "DependsOn": [], "Condition": "GuestReadAndList" } } From e5c5b13be882137bd0d9c1e55e52aa3398464861 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 16:59:58 -0400 Subject: [PATCH 40/91] fix(cli-internal): clone empty holding template to prevent cross-refactorer leak EMPTY_HOLDING_TEMPLATE was a shared mutable object. When Cfn.refactor() used it as the target template for a new holding stack, it mutated the shared object by adding resources. Subsequent refactorers that also needed a new holding stack would get the already-mutated object, causing auth resources to leak into the storage holding stack. Fix by cloning the constant before use. --- Prompt: inspect snapshot changes and explain auth resources in storage holding stack. --- ...79371D7-SEM95NL3BKFT-holding.mappings.json | 40 ++++++++-------- ...-SEM95NL3BKFT-holding.target.template.json | 46 +++++++++---------- ...C3F24A-1BTE7UH0TFE2I-holding.mappings.json | 8 ++-- ...1BTE7UH0TFE2I-holding.source.template.json | 6 --- ...10-auth179371D7-SEM95NL3BKFT.mappings.json | 40 ++++++++-------- ...179371D7-SEM95NL3BKFT.target.template.json | 15 ++---- ...torage0EC3F24A-1BTE7UH0TFE2I.mappings.json | 8 ++-- ...EC3F24A-1BTE7UH0TFE2I.source.template.json | 7 --- ...EC3F24A-1BTE7UH0TFE2I.target.template.json | 6 --- ...10-auth179371D7-SEM95NL3BKFT.template.json | 4 -- ...torage0EC3F24A-1BTE7UH0TFE2I.template.json | 6 --- ...endonlyf8c4c57b-SC9H4E2DZU7A.template.json | 15 ++---- ...orages3c31471c3-MQFWTKK6ETYR.template.json | 7 --- ...79371D7-DAPL7YOMHRB4-holding.mappings.json | 40 ++++++++-------- ...-DAPL7YOMHRB4-holding.target.template.json | 46 +++++++++---------- ...EC3F24A-QQN18S0SITDH-holding.mappings.json | 8 ++-- ...44-auth179371D7-DAPL7YOMHRB4.mappings.json | 40 ++++++++-------- ...179371D7-DAPL7YOMHRB4.target.template.json | 18 ++------ ...storage0EC3F24A-QQN18S0SITDH.mappings.json | 8 ++-- ...44-auth179371D7-DAPL7YOMHRB4.template.json | 4 -- ...2367c6822367c68-XLSGP9AEXCHG.template.json | 18 ++------ ...94DE4A-11L4X799ZG2NW-holding.mappings.json | 8 ++-- ...h179371D7-UGINV3RD10-holding.mappings.json | 40 ++++++++-------- ...D7-UGINV3RD10-holding.target.template.json | 46 +++++++++---------- ...C3F24A-11PWXC3G56PPP-holding.mappings.json | 8 ++-- ...11PWXC3G56PPP-holding.source.template.json | 6 --- ...lytics5794DE4A-11L4X799ZG2NW.mappings.json | 8 ++-- ...eabb-auth179371D7-UGINV3RD10.mappings.json | 40 ++++++++-------- ...th179371D7-UGINV3RD10.target.template.json | 15 ++---- ...torage0EC3F24A-11PWXC3G56PPP.mappings.json | 8 ++-- ...EC3F24A-11PWXC3G56PPP.source.template.json | 7 --- ...EC3F24A-11PWXC3G56PPP.target.template.json | 6 --- ...eabb-auth179371D7-UGINV3RD10.template.json | 4 -- ...torage0EC3F24A-11PWXC3G56PPP.template.json | 6 --- ...odboard759ae00a-55VYEATUY8WM.template.json | 15 ++---- ...oodboardStorage-4QIRO85L6OVA.template.json | 7 --- ...9371D7-1RF1TAQPAA1WW-holding.mappings.json | 40 ++++++++-------- ...1RF1TAQPAA1WW-holding.target.template.json | 46 +++++++++---------- ...C3F24A-13PB5LDXDDFTY-holding.mappings.json | 8 ++-- ...13PB5LDXDDFTY-holding.source.template.json | 14 ------ ...a-auth179371D7-1RF1TAQPAA1WW.mappings.json | 40 ++++++++-------- ...79371D7-1RF1TAQPAA1WW.target.template.json | 15 ++---- ...torage0EC3F24A-13PB5LDXDDFTY.mappings.json | 8 ++-- ...EC3F24A-13PB5LDXDDFTY.source.template.json | 8 +--- ...EC3F24A-13PB5LDXDDFTY.target.template.json | 15 ------ ...a-auth179371D7-1RF1TAQPAA1WW.template.json | 4 -- ...torage0EC3F24A-13PB5LDXDDFTY.template.json | 14 ------ ...atalog90174ac4-1DKM3MK2JKRFC.template.json | 15 ++---- ...orages338e5b439-DQ7IMC8LEGGI.template.json | 9 +--- ...79371D7-CFDKYQIOG2UJ-holding.mappings.json | 40 ++++++++-------- ...-CFDKYQIOG2UJ-holding.target.template.json | 46 +++++++++---------- ...EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json | 8 ++-- ...-MCTM3Q2BCVCJ-holding.source.template.json | 6 --- ...ec-auth179371D7-CFDKYQIOG2UJ.mappings.json | 40 ++++++++-------- ...179371D7-CFDKYQIOG2UJ.target.template.json | 15 ++---- ...storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json | 8 ++-- ...0EC3F24A-MCTM3Q2BCVCJ.source.template.json | 7 --- ...0EC3F24A-MCTM3Q2BCVCJ.target.template.json | 6 --- ...ec-auth179371D7-CFDKYQIOG2UJ.template.json | 4 -- ...storage0EC3F24A-MCTM3Q2BCVCJ.template.json | 6 --- ...tboards54040ecc-PH0BQLGBQAYV.template.json | 15 ++---- ...orages369f8ff1c-WRT91DP311WY.template.json | 7 --- .../_framework/clients/cloudformation.ts | 20 +++++--- .../commands/gen2-migration/refactor/cfn.ts | 2 +- 64 files changed, 402 insertions(+), 678 deletions(-) diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json index 759c58ea547..67e2b307779 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } }, { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json index 01658891def..0ac961a05d0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json @@ -71,27 +71,6 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -124,6 +103,27 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_W9u2NBSRe" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,10 +204,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json index 606b64a3606..11b99a35613 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json index 28297393fb9..dfdd342e50f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, - "DependsOn": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -128,9 +125,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json index c5c90be833c..6fafe3b1474 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } }, { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json index 15d25475c46..178ab4671af 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json @@ -168,10 +168,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -183,10 +180,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -241,10 +235,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + } } }, "Conditions": { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json index d2fc08ac276..a7741f3e5d5 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" }, "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json index d623d0c18b3..c3476642330 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json @@ -213,7 +213,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -250,7 +249,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -287,7 +285,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -324,7 +321,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -361,7 +357,6 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -416,7 +411,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -469,7 +463,6 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json index a7608416efc..2c4aa9226e0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, - "DependsOn": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -128,9 +125,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json index 215b67b1a19..e4c6ac26f39 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json @@ -303,10 +303,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json index 4c65e86344c..7d2b002bc3d 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" }, - "DependsOn": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -200,9 +197,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json index fcc393b3d08..f92f2b63239 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_1rvCNKN5B" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json index 79c87cef7b1..87ee6202dd7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json @@ -277,7 +277,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -314,7 +313,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -351,7 +349,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -388,7 +385,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -425,7 +421,6 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -480,7 +475,6 @@ "amplify-backendonly-main-5e0fa-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -533,7 +527,6 @@ "amplify-backendonly-main-5e0fa-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json index 514e117ec84..53219238c26 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } }, { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json index f5445c5ca22..a4cc052dc53 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json @@ -76,27 +76,6 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_olNpwuJIL" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -129,6 +108,27 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_olNpwuJIL" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -209,10 +209,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json index 0484781a42e..2bc43c0d589 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", - "LogicalResourceId": "activity1E902D9C" + "LogicalResourceId": "activity1E902D9C", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding", - "LogicalResourceId": "activity1E902D9C" + "LogicalResourceId": "activity1E902D9C", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json index 46ccb104e47..eba71ce8ad5 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } }, { "Source": { - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json index 05a72f6824d..eccbf15fe65 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.target.template.json @@ -168,8 +168,7 @@ "UsernameConfiguration": { "CaseSensitive": false } - }, - "DependsOn": [] + } }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", @@ -180,10 +179,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -195,10 +191,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -253,10 +246,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole" } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + } } }, "Conditions": { diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json index 7c0f1c98009..1a8df8dff20 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4", - "LogicalResourceId": "DynamoDBTable" + "LogicalResourceId": "DynamoDBTable", + "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4" }, "Destination": { - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", - "LogicalResourceId": "activity1E902D9C" + "LogicalResourceId": "activity1E902D9C", + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json index 995d534b583..c51c35ae518 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.template.json @@ -308,10 +308,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-gen-amplifyAuthauthenticatedU-cOJdlmnFCZS8" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json index b9cb6fb96d4..e93e870ea9b 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.template.json @@ -255,8 +255,7 @@ "UsernameConfiguration": { "CaseSensitive": false } - }, - "DependsOn": [] + } }, "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", @@ -267,10 +266,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -282,10 +278,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Zs9EZpCYX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -378,10 +371,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json index 18fe4e64dc6..b4e92bdd13e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json index 1c699ef3e6d..55c5abf24ff 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } }, { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json index e41793ca420..56297208ba2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json @@ -71,27 +71,6 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -124,6 +103,27 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1A4RMvPNr" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,10 +204,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json index 48bd336abd1..4bf067c041c 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json index 26152a149ed..3a7e2136339 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, - "DependsOn": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -128,9 +125,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json index 2f3cfeed033..f551223b652 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S", - "LogicalResourceId": "KinesisStream" + "LogicalResourceId": "KinesisStream", + "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json index cc0780fc7cc..60893879984 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } }, { "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json index 1ba32e13166..75f291f8426 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json @@ -168,10 +168,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -183,10 +180,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -241,10 +235,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + } } }, "Conditions": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json index 7300a23d4f8..f0f58245b71 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" }, "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json index 06a94faaeaf..91330cd6b72 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json @@ -213,7 +213,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -250,7 +249,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -287,7 +285,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -324,7 +321,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -361,7 +357,6 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -416,7 +411,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -469,7 +463,6 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json index 603dfa5b725..b5962a18290 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, - "DependsOn": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -128,9 +125,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json index 3557a8fa1e2..3c4e609fcb2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json @@ -303,10 +303,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json index 8721f5c0e54..b62dc855c35 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" }, - "DependsOn": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -200,9 +197,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json index ef08b4cd597..97ac6185c7d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_Cwvqs93Nc" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json index 8ae961bc698..0ec74d2088d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json @@ -277,7 +277,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -314,7 +313,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -351,7 +349,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -388,7 +385,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -425,7 +421,6 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -480,7 +475,6 @@ "amplify-moodboard-main-1959a-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -533,7 +527,6 @@ "amplify-moodboard-main-1959a-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json index c32bf4971d4..4f9173460d0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } }, { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json index c1c890be0a7..f86fae3e9c3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json @@ -71,27 +71,6 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -124,6 +103,27 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_OFRBVzhq5" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,10 +204,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json index 4df170487c2..e19a55f6415 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json index 3d7eee45f75..436640b9b85 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -106,10 +103,6 @@ "Managed": true, "SkipDestinationValidation": false }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -181,9 +174,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -296,10 +286,6 @@ } ] }, - "DependsOn": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json index d48c12ba206..dcbb7ff0bfa 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } }, { "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json index 187486f41fc..a69d3b0e16d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json @@ -205,10 +205,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -220,10 +217,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -278,10 +272,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + } } }, "Conditions": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json index bf796ac778b..8caf8958ceb 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" }, "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json index 931e6107b36..da74f677807 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json @@ -274,7 +274,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -311,7 +310,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -348,7 +346,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -385,7 +382,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3AuthReadPolicy": { @@ -440,7 +436,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3TriggerBucketPolicy": { @@ -493,8 +488,7 @@ "Roles": [ "S3Trigger1ef46783LambdaRole1ef46783-main" ] - }, - "DependsOn": [] + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json index ee4724de7d0..9a1ece0d4ba 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -106,10 +103,6 @@ "Managed": true, "SkipDestinationValidation": false }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -181,9 +174,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -296,10 +286,6 @@ } ] }, - "DependsOn": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } @@ -539,7 +525,6 @@ ] } }, - "DependsOn": [], "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json index 9a3f81d31df..ba390bdc15b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json @@ -340,10 +340,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json index 3eddc81943c..4f29cfcc0ed 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -178,10 +175,6 @@ "Managed": true, "SkipDestinationValidation": false }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" } @@ -253,9 +246,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", @@ -368,10 +358,6 @@ } ] }, - "DependsOn": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - ], "Metadata": { "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" } diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json index b2b78850e70..f680f1c6eb8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_66BkqNfdX" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json index a490d8b9de5..a194d381190 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json @@ -267,7 +267,6 @@ ] } }, - "DependsOn": [], "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain" }, @@ -351,7 +350,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -388,7 +386,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -425,7 +422,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -462,7 +458,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3AuthReadPolicy": { @@ -517,7 +512,6 @@ "amplify-productcatalog-main-31323-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3TriggerBucketPolicy": { @@ -570,8 +564,7 @@ "Roles": [ "S3Trigger1ef46783LambdaRole1ef46783-main" ] - }, - "DependsOn": [] + } } } } \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json index ff5c6741705..a5ab68ecc4a 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } }, { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json index 4bd455c3620..779bb840e47 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json @@ -71,27 +71,6 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -124,6 +103,27 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_pXlpWF7QY" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { @@ -204,10 +204,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json index a5ea8fd59de..20edd36515b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json index 580eda74c18..ead58590739 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, - "DependsOn": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -128,9 +125,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json index 07eccbab939..53e3abf3235 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPool" + "LogicalResourceId": "UserPool", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPoolClientWeb" + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPoolClient" + "LogicalResourceId": "UserPoolClient", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "IdentityPool" + "LogicalResourceId": "IdentityPool", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } }, { "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "IdentityPoolRoleMap" + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json index 06fb757fe75..9e7b4fc0c68 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json @@ -168,10 +168,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", @@ -183,10 +180,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - }, - "DependsOn": [ - "amplifyAuthUserPool4BA7F805" - ] + } }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", @@ -241,10 +235,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC" - ] + } } }, "Conditions": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json index 129799390d2..e8be4aa2427 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY", - "LogicalResourceId": "S3Bucket" + "LogicalResourceId": "S3Bucket", + "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" }, "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json index fadc25c61f3..5df877c8f45 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json @@ -213,7 +213,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -250,7 +249,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -287,7 +285,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -324,7 +321,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -361,7 +357,6 @@ "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -416,7 +411,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -469,7 +463,6 @@ "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json index 60a42386506..3f1975883b2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json @@ -69,9 +69,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, - "DependsOn": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -128,9 +125,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json index ce3bc368f1b..e004bc868c5 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json @@ -303,10 +303,6 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" } }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json index 0c2b9cd2a9c..89a6d81ca6f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json @@ -141,9 +141,6 @@ "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" }, - "DependsOn": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" - ], "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { @@ -200,9 +197,6 @@ ] } }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], "Metadata": { "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json index 3aa2d612914..92d9ab6fde9 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json @@ -177,10 +177,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", @@ -192,10 +189,7 @@ "RefreshToken": "days" }, "UserPoolId": "us-east-1_ct5s4IEz3" - }, - "DependsOn": [ - "UserPool" - ] + } }, "UserPoolClientRole": { "Type": "AWS::IAM::Role", @@ -288,10 +282,7 @@ "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" } - }, - "DependsOn": [ - "IdentityPool" - ] + } } }, "Outputs": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json index eed789328a5..1ebeee344f7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json @@ -277,7 +277,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPublic" }, "S3AuthProtectedPolicy": { @@ -314,7 +313,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthProtected" }, "S3AuthPrivatePolicy": { @@ -351,7 +349,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthPrivate" }, "S3AuthUploadPolicy": { @@ -388,7 +385,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "CreateAuthUploads" }, "S3GuestPublicPolicy": { @@ -425,7 +421,6 @@ "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [], "Condition": "CreateGuestPublic" }, "S3AuthReadPolicy": { @@ -480,7 +475,6 @@ "amplify-projectboards-main-02940-authRole" ] }, - "DependsOn": [], "Condition": "AuthReadAndList" }, "S3GuestReadPolicy": { @@ -533,7 +527,6 @@ "amplify-projectboards-main-02940-unauthRole" ] }, - "DependsOn": [], "Condition": "GuestReadAndList" } } diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts index af781ffacd7..3f953fe3322 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/clients/cloudformation.ts @@ -109,8 +109,7 @@ export class CloudFormationMock { this.mock .on(cloudformation.DescribeStacksCommand) .callsFake(async (input: cloudformation.DescribeStacksInput): Promise => { - const template = this._templateForStack.get(input.StackName!); - if (!template) { + if (!this._templateForStack.has(input.StackName!)) { throw new cloudformation.CloudFormationServiceException({ name: 'ValidationError', message: `stack ${input.StackName} does not exist`, @@ -139,8 +138,13 @@ export class CloudFormationMock { this.mock .on(cloudformation.GetTemplateCommand) .callsFake(async (input: cloudformation.GetTemplateCommandInput): Promise => { + const templateBody = this._templateForStack.get(input.StackName!); + if (!templateBody) { + throw new Error(`Unable to find template for stack ${input.StackName}`); + } return { - TemplateBody: this._templateForStack.get(input.StackName!), + // create a clone so our code doesn't mutate the inner objects. + TemplateBody: JSON.stringify(JSON.parse(templateBody)), $metadata: {}, }; }); @@ -152,8 +156,8 @@ export class CloudFormationMock { async (input: cloudformation.CreateStackRefactorCommandInput): Promise => { const source = input.StackDefinitions![0]; const target = input.StackDefinitions![1]; - this._templateForStack.set(source.StackName!, source.TemplateBody!); - this._templateForStack.set(target.StackName!, target.TemplateBody!); + this._setTemplate(source.StackName!, source.TemplateBody!); + this._setTemplate(target.StackName!, target.TemplateBody!); return { StackRefactorId: `${Date.now()}`, $metadata: {} }; }, ); @@ -190,8 +194,12 @@ export class CloudFormationMock { this.mock .on(cloudformation.UpdateStackCommand) .callsFake(async (input: cloudformation.UpdateStackCommandInput): Promise => { - this._templateForStack.set(input.StackName!, input.TemplateBody!); + this._setTemplate(input.StackName!, input.TemplateBody!); return { StackId: input.StackName, $metadata: {} }; }); } + + private _setTemplate(stackName: string, templateBody: string) { + this._templateForStack.set(stackName, templateBody); + } } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index 8aea4a70e8a..f4046480cff 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -127,7 +127,7 @@ export class Cfn { } const sourceTemplate = await this.fetchTemplate(sourceStackId); - const targetTemplate = targetStack ? await this.fetchTemplate(targetStackId) : EMPTY_HOLDING_TEMPLATE; + const targetTemplate = targetStack ? await this.fetchTemplate(targetStackId) : JSON.parse(JSON.stringify(EMPTY_HOLDING_TEMPLATE)); for (const mapping of resourceMappings) { targetTemplate.Resources[mapping.Destination.LogicalResourceId] = sourceTemplate.Resources[mapping.Source.LogicalResourceId]; From 1e72d2aad995dc853f8014eeee39284c05778918 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 17:09:13 -0400 Subject: [PATCH 41/91] docs: add coding guideline for module-level mutable constants Add "Don't mutate module-level constant objects" to the Mutability section of CODING_GUIDELINES.md. This pattern caused a real bug where EMPTY_HOLDING_TEMPLATE was shared across refactorers and accumulated resources from previous calls. --- Prompt: review session and add needed guidelines. --- CODING_GUIDELINES.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md index 0fb54fb4692..8bd13545158 100644 --- a/CODING_GUIDELINES.md +++ b/CODING_GUIDELINES.md @@ -129,6 +129,43 @@ funcGenerator.setAuthGenerator(authGenerator); --- +### Don't mutate module-level constant objects + +`const` prevents reassignment but does not prevent mutation of the object's properties. A module-level `const` object that gets passed to a function and mutated there silently becomes shared mutable state — every subsequent caller sees the mutations from previous calls. + +This is especially dangerous when the constant looks like a template or default value that multiple callers use as a starting point. The first caller mutates it, and the second caller unknowingly starts with the first caller's leftovers. + +```typescript +// Bad — shared object mutated by callers +const EMPTY_TEMPLATE = { Resources: {} }; + +function createStack(resources: Record) { + const template = EMPTY_TEMPLATE; // not a copy! + for (const [id, r] of Object.entries(resources)) { + template.Resources[id] = r; // mutates the shared constant + } + return template; +} + +// Second call sees resources from the first call +createStack({ BucketA: bucket }); +createStack({ BucketB: bucket }); // template now has both BucketA and BucketB +``` + +**Instead:** Clone the object before mutating it, or use a factory function that returns a fresh object each time. + +```typescript +// Good — clone before use +const template = JSON.parse(JSON.stringify(EMPTY_TEMPLATE)); + +// Good — factory function +function emptyTemplate() { + return { Resources: {} }; +} +``` + +--- + ### Prefer `const` over `let` Avoid `let` when the code can be restructured to use `const` instead. Even when `let` is technically correct (the variable is reassigned), the reassignment pattern itself is often the problem — it usually means branching logic is being used to populate variables that are consumed later, making it hard to reason about what values they hold at any given point. From 98a01d3d955e41f1df5fe3226ec92666707cdd96 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 19:22:40 -0400 Subject: [PATCH 42/91] chore(cli-internal): remove duplicate ResourceMapping, add dictionary words Remove local ResourceMapping interface from category-refactorer and use the SDK type directly. Add refactorer, refactorers, and changeset to the eslint spellcheck dictionary. --- Prompt: remove ResourceMapping interface, add dictionary words. --- .eslint-dictionary.json | 3 +++ .../refactor/workflow/category-refactorer.ts | 10 +--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.eslint-dictionary.json b/.eslint-dictionary.json index 7610461e76e..c3f1d57f407 100644 --- a/.eslint-dictionary.json +++ b/.eslint-dictionary.json @@ -67,6 +67,7 @@ "captcha", "cfn", "cfnlambda", + "changeset", "chatbot", "chatbots", "chdir", @@ -333,6 +334,8 @@ "repo", "reqheaders", "resolvers", + "refactorer", + "refactorers", "rethrow", "retrier", "rimraf", diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 26f39447e90..8d7a9baaad5 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -1,4 +1,4 @@ -import { Parameter } from '@aws-sdk/client-cloudformation'; +import { Parameter, ResourceMapping } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; import { Planner } from '../../planner'; @@ -26,14 +26,6 @@ export interface ResolvedStack { readonly parameters: Parameter[]; } -/** - * Resource mapping for the CloudFormation StackRefactor API. - */ -export interface ResourceMapping { - readonly Source: { readonly StackName: string; readonly LogicalResourceId: string }; - readonly Destination: { readonly StackName: string; readonly LogicalResourceId: string }; -} - /** * Mappings-only refactor plan. Templates are fetched fresh at execution time * so that sequential refactorers targeting the same stack always see current state. From 676324f02581e29d44e2e6216c26e68a542830cc Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 19:26:00 -0400 Subject: [PATCH 43/91] style(cli-internal): consistent property order in ResourceMapping objects Reorder ResourceMapping properties to StackName before LogicalResourceId for consistency across forward and rollback refactorers. Update snapshot mapping files accordingly. --- Prompt: I've made some more changes - commit. --- ...79371D7-SEM95NL3BKFT-holding.mappings.json | 40 +++++++++---------- ...C3F24A-1BTE7UH0TFE2I-holding.mappings.json | 8 ++-- ...10-auth179371D7-SEM95NL3BKFT.mappings.json | 40 +++++++++---------- ...torage0EC3F24A-1BTE7UH0TFE2I.mappings.json | 8 ++-- ...79371D7-DAPL7YOMHRB4-holding.mappings.json | 40 +++++++++---------- ...EC3F24A-QQN18S0SITDH-holding.mappings.json | 8 ++-- ...44-auth179371D7-DAPL7YOMHRB4.mappings.json | 40 +++++++++---------- ...storage0EC3F24A-QQN18S0SITDH.mappings.json | 8 ++-- ...94DE4A-11L4X799ZG2NW-holding.mappings.json | 8 ++-- ...h179371D7-UGINV3RD10-holding.mappings.json | 40 +++++++++---------- ...C3F24A-11PWXC3G56PPP-holding.mappings.json | 8 ++-- ...lytics5794DE4A-11L4X799ZG2NW.mappings.json | 8 ++-- ...eabb-auth179371D7-UGINV3RD10.mappings.json | 40 +++++++++---------- ...torage0EC3F24A-11PWXC3G56PPP.mappings.json | 8 ++-- ...9371D7-1RF1TAQPAA1WW-holding.mappings.json | 40 +++++++++---------- ...C3F24A-13PB5LDXDDFTY-holding.mappings.json | 8 ++-- ...a-auth179371D7-1RF1TAQPAA1WW.mappings.json | 40 +++++++++---------- ...torage0EC3F24A-13PB5LDXDDFTY.mappings.json | 8 ++-- ...79371D7-CFDKYQIOG2UJ-holding.mappings.json | 40 +++++++++---------- ...EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json | 8 ++-- ...ec-auth179371D7-CFDKYQIOG2UJ.mappings.json | 40 +++++++++---------- ...storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json | 8 ++-- .../workflow/forward-category-refactorer.ts | 8 ++-- .../workflow/rollback-category-refactorer.ts | 8 ++-- 24 files changed, 256 insertions(+), 256 deletions(-) diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json index 67e2b307779..e82e33ad210 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json index 11b99a35613..606b64a3606 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" }, "Destination": { - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json index 6fafe3b1474..c5c90be833c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" + "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json index a7741f3e5d5..d2fc08ac276 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" + "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I" + "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json index 53219238c26..0ba71166ed4 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json index 2bc43c0d589..0484781a42e 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "activity1E902D9C", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", + "LogicalResourceId": "activity1E902D9C" }, "Destination": { - "LogicalResourceId": "activity1E902D9C", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH-holding", + "LogicalResourceId": "activity1E902D9C" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json index eba71ce8ad5..46ccb104e47 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG" + "StackName": "amplify-discussions-main-d5a80-authdiscussions22367c6822367c68-XLSGP9AEXCHG", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json index 1a8df8dff20..7c0f1c98009 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "DynamoDBTable", - "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4" + "StackName": "amplify-discussions-main-d5a80-storageactivity-MDZCD7YSRDN4", + "LogicalResourceId": "DynamoDBTable" }, "Destination": { - "LogicalResourceId": "activity1E902D9C", - "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH" + "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-storage0EC3F24A-QQN18S0SITDH", + "LogicalResourceId": "activity1E902D9C" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json index b4e92bdd13e..18fe4e64dc6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" }, "Destination": { - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json index 55c5abf24ff..79538fa7fde 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json index 4bf067c041c..48bd336abd1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" }, "Destination": { - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json index f551223b652..2f3cfeed033 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "KinesisStream", - "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S" + "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S", + "LogicalResourceId": "KinesisStream" }, "Destination": { - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json index 60893879984..cc0780fc7cc 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" + "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json index f0f58245b71..7300a23d4f8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" + "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP" + "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json index 4f9173460d0..3ff71e8af10 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json index e19a55f6415..4df170487c2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" }, "Destination": { - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json index dcbb7ff0bfa..d48c12ba206 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" + "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json index 8caf8958ceb..bf796ac778b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" + "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY" + "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json index a5ab68ecc4a..f31a9ecca03 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json index 20edd36515b..a5ea8fd59de 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" }, "Destination": { - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json index 53e3abf3235..07eccbab939 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" + "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json index e8be4aa2427..129799390d2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "S3Bucket", - "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" + "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY", + "LogicalResourceId": "S3Bucket" }, "Destination": { - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ" + "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" } } ] \ No newline at end of file diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index e1ed920c2d0..a470a55b25c 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -53,8 +53,8 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { } const targetId = matchedTargets[0]; mappings.push({ - Source: { LogicalResourceId: sourceId, StackName: sourceStackId }, - Destination: { LogicalResourceId: targetId, StackName: targetStackId }, + Source: { StackName: sourceStackId, LogicalResourceId: sourceId }, + Destination: { StackName: targetStackId, LogicalResourceId: targetId }, }); } return mappings; @@ -133,8 +133,8 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const holdingStackName = this.getHoldingStackName(gen2StackName); const resourceMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ - Source: { LogicalResourceId: m.Destination.LogicalResourceId, StackName: gen2StackName }, - Destination: { LogicalResourceId: m.Destination.LogicalResourceId, StackName: holdingStackName }, + Source: { StackName: gen2StackName, LogicalResourceId: m.Destination.LogicalResourceId }, + Destination: { StackName: holdingStackName, LogicalResourceId: m.Destination.LogicalResourceId }, })); const holdingStack = await this.cfn.findStack(holdingStackName); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index e89326e0cc3..a8be4677409 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -45,8 +45,8 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { continue; } mappings.push({ - Source: { LogicalResourceId: sourceId, StackName: sourceStackId }, - Destination: { LogicalResourceId: gen1LogicalId, StackName: targetStackId }, + Source: { StackName: sourceStackId, LogicalResourceId: sourceId }, + Destination: { StackName: targetStackId, LogicalResourceId: gen1LogicalId }, }); } return mappings; @@ -113,8 +113,8 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { if (!holdingStack) return []; const resourceMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ - Source: { LogicalResourceId: m.Source.LogicalResourceId, StackName: holdingStackName }, - Destination: { LogicalResourceId: m.Source.LogicalResourceId, StackName: gen2StackName }, + Source: { StackName: holdingStackName, LogicalResourceId: m.Source.LogicalResourceId }, + Destination: { StackName: gen2StackName, LogicalResourceId: m.Source.LogicalResourceId }, })); return [ From 20a1610746cb269496e56c85093783090e693748 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Mon, 23 Mar 2026 20:44:28 -0400 Subject: [PATCH 44/91] chore: regen fitness tracker snapshots --- ...179371D7-W7QZVETRVIH-holding.mappings.json | 12 + ...7-W7QZVETRVIH-holding.source.template.json | 1090 +++++++++++++++ ...7-W7QZVETRVIH-holding.target.template.json | 225 ++++ ...799-auth179371D7-W7QZVETRVIH.mappings.json | 52 + ...h179371D7-W7QZVETRVIH.source.template.json | 216 +++ ...h179371D7-W7QZVETRVIH.target.template.json | 1102 ++++++++++++++++ ...799-auth179371D7-W7QZVETRVIH.mappings.json | 12 + ...h179371D7-W7QZVETRVIH.source.template.json | 81 ++ ...h179371D7-W7QZVETRVIH.target.template.json | 1100 ++++++++++++++++ ...-auth179371D7-W7QZVETRVIH.parameters.json} | 0 ...799-auth179371D7-W7QZVETRVIH.template.json | 1151 ++++++++++++++++ ...e7c9ceb2e7c-13Y9822PMAATD.parameters.json} | 34 +- ...eb2e7c9ceb2e7c-13Y9822PMAATD.template.json | 373 ++++++ ...serPoolGroups-MXIW00J9KSSV.parameters.json | 30 + ...huserPoolGroups-MXIW00J9KSSV.template.json | 91 ++ .../#current-cloud-backend/amplify-meta.json | 464 +++---- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 1173 ++++++++--------- .../api/fitnesstracker/build/parameters.json | 6 +- .../build/stacks/ConnectionStack.json | 2 +- .../fitnesstracker/build/stacks/Exercise.json | 18 +- .../api/fitnesstracker/build/stacks/Meal.json | 16 +- .../build/stacks/WorkoutProgram.json | 18 +- .../api/fitnesstracker/cli-inputs.json | 4 +- .../api/fitnesstracker/parameters.json | 2 +- .../nutritionapi-cloudformation-template.json | 18 +- .../auth-trigger-cloudformation-template.json | 14 +- ...2e7c9ceb2e7c-cloudformation-template.json} | 20 +- .../build/parameters.json | 18 +- .../cli-inputs.json | 14 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 5 +- .../nutritionapi-cloudformation-template.json | 18 +- ...2e7c9ceb2e7c-cloudformation-template.json} | 20 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../build/root-cloudformation-stack.json | 278 ++-- .../admin/admin-cloudformation-template.json | 14 +- ...e7cPreSignup-cloudformation-template.json} | 8 +- .../lognutrition-cloudformation-template.json | 4 +- .../build/root-cloudformation-stack.json | 278 ++-- .../backend-config.json | 32 +- .../admin/admin-cloudformation-template.json | 14 +- .../function/admin/function-parameters.json | 2 +- .../parameters.json | 4 - .../amplify.state | 0 .../custom-policies.json | 0 ...e7cPreSignup-cloudformation-template.json} | 8 +- .../function-parameters.json | 8 +- .../parameters.json | 4 + .../src/email-filter-allowlist.js | 0 .../src/event.json | 0 .../src/index.js | 0 .../src/package.json | 2 +- .../src/yarn.lock | 0 .../lognutrition-cloudformation-template.json | 4 +- .../amplify/backend/amplify-meta.json | 460 +++---- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 1173 ++++++++--------- .../api/fitnesstracker/build/parameters.json | 6 +- .../build/stacks/ConnectionStack.json | 2 +- .../fitnesstracker/build/stacks/Exercise.json | 18 +- .../api/fitnesstracker/build/stacks/Meal.json | 16 +- .../build/stacks/WorkoutProgram.json | 18 +- .../api/fitnesstracker/cli-inputs.json | 4 +- .../api/fitnesstracker/parameters.json | 2 +- .../nutritionapi-cloudformation-template.json | 18 +- .../auth-trigger-cloudformation-template.json | 14 +- ...2e7c9ceb2e7c-cloudformation-template.json} | 20 +- .../build/parameters.json | 18 +- .../cli-inputs.json | 14 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 5 +- .../nutritionapi-cloudformation-template.json | 18 +- ...2e7c9ceb2e7c-cloudformation-template.json} | 20 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../build/root-cloudformation-stack.json | 278 ++-- .../admin/admin-cloudformation-template.json | 14 +- ...e7cPreSignup-cloudformation-template.json} | 8 +- .../lognutrition-cloudformation-template.json | 4 +- .../build/root-cloudformation-stack.json | 278 ++-- .../amplify/backend/backend-config.json | 32 +- .../admin/admin-cloudformation-template.json | 14 +- .../function/admin/function-parameters.json | 2 +- .../parameters.json | 4 - .../amplify.state | 0 .../custom-policies.json | 0 ...e7cPreSignup-cloudformation-template.json} | 8 +- .../function-parameters.json | 8 +- .../parameters.json | 4 + .../src/email-filter-allowlist.js | 0 .../src/event.json | 0 .../src/index.js | 0 .../src/package.json | 2 +- .../src/yarn.lock | 0 .../lognutrition-cloudformation-template.json | 4 +- .../amplify-dependent-resources-ref.d.ts | 4 +- .../amplify/team-provider-info.json | 32 +- ...NestedStackA-NPJK8GP5TJ4A.description.txt} | 0 ...agerNestedStackA-NPJK8GP5TJ4A.outputs.json | 6 + ...rNestedStackA-NPJK8GP5TJ4A.parameters.json | 6 + ...erNestedStackA-NPJK8GP5TJ4A.template.json} | 44 +- ...dStackConne-1Q5Y2AFMDU94J.description.txt} | 0 ...stedStackConne-1Q5Y2AFMDU94J.outputs.json} | 0 ...edStackConne-1Q5Y2AFMDU94J.parameters.json | 30 + ...tedStackConne-1Q5Y2AFMDU94J.template.json} | 44 +- ...xerciseNest-1FIMJDNV42OQ7.description.txt} | 0 ...ackExerciseNest-1FIMJDNV42OQ7.outputs.json | 22 + ...ExerciseNest-1FIMJDNV42OQ7.parameters.json | 46 + ...kExerciseNest-1FIMJDNV42OQ7.template.json} | 300 ++--- ...estedStackR-1T4FU8CXY0GK6.description.txt} | 0 ...ealNestedStackR-1T4FU8CXY0GK6.outputs.json | 18 + ...NestedStackR-1T4FU8CXY0GK6.parameters.json | 46 + ...lNestedStackR-1T4FU8CXY0GK6.template.json} | 280 ++-- ...dStackWorkou-93OL8N89CFYW.description.txt} | 0 ...stedStackWorkou-93OL8N89CFYW.outputs.json} | 8 +- ...edStackWorkou-93OL8N89CFYW.parameters.json | 46 + ...tedStackWorkou-93OL8N89CFYW.template.json} | 296 ++--- ...-auth179371D7-W7QZVETRVIH.description.txt} | 2 +- ...d799-auth179371D7-W7QZVETRVIH.outputs.json | 38 + ...-auth179371D7-W7QZVETRVIH.parameters.json} | 0 ...99-auth179371D7-W7QZVETRVIH.template.json} | 106 +- ...data7552DF31-11R0N9NYGZMM.description.txt} | 0 ...799-data7552DF31-11R0N9NYGZMM.outputs.json | 26 + ...-data7552DF31-11R0N9NYGZMM.parameters.json | 38 + ...9-data7552DF31-11R0N9NYGZMM.template.json} | 230 ++-- ...api43EA27F6-1RS06T9AL8ZH6.description.txt} | 2 +- ...dminapi43EA27F6-1RS06T9AL8ZH6.outputs.json | 14 + ...napi43EA27F6-1RS06T9AL8ZH6.parameters.json | 14 + ...inapi43EA27F6-1RS06T9AL8ZH6.template.json} | 84 +- ...api72914ECD-1738NNTUFA9K8.description.txt} | 2 +- ...tionapi72914ECD-1738NNTUFA9K8.outputs.json | 14 + ...napi72914ECD-1738NNTUFA9K8.parameters.json | 14 + ...onapi72914ECD-1738NNTUFA9K8.template.json} | 96 +- ...en2main-branch-a09655d799.description.txt} | 2 +- ...r-gen2main-branch-a09655d799.outputs.json} | 20 +- ...en2main-branch-a09655d799.parameters.json} | 0 ...-gen2main-branch-a09655d799.template.json} | 120 +- ...gerNestedStackA-1A2OIOGDUJDM8.outputs.json | 6 - ...NestedStackA-1A2OIOGDUJDM8.parameters.json | 6 - ...edStackConne-1PZTW5BMDQ740.parameters.json | 30 - ...tackExerciseNest-GSLDGK4G6DEO.outputs.json | 22 - ...kExerciseNest-GSLDGK4G6DEO.parameters.json | 46 - ...MealNestedStackR-8W0VUDLMFHA1.outputs.json | 18 - ...lNestedStackR-8W0VUDLMFHA1.parameters.json | 46 - ...dStackWorkou-1KL1EWK5B27DM.parameters.json | 46 - ...eb3-auth179371D7-T5KTLQB5RTR1.outputs.json | 38 - ...eb3-data7552DF31-FY14PTEHE5GQ.outputs.json | 26 - ...-data7552DF31-FY14PTEHE5GQ.parameters.json | 38 - ...adminapi43EA27F6-1G3WMFGGD1GX.outputs.json | 14 - ...inapi43EA27F6-1G3WMFGGD1GX.parameters.json | 14 - ...itionapi72914ECD-UEOCVVQH4SZ3.outputs.json | 14 - ...onapi72914ECD-UEOCVVQH4SZ3.parameters.json | 14 - ...ifitnesstracker-1T86UW9NDGVCS.outputs.json | 20 - ...fc1196b0fc119-IU8FJDZI54QH.description.txt | 1 - ...b0fc1196b0fc119-IU8FJDZI54QH.template.json | 480 ------- ...erPoolGroups-1RDWF2H8163RP.description.txt | 1 - ...huserPoolGroups-1RDWF2H8163RP.outputs.json | 6 - ...erPoolGroups-1RDWF2H8163RP.parameters.json | 30 - ...0fc119PreSignup-IQSLCEZIETI0.template.json | 242 ---- ...-fitnesstracker-main-0683c.parameters.json | 14 - ...ayAuthStack-1WV7E8TEEBZCC.description.txt} | 0 ...tewayAuthStack-1WV7E8TEEBZCC.outputs.json} | 0 ...ayAuthStack-1WV7E8TEEBZCC.parameters.json} | 8 +- ...ewayAuthStack-1WV7E8TEEBZCC.template.json} | 0 ...mLambdaStack-I19H7X9HZF2Z.description.txt} | 0 ...stomLambdaStack-I19H7X9HZF2Z.outputs.json} | 0 ...mLambdaStack-I19H7X9HZF2Z.parameters.json} | 22 +- ...tomLambdaStack-I19H7X9HZF2Z.template.json} | 14 +- ...-apiadminapi-PR5X22IZPJYP.description.txt} | 0 ...c9a-apiadminapi-PR5X22IZPJYP.outputs.json} | 4 +- ...-apiadminapi-PR5X22IZPJYP.parameters.json} | 10 +- ...9a-apiadminapi-PR5X22IZPJYP.template.json} | 16 +- ...ectionStack-1V56DVJ0AK6M2.description.txt} | 0 ...ConnectionStack-1V56DVJ0AK6M2.outputs.json | 1 + ...ectionStack-1V56DVJ0AK6M2.parameters.json} | 8 +- ...nnectionStack-1V56DVJ0AK6M2.template.json} | 2 +- ...esourcesjson-NRPIHV30QY0G.description.txt} | 0 ...omResourcesjson-NRPIHV30QY0G.outputs.json} | 0 ...esourcesjson-NRPIHV30QY0G.parameters.json} | 6 +- ...mResourcesjson-NRPIHV30QY0G.template.json} | 0 ...BQ-Exercise-1BEMQSWOJN9LA.description.txt} | 0 ...BJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json} | 12 +- ...BQ-Exercise-1BEMQSWOJN9LA.parameters.json} | 20 +- ...JJBQ-Exercise-1BEMQSWOJN9LA.template.json} | 18 +- ...MBJJBQ-Meal-1M9W7UKSTT0UZ.description.txt} | 0 ...6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json} | 10 +- ...MBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json} | 14 +- ...OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json} | 16 +- ...rkoutProgram-W5V18SR651C7.description.txt} | 0 ...-WorkoutProgram-W5V18SR651C7.outputs.json} | 24 +- ...rkoutProgram-W5V18SR651C7.parameters.json} | 6 +- ...WorkoutProgram-W5V18SR651C7.template.json} | 18 +- ...tnesstracker-8NP6OMMBJJBQ.description.txt} | 0 ...pifitnesstracker-8NP6OMMBJJBQ.outputs.json | 20 + ...tnesstracker-8NP6OMMBJJBQ.parameters.json} | 6 +- ...fitnesstracker-8NP6OMMBJJBQ.template.json} | 2 +- ...nutritionapi-ZQRRV8SP6B3V.description.txt} | 0 ...apinutritionapi-ZQRRV8SP6B3V.outputs.json} | 4 +- ...nutritionapi-ZQRRV8SP6B3V.parameters.json} | 10 +- ...pinutritionapi-ZQRRV8SP6B3V.template.json} | 16 +- ...2e7c9ceb2e7c-13Y9822PMAATD.description.txt | 1 + ...eb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json} | 14 +- ...2e7c9ceb2e7c-13Y9822PMAATD.parameters.json | 178 +++ ...eb2e7c9ceb2e7c-13Y9822PMAATD.template.json | 480 +++++++ ...erPoolGroups-MXIW00J9KSSV.description.txt} | 0 ...thuserPoolGroups-MXIW00J9KSSV.outputs.json | 6 + ...serPoolGroups-MXIW00J9KSSV.parameters.json | 30 + ...userPoolGroups-MXIW00J9KSSV.template.json} | 24 +- ...unctionadmin-ELA4T2BKK7S3.description.txt} | 0 ...a-functionadmin-ELA4T2BKK7S3.outputs.json} | 4 +- ...unctionadmin-ELA4T2BKK7S3.parameters.json} | 10 +- ...-functionadmin-ELA4T2BKK7S3.template.json} | 14 +- ...e7cPreSignup-3S3GBRYFYV12.description.txt} | 0 ...eb2e7cPreSignup-3S3GBRYFYV12.outputs.json} | 8 +- ...e7cPreSignup-3S3GBRYFYV12.parameters.json} | 6 +- ...eb2e7cPreSignup-3S3GBRYFYV12.template.json | 242 ++++ ...lognutrition-T6VGX60KCB8H.description.txt} | 0 ...ionlognutrition-T6VGX60KCB8H.outputs.json} | 4 +- ...lognutrition-T6VGX60KCB8H.parameters.json} | 4 +- ...onlognutrition-T6VGX60KCB8H.template.json} | 4 +- ...-fitnesstracker-main-6fc9a.description.txt | 1 + ...fy-fitnesstracker-main-6fc9a.outputs.json} | 22 +- ...-fitnesstracker-main-6fc9a.parameters.json | 14 + ...y-fitnesstracker-main-6fc9a.template.json} | 110 +- .../gen2-migration/refactor/refactor.test.ts | 4 + 227 files changed, 10559 insertions(+), 4843 deletions(-) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json rename amplify-migration-apps/fitness-tracker/{_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.outputs.json => _snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json rename amplify-migration-apps/fitness-tracker/{_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.parameters.json => _snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json} (83%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/{fitnesstracker6b0fc1196b0fc119 => fitnesstracker9ceb2e7c9ceb2e7c}/build/auth-trigger-cloudformation-template.json (94%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json => #current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/auth/fitnesstracker6b0fc1196b0fc119 => #current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c}/build/parameters.json (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/auth/fitnesstracker6b0fc1196b0fc119 => #current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c}/cli-inputs.json (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/{auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json => awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json => #current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json} (95%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/amplify.state (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/custom-policies.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/{awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json => function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json} (95%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/function-parameters.json (61%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/email-filter-allowlist.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/event.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/index.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/package.json (78%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/yarn.lock (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/{fitnesstracker6b0fc1196b0fc119 => fitnesstracker9ceb2e7c9ceb2e7c}/build/auth-trigger-cloudformation-template.json (94%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/awscloudformation/build/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json => backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119 => backend/auth/fitnesstracker9ceb2e7c9ceb2e7c}/build/parameters.json (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119 => backend/auth/fitnesstracker9ceb2e7c9ceb2e7c}/cli-inputs.json (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/{fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json => fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json => backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json} (95%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/amplify.state (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/custom-policies.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json => fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json} (95%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/function-parameters.json (61%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/email-filter-allowlist.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/event.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/index.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/package.json (78%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/src/yarn.lock (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.description.txt => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.template.json => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json} (92%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.description.txt => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.parameters.json => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.outputs.json} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.template.json => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json} (80%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.description.txt => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.template.json => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.description.txt => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.template.json => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.description.txt => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.outputs.json => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json} (54%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.template.json => amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.description.txt => amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.description.txt} (52%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.outputs.json => amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.template.json => amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json} (89%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.description.txt => amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.template.json => amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json} (79%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.description.txt => amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.description.txt} (55%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.template.json => amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json} (84%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.description.txt => amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.description.txt} (55%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.template.json => amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json} (88%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.description.txt => amplify-fitnesstracker-gen2main-branch-a09655d799.description.txt} (56%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.outputs.json => amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json} (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.parameters.json => amplify-fitnesstracker-gen2main-branch-a09655d799.parameters.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.template.json => amplify-fitnesstracker-gen2main-branch-a09655d799.template.json} (80%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.description.txt delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.template.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.description.txt delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.template.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.description.txt => amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.outputs.json => amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.outputs.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.parameters.json => amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json} (56%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.template.json => amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.template.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.description.txt => amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.outputs.json => amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.outputs.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.parameters.json => amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json} (50%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.template.json => amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json} (94%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.description.txt => amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.outputs.json => amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json} (75%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.parameters.json => amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json} (76%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.template.json => amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json} (97%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.description.txt => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.parameters.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json} (75%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.template.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.description.txt => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.outputs.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.outputs.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.parameters.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json} (60%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.template.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.template.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.description.txt => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.outputs.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json} (62%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.parameters.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json} (83%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.template.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.description.txt => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.outputs.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json} (57%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.parameters.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json} (83%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.template.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.description.txt => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.outputs.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json} (72%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.parameters.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json} (82%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.template.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.description.txt => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.parameters.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json} (79%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.template.json => amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json} (99%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.description.txt => amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.outputs.json => amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json} (75%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.parameters.json => amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json} (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.template.json => amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json} (98%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.outputs.json => amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json} (62%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c.description.txt => amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.template.json => amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json} (69%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.description.txt => amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.outputs.json => amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json} (82%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.parameters.json => amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json} (52%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.template.json => amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.description.txt => amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.outputs.json => amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json} (63%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.parameters.json => amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json} (77%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.description.txt => amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.outputs.json => amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json} (83%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.parameters.json => amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json} (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.template.json => amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json} (98%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c.outputs.json => amplify-fitnesstracker-main-6fc9a.outputs.json} (56%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-0683c.template.json => amplify-fitnesstracker-main-6fc9a.template.json} (85%) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json new file mode 100644 index 00000000000..83c0978f566 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04", + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH" + }, + "Destination": { + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04", + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding" + } + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json new file mode 100644 index 00000000000..5684a232e16 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json @@ -0,0 +1,1090 @@ +{ + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:app-id": "fitnesstracker", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2mainlambdaServiceRole439B1792": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + } + }, + "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2mainlambdaECF7211C": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "-", + "main" + ] + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "12hkvqjabpisei771tiefdhs76", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + }, + { + "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "client": "12hkvqjabpisei771tiefdhs76" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "webClient": "4bk8odk8blrf65ptk2dffug25k" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { + "Value": "us-east-1_mQEsDQ1lC" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { + "Value": "dgddko7evul00or8262g7n9ub" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "Value": "admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json new file mode 100644 index 00000000000..5bce33938d8 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json @@ -0,0 +1,225 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "fitnesstracker", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "dgddko7evul00or8262g7n9ub", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_mQEsDQ1lC" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_mQEsDQ1lC", + ":", + "dgddko7evul00or8262g7n9ub" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR", + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" + } + } + }, + "Outputs": {} +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json new file mode 100644 index 00000000000..4091bf8545c --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "LogicalResourceId": "UserPool", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + }, + "Destination": { + "LogicalResourceId": "amplifyAuthUserPool4BA7F805", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + } + }, + { + "Source": { + "LogicalResourceId": "UserPoolClientWeb", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + }, + "Destination": { + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + } + }, + { + "Source": { + "LogicalResourceId": "UserPoolClient", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + }, + "Destination": { + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + } + }, + { + "Source": { + "LogicalResourceId": "IdentityPool", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + }, + "Destination": { + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + } + }, + { + "Source": { + "LogicalResourceId": "IdentityPoolRoleMap", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + }, + "Destination": { + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + } + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json new file mode 100644 index 00000000000..f9e2dd40e74 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json @@ -0,0 +1,216 @@ +{ + "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "Type": "String", + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + }, + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "Type": "String", + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "main", + "NONE" + ] + } + }, + "Resources": { + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole9ceb2e7c", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD" + ] + } + ] + }, + "-", + "main" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + }, + "IdentityPoolName": { + "Value": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_LAwe5ZJrw" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw" + }, + "UserPoolName": { + "Value": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "4bk8odk8blrf65ptk2dffug25k" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "12hkvqjabpisei771tiefdhs76" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json new file mode 100644 index 00000000000..99f8612dcd5 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json @@ -0,0 +1,1102 @@ +{ + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR", + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:app-id": "fitnesstracker", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2mainlambdaServiceRole439B1792": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + } + }, + "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2mainlambdaECF7211C": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "-", + "main" + ] + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "12hkvqjabpisei771tiefdhs76", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + }, + { + "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "client": "12hkvqjabpisei771tiefdhs76" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "webClient": "4bk8odk8blrf65ptk2dffug25k" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { + "Value": "us-east-1_mQEsDQ1lC" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { + "Value": "dgddko7evul00or8262g7n9ub" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "Value": "admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json new file mode 100644 index 00000000000..86252db88e5 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "LogicalResourceId": "AdminGroup", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV/af7405c0-2594-11f1-8524-0affd2875eef" + }, + "Destination": { + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04", + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + } + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json new file mode 100644 index 00000000000..d90598764f2 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json @@ -0,0 +1,81 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "main", + "NONE" + ] + } + }, + "Resources": { + "AdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "us-east-1_LAwe5ZJrw", + "-AdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "AdminGroupRole": { + "Value": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json new file mode 100644 index 00000000000..e72ec0278ac --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json @@ -0,0 +1,1100 @@ +{ + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:app-id": "fitnesstracker", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2mainlambdaServiceRole439B1792": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + } + }, + "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2mainlambdaECF7211C": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "-", + "main" + ] + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "12hkvqjabpisei771tiefdhs76", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + }, + { + "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "main" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "client": "12hkvqjabpisei771tiefdhs76" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "webClient": "4bk8odk8blrf65ptk2dffug25k" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + } + } + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole", + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { + "Value": "us-east-1_mQEsDQ1lC" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { + "Value": "dgddko7evul00or8262g7n9ub" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "Value": "admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json new file mode 100644 index 00000000000..4b2c614ebc7 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json @@ -0,0 +1,1151 @@ +{ + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "fitnesstracker", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "dgddko7evul00or8262g7n9ub", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_mQEsDQ1lC" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_mQEsDQ1lC", + ":", + "dgddko7evul00or8262g7n9ub" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR", + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:app-id": "fitnesstracker", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2mainlambdaServiceRole439B1792": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + } + }, + "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2mainlambdaECF7211C": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-main", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-main", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-main" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2mainlambdaServiceRole439B1792" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { + "Value": "us-east-1_mQEsDQ1lC" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { + "Value": "dgddko7evul00or8262g7n9ub" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "Value": "admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json index 3f1b6943c23..d99a1808184 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json @@ -1,7 +1,7 @@ [ { "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-authRole" + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" }, { "ParameterKey": "autoVerifiedAttributes", @@ -37,7 +37,7 @@ }, { "ParameterKey": "sharedId", - "ParameterValue": "6b0fc119" + "ParameterValue": "9ceb2e7c" }, { "ParameterKey": "useDefault", @@ -53,7 +53,7 @@ }, { "ParameterKey": "identityPoolName", - "ParameterValue": "fitnesstracker6b0fc119_identitypool_6b0fc119" + "ParameterValue": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c" }, { "ParameterKey": "thirdPartyAuth", @@ -77,7 +77,7 @@ }, { "ParameterKey": "resourceNameTruncated", - "ParameterValue": "fitnes6b0fc119" + "ParameterValue": "fitnes9ceb2e7c" }, { "ParameterKey": "userPoolGroups", @@ -87,13 +87,17 @@ "ParameterKey": "smsAuthenticationMessage", "ParameterValue": "Your authentication code is {####}" }, + { + "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn", + "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + }, { "ParameterKey": "passwordPolicyMinLength", "ParameterValue": "8" }, { "ParameterKey": "userPoolName", - "ParameterValue": "fitnesstracker6b0fc119_userpool_6b0fc119" + "ParameterValue": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" }, { "ParameterKey": "userpoolClientWriteAttributes", @@ -113,15 +117,7 @@ }, { "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker6b0fc1196b0fc119" - }, - { - "ParameterKey": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn", - "ParameterValue": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" - }, - { - "ParameterKey": "functionfitnesstracker6b0fc1196b0fc119PreSignupName", - "ParameterValue": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7c" }, { "ParameterKey": "env", @@ -149,7 +145,11 @@ }, { "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-unauthRole" + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" + }, + { + "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName", + "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, { "ParameterKey": "requiredAttributes", @@ -161,7 +161,7 @@ }, { "ParameterKey": "authTriggerConnections", - "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}" + "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" }, { "ParameterKey": "aliasAttributes", @@ -169,7 +169,7 @@ }, { "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "fitnes6b0fc119_userpoolclient_lambda_role" + "ParameterValue": "fitnes9ceb2e7c_userpoolclient_lambda_role" }, { "ParameterKey": "defaultPasswordPolicy", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json new file mode 100644 index 00000000000..54e1b22232a --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json @@ -0,0 +1,373 @@ +{ + "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "Type": "String", + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + }, + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "Type": "String", + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "main", + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "-", + "main" + ] + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole9ceb2e7c", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD" + ] + } + ] + }, + "-", + "main" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "12hkvqjabpisei771tiefdhs76", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + }, + { + "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_LAwe5ZJrw" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "main" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "client": "12hkvqjabpisei771tiefdhs76" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_LAwe5ZJrw", + "webClient": "4bk8odk8blrf65ptk2dffug25k" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + }, + "IdentityPoolName": { + "Value": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_LAwe5ZJrw" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw" + }, + "UserPoolName": { + "Value": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "4bk8odk8blrf65ptk2dffug25k" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "12hkvqjabpisei771tiefdhs76" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json new file mode 100644 index 00000000000..3a84ecd1058 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb", + "ParameterValue": "4bk8odk8blrf65ptk2dffug25k" + }, + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", + "ParameterValue": "us-east-1_LAwe5ZJrw" + }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId", + "ParameterValue": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID", + "ParameterValue": "12hkvqjabpisei771tiefdhs76" + }, + { + "ParameterKey": "env", + "ParameterValue": "main" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json new file mode 100644 index 00000000000..641c5596807 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json @@ -0,0 +1,91 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "Type": "String", + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "main", + "NONE" + ] + } + }, + "Resources": { + "AdminGroup": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole", + "UserPoolId": "us-east-1_LAwe5ZJrw" + } + }, + "AdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "us-east-1_LAwe5ZJrw", + "-AdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "AdminGroupRole": { + "Value": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 3876e3d5862..96397ae9746 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,313 +1,313 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-0683c-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-authRole", + "AuthRoleName": "amplify-fitnesstracker-main-6fc9a-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-0683c-unauthRole", - "StackName": "amplify-fitnesstracker-main-0683c", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-0683c/8ef87630-1a5b-11f1-84f6-12153bdc35f9", + "DeploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "UnauthRoleName": "amplify-fitnesstracker-main-6fc9a-unauthRole", + "StackName": "amplify-fitnesstracker-main-6fc9a", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, - "auth": { - "userPoolGroups": { - "service": "Cognito-UserPool-Groups", - "providerPlugin": "awscloudformation", + "api": { + "adminapi": { "dependsOn": [ { - "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", "attributes": [ - "UserPoolId", - "AppClientIDWeb", - "AppClientID", - "IdentityPoolId" - ] - } - ], - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", - "logicalId": "authuserPoolGroups" - }, - "output": { - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_u3DbKJdMj-AdminGroupRole" - }, - "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" - }, - "fitnesstracker6b0fc1196b0fc119": { - "service": "Cognito", - "providerPlugin": "awscloudformation", - "dependsOn": [ - { + "Name", + "Arn" + ], "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "triggerProvider": "Cognito", - "attributes": [ - "Arn", - "Name" - ] - } - ], - "customAuth": false, - "frontendAuthConfig": { - "socialProviders": [], - "usernameAttributes": [], - "signupAttributes": [ - "EMAIL" - ], - "passwordProtectionSettings": { - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": [] + "resourceName": "admin" }, - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS" - ], - "verificationMechanisms": [ - "EMAIL" - ] - }, - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json", - "logicalId": "authfitnesstracker6b0fc1196b0fc119" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "UserPoolId": "us-east-1_u3DbKJdMj", - "AppClientIDWeb": "7rgr70g6grv2t7e4jstuq5uuqg", - "AppClientID": "7s3vppsutj69af1r91u7tm2a45", - "IdentityPoolId": "us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_u3DbKJdMj", - "IdentityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119__main", - "UserPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119" - }, - "lastPushDirHash": "lc3D5NIx9SNJ9mopBb1jJJ/TKDU=" - } - }, - "function": { - "fitnesstracker6b0fc1196b0fc119PreSignup": { - "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", - "lastBuildTimeStamp": "2026-03-07T19:46:55.655Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T19:46:55.711Z", - "distZipFilename": "fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip", - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip" - }, - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json", - "logicalId": "functionfitnesstracker6b0fc1196b0fc119PreSignup" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker6b0fc1196b0fc119PreSignup-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker6b0fc1196b0fc119PreSignup-main", - "Name": "fitnesstracker6b0fc1196b0fc119PreSignup-main", - "LambdaExecutionRole": "fitnesstracker6b0fc1196b0fc119PreSignup-main" - }, - "lastPushDirHash": "8SU4c0dfVCbxO0PKaNCo7lKfaoY=" - }, - "lognutrition": { - "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", - "dependsOn": [ { - "category": "api", - "resourceName": "fitnesstracker", "attributes": [ - "GraphQLAPIIdOutput" - ] - } - ], - "lastBuildTimeStamp": "2026-03-07T19:46:57.956Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T19:46:59.045Z", - "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" - }, - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", - "logicalId": "functionlognutrition" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRolee7dd41c6-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", - "Name": "lognutrition-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRolee7dd41c6-main" - }, - "lastPushDirHash": "wKTLiPjpIe9DlqZKixAXXp4cLW8=" - }, - "admin": { - "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", - "dependsOn": [ - { + "UserPoolId" + ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + }, + { "attributes": [ - "UserPoolId" - ] + "AdminGroupRole" + ], + "category": "auth", + "resourceName": "userPoolGroups" } ], - "lastBuildTimeStamp": "2026-03-07T19:47:01.559Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T19:47:07.497Z", - "distZipFilename": "admin-536f797874787247392f-build.zip", - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip" + "providerPlugin": "awscloudformation", + "service": "API Gateway", + "output": { + "ApiName": "adminapi", + "RootUrl": "https://bbk7dedp01.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "bbk7dedp01" }, + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", - "logicalId": "functionadmin" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8a95290d-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", - "Name": "admin-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole8a95290d-main" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "logicalId": "apiadminapi" }, - "lastPushDirHash": "cEr9eDcTN7fah2H+l8m6/ULsUCc=" - } - }, - "api": { + "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" + }, "fitnesstracker": { - "service": "AppSync", - "providerPlugin": "awscloudformation", "dependsOn": [ { - "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", "attributes": [ "UserPoolId" - ] + ], + "category": "auth", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], "output": { "authConfig": { - "defaultAuthentication": { - "authenticationType": "AMAZON_COGNITO_USER_POOLS", - "userPoolConfig": { - "userPoolId": "authfitnesstracker6b0fc1196b0fc119" - } - }, "additionalAuthenticationProviders": [ { - "authenticationType": "API_KEY", "apiKeyConfig": { + "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", "apiKeyExpirationDays": 7, - "apiKeyExpirationDate": "2026-03-14T19:43:17.245Z", "description": "graphql" - } + }, + "authenticationType": "API_KEY" } - ] + ], + "defaultAuthentication": { + "authenticationType": "AMAZON_COGNITO_USER_POOLS", + "userPoolConfig": { + "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" + } + } }, - "GraphQLAPIIdOutput": "2aikutabnvbuhlzmh4mvkg3eji", - "GraphQLAPIEndpointOutput": "https://azg6sgrevzehjmrpkcghyncvci.appsync-api.us-east-1.amazonaws.com/graphql", - "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" + "GraphQLAPIIdOutput": "4ebr7lx7bbhnpeo5dbtcvdajdm", + "GraphQLAPIEndpointOutput": "https://3oyjlwrrofhp7jlc37qna22jva.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIKeyOutput": "da2-2kuyxda27ncmpool2a2bjanloy" }, + "providerPlugin": "awscloudformation", + "service": "AppSync", + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apifitnesstracker" }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "lastPushDirHash": "qJUjDfyKe7FhQAxzPRH3qHmn3UM=" + "lastPushDirHash": "sVImeaG/Q60+Vbb0gARPejjN99o=" }, "nutritionapi": { - "service": "API Gateway", - "providerPlugin": "awscloudformation", "dependsOn": [ { - "category": "function", - "resourceName": "lognutrition", "attributes": [ "Name", "Arn" - ] + ], + "category": "function", + "resourceName": "lognutrition" }, { - "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", "attributes": [ "UserPoolId" - ] + ], + "category": "auth", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" }, { - "category": "auth", - "resourceName": "userPoolGroups", "attributes": [ "AdminGroupRole" - ] + ], + "category": "auth", + "resourceName": "userPoolGroups" } ], - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "logicalId": "apinutritionapi" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", + "providerPlugin": "awscloudformation", + "service": "API Gateway", "output": { "ApiName": "nutritionapi", - "RootUrl": "https://6smuxn28tb.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "6smuxn28tb" + "RootUrl": "https://ekto8iln0h.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "ekto8iln0h" + }, + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "logicalId": "apinutritionapi" }, "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" - }, - "adminapi": { - "service": "API Gateway", - "providerPlugin": "awscloudformation", + } + }, + "auth": { + "fitnesstracker9ceb2e7c9ceb2e7c": { + "customAuth": false, "dependsOn": [ { - "category": "function", - "resourceName": "admin", "attributes": [ - "Name", - "Arn" - ] + "Arn", + "Name" + ], + "category": "function", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "triggerProvider": "Cognito" + } + ], + "frontendAuthConfig": { + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS" + ], + "passwordProtectionSettings": { + "passwordPolicyCharacters": [], + "passwordPolicyMinLength": 8 }, + "signupAttributes": [ + "EMAIL" + ], + "socialProviders": [], + "usernameAttributes": [], + "verificationMechanisms": [ + "EMAIL" + ] + }, + "providerPlugin": "awscloudformation", + "service": "Cognito", + "output": { + "UserPoolId": "us-east-1_LAwe5ZJrw", + "AppClientIDWeb": "4bk8odk8blrf65ptk2dffug25k", + "AppClientID": "12hkvqjabpisei771tiefdhs76", + "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw", + "IdentityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main", + "UserPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + }, + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", + "logicalId": "authfitnesstracker9ceb2e7c9ceb2e7c" + }, + "lastPushDirHash": "LHa1sE4caL7GAFx9RONHvmVgPVo=" + }, + "userPoolGroups": { + "dependsOn": [ { "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "attributes": [ - "UserPoolId" + "UserPoolId", + "AppClientIDWeb", + "AppClientID", + "IdentityPoolId" ] - }, + } + ], + "providerPlugin": "awscloudformation", + "service": "Cognito-UserPool-Groups", + "output": { + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + }, + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "logicalId": "authuserPoolGroups" + }, + "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" + } + }, + "function": { + "admin": { + "build": true, + "dependsOn": [ { - "category": "auth", - "resourceName": "userPoolGroups", "attributes": [ - "AdminGroupRole" - ] + "UserPoolId" + ], + "category": "auth", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], + "providerPlugin": "awscloudformation", + "service": "Lambda", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole64f55d16-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", + "Name": "admin-main", + "LambdaExecutionRole": "fitnesstrackerLambdaRole64f55d16-main" + }, + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", - "logicalId": "apiadminapi" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "logicalId": "functionadmin" + }, + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip" + }, + "lastBuildTimeStamp": "2026-03-23T18:49:08.046Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-23T18:49:10.871Z", + "distZipFilename": "admin-765632787437744e386e-build.zip", + "lastPushDirHash": "slgY/GyKAD6Yg8mD7maeOXp9x1k=" + }, + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "build": true, + "providerPlugin": "awscloudformation", + "service": "Lambda", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", + "Name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", + "LambdaExecutionRole": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", + "logicalId": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" + }, + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" + }, + "lastBuildTimeStamp": "2026-03-23T18:49:12.334Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-23T18:49:12.345Z", + "distZipFilename": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", + "lastPushDirHash": "qol/s4yC6lAAoI+0jAPoRyuH394=" + }, + "lognutrition": { + "build": true, + "dependsOn": [ + { + "attributes": [ + "GraphQLAPIIdOutput" + ], + "category": "api", + "resourceName": "fitnesstracker" + } + ], + "providerPlugin": "awscloudformation", + "service": "Lambda", "output": { - "ApiName": "adminapi", - "RootUrl": "https://kh5xa5hayh.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "kh5xa5hayh" + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8dc6052c-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", + "Name": "lognutrition-main", + "LambdaExecutionRole": "fitnesstrackerLambdaRole8dc6052c-main" }, - "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" + "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "logicalId": "functionlognutrition" + }, + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" + }, + "lastBuildTimeStamp": "2026-03-23T18:49:13.048Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-23T18:49:13.590Z", + "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", + "lastPushDirHash": "cvWf4K5nJd9hIYUUzDbXROaTzek=" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json index 9a9f4cf8794..fe0413d381e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponseb1888203": { + "adminapiDefault4XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponseb1888203": { + "adminapiDefault5XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapi62a7fdcd": { + "DeploymentAPIGWadminapia8449e95": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponseb1888203", - "adminapiDefault5XXResponseb1888203" + "adminapiDefault4XXResponsec0c67e32", + "adminapiDefault5XXResponsec0c67e32" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json index 78e0d8c0c01..521e37ff3e1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json @@ -1,609 +1,608 @@ { - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" }, - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] + "AuthCognitoUserPoolId": { + "Type": "String" }, - "Description": "graphql", - "Expires": 1773517628 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." }, - "Description": "None Data Source for Pipeline functions", - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "WorkoutProgram": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/WorkoutProgram.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Exercise": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" - ] - } + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Exercise.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Meal": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - } + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Meal.json" - ] - ] + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" - ] - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" - ] - } + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + }, + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "graphql", + "Expires": 1774896554 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "None Data Source for Pipeline functions", + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "WorkoutProgram": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/WorkoutProgram.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" ] - ] - } - }, - "DependsOn": [ - "Exercise", - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" + }, + "Exercise": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Exercise.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" + "Meal": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Meal.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "WorkoutProgram", - "Exercise", - "Meal", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" + ] + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Exercise", + "GraphQLAPITransformerSchema3CB2AE18" ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "WorkoutProgram", + "Exercise", + "Meal", + "ConnectionStack" ] - ] } - } }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } } - } } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json index 3cd47253316..8cb3b427185 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json @@ -4,10 +4,10 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-0683c-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json index 37b698b468d..a407b2cb80e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json index cc800da40df..a9eeaa78710 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json index ee4ac331787..1f6a60f3fb6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json index 8d494295f5d..d65c9f90968 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json index 3dee4f09639..06b33fdf9b2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json @@ -5,13 +5,13 @@ "serviceName": "AppSync", "defaultAuthType": { "mode": "AMAZON_COGNITO_USER_POOLS", - "cognitoUserPoolId": "authfitnesstracker6b0fc1196b0fc119" + "cognitoUserPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" }, "additionalAuthTypes": [ { "mode": "API_KEY", "expirationTime": 7, - "apiKeyExpirationDate": "2026-03-14T19:43:17.245Z", + "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", "keyDescription": "graphql" } ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json index e0d654b084c..dd8ecd65ac8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json @@ -4,7 +4,7 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ab25d629b86..1c507689fc5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse7a61ed16": { + "nutritionapiDefault4XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse7a61ed16": { + "nutritionapiDefault5XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi3a6bc816": { + "DeploymentAPIGWnutritionapifc67c40b": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse7a61ed16", - "nutritionapiDefault5XXResponse7a61ed16" + "nutritionapiDefault4XXResponse59a22bc9", + "nutritionapiDefault5XXResponse59a22bc9" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json similarity index 94% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/auth-trigger-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json index 549c2c6d721..3123ddd2a0b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json @@ -11,13 +11,13 @@ "userpoolArn": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Type": "String" } }, @@ -37,7 +37,7 @@ "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, "Principal": "cognito-idp.amazonaws.com", "SourceArn": { @@ -137,13 +137,13 @@ "lambdaConfig": [ { "triggerType": "PreSignUp", - "lambdaFunctionName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "lambdaFunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "lambdaFunctionArn": { - "Ref": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" + "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" } } ], - "nonce": "bd98400d-2d3c-435d-9a07-d071be38ca5f" + "nonce": "582f2307-255c-4c76-8d0e-f9ee3bd19136" }, "DependsOn": [ "authTriggerFn7FCFA449", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json index 6fd7a4879cc..79def9e5efb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Amplify Cognito Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_clientWeb", + "ClientName": "fitnes9ceb2e7c_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_client", + "ClientName": "fitnes9ceb2e7c_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole6b0fc119", + "upClientLambdaRole9ceb2e7c", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc119_identitypool_6b0fc119", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc119_identitypool_6b0fc119__", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json index 95f8a8d6700..b80b3f56b64 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json @@ -1,8 +1,8 @@ { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": [ "email" ], @@ -22,17 +22,17 @@ ], "aliasAttributes": [], "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": [ "email" ], "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -62,7 +62,7 @@ "dependsOn": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "triggerProvider": "Cognito", "attributes": [ "Arn", @@ -72,6 +72,6 @@ ], "permissions": [], "authTriggerConnections": [ - "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}" + "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" ] } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/cli-inputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json index 016e071a17a..81dda741522 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json @@ -1,10 +1,10 @@ { "version": "1", "cognitoConfig": { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": [ "email" ], @@ -24,17 +24,17 @@ ], "aliasAttributes": [], "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": [ "email" ], "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 0741b0ac99f..12c7040bd48 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Root Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientID" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json index 9a9f4cf8794..fe0413d381e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponseb1888203": { + "adminapiDefault4XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponseb1888203": { + "adminapiDefault5XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapi62a7fdcd": { + "DeploymentAPIGWadminapia8449e95": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponseb1888203", - "adminapiDefault5XXResponseb1888203" + "adminapiDefault4XXResponsec0c67e32", + "adminapiDefault5XXResponsec0c67e32" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json index 78e0d8c0c01..651f9ceb637 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1773517628 + "Expires": 1774896554 } }, "GraphQLAPINONEDS95A13CF0": { @@ -604,6 +604,5 @@ } } } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" + } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ab25d629b86..1c507689fc5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse7a61ed16": { + "nutritionapiDefault4XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse7a61ed16": { + "nutritionapiDefault5XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi3a6bc816": { + "DeploymentAPIGWnutritionapifc67c40b": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse7a61ed16", - "nutritionapiDefault5XXResponse7a61ed16" + "nutritionapiDefault4XXResponse59a22bc9", + "nutritionapiDefault5XXResponse59a22bc9" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json index 6fd7a4879cc..79def9e5efb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Amplify Cognito Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_clientWeb", + "ClientName": "fitnes9ceb2e7c_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_client", + "ClientName": "fitnes9ceb2e7c_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole6b0fc119", + "upClientLambdaRole9ceb2e7c", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc119_identitypool_6b0fc119", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc119_identitypool_6b0fc119__", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 0741b0ac99f..12c7040bd48 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Root Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientID" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 7732e28d356..5345516d4d9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] }, - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] } @@ -229,100 +229,141 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker6b0fc1196b0fc119", - "functionfitnesstracker6b0fc1196b0fc119PreSignup" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" ] }, - "authuserPoolGroups": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { + "functionadminName": { "Fn::GetAtt": [ - "AuthRole", - "Arn" + "functionadmin", + "Outputs.Name" ] }, - "UnauthRoleArn": { + "functionadminArn": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "functionadmin", + "Outputs.Arn" ] }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authuserPoolGroupsAdminGroupRole": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientIDWeb" + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "env": "main" + } + } + }, + "apifitnesstracker": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientID" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", + "env": "main" + } + } + }, + "apinutritionapi": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "Parameters": { + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" ] }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "functionlognutritionArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.IdentityPoolId" + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" } } }, - "authfitnesstracker6b0fc1196b0fc119": { + "authfitnesstracker9ceb2e7c9ceb2e7c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -336,13 +377,13 @@ "requiredAttributes": "email", "aliasAttributes": "", "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -369,139 +410,98 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", "env": "main" } } }, - "functionfitnesstracker6b0fc1196b0fc119PreSignup": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json", - "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip", - "env": "main" - } - } - }, - "functionlognutrition": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "AuthRoleArn": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "AuthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "functionadmin": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip", - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "UnauthRole", + "Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientIDWeb" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientID" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.IdentityPoolId" + ] + }, "env": "main" } } }, - "apifitnesstracker": { + "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-0683c-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a", "env": "main" } } }, - "apinutritionapi": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", "Parameters": { - "functionlognutritionName": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" - ] - }, + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", "env": "main" } } }, - "apiadminapi": { + "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker6b0fc1196b0fc119" + "authfitnesstracker9ceb2e7c9ceb2e7c" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json index 2dbe7e47d6b..aaa8618655d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER6B0FC1196B0FC119_USERPOOLID": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json index c0cf3b931f5..04a3c261a89 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json index fd10c7f0ba5..e1789ef2c20 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 7732e28d356..5345516d4d9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] }, - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] } @@ -229,100 +229,141 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker6b0fc1196b0fc119", - "functionfitnesstracker6b0fc1196b0fc119PreSignup" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" ] }, - "authuserPoolGroups": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { + "functionadminName": { "Fn::GetAtt": [ - "AuthRole", - "Arn" + "functionadmin", + "Outputs.Name" ] }, - "UnauthRoleArn": { + "functionadminArn": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "functionadmin", + "Outputs.Arn" ] }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authuserPoolGroupsAdminGroupRole": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientIDWeb" + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "env": "main" + } + } + }, + "apifitnesstracker": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientID" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", + "env": "main" + } + } + }, + "apinutritionapi": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "Parameters": { + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" ] }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "functionlognutritionArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.IdentityPoolId" + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" } } }, - "authfitnesstracker6b0fc1196b0fc119": { + "authfitnesstracker9ceb2e7c9ceb2e7c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -336,13 +377,13 @@ "requiredAttributes": "email", "aliasAttributes": "", "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -369,139 +410,98 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", "env": "main" } } }, - "functionfitnesstracker6b0fc1196b0fc119PreSignup": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json", - "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip", - "env": "main" - } - } - }, - "functionlognutrition": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "AuthRoleArn": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "AuthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "functionadmin": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip", - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "UnauthRole", + "Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientIDWeb" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientID" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.IdentityPoolId" + ] + }, "env": "main" } } }, - "apifitnesstracker": { + "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-0683c-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a", "env": "main" } } }, - "apinutritionapi": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", "Parameters": { - "functionlognutritionName": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" - ] - }, + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", "env": "main" } } }, - "apiadminapi": { + "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker6b0fc1196b0fc119" + "authfitnesstracker9ceb2e7c9ceb2e7c" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 4d3f1b5f607..3267de076bd 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -15,7 +15,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" }, { "attributes": [ @@ -35,7 +35,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], "output": { @@ -43,7 +43,7 @@ "additionalAuthenticationProviders": [ { "apiKeyConfig": { - "apiKeyExpirationDate": "2026-03-14T19:43:17.245Z", + "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", "apiKeyExpirationDays": 7, "description": "graphql" }, @@ -53,7 +53,7 @@ "defaultAuthentication": { "authenticationType": "AMAZON_COGNITO_USER_POOLS", "userPoolConfig": { - "userPoolId": "authfitnesstracker6b0fc1196b0fc119" + "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" } } } @@ -76,7 +76,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" }, { "attributes": [ @@ -91,7 +91,7 @@ } }, "auth": { - "fitnesstracker6b0fc1196b0fc119": { + "fitnesstracker9ceb2e7c9ceb2e7c": { "customAuth": false, "dependsOn": [ { @@ -100,7 +100,7 @@ "Name" ], "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "triggerProvider": "Cognito" } ], @@ -135,7 +135,7 @@ "IdentityPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], "providerPlugin": "awscloudformation", @@ -151,13 +151,13 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], "providerPlugin": "awscloudformation", "service": "Lambda" }, - "fitnesstracker6b0fc1196b0fc119PreSignup": { + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "build": true, "providerPlugin": "awscloudformation", "service": "Lambda" @@ -194,27 +194,27 @@ } ] }, - "AMPLIFY_function_fitnesstracker6b0fc1196b0fc119PreSignup_DOMAINALLOWLIST": { + "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_DOMAINALLOWLIST": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" } ] }, - "AMPLIFY_function_fitnesstracker6b0fc1196b0fc119PreSignup_deploymentBucketName": { + "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_deploymentBucketName": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" } ] }, - "AMPLIFY_function_fitnesstracker6b0fc1196b0fc119PreSignup_s3Key": { + "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_s3Key": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" } ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json index 2dbe7e47d6b..aaa8618655d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER6B0FC1196B0FC119_USERPOOLID": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json index bbf9b6e174e..c3c652077d2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json @@ -1,7 +1,7 @@ { "permissions": { "auth": { - "fitnesstracker6b0fc1196b0fc119": [ + "fitnesstracker9ceb2e7c9ceb2e7c": [ "read" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json deleted file mode 100644 index 0d5ce52faf8..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/amplify.state rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/custom-policies.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json index c0cf3b931f5..04a3c261a89 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json similarity index 61% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/function-parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json index bc563179c95..911d754ad38 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json @@ -3,14 +3,14 @@ "modules": [ "email-filter-allowlist" ], - "parentResource": "fitnesstracker6b0fc1196b0fc119", - "functionName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "parentResource": "fitnesstracker9ceb2e7c9ceb2e7c", + "functionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "parentStack": "auth", "triggerEnvs": "[]", "triggerDir": "/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-category-auth/provider-utils/awscloudformation/triggers/PreSignup", "triggerTemplate": "PreSignup.json.ejs", "triggerEventPath": "PreSignup.event.json", - "roleName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "roleName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "skipEdit": true } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json new file mode 100644 index 00000000000..22e01f31ee2 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json @@ -0,0 +1,4 @@ +{ + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/email-filter-allowlist.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/email-filter-allowlist.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/event.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/event.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/index.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/index.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/package.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json similarity index 78% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/package.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json index 41f579f68ee..af2b3ccd67f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/package.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json @@ -1,5 +1,5 @@ { - "name": "fitnesstracker6b0fc1196b0fc119PreSignup", + "name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "version": "2.0.0", "description": "Lambda function generated by Amplify", "main": "index.js", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/yarn.lock b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/yarn.lock rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json index fd10c7f0ba5..e1789ef2c20 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 3876e3d5862..3a167eb2204 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,313 +1,313 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-0683c-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-authRole", + "AuthRoleName": "amplify-fitnesstracker-main-6fc9a-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-0683c-unauthRole", - "StackName": "amplify-fitnesstracker-main-0683c", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-0683c/8ef87630-1a5b-11f1-84f6-12153bdc35f9", + "DeploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "UnauthRoleName": "amplify-fitnesstracker-main-6fc9a-unauthRole", + "StackName": "amplify-fitnesstracker-main-6fc9a", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, - "auth": { - "userPoolGroups": { - "service": "Cognito-UserPool-Groups", - "providerPlugin": "awscloudformation", + "api": { + "adminapi": { "dependsOn": [ { + "attributes": [ + "Name", + "Arn" + ], + "category": "function", + "resourceName": "admin" + }, + { + "attributes": [ + "UserPoolId" + ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + }, + { "attributes": [ - "UserPoolId", - "AppClientIDWeb", - "AppClientID", - "IdentityPoolId" - ] + "AdminGroupRole" + ], + "category": "auth", + "resourceName": "userPoolGroups" } ], - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", + "providerPlugin": "awscloudformation", + "service": "API Gateway", + "output": { + "ApiName": "adminapi", + "RootUrl": "https://bbk7dedp01.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "bbk7dedp01" + }, + "lastPushTimeStamp": "2026-03-24T00:40:26.010Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", - "logicalId": "authuserPoolGroups" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "logicalId": "apiadminapi" }, + "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" + }, + "fitnesstracker": { + "dependsOn": [ + { + "attributes": [ + "UserPoolId" + ], + "category": "auth", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + } + ], "output": { - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_u3DbKJdMj-AdminGroupRole" + "authConfig": { + "additionalAuthenticationProviders": [ + { + "apiKeyConfig": { + "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", + "apiKeyExpirationDays": 7, + "description": "graphql" + }, + "authenticationType": "API_KEY" + } + ], + "defaultAuthentication": { + "authenticationType": "AMAZON_COGNITO_USER_POOLS", + "userPoolConfig": { + "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" + } + } + }, + "GraphQLAPIIdOutput": "4ebr7lx7bbhnpeo5dbtcvdajdm", + "GraphQLAPIEndpointOutput": "https://3oyjlwrrofhp7jlc37qna22jva.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIKeyOutput": "da2-2kuyxda27ncmpool2a2bjanloy" }, - "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" - }, - "fitnesstracker6b0fc1196b0fc119": { - "service": "Cognito", "providerPlugin": "awscloudformation", + "service": "AppSync", + "lastPushTimeStamp": "2026-03-24T00:40:26.014Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "logicalId": "apifitnesstracker" + }, + "lastPushDirHash": "sVImeaG/Q60+Vbb0gARPejjN99o=" + }, + "nutritionapi": { "dependsOn": [ { + "attributes": [ + "Name", + "Arn" + ], "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "triggerProvider": "Cognito", + "resourceName": "lognutrition" + }, + { + "attributes": [ + "UserPoolId" + ], + "category": "auth", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + }, + { + "attributes": [ + "AdminGroupRole" + ], + "category": "auth", + "resourceName": "userPoolGroups" + } + ], + "providerPlugin": "awscloudformation", + "service": "API Gateway", + "output": { + "ApiName": "nutritionapi", + "RootUrl": "https://ekto8iln0h.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "ekto8iln0h" + }, + "lastPushTimeStamp": "2026-03-24T00:40:26.016Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "logicalId": "apinutritionapi" + }, + "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" + } + }, + "auth": { + "fitnesstracker9ceb2e7c9ceb2e7c": { + "customAuth": false, + "dependsOn": [ + { "attributes": [ "Arn", "Name" - ] + ], + "category": "function", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "triggerProvider": "Cognito" } ], - "customAuth": false, "frontendAuthConfig": { - "socialProviders": [], - "usernameAttributes": [], - "signupAttributes": [ - "EMAIL" + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS" ], "passwordProtectionSettings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [] }, - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS" + "signupAttributes": [ + "EMAIL" ], + "socialProviders": [], + "usernameAttributes": [], "verificationMechanisms": [ "EMAIL" ] }, - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json", - "logicalId": "authfitnesstracker6b0fc1196b0fc119" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "UserPoolId": "us-east-1_u3DbKJdMj", - "AppClientIDWeb": "7rgr70g6grv2t7e4jstuq5uuqg", - "AppClientID": "7s3vppsutj69af1r91u7tm2a45", - "IdentityPoolId": "us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_u3DbKJdMj", - "IdentityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119__main", - "UserPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119" - }, - "lastPushDirHash": "lc3D5NIx9SNJ9mopBb1jJJ/TKDU=" - } - }, - "function": { - "fitnesstracker6b0fc1196b0fc119PreSignup": { - "build": true, "providerPlugin": "awscloudformation", - "service": "Lambda", - "lastBuildTimeStamp": "2026-03-07T19:46:55.655Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T19:46:55.711Z", - "distZipFilename": "fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip", - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip" + "service": "Cognito", + "output": { + "UserPoolId": "us-east-1_LAwe5ZJrw", + "AppClientIDWeb": "4bk8odk8blrf65ptk2dffug25k", + "AppClientID": "12hkvqjabpisei771tiefdhs76", + "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw", + "IdentityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main", + "UserPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" }, + "lastPushTimeStamp": "2026-03-24T00:40:26.019Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json", - "logicalId": "functionfitnesstracker6b0fc1196b0fc119PreSignup" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", + "logicalId": "authfitnesstracker9ceb2e7c9ceb2e7c" }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker6b0fc1196b0fc119PreSignup-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker6b0fc1196b0fc119PreSignup-main", - "Name": "fitnesstracker6b0fc1196b0fc119PreSignup-main", - "LambdaExecutionRole": "fitnesstracker6b0fc1196b0fc119PreSignup-main" - }, - "lastPushDirHash": "8SU4c0dfVCbxO0PKaNCo7lKfaoY=" + "lastPushDirHash": "LHa1sE4caL7GAFx9RONHvmVgPVo=" }, - "lognutrition": { - "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", + "userPoolGroups": { "dependsOn": [ { - "category": "api", - "resourceName": "fitnesstracker", + "category": "auth", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "attributes": [ - "GraphQLAPIIdOutput" + "UserPoolId", + "AppClientIDWeb", + "AppClientID", + "IdentityPoolId" ] } ], - "lastBuildTimeStamp": "2026-03-07T19:46:57.956Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T19:46:59.045Z", - "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" + "providerPlugin": "awscloudformation", + "service": "Cognito-UserPool-Groups", + "output": { + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" }, + "lastPushTimeStamp": "2026-03-24T00:40:27.730Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", - "logicalId": "functionlognutrition" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRolee7dd41c6-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", - "Name": "lognutrition-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRolee7dd41c6-main" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "logicalId": "authuserPoolGroups" }, - "lastPushDirHash": "wKTLiPjpIe9DlqZKixAXXp4cLW8=" - }, + "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" + } + }, + "function": { "admin": { "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", "dependsOn": [ { - "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", "attributes": [ "UserPoolId" - ] + ], + "category": "auth", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], - "lastBuildTimeStamp": "2026-03-07T19:47:01.559Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T19:47:07.497Z", - "distZipFilename": "admin-536f797874787247392f-build.zip", - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip" - }, - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", - "logicalId": "functionadmin" - }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", + "providerPlugin": "awscloudformation", + "service": "Lambda", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8a95290d-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole64f55d16-main", "Region": "us-east-1", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", "Name": "admin-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole8a95290d-main" - }, - "lastPushDirHash": "cEr9eDcTN7fah2H+l8m6/ULsUCc=" - } - }, - "api": { - "fitnesstracker": { - "service": "AppSync", - "providerPlugin": "awscloudformation", - "dependsOn": [ - { - "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", - "attributes": [ - "UserPoolId" - ] - } - ], - "output": { - "authConfig": { - "defaultAuthentication": { - "authenticationType": "AMAZON_COGNITO_USER_POOLS", - "userPoolConfig": { - "userPoolId": "authfitnesstracker6b0fc1196b0fc119" - } - }, - "additionalAuthenticationProviders": [ - { - "authenticationType": "API_KEY", - "apiKeyConfig": { - "apiKeyExpirationDays": 7, - "apiKeyExpirationDate": "2026-03-14T19:43:17.245Z", - "description": "graphql" - } - } - ] - }, - "GraphQLAPIIdOutput": "2aikutabnvbuhlzmh4mvkg3eji", - "GraphQLAPIEndpointOutput": "https://azg6sgrevzehjmrpkcghyncvci.appsync-api.us-east-1.amazonaws.com/graphql", - "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" + "LambdaExecutionRole": "fitnesstrackerLambdaRole64f55d16-main" }, + "lastPushTimeStamp": "2026-03-24T00:40:26.026Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "logicalId": "apifitnesstracker" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "logicalId": "functionadmin" }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "lastPushDirHash": "qJUjDfyKe7FhQAxzPRH3qHmn3UM=" + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip" + }, + "lastBuildTimeStamp": "2026-03-23T18:49:08.046Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-23T18:49:10.871Z", + "distZipFilename": "admin-765632787437744e386e-build.zip", + "lastPushDirHash": "slgY/GyKAD6Yg8mD7maeOXp9x1k=" }, - "nutritionapi": { - "service": "API Gateway", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "build": true, "providerPlugin": "awscloudformation", - "dependsOn": [ - { - "category": "function", - "resourceName": "lognutrition", - "attributes": [ - "Name", - "Arn" - ] - }, - { - "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", - "attributes": [ - "UserPoolId" - ] - }, - { - "category": "auth", - "resourceName": "userPoolGroups", - "attributes": [ - "AdminGroupRole" - ] - } - ], + "service": "Lambda", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", + "Name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", + "LambdaExecutionRole": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + }, + "lastPushTimeStamp": "2026-03-24T00:40:26.029Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "logicalId": "apinutritionapi" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", + "logicalId": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "ApiName": "nutritionapi", - "RootUrl": "https://6smuxn28tb.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "6smuxn28tb" + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" }, - "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" + "lastBuildTimeStamp": "2026-03-23T18:49:12.334Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-23T18:49:12.345Z", + "distZipFilename": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", + "lastPushDirHash": "qol/s4yC6lAAoI+0jAPoRyuH394=" }, - "adminapi": { - "service": "API Gateway", - "providerPlugin": "awscloudformation", + "lognutrition": { + "build": true, "dependsOn": [ { - "category": "function", - "resourceName": "admin", "attributes": [ - "Name", - "Arn" - ] - }, - { - "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119", - "attributes": [ - "UserPoolId" - ] - }, - { - "category": "auth", - "resourceName": "userPoolGroups", - "attributes": [ - "AdminGroupRole" - ] + "GraphQLAPIIdOutput" + ], + "category": "api", + "resourceName": "fitnesstracker" } ], + "providerPlugin": "awscloudformation", + "service": "Lambda", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8dc6052c-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", + "Name": "lognutrition-main", + "LambdaExecutionRole": "fitnesstrackerLambdaRole8dc6052c-main" + }, + "lastPushTimeStamp": "2026-03-24T00:40:26.035Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", - "logicalId": "apiadminapi" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "logicalId": "functionlognutrition" }, - "lastPushTimeStamp": "2026-03-07T19:54:29.563Z", - "output": { - "ApiName": "adminapi", - "RootUrl": "https://kh5xa5hayh.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "kh5xa5hayh" + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" }, - "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" + "lastBuildTimeStamp": "2026-03-23T18:49:13.048Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-23T18:49:13.590Z", + "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", + "lastPushDirHash": "cvWf4K5nJd9hIYUUzDbXROaTzek=" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json index 9a9f4cf8794..03f897a5ce3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponseb1888203": { + "adminapiDefault4XXResponse85f5ca6c": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponseb1888203": { + "adminapiDefault5XXResponse85f5ca6c": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapi62a7fdcd": { + "DeploymentAPIGWadminapi7b0e0b8f": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponseb1888203", - "adminapiDefault5XXResponseb1888203" + "adminapiDefault4XXResponse85f5ca6c", + "adminapiDefault5XXResponse85f5ca6c" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json index 78e0d8c0c01..a82fa55dc68 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json @@ -1,609 +1,608 @@ { - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" }, - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] + "AuthCognitoUserPoolId": { + "Type": "String" }, - "Description": "graphql", - "Expires": 1773517628 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." }, - "Description": "None Data Source for Pipeline functions", - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "WorkoutProgram": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/WorkoutProgram.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Exercise": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" - ] - } + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Exercise.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Meal": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - } + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Meal.json" - ] - ] + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" - ] - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" - ] - } + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + }, + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "graphql", + "Expires": 1774917627 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "None Data Source for Pipeline functions", + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "WorkoutProgram": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/WorkoutProgram.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" ] - ] - } - }, - "DependsOn": [ - "Exercise", - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" + }, + "Exercise": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Exercise.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" + "Meal": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Meal.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "WorkoutProgram", - "Exercise", - "Meal", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" + ] + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Exercise", + "GraphQLAPITransformerSchema3CB2AE18" ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "WorkoutProgram", + "Exercise", + "Meal", + "ConnectionStack" ] - ] } - } }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } } - } } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json index 3cd47253316..8cb3b427185 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json @@ -4,10 +4,10 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-0683c-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json index 37b698b468d..a407b2cb80e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json index cc800da40df..a9eeaa78710 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json index ee4ac331787..1f6a60f3fb6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json index 8d494295f5d..d65c9f90968 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json index 3dee4f09639..06b33fdf9b2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json @@ -5,13 +5,13 @@ "serviceName": "AppSync", "defaultAuthType": { "mode": "AMAZON_COGNITO_USER_POOLS", - "cognitoUserPoolId": "authfitnesstracker6b0fc1196b0fc119" + "cognitoUserPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" }, "additionalAuthTypes": [ { "mode": "API_KEY", "expirationTime": 7, - "apiKeyExpirationDate": "2026-03-14T19:43:17.245Z", + "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", "keyDescription": "graphql" } ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json index e0d654b084c..dd8ecd65ac8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json @@ -4,7 +4,7 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ab25d629b86..d0fe820973d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse7a61ed16": { + "nutritionapiDefault4XXResponse22a5dbe5": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse7a61ed16": { + "nutritionapiDefault5XXResponse22a5dbe5": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi3a6bc816": { + "DeploymentAPIGWnutritionapi7e86ac76": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse7a61ed16", - "nutritionapiDefault5XXResponse7a61ed16" + "nutritionapiDefault4XXResponse22a5dbe5", + "nutritionapiDefault5XXResponse22a5dbe5" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json similarity index 94% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/auth-trigger-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json index 549c2c6d721..94bf04af18a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker6b0fc1196b0fc119/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json @@ -11,13 +11,13 @@ "userpoolArn": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Type": "String" } }, @@ -37,7 +37,7 @@ "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, "Principal": "cognito-idp.amazonaws.com", "SourceArn": { @@ -137,13 +137,13 @@ "lambdaConfig": [ { "triggerType": "PreSignUp", - "lambdaFunctionName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "lambdaFunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "lambdaFunctionArn": { - "Ref": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" + "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" } } ], - "nonce": "bd98400d-2d3c-435d-9a07-d071be38ca5f" + "nonce": "a3ec1075-1f5a-4a6d-9bb3-6caf273873db" }, "DependsOn": [ "authTriggerFn7FCFA449", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json index 6fd7a4879cc..79def9e5efb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Amplify Cognito Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_clientWeb", + "ClientName": "fitnes9ceb2e7c_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_client", + "ClientName": "fitnes9ceb2e7c_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole6b0fc119", + "upClientLambdaRole9ceb2e7c", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc119_identitypool_6b0fc119", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc119_identitypool_6b0fc119__", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json index 95f8a8d6700..b80b3f56b64 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json @@ -1,8 +1,8 @@ { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": [ "email" ], @@ -22,17 +22,17 @@ ], "aliasAttributes": [], "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": [ "email" ], "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -62,7 +62,7 @@ "dependsOn": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "triggerProvider": "Cognito", "attributes": [ "Arn", @@ -72,6 +72,6 @@ ], "permissions": [], "authTriggerConnections": [ - "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}" + "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" ] } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/cli-inputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json index 016e071a17a..81dda741522 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker6b0fc1196b0fc119/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json @@ -1,10 +1,10 @@ { "version": "1", "cognitoConfig": { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": [ "email" ], @@ -24,17 +24,17 @@ ], "aliasAttributes": [], "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": [ "email" ], "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 0741b0ac99f..12c7040bd48 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Root Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientID" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json index 9a9f4cf8794..fe0413d381e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponseb1888203": { + "adminapiDefault4XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponseb1888203": { + "adminapiDefault5XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapi62a7fdcd": { + "DeploymentAPIGWadminapia8449e95": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponseb1888203", - "adminapiDefault5XXResponseb1888203" + "adminapiDefault4XXResponsec0c67e32", + "adminapiDefault5XXResponsec0c67e32" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json index 78e0d8c0c01..651f9ceb637 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1773517628 + "Expires": 1774896554 } }, "GraphQLAPINONEDS95A13CF0": { @@ -604,6 +604,5 @@ } } } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" + } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ab25d629b86..1c507689fc5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse7a61ed16": { + "nutritionapiDefault4XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse7a61ed16": { + "nutritionapiDefault5XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi3a6bc816": { + "DeploymentAPIGWnutritionapifc67c40b": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse7a61ed16", - "nutritionapiDefault5XXResponse7a61ed16" + "nutritionapiDefault4XXResponse59a22bc9", + "nutritionapiDefault5XXResponse59a22bc9" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json index 6fd7a4879cc..79def9e5efb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker6b0fc1196b0fc119/build/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Amplify Cognito Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_clientWeb", + "ClientName": "fitnes9ceb2e7c_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes6b0fc119_app_client", + "ClientName": "fitnes9ceb2e7c_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole6b0fc119", + "upClientLambdaRole9ceb2e7c", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc119_identitypool_6b0fc119", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc119_identitypool_6b0fc119__", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 0741b0ac99f..12c7040bd48 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Root Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientID" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 7732e28d356..5345516d4d9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] }, - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] } @@ -229,100 +229,141 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker6b0fc1196b0fc119", - "functionfitnesstracker6b0fc1196b0fc119PreSignup" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" ] }, - "authuserPoolGroups": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { + "functionadminName": { "Fn::GetAtt": [ - "AuthRole", - "Arn" + "functionadmin", + "Outputs.Name" ] }, - "UnauthRoleArn": { + "functionadminArn": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "functionadmin", + "Outputs.Arn" ] }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authuserPoolGroupsAdminGroupRole": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientIDWeb" + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "env": "main" + } + } + }, + "apifitnesstracker": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientID" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", + "env": "main" + } + } + }, + "apinutritionapi": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "Parameters": { + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" ] }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "functionlognutritionArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.IdentityPoolId" + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" } } }, - "authfitnesstracker6b0fc1196b0fc119": { + "authfitnesstracker9ceb2e7c9ceb2e7c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -336,13 +377,13 @@ "requiredAttributes": "email", "aliasAttributes": "", "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -369,139 +410,98 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", "env": "main" } } }, - "functionfitnesstracker6b0fc1196b0fc119PreSignup": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json", - "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip", - "env": "main" - } - } - }, - "functionlognutrition": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "AuthRoleArn": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "AuthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "functionadmin": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip", - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "UnauthRole", + "Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientIDWeb" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientID" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.IdentityPoolId" + ] + }, "env": "main" } } }, - "apifitnesstracker": { + "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-0683c-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a", "env": "main" } } }, - "apinutritionapi": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", "Parameters": { - "functionlognutritionName": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" - ] - }, + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", "env": "main" } } }, - "apiadminapi": { + "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker6b0fc1196b0fc119" + "authfitnesstracker9ceb2e7c9ceb2e7c" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json index 2dbe7e47d6b..aaa8618655d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER6B0FC1196B0FC119_USERPOOLID": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json index c0cf3b931f5..04a3c261a89 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json index fd10c7f0ba5..e1789ef2c20 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 7732e28d356..5345516d4d9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] }, - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] } @@ -229,100 +229,141 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker6b0fc1196b0fc119", - "functionfitnesstracker6b0fc1196b0fc119PreSignup" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" ] }, - "authuserPoolGroups": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { + "functionadminName": { "Fn::GetAtt": [ - "AuthRole", - "Arn" + "functionadmin", + "Outputs.Name" ] }, - "UnauthRoleArn": { + "functionadminArn": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "functionadmin", + "Outputs.Arn" ] }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authuserPoolGroupsAdminGroupRole": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientIDWeb" + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "env": "main" + } + } + }, + "apifitnesstracker": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.AppClientID" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", + "env": "main" + } + } + }, + "apinutritionapi": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "Parameters": { + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" ] }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "functionlognutritionArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.IdentityPoolId" + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" } } }, - "authfitnesstracker6b0fc1196b0fc119": { + "authfitnesstracker9ceb2e7c9ceb2e7c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -336,13 +377,13 @@ "requiredAttributes": "email", "aliasAttributes": "", "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -369,139 +410,98 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", "env": "main" } } }, - "functionfitnesstracker6b0fc1196b0fc119PreSignup": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json", - "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip", - "env": "main" - } - } - }, - "functionlognutrition": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "AuthRoleArn": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "AuthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "functionadmin": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip", - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "UnauthRole", + "Arn" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientIDWeb" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.AppClientID" + ] + }, + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker9ceb2e7c9ceb2e7c", + "Outputs.IdentityPoolId" + ] + }, "env": "main" } } }, - "apifitnesstracker": { + "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-0683c-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a", "env": "main" } } }, - "apinutritionapi": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", "Parameters": { - "functionlognutritionName": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" - ] - }, + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", "env": "main" } } }, - "apiadminapi": { + "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker6b0fc1196b0fc119" + "authfitnesstracker9ceb2e7c9ceb2e7c" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json index 4d3f1b5f607..3267de076bd 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -15,7 +15,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" }, { "attributes": [ @@ -35,7 +35,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], "output": { @@ -43,7 +43,7 @@ "additionalAuthenticationProviders": [ { "apiKeyConfig": { - "apiKeyExpirationDate": "2026-03-14T19:43:17.245Z", + "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", "apiKeyExpirationDays": 7, "description": "graphql" }, @@ -53,7 +53,7 @@ "defaultAuthentication": { "authenticationType": "AMAZON_COGNITO_USER_POOLS", "userPoolConfig": { - "userPoolId": "authfitnesstracker6b0fc1196b0fc119" + "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" } } } @@ -76,7 +76,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" }, { "attributes": [ @@ -91,7 +91,7 @@ } }, "auth": { - "fitnesstracker6b0fc1196b0fc119": { + "fitnesstracker9ceb2e7c9ceb2e7c": { "customAuth": false, "dependsOn": [ { @@ -100,7 +100,7 @@ "Name" ], "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "triggerProvider": "Cognito" } ], @@ -135,7 +135,7 @@ "IdentityPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], "providerPlugin": "awscloudformation", @@ -151,13 +151,13 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker6b0fc1196b0fc119" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" } ], "providerPlugin": "awscloudformation", "service": "Lambda" }, - "fitnesstracker6b0fc1196b0fc119PreSignup": { + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "build": true, "providerPlugin": "awscloudformation", "service": "Lambda" @@ -194,27 +194,27 @@ } ] }, - "AMPLIFY_function_fitnesstracker6b0fc1196b0fc119PreSignup_DOMAINALLOWLIST": { + "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_DOMAINALLOWLIST": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" } ] }, - "AMPLIFY_function_fitnesstracker6b0fc1196b0fc119PreSignup_deploymentBucketName": { + "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_deploymentBucketName": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" } ] }, - "AMPLIFY_function_fitnesstracker6b0fc1196b0fc119PreSignup_s3Key": { + "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_s3Key": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" } ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json index 2dbe7e47d6b..aaa8618655d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER6B0FC1196B0FC119_USERPOOLID": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json index bbf9b6e174e..c3c652077d2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json @@ -1,7 +1,7 @@ { "permissions": { "auth": { - "fitnesstracker6b0fc1196b0fc119": [ + "fitnesstracker9ceb2e7c9ceb2e7c": [ "read" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json deleted file mode 100644 index 0d5ce52faf8..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/parameters.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup" -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/amplify.state rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/custom-policies.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json index c0cf3b931f5..04a3c261a89 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", { "Fn::Join": [ "", [ - "fitnesstracker6b0fc1196b0fc119PreSignup", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json similarity index 61% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/function-parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json index bc563179c95..911d754ad38 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json @@ -3,14 +3,14 @@ "modules": [ "email-filter-allowlist" ], - "parentResource": "fitnesstracker6b0fc1196b0fc119", - "functionName": "fitnesstracker6b0fc1196b0fc119PreSignup", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "parentResource": "fitnesstracker9ceb2e7c9ceb2e7c", + "functionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "parentStack": "auth", "triggerEnvs": "[]", "triggerDir": "/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-category-auth/provider-utils/awscloudformation/triggers/PreSignup", "triggerTemplate": "PreSignup.json.ejs", "triggerEventPath": "PreSignup.event.json", - "roleName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "roleName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "skipEdit": true } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json new file mode 100644 index 00000000000..22e01f31ee2 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json @@ -0,0 +1,4 @@ +{ + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/email-filter-allowlist.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/email-filter-allowlist.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/event.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/event.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/index.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/index.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/package.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json similarity index 78% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/package.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json index 41f579f68ee..af2b3ccd67f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/package.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json @@ -1,5 +1,5 @@ { - "name": "fitnesstracker6b0fc1196b0fc119PreSignup", + "name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "version": "2.0.0", "description": "Lambda function generated by Amplify", "main": "index.js", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/yarn.lock b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker6b0fc1196b0fc119PreSignup/src/yarn.lock rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json index fd10c7f0ba5..e1789ef2c20 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 6f55222ff36..378b7faee9a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -17,7 +17,7 @@ export type AmplifyDependentResourcesAttributes = { } }, "auth": { - "fitnesstracker6b0fc1196b0fc119": { + "fitnesstracker9ceb2e7c9ceb2e7c": { "AppClientID": "string", "AppClientIDWeb": "string", "IdentityPoolId": "string", @@ -38,7 +38,7 @@ export type AmplifyDependentResourcesAttributes = { "Name": "string", "Region": "string" }, - "fitnesstracker6b0fc1196b0fc119PreSignup": { + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "Arn": "string", "LambdaExecutionRole": "string", "LambdaExecutionRoleArn": "string", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json index 93402c3697a..c471cdfb02c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,36 +1,36 @@ { "main": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-0683c-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-authRole", + "AuthRoleName": "amplify-fitnesstracker-main-6fc9a-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-0683c-unauthRole", - "StackName": "amplify-fitnesstracker-main-0683c", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-0683c/8ef87630-1a5b-11f1-84f6-12153bdc35f9", + "DeploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "UnauthRoleName": "amplify-fitnesstracker-main-6fc9a-unauthRole", + "StackName": "amplify-fitnesstracker-main-6fc9a", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" }, "categories": { "auth": { - "fitnesstracker6b0fc1196b0fc119": {}, + "fitnesstracker9ceb2e7c9ceb2e7c": {}, "userPoolGroups": {} }, "function": { - "fitnesstracker6b0fc1196b0fc119PreSignup": { + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" }, "lognutrition": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" }, "admin": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip" } }, "api": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json new file mode 100644 index 00000000000..163e9b73460 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json new file mode 100644 index 00000000000..2874d152002 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", + "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json similarity index 92% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json index 674975d4a97..1e57eb1dcab 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json @@ -54,7 +54,7 @@ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", { "apiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "envName": "NONE" } @@ -64,7 +64,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main" + "tableName": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] }, @@ -72,7 +72,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" + "tableName": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] }, @@ -80,7 +80,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main" + "tableName": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] } @@ -126,7 +126,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" } }, "AmplifyManagedTableOnEventRoleB4E71DEA": { @@ -183,7 +183,7 @@ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", { "apiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "envName": "NONE" } @@ -193,7 +193,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main" + "tableName": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] }, @@ -201,7 +201,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" + "tableName": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] }, @@ -209,7 +209,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main" + "tableName": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] } @@ -255,7 +255,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" } }, "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { @@ -281,7 +281,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" } }, "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { @@ -293,7 +293,7 @@ }, "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" }, - "Description": "AmplifyManagedTable - onEvent (amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Description": "AmplifyManagedTable - onEvent (amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", "Environment": { "Variables": { "WAITER_STATE_MACHINE_ARN": { @@ -338,7 +338,7 @@ "AmplifyManagedTableOnEventRoleB4E71DEA" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -353,7 +353,7 @@ }, "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" }, - "Description": "AmplifyManagedTable - isComplete (amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Description": "AmplifyManagedTable - isComplete (amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", "Handler": "amplify-table-manager-handler.isComplete", "Role": { "Fn::GetAtt": [ @@ -390,7 +390,7 @@ "AmplifyManagedTableIsCompleteRoleF825222C" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -435,7 +435,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" } }, "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { @@ -480,7 +480,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" } }, "AmplifyTableWaiterStateMachine060600BC": { @@ -513,16 +513,16 @@ "AmplifyTableWaiterStateMachineRole470BE899" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv4V9GXm4cCsmLo2BDyBDGclAaROmSEzDvxtAV+fcnMXNIDunkES4SKzbITbcQHiQeGorj3pQuEgdGEcIpTOkbi+78+kM6882D1uVwbFpEcJ9ttqzs1v7+6okr1GEvMB1g5IcilkP5AsUWlVJ4uZJk9pr5bFj2+1nv7Aq61qCXk7vLIP0AknUC3M8zdbzSFAe/ALgt1g4zwAAAA==" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNQQ6CMBBFz8K+jAgs3IqJS2PgAGRoR1IobcIUiWl6dwPo6r2ft/g55GUJWYIrp1KNqdEdhAexJ9V4lKPAldugcYJQO0Pi9rI7n85o+dnmYVEYnDqFEO6LlV47u7W/R8FFi8zkGa4bBBdQLXIkXyFTFDWxW2ZJYq+Nx17bfj/7hSisUwQDn955DucLZMnAWqfzYr2eCOqDX96JKODPAAAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -794,12 +794,12 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Type": "String" } }, "Outputs": { - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent6EDC1D70Arn": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn": { "Value": { "Fn::GetAtt": [ "TableManagerCustomProviderframeworkonEvent1DFC2ECC", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json new file mode 100644 index 00000000000..a0c53ba02c5 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", + "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name", + "ParameterValue": "ExerciseTable" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", + "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json similarity index 80% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json index 84e6e9fc44e..46466c82645 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json @@ -4,10 +4,10 @@ "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "WorkoutProgramexercisesauth0Function", @@ -17,17 +17,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/ConnectionStack/WorkoutProgramexercisesauth0Function/WorkoutProgramexercisesauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/WorkoutProgramexercisesauth0Function/WorkoutProgramexercisesauth0Function.AppSyncFunction" } }, "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseDataSource6949CF09Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name" }, "FunctionVersion": "2018-05-29", "Name": "WorkoutProgramExercisesDataResolverFn", @@ -39,14 +39,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/ConnectionStack/WorkoutProgramExercisesDataResolverFn/WorkoutProgramExercisesDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/WorkoutProgramExercisesDataResolverFn/WorkoutProgramExercisesDataResolverFn.AppSyncFunction" } }, "WorkoutProgramexercisesResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "exercises", "Kind": "PIPELINE", @@ -72,7 +72,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"exercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -88,7 +88,7 @@ "Fn::Split": [ ":", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseTable318B1DEBTableArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn" } ] } @@ -108,7 +108,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -120,11 +120,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -134,16 +134,16 @@ "TypeName": "WorkoutProgram" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/ConnectionStack/workoutProgramExercisesResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/workoutProgramExercisesResolver" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycUB1chcXSAByBnOUgBr6TXQgzh3Q06ffmXX4O+5pAluElquimd7Qv2J0mgrgloJoWbtLsULYpQELifKCmgjGaiUKKQwmWRDxvYq54fkU2wjivHvR2ixzNU1XNN4uaV/HGo36MJOFgeDsWuIxjlsmoN+Q2yZBRrUx852DdB/fcLM5uzFKcAAAA=" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycWBlchcXSAByBnOUgBr6TXQgzh3Q06ffmXX4MuCsgS3CQ13ZTO9gX7kyRQ1wQ0k8JN2l3yFkUoCNxPlORQRjNRKFFI4bLIhw3sVc+PyCZYx5Xj3g7R4xmq6rkmcfNK/jjU79EEHCwPh2LXEYxyWbWG6w2yZBRrUx852DdB/fcLf5ddvqcAAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/ConnectionStack/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -415,25 +415,25 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseDataSource6949CF09Name": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseTable318B1DEBTableArn": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { "Type": "String" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json new file mode 100644 index 00000000000..bc97b58fab7 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "GetAttExerciseTableName", + "OutputValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "Description": "Your DynamoDB table name.", + "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:ExerciseTable:Name" + }, + { + "OutputKey": "GetAttExerciseTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:28.559", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:ExerciseTable:StreamArn" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name", + "OutputValue": "ExerciseTable" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json new file mode 100644 index 00000000000..38cdcad28a9 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", + "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", + "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json index 37c0c5366f5..51d8ce95a98 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json @@ -37,22 +37,22 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { "Type": "String" } }, @@ -353,9 +353,9 @@ "Type": "Custom::ImportedAmplifyDynamoDBTable", "Properties": { "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183" }, - "tableName": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main", + "tableName": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "attributeDefinitions": [ { "attributeName": "id", @@ -444,7 +444,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/ExerciseTable/Default/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseTable/Default/Default" } }, "ExerciseIAMRole28D09384": { @@ -487,7 +487,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", { - "tablename": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" + "tablename": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] }, @@ -495,7 +495,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", { - "tablename": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" + "tablename": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] } @@ -513,7 +513,7 @@ [ "ExerciseIAMRoled0d0e6-", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "-NONE" ] @@ -543,14 +543,14 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/ExerciseIAMRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseIAMRole/Resource" } }, "ExerciseDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DynamoDBConfig": { "AwsRegion": { @@ -596,17 +596,17 @@ "ExerciseIAMRole28D09384" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/ExerciseDataSource/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseDataSource/Resource" } }, "QuerygetExerciseauth0FunctionQuerygetExerciseauth0FunctionAppSyncFunction0AC70BDB": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetExerciseauth0Function", @@ -616,17 +616,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/QuerygetExerciseauth0Function/QuerygetExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerygetExerciseauth0Function/QuerygetExerciseauth0Function.AppSyncFunction" } }, "QuerygetExercisepostAuth0FunctionQuerygetExercisepostAuth0FunctionAppSyncFunction6287EBF7": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetExercisepostAuth0Function", @@ -636,14 +636,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/QuerygetExercisepostAuth0Function/QuerygetExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerygetExercisepostAuth0Function/QuerygetExercisepostAuth0Function.AppSyncFunction" } }, "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -664,14 +664,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/QueryGetExerciseDataResolverFn/QueryGetExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QueryGetExerciseDataResolverFn/QueryGetExerciseDataResolverFn.AppSyncFunction" } }, "GetExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "getExercise", "Kind": "PIPELINE", @@ -703,7 +703,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -742,7 +742,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -754,11 +754,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -768,17 +768,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/queryGetExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/queryGetExerciseResolver" } }, "QuerylistExercisesauth0FunctionQuerylistExercisesauth0FunctionAppSyncFunction51A6AD03": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistExercisesauth0Function", @@ -788,17 +788,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/QuerylistExercisesauth0Function/QuerylistExercisesauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerylistExercisesauth0Function/QuerylistExercisesauth0Function.AppSyncFunction" } }, "QuerylistExercisespostAuth0FunctionQuerylistExercisespostAuth0FunctionAppSyncFunction0E7A24F2": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistExercisespostAuth0Function", @@ -808,14 +808,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/QuerylistExercisespostAuth0Function/QuerylistExercisespostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerylistExercisespostAuth0Function/QuerylistExercisespostAuth0Function.AppSyncFunction" } }, "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -836,14 +836,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/QueryListExercisesDataResolverFn/QueryListExercisesDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QueryListExercisesDataResolverFn/QueryListExercisesDataResolverFn.AppSyncFunction" } }, "ListExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "listExercises", "Kind": "PIPELINE", @@ -875,7 +875,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -914,7 +914,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -926,11 +926,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -940,17 +940,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/queryListExercisesResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/queryListExercisesResolver" } }, "MutationcreateExerciseinit0FunctionMutationcreateExerciseinit0FunctionAppSyncFunction007007C2": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateExerciseinit0Function", @@ -960,17 +960,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationcreateExerciseinit0Function/MutationcreateExerciseinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationcreateExerciseinit0Function/MutationcreateExerciseinit0Function.AppSyncFunction" } }, "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateExerciseauth0Function", @@ -980,17 +980,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationcreateExerciseauth0Function/MutationcreateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationcreateExerciseauth0Function/MutationcreateExerciseauth0Function.AppSyncFunction" } }, "MutationcreateExercisepostAuth0FunctionMutationcreateExercisepostAuth0FunctionAppSyncFunctionFAC86A10": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateExercisepostAuth0Function", @@ -1000,14 +1000,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationcreateExercisepostAuth0Function/MutationcreateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationcreateExercisepostAuth0Function/MutationcreateExercisepostAuth0Function.AppSyncFunction" } }, "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1028,14 +1028,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationCreateExerciseDataResolverFn/MutationCreateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationCreateExerciseDataResolverFn/MutationCreateExerciseDataResolverFn.AppSyncFunction" } }, "CreateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "createExercise", "Kind": "PIPELINE", @@ -1073,7 +1073,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1112,7 +1112,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1124,11 +1124,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1138,17 +1138,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/mutationCreateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/mutationCreateExerciseResolver" } }, "MutationupdateExerciseinit0FunctionMutationupdateExerciseinit0FunctionAppSyncFunction2DE5E607": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateExerciseinit0Function", @@ -1158,14 +1158,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationupdateExerciseinit0Function/MutationupdateExerciseinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationupdateExerciseinit0Function/MutationupdateExerciseinit0Function.AppSyncFunction" } }, "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1186,17 +1186,17 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationupdateExerciseauth0Function/MutationupdateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationupdateExerciseauth0Function/MutationupdateExerciseauth0Function.AppSyncFunction" } }, "MutationupdateExercisepostAuth0FunctionMutationupdateExercisepostAuth0FunctionAppSyncFunction25628A67": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateExercisepostAuth0Function", @@ -1206,14 +1206,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationupdateExercisepostAuth0Function/MutationupdateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationupdateExercisepostAuth0Function/MutationupdateExercisepostAuth0Function.AppSyncFunction" } }, "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1234,14 +1234,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationUpdateExerciseDataResolverFn/MutationUpdateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationUpdateExerciseDataResolverFn/MutationUpdateExerciseDataResolverFn.AppSyncFunction" } }, "UpdateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "updateExercise", "Kind": "PIPELINE", @@ -1279,7 +1279,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1318,7 +1318,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1330,11 +1330,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1344,14 +1344,14 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/mutationUpdateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/mutationUpdateExerciseResolver" } }, "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1372,17 +1372,17 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationdeleteExerciseauth0Function/MutationdeleteExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationdeleteExerciseauth0Function/MutationdeleteExerciseauth0Function.AppSyncFunction" } }, "MutationdeleteExercisepostAuth0FunctionMutationdeleteExercisepostAuth0FunctionAppSyncFunction990C3B7B": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationdeleteExercisepostAuth0Function", @@ -1392,14 +1392,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationdeleteExercisepostAuth0Function/MutationdeleteExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationdeleteExercisepostAuth0Function/MutationdeleteExercisepostAuth0Function.AppSyncFunction" } }, "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1420,14 +1420,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/MutationDeleteExerciseDataResolverFn/MutationDeleteExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationDeleteExerciseDataResolverFn/MutationDeleteExerciseDataResolverFn.AppSyncFunction" } }, "DeleteExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "deleteExercise", "Kind": "PIPELINE", @@ -1459,7 +1459,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1498,7 +1498,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1510,11 +1510,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1524,17 +1524,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/mutationDeleteExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/mutationDeleteExerciseResolver" } }, "SubscriptiononCreateExerciseauth0FunctionSubscriptiononCreateExerciseauth0FunctionAppSyncFunctionC50A81C7": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateExerciseauth0Function", @@ -1544,17 +1544,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptiononCreateExerciseauth0Function/SubscriptiononCreateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononCreateExerciseauth0Function/SubscriptiononCreateExerciseauth0Function.AppSyncFunction" } }, "SubscriptiononCreateExercisepostAuth0FunctionSubscriptiononCreateExercisepostAuth0FunctionAppSyncFunction5A196A51": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateExercisepostAuth0Function", @@ -1564,17 +1564,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptiononCreateExercisepostAuth0Function/SubscriptiononCreateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononCreateExercisepostAuth0Function/SubscriptiononCreateExercisepostAuth0Function.AppSyncFunction" } }, "SubscriptionOnCreateExerciseDataResolverFnSubscriptionOnCreateExerciseDataResolverFnAppSyncFunctionAB5DF306": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnCreateExerciseDataResolverFn", @@ -1586,14 +1586,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptionOnCreateExerciseDataResolverFn/SubscriptionOnCreateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptionOnCreateExerciseDataResolverFn/SubscriptionOnCreateExerciseDataResolverFn.AppSyncFunction" } }, "SubscriptiononCreateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onCreateExercise", "Kind": "PIPELINE", @@ -1625,7 +1625,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1637,7 +1637,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1649,11 +1649,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1663,17 +1663,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/subscriptionOnCreateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/subscriptionOnCreateExerciseResolver" } }, "SubscriptiononUpdateExerciseauth0FunctionSubscriptiononUpdateExerciseauth0FunctionAppSyncFunction9193D2A0": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateExerciseauth0Function", @@ -1683,17 +1683,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptiononUpdateExerciseauth0Function/SubscriptiononUpdateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononUpdateExerciseauth0Function/SubscriptiononUpdateExerciseauth0Function.AppSyncFunction" } }, "SubscriptiononUpdateExercisepostAuth0FunctionSubscriptiononUpdateExercisepostAuth0FunctionAppSyncFunctionDE028CEA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateExercisepostAuth0Function", @@ -1703,17 +1703,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptiononUpdateExercisepostAuth0Function/SubscriptiononUpdateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononUpdateExercisepostAuth0Function/SubscriptiononUpdateExercisepostAuth0Function.AppSyncFunction" } }, "SubscriptionOnUpdateExerciseDataResolverFnSubscriptionOnUpdateExerciseDataResolverFnAppSyncFunctionA7AA88CA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnUpdateExerciseDataResolverFn", @@ -1725,14 +1725,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptionOnUpdateExerciseDataResolverFn/SubscriptionOnUpdateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptionOnUpdateExerciseDataResolverFn/SubscriptionOnUpdateExerciseDataResolverFn.AppSyncFunction" } }, "SubscriptiononUpdateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onUpdateExercise", "Kind": "PIPELINE", @@ -1764,7 +1764,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1776,7 +1776,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1788,11 +1788,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1802,17 +1802,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/subscriptionOnUpdateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/subscriptionOnUpdateExerciseResolver" } }, "SubscriptiononDeleteExerciseauth0FunctionSubscriptiononDeleteExerciseauth0FunctionAppSyncFunction54DF160B": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteExerciseauth0Function", @@ -1822,17 +1822,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptiononDeleteExerciseauth0Function/SubscriptiononDeleteExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononDeleteExerciseauth0Function/SubscriptiononDeleteExerciseauth0Function.AppSyncFunction" } }, "SubscriptiononDeleteExercisepostAuth0FunctionSubscriptiononDeleteExercisepostAuth0FunctionAppSyncFunctionAF03921E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteExercisepostAuth0Function", @@ -1842,17 +1842,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptiononDeleteExercisepostAuth0Function/SubscriptiononDeleteExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononDeleteExercisepostAuth0Function/SubscriptiononDeleteExercisepostAuth0Function.AppSyncFunction" } }, "SubscriptionOnDeleteExerciseDataResolverFnSubscriptionOnDeleteExerciseDataResolverFnAppSyncFunctionA2A2A8C9": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnDeleteExerciseDataResolverFn", @@ -1864,14 +1864,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/SubscriptionOnDeleteExerciseDataResolverFn/SubscriptionOnDeleteExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptionOnDeleteExerciseDataResolverFn/SubscriptionOnDeleteExerciseDataResolverFn.AppSyncFunction" } }, "SubscriptiononDeleteExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onDeleteExercise", "Kind": "PIPELINE", @@ -1903,7 +1903,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1915,7 +1915,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1927,11 +1927,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1941,17 +1941,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/subscriptionOnDeleteExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/subscriptionOnDeleteExerciseResolver" } }, "ExerciseOwnerDataResolverFnExerciseOwnerDataResolverFnAppSyncFunction8652EC02": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "ExerciseOwnerDataResolverFn", @@ -1963,14 +1963,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/ExerciseOwnerDataResolverFn/ExerciseOwnerDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseOwnerDataResolverFn/ExerciseOwnerDataResolverFn.AppSyncFunction" } }, "ExerciseownerResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "owner", "Kind": "PIPELINE", @@ -1990,7 +1990,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Exercise\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -2002,7 +2002,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -2014,11 +2014,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -2028,16 +2028,16 @@ "TypeName": "Exercise" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/exerciseOwnerResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/exerciseOwnerResolver" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -2057,7 +2057,7 @@ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "GetAtt:ExerciseTable:StreamArn" ] @@ -2067,14 +2067,14 @@ }, "GetAttExerciseTableName": { "Description": "Your DynamoDB table name.", - "Value": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main", + "Value": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "Export": { "Name": { "Fn::Join": [ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "GetAtt:ExerciseTable:Name" ] @@ -2082,7 +2082,7 @@ } } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseDataSource6949CF09Name": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name": { "Value": { "Fn::GetAtt": [ "ExerciseDataSource", @@ -2090,7 +2090,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseTable318B1DEBTableArn": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn": { "Value": { "Fn::GetAtt": [ "ExerciseTable", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json new file mode 100644 index 00000000000..806d542aba6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "GetAttMealTableName", + "OutputValue": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "Description": "Your DynamoDB table name.", + "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:MealTable:Name" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + }, + { + "OutputKey": "GetAttMealTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:27.982", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:MealTable:StreamArn" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json new file mode 100644 index 00000000000..38cdcad28a9 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", + "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", + "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json index 1d01befbf84..9a63657aa60 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json @@ -37,22 +37,22 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { "Type": "String" } }, @@ -353,9 +353,9 @@ "Type": "Custom::ImportedAmplifyDynamoDBTable", "Properties": { "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183" }, - "tableName": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main", + "tableName": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "attributeDefinitions": [ { "attributeName": "id", @@ -418,7 +418,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MealTable/Default/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MealTable/Default/Default" } }, "MealIAMRoleEDE19E15": { @@ -461,7 +461,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", { - "tablename": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main" + "tablename": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] }, @@ -469,7 +469,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", { - "tablename": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main" + "tablename": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] } @@ -487,7 +487,7 @@ [ "MealIAMRole54b7fd-", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "-NONE" ] @@ -517,14 +517,14 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MealIAMRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MealIAMRole/Resource" } }, "MealDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DynamoDBConfig": { "AwsRegion": { @@ -570,17 +570,17 @@ "MealIAMRoleEDE19E15" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MealDataSource/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MealDataSource/Resource" } }, "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetMealauth0Function", @@ -590,17 +590,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/QuerygetMealauth0Function/QuerygetMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerygetMealauth0Function/QuerygetMealauth0Function.AppSyncFunction" } }, "QuerygetMealpostAuth0FunctionQuerygetMealpostAuth0FunctionAppSyncFunction9E0F196D": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetMealpostAuth0Function", @@ -610,14 +610,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/QuerygetMealpostAuth0Function/QuerygetMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerygetMealpostAuth0Function/QuerygetMealpostAuth0Function.AppSyncFunction" } }, "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -638,14 +638,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/QueryGetMealDataResolverFn/QueryGetMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QueryGetMealDataResolverFn/QueryGetMealDataResolverFn.AppSyncFunction" } }, "GetMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "getMeal", "Kind": "PIPELINE", @@ -677,7 +677,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -716,7 +716,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -728,11 +728,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -742,17 +742,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/queryGetMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/queryGetMealResolver" } }, "QuerylistMealsauth0FunctionQuerylistMealsauth0FunctionAppSyncFunctionB47607B5": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistMealsauth0Function", @@ -762,17 +762,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/QuerylistMealsauth0Function/QuerylistMealsauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerylistMealsauth0Function/QuerylistMealsauth0Function.AppSyncFunction" } }, "QuerylistMealspostAuth0FunctionQuerylistMealspostAuth0FunctionAppSyncFunction15CC850C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistMealspostAuth0Function", @@ -782,14 +782,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/QuerylistMealspostAuth0Function/QuerylistMealspostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerylistMealspostAuth0Function/QuerylistMealspostAuth0Function.AppSyncFunction" } }, "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -810,14 +810,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/QueryListMealsDataResolverFn/QueryListMealsDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QueryListMealsDataResolverFn/QueryListMealsDataResolverFn.AppSyncFunction" } }, "ListMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "listMeals", "Kind": "PIPELINE", @@ -849,7 +849,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMeals\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -888,7 +888,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -900,11 +900,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -914,17 +914,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/queryListMealsResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/queryListMealsResolver" } }, "MutationcreateMealinit0FunctionMutationcreateMealinit0FunctionAppSyncFunctionC8456643": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateMealinit0Function", @@ -934,17 +934,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationcreateMealinit0Function/MutationcreateMealinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationcreateMealinit0Function/MutationcreateMealinit0Function.AppSyncFunction" } }, "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateMealauth0Function", @@ -954,17 +954,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationcreateMealauth0Function/MutationcreateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationcreateMealauth0Function/MutationcreateMealauth0Function.AppSyncFunction" } }, "MutationcreateMealpostAuth0FunctionMutationcreateMealpostAuth0FunctionAppSyncFunctionF0FDFBD0": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateMealpostAuth0Function", @@ -974,14 +974,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationcreateMealpostAuth0Function/MutationcreateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationcreateMealpostAuth0Function/MutationcreateMealpostAuth0Function.AppSyncFunction" } }, "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1002,14 +1002,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationCreateMealDataResolverFn/MutationCreateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationCreateMealDataResolverFn/MutationCreateMealDataResolverFn.AppSyncFunction" } }, "CreateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "createMeal", "Kind": "PIPELINE", @@ -1047,7 +1047,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1086,7 +1086,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1098,11 +1098,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1112,17 +1112,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/mutationCreateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/mutationCreateMealResolver" } }, "MutationupdateMealinit0FunctionMutationupdateMealinit0FunctionAppSyncFunction80065D7F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateMealinit0Function", @@ -1132,14 +1132,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationupdateMealinit0Function/MutationupdateMealinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationupdateMealinit0Function/MutationupdateMealinit0Function.AppSyncFunction" } }, "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1160,17 +1160,17 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationupdateMealauth0Function/MutationupdateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationupdateMealauth0Function/MutationupdateMealauth0Function.AppSyncFunction" } }, "MutationupdateMealpostAuth0FunctionMutationupdateMealpostAuth0FunctionAppSyncFunction5B29DBED": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateMealpostAuth0Function", @@ -1180,14 +1180,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationupdateMealpostAuth0Function/MutationupdateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationupdateMealpostAuth0Function/MutationupdateMealpostAuth0Function.AppSyncFunction" } }, "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1208,14 +1208,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationUpdateMealDataResolverFn/MutationUpdateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationUpdateMealDataResolverFn/MutationUpdateMealDataResolverFn.AppSyncFunction" } }, "UpdateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "updateMeal", "Kind": "PIPELINE", @@ -1253,7 +1253,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1292,7 +1292,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1304,11 +1304,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1318,14 +1318,14 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/mutationUpdateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/mutationUpdateMealResolver" } }, "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1346,17 +1346,17 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationdeleteMealauth0Function/MutationdeleteMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationdeleteMealauth0Function/MutationdeleteMealauth0Function.AppSyncFunction" } }, "MutationdeleteMealpostAuth0FunctionMutationdeleteMealpostAuth0FunctionAppSyncFunctionC9BB36B8": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationdeleteMealpostAuth0Function", @@ -1366,14 +1366,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationdeleteMealpostAuth0Function/MutationdeleteMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationdeleteMealpostAuth0Function/MutationdeleteMealpostAuth0Function.AppSyncFunction" } }, "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1394,14 +1394,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/MutationDeleteMealDataResolverFn/MutationDeleteMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationDeleteMealDataResolverFn/MutationDeleteMealDataResolverFn.AppSyncFunction" } }, "DeleteMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "deleteMeal", "Kind": "PIPELINE", @@ -1433,7 +1433,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1472,7 +1472,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1484,11 +1484,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1498,17 +1498,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/mutationDeleteMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/mutationDeleteMealResolver" } }, "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateMealauth0Function", @@ -1518,17 +1518,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptiononCreateMealauth0Function/SubscriptiononCreateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononCreateMealauth0Function/SubscriptiononCreateMealauth0Function.AppSyncFunction" } }, "SubscriptiononCreateMealpostAuth0FunctionSubscriptiononCreateMealpostAuth0FunctionAppSyncFunction820A2BD2": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateMealpostAuth0Function", @@ -1538,17 +1538,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptiononCreateMealpostAuth0Function/SubscriptiononCreateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononCreateMealpostAuth0Function/SubscriptiononCreateMealpostAuth0Function.AppSyncFunction" } }, "SubscriptionOnCreateMealDataResolverFnSubscriptionOnCreateMealDataResolverFnAppSyncFunctionF1334F8F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnCreateMealDataResolverFn", @@ -1560,14 +1560,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptionOnCreateMealDataResolverFn/SubscriptionOnCreateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptionOnCreateMealDataResolverFn/SubscriptionOnCreateMealDataResolverFn.AppSyncFunction" } }, "SubscriptiononCreateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onCreateMeal", "Kind": "PIPELINE", @@ -1599,7 +1599,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1611,7 +1611,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1623,11 +1623,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1637,17 +1637,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/subscriptionOnCreateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/subscriptionOnCreateMealResolver" } }, "SubscriptiononUpdateMealauth0FunctionSubscriptiononUpdateMealauth0FunctionAppSyncFunction2DF3B7A1": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateMealauth0Function", @@ -1657,17 +1657,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptiononUpdateMealauth0Function/SubscriptiononUpdateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononUpdateMealauth0Function/SubscriptiononUpdateMealauth0Function.AppSyncFunction" } }, "SubscriptiononUpdateMealpostAuth0FunctionSubscriptiononUpdateMealpostAuth0FunctionAppSyncFunction6DDD0917": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateMealpostAuth0Function", @@ -1677,17 +1677,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptiononUpdateMealpostAuth0Function/SubscriptiononUpdateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononUpdateMealpostAuth0Function/SubscriptiononUpdateMealpostAuth0Function.AppSyncFunction" } }, "SubscriptionOnUpdateMealDataResolverFnSubscriptionOnUpdateMealDataResolverFnAppSyncFunction7E09A153": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnUpdateMealDataResolverFn", @@ -1699,14 +1699,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptionOnUpdateMealDataResolverFn/SubscriptionOnUpdateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptionOnUpdateMealDataResolverFn/SubscriptionOnUpdateMealDataResolverFn.AppSyncFunction" } }, "SubscriptiononUpdateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onUpdateMeal", "Kind": "PIPELINE", @@ -1738,7 +1738,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1750,7 +1750,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1762,11 +1762,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1776,17 +1776,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/subscriptionOnUpdateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/subscriptionOnUpdateMealResolver" } }, "SubscriptiononDeleteMealauth0FunctionSubscriptiononDeleteMealauth0FunctionAppSyncFunctionE50EF48C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteMealauth0Function", @@ -1796,17 +1796,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptiononDeleteMealauth0Function/SubscriptiononDeleteMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononDeleteMealauth0Function/SubscriptiononDeleteMealauth0Function.AppSyncFunction" } }, "SubscriptiononDeleteMealpostAuth0FunctionSubscriptiononDeleteMealpostAuth0FunctionAppSyncFunction6FA10C5F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteMealpostAuth0Function", @@ -1816,17 +1816,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptiononDeleteMealpostAuth0Function/SubscriptiononDeleteMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononDeleteMealpostAuth0Function/SubscriptiononDeleteMealpostAuth0Function.AppSyncFunction" } }, "SubscriptionOnDeleteMealDataResolverFnSubscriptionOnDeleteMealDataResolverFnAppSyncFunction0A2F61AD": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnDeleteMealDataResolverFn", @@ -1838,14 +1838,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/SubscriptionOnDeleteMealDataResolverFn/SubscriptionOnDeleteMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptionOnDeleteMealDataResolverFn/SubscriptionOnDeleteMealDataResolverFn.AppSyncFunction" } }, "SubscriptiononDeleteMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onDeleteMeal", "Kind": "PIPELINE", @@ -1877,7 +1877,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1889,7 +1889,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1901,11 +1901,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1915,16 +1915,16 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/subscriptionOnDeleteMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/subscriptionOnDeleteMealResolver" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1944,7 +1944,7 @@ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "GetAtt:MealTable:StreamArn" ] @@ -1954,14 +1954,14 @@ }, "GetAttMealTableName": { "Description": "Your DynamoDB table name.", - "Value": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main", + "Value": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "Export": { "Name": { "Fn::Join": [ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "GetAtt:MealTable:Name" ] @@ -1969,7 +1969,7 @@ } } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataMealMealTableFB0A2E92TableArn": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn": { "Value": { "Fn::GetAtt": [ "MealTable", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json similarity index 54% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json index eb6fbe78fd0..8547db3c37e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json @@ -1,14 +1,14 @@ [ { "OutputKey": "GetAttWorkoutProgramTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main/stream/2026-03-07T19:48:24.327", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:13:40.073", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "aolmivry45bvbmfywwm6tb542u:GetAtt:WorkoutProgramTable:StreamArn" + "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:WorkoutProgramTable:StreamArn" }, { "OutputKey": "GetAttWorkoutProgramTableName", - "OutputValue": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main", + "OutputValue": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "Description": "Your DynamoDB table name.", - "ExportName": "aolmivry45bvbmfywwm6tb542u:GetAtt:WorkoutProgramTable:Name" + "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:WorkoutProgramTable:Name" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json new file mode 100644 index 00000000000..38cdcad28a9 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", + "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", + "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json index c00ea2d0428..60c31d30707 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json @@ -37,22 +37,22 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { "Type": "String" } }, @@ -353,9 +353,9 @@ "Type": "Custom::ImportedAmplifyDynamoDBTable", "Properties": { "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183" }, - "tableName": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main", + "tableName": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "attributeDefinitions": [ { "attributeName": "id", @@ -418,7 +418,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/WorkoutProgramTable/Default/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramTable/Default/Default" } }, "WorkoutProgramIAMRoleB75B98D5": { @@ -461,7 +461,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", { - "tablename": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main" + "tablename": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] }, @@ -469,7 +469,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", { - "tablename": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main" + "tablename": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" } ] } @@ -487,7 +487,7 @@ [ "WorkoutProgramIAMRol516c57-", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "-NONE" ] @@ -517,14 +517,14 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/WorkoutProgramIAMRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramIAMRole/Resource" } }, "WorkoutProgramDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DynamoDBConfig": { "AwsRegion": { @@ -570,17 +570,17 @@ "WorkoutProgramIAMRoleB75B98D5" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/WorkoutProgramDataSource/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramDataSource/Resource" } }, "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetWorkoutProgramauth0Function", @@ -590,17 +590,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgramauth0Function/QuerygetWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgramauth0Function/QuerygetWorkoutProgramauth0Function.AppSyncFunction" } }, "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetWorkoutProgrampostAuth0Function", @@ -610,14 +610,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgrampostAuth0Function/QuerygetWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgrampostAuth0Function/QuerygetWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -638,14 +638,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/QueryGetWorkoutProgramDataResolverFn/QueryGetWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QueryGetWorkoutProgramDataResolverFn/QueryGetWorkoutProgramDataResolverFn.AppSyncFunction" } }, "GetWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "getWorkoutProgram", "Kind": "PIPELINE", @@ -677,7 +677,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -716,7 +716,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -728,11 +728,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -742,17 +742,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/queryGetWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/queryGetWorkoutProgramResolver" } }, "QuerylistWorkoutProgramsauth0FunctionQuerylistWorkoutProgramsauth0FunctionAppSyncFunctionEDC95461": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistWorkoutProgramsauth0Function", @@ -762,17 +762,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramsauth0Function/QuerylistWorkoutProgramsauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramsauth0Function/QuerylistWorkoutProgramsauth0Function.AppSyncFunction" } }, "QuerylistWorkoutProgramspostAuth0FunctionQuerylistWorkoutProgramspostAuth0FunctionAppSyncFunction784BDD23": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistWorkoutProgramspostAuth0Function", @@ -782,14 +782,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramspostAuth0Function/QuerylistWorkoutProgramspostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramspostAuth0Function/QuerylistWorkoutProgramspostAuth0Function.AppSyncFunction" } }, "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -810,14 +810,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/QueryListWorkoutProgramsDataResolverFn/QueryListWorkoutProgramsDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QueryListWorkoutProgramsDataResolverFn/QueryListWorkoutProgramsDataResolverFn.AppSyncFunction" } }, "ListWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "listWorkoutPrograms", "Kind": "PIPELINE", @@ -849,7 +849,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listWorkoutPrograms\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -888,7 +888,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -900,11 +900,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -914,17 +914,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/queryListWorkoutProgramsResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/queryListWorkoutProgramsResolver" } }, "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateWorkoutPrograminit0Function", @@ -934,17 +934,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationcreateWorkoutPrograminit0Function/MutationcreateWorkoutPrograminit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationcreateWorkoutPrograminit0Function/MutationcreateWorkoutPrograminit0Function.AppSyncFunction" } }, "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateWorkoutProgramauth0Function", @@ -954,17 +954,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgramauth0Function/MutationcreateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgramauth0Function/MutationcreateWorkoutProgramauth0Function.AppSyncFunction" } }, "MutationcreateWorkoutProgrampostAuth0FunctionMutationcreateWorkoutProgrampostAuth0FunctionAppSyncFunctionC1F2C501": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateWorkoutProgrampostAuth0Function", @@ -974,14 +974,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgrampostAuth0Function/MutationcreateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgrampostAuth0Function/MutationcreateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1002,14 +1002,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationCreateWorkoutProgramDataResolverFn/MutationCreateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationCreateWorkoutProgramDataResolverFn/MutationCreateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "CreateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "createWorkoutProgram", "Kind": "PIPELINE", @@ -1047,7 +1047,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1086,7 +1086,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1098,11 +1098,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1112,17 +1112,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/mutationCreateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/mutationCreateWorkoutProgramResolver" } }, "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateWorkoutPrograminit0Function", @@ -1132,14 +1132,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationupdateWorkoutPrograminit0Function/MutationupdateWorkoutPrograminit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationupdateWorkoutPrograminit0Function/MutationupdateWorkoutPrograminit0Function.AppSyncFunction" } }, "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1160,17 +1160,17 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgramauth0Function/MutationupdateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgramauth0Function/MutationupdateWorkoutProgramauth0Function.AppSyncFunction" } }, "MutationupdateWorkoutProgrampostAuth0FunctionMutationupdateWorkoutProgrampostAuth0FunctionAppSyncFunction848486DA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateWorkoutProgrampostAuth0Function", @@ -1180,14 +1180,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgrampostAuth0Function/MutationupdateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgrampostAuth0Function/MutationupdateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1208,14 +1208,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationUpdateWorkoutProgramDataResolverFn/MutationUpdateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationUpdateWorkoutProgramDataResolverFn/MutationUpdateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "UpdateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "updateWorkoutProgram", "Kind": "PIPELINE", @@ -1253,7 +1253,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1292,7 +1292,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1304,11 +1304,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1318,14 +1318,14 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/mutationUpdateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/mutationUpdateWorkoutProgramResolver" } }, "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1346,17 +1346,17 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgramauth0Function/MutationdeleteWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgramauth0Function/MutationdeleteWorkoutProgramauth0Function.AppSyncFunction" } }, "MutationdeleteWorkoutProgrampostAuth0FunctionMutationdeleteWorkoutProgrampostAuth0FunctionAppSyncFunction1A56FB4E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationdeleteWorkoutProgrampostAuth0Function", @@ -1366,14 +1366,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgrampostAuth0Function/MutationdeleteWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgrampostAuth0Function/MutationdeleteWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1394,14 +1394,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/MutationDeleteWorkoutProgramDataResolverFn/MutationDeleteWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationDeleteWorkoutProgramDataResolverFn/MutationDeleteWorkoutProgramDataResolverFn.AppSyncFunction" } }, "DeleteWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "deleteWorkoutProgram", "Kind": "PIPELINE", @@ -1433,7 +1433,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1472,7 +1472,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1484,11 +1484,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1498,17 +1498,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/mutationDeleteWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/mutationDeleteWorkoutProgramResolver" } }, "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateWorkoutProgramauth0Function", @@ -1518,17 +1518,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgramauth0Function/SubscriptiononCreateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgramauth0Function/SubscriptiononCreateWorkoutProgramauth0Function.AppSyncFunction" } }, "SubscriptiononCreateWorkoutProgrampostAuth0FunctionSubscriptiononCreateWorkoutProgrampostAuth0FunctionAppSyncFunction1FBC8B34": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateWorkoutProgrampostAuth0Function", @@ -1538,17 +1538,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgrampostAuth0Function/SubscriptiononCreateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgrampostAuth0Function/SubscriptiononCreateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnCreateWorkoutProgramDataResolverFn", @@ -1560,14 +1560,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptionOnCreateWorkoutProgramDataResolverFn/SubscriptionOnCreateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptionOnCreateWorkoutProgramDataResolverFn/SubscriptionOnCreateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "SubscriptiononCreateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onCreateWorkoutProgram", "Kind": "PIPELINE", @@ -1599,7 +1599,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1611,7 +1611,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1623,11 +1623,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1637,17 +1637,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/subscriptionOnCreateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/subscriptionOnCreateWorkoutProgramResolver" } }, "SubscriptiononUpdateWorkoutProgramauth0FunctionSubscriptiononUpdateWorkoutProgramauth0FunctionAppSyncFunctionEC33DFA9": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateWorkoutProgramauth0Function", @@ -1657,17 +1657,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgramauth0Function/SubscriptiononUpdateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgramauth0Function/SubscriptiononUpdateWorkoutProgramauth0Function.AppSyncFunction" } }, "SubscriptiononUpdateWorkoutProgrampostAuth0FunctionSubscriptiononUpdateWorkoutProgrampostAuth0FunctionAppSyncFunctionB64D3021": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateWorkoutProgrampostAuth0Function", @@ -1677,17 +1677,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgrampostAuth0Function/SubscriptiononUpdateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgrampostAuth0Function/SubscriptiononUpdateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "SubscriptionOnUpdateWorkoutProgramDataResolverFnSubscriptionOnUpdateWorkoutProgramDataResolverFnAppSyncFunction09BC3352": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnUpdateWorkoutProgramDataResolverFn", @@ -1699,14 +1699,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptionOnUpdateWorkoutProgramDataResolverFn/SubscriptionOnUpdateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptionOnUpdateWorkoutProgramDataResolverFn/SubscriptionOnUpdateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "SubscriptiononUpdateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onUpdateWorkoutProgram", "Kind": "PIPELINE", @@ -1738,7 +1738,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1750,7 +1750,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1762,11 +1762,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1776,17 +1776,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/subscriptionOnUpdateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/subscriptionOnUpdateWorkoutProgramResolver" } }, "SubscriptiononDeleteWorkoutProgramauth0FunctionSubscriptiononDeleteWorkoutProgramauth0FunctionAppSyncFunction798D646D": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteWorkoutProgramauth0Function", @@ -1796,17 +1796,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgramauth0Function/SubscriptiononDeleteWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgramauth0Function/SubscriptiononDeleteWorkoutProgramauth0Function.AppSyncFunction" } }, "SubscriptiononDeleteWorkoutProgrampostAuth0FunctionSubscriptiononDeleteWorkoutProgrampostAuth0FunctionAppSyncFunctionF1F4A2FC": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteWorkoutProgrampostAuth0Function", @@ -1816,17 +1816,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgrampostAuth0Function/SubscriptiononDeleteWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgrampostAuth0Function/SubscriptiononDeleteWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "SubscriptionOnDeleteWorkoutProgramDataResolverFnSubscriptionOnDeleteWorkoutProgramDataResolverFnAppSyncFunction7AE965FB": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnDeleteWorkoutProgramDataResolverFn", @@ -1838,14 +1838,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/SubscriptionOnDeleteWorkoutProgramDataResolverFn/SubscriptionOnDeleteWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptionOnDeleteWorkoutProgramDataResolverFn/SubscriptionOnDeleteWorkoutProgramDataResolverFn.AppSyncFunction" } }, "SubscriptiononDeleteWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "onDeleteWorkoutProgram", "Kind": "PIPELINE", @@ -1877,7 +1877,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1889,7 +1889,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1901,11 +1901,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1915,17 +1915,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/subscriptionOnDeleteWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/subscriptionOnDeleteWorkoutProgramResolver" } }, "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" }, "FunctionVersion": "2018-05-29", "Name": "WorkoutProgramOwnerDataResolverFn", @@ -1937,14 +1937,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/WorkoutProgramOwnerDataResolverFn/WorkoutProgramOwnerDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramOwnerDataResolverFn/WorkoutProgramOwnerDataResolverFn.AppSyncFunction" } }, "WorkoutProgramownerResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "FieldName": "owner", "Kind": "PIPELINE", @@ -1964,7 +1964,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1976,7 +1976,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1988,11 +1988,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -2002,16 +2002,16 @@ "TypeName": "WorkoutProgram" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/workoutProgramOwnerResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/workoutProgramOwnerResolver" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -2031,7 +2031,7 @@ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "GetAtt:WorkoutProgramTable:StreamArn" ] @@ -2041,14 +2041,14 @@ }, "GetAttWorkoutProgramTableName": { "Description": "Your DynamoDB table name.", - "Value": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main", + "Value": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "Export": { "Name": { "Fn::Join": [ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" }, "GetAtt:WorkoutProgramTable:Name" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.description.txt similarity index 52% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.description.txt index 813452072ac..72751282334 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.description.txt +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.1","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json new file mode 100644 index 00000000000..acc4660e422 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json @@ -0,0 +1,38 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef", + "OutputValue": "dgddko7evul00or8262g7n9ub" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref", + "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef", + "OutputValue": "admin-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", + "OutputValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", + "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref", + "OutputValue": "us-east-1_mQEsDQ1lC" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref", + "OutputValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json similarity index 89% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json index 1b25badf7c6..eabf888a35e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", @@ -23,7 +23,7 @@ "LambdaConfig": { "PreSignUp": { "Fn::GetAtt": [ - "fitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambda552B59F7", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42", "Arn" ] } @@ -72,7 +72,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/UserPool/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/Resource" } }, "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { @@ -81,7 +81,7 @@ "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "fitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambda552B59F7", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42", "Arn" ] }, @@ -94,7 +94,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/UserPool/PreSignUpCognito" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" } }, "amplifyAuthUserPoolNativeAppClient79534448": { @@ -117,7 +117,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" } }, "amplifyAuthUserPoolAppClient2626C6F8": { @@ -151,7 +151,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/UserPoolAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPoolAppClient/Resource" } }, "amplifyAuthIdentityPool3FDE84CC": { @@ -205,7 +205,7 @@ "SupportedLoginProviders": {} }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/IdentityPool" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPool" } }, "amplifyAuthauthenticatedUserRoleD8DA3689": { @@ -257,7 +257,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/authenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" } }, "amplifyAuthunauthenticatedUserRole2B524D9E": { @@ -309,7 +309,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/unauthenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, "amplifyAuthIdentityPoolRoleAttachment045F17C8": { @@ -363,7 +363,7 @@ "amplifyAuthUserPoolAppClient2626C6F8" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/IdentityPoolRoleAttachment" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPoolRoleAttachment" } }, "amplifyAuthAdminGroupRole766878DC": { @@ -415,7 +415,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/AdminGroupRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" } }, "amplifyAuthAdminGroupCC42FF04": { @@ -434,10 +434,10 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/amplifyAuth/AdminGroup" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" } }, - "fitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambdaServiceRole4099EE40": { + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -481,7 +481,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker6b0fc1196b0fc119PreSignup-gen2-main" + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" }, { "Key": "created-by", @@ -490,10 +490,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/fitnesstracker6b0fc1196b0fc119PreSignup-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" } }, - "fitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambda552B59F7": { + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { "Type": "AWS::Lambda::Function", "Properties": { "Architectures": [ @@ -503,7 +503,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "6a32c10425f870bd089bcc5e1fa62637d7ec836e4ff6843940c7c0ca1b22e010.zip" + "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" }, "Environment": { "Variables": { @@ -518,12 +518,12 @@ "EphemeralStorage": { "Size": 512 }, - "FunctionName": "fitnesstracker6b0fc1196b0fc119PreSignup-gen2-main", + "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, "Role": { "Fn::GetAtt": [ - "fitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambdaServiceRole4099EE40", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", "Arn" ] }, @@ -543,7 +543,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker6b0fc1196b0fc119PreSignup-gen2-main" + "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" }, { "Key": "created-by", @@ -553,11 +553,11 @@ "Timeout": 25 }, "DependsOn": [ - "fitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambdaServiceRole4099EE40" + "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/fitnesstracker6b0fc1196b0fc119PreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.6a32c10425f870bd089bcc5e1fa62637d7ec836e4ff6843940c7c0ca1b22e010", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -565,7 +565,7 @@ "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-f6c5a5beb3/AMPLIFY_AUTH_USERPOOL_ID", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -578,7 +578,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" } }, "admingen2mainlambdaServiceRole439B1792": { @@ -634,7 +634,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/admin-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" } }, "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { @@ -661,7 +661,7 @@ { "Ref": "AWS::AccountId" }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-f6c5a5beb3/AMPLIFY_AUTH_USERPOOL_ID" + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" ] ] } @@ -677,7 +677,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "admingen2mainlambdaECF7211C": { @@ -690,15 +690,15 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "f45cbae1f6bc1783cca1ba23dbdd65d02718c1e52af14f40058b0e620d368ca9.zip" + "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" }, "Environment": { "Variables": { "ENV": "gen2-main", "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-f6c5a5beb3/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER6B0FC1196B0FC119_USERPOOLID": { + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { "Ref": "amplifyAuthUserPool4BA7F805" } } @@ -744,8 +744,8 @@ "admingen2mainlambdaServiceRole439B1792" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.f45cbae1f6bc1783cca1ba23dbdd65d02718c1e52af14f40058b0e620d368ca9", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -776,7 +776,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/userpoolAccess1/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" } }, "userpoolAccess268F187DB": { @@ -805,7 +805,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/userpoolAccess2/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" } }, "userpoolAccess3956C62F8": { @@ -834,7 +834,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/userpoolAccess3/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" } }, "userpoolAccess4A84025C3": { @@ -863,7 +863,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/userpoolAccess4/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" } }, "userpoolAccess585E2FB32": { @@ -892,7 +892,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/userpoolAccess5/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" } }, "userpoolAccess600DA4CB0": { @@ -921,7 +921,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/userpoolAccess6/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" } }, "userpoolAccess76F9C91C1": { @@ -950,16 +950,16 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/userpoolAccess7/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74kLooVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKJ63sFnpK69NO6wtnSEdkQXbWrQZlL5yk0zoPEmA9MEYqxCsKi/+1y+mtIReHld/k/cWvZDclvJjPgWLexFtPt2//lsM49ekrHbnVkMqL77C6IiZgs93r6M3QsFPirSDlEF5PGsVLJlbjne3YBofWuwZjrMsBMW7RjOjMOyzKN7BYTQDykEzKmYHqZZIvqt01A4F44xewjSpuVeL7sh3k8pfoOen76KA7QtsVj0TrePohRzC6a4/ExlBjn4BAAA=" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1231,42 +1231,42 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { "Value": { "Ref": "amplifyAuthUserPool4BA7F805" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPoolAppClient1C98798ERef": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { "Value": { "Ref": "amplifyAuthUserPoolAppClient2626C6F8" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { "Value": { "Ref": "amplifyAuthIdentityPool3FDE84CC" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authfitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambda8F8CF17DRef": { + "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { "Value": { - "Ref": "fitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambda552B59F7" + "Ref": "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6ARef": { + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { "Value": { "Ref": "admingen2mainlambdaECF7211C" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Value": { "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { "Value": { "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn": { + "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { "Value": { "Fn::GetAtt": [ "admingen2mainlambdaECF7211C", @@ -1274,7 +1274,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref": { + "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { "Value": { "Ref": "amplifyAuthAdminGroupRole766878DC" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json new file mode 100644 index 00000000000..43bc96aaa6b --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json @@ -0,0 +1,26 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Ref", + "OutputValue": "lognutrition-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", + "OutputValue": "uhg6hv7zmzav5doaroa4tocwv4" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIDefaultApiKeyE10BC731ApiKey", + "OutputValue": "da2-mpyed5y2pvbcjl2qcbxuq2rspe" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAGraphQLUrl", + "OutputValue": "https://7ltandzu5zbxvcqrr24edz4hym.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8E4BD6ABDestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-fitnesstracker-ge-amplifydataamplifycodege-cxlnc2wmwnpq" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json new file mode 100644 index 00000000000..59d1fb810b6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref", + "ParameterValue": "us-east-1_mQEsDQ1lC" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", + "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json similarity index 79% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json index 39c737dc172..b49a224a022 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json @@ -39,12 +39,12 @@ }, "DefaultAction": "ALLOW", "UserPoolId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref" } } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/GraphQLAPI/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/Resource" } }, "amplifyDataGraphQLAPITransformerSchemaFF50A789": { @@ -61,7 +61,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/GraphQLAPI/TransformerSchema" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/TransformerSchema" } }, "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { @@ -74,10 +74,10 @@ ] }, "Description": "graphql", - "Expires": 1773522369 + "Expires": 1774832761 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/GraphQLAPI/DefaultApiKey" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/DefaultApiKey" } }, "amplifyDataGraphQLAPINONEDS684BF699": { @@ -94,14 +94,14 @@ "Type": "NONE" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/NONE_DS/Resource" } }, "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" @@ -146,7 +146,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/51e1b566c1eddfef856b0c956bcc5b30aa4b16208f076a0ff02bff63a3ee4809.json" + "/e196781c904575721375d59a240f99923ff104a298c1fdf313ff66f196d891d8.json" ] ] } @@ -154,8 +154,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManager431A2250.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerF6C912A7.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -178,32 +178,32 @@ "DynamoDBEnableServerSideEncryption": { "Ref": "DynamoDBEnableServerSideEncryption" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { "Fn::GetAtt": [ "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent6EDC1D70Arn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" } }, "Tags": [ @@ -244,7 +244,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/c45168ea7376178271bfb19561c5170ad2de6c10b71a705e86603c77aa1bbae6.json" + "/17902e785c4e729dbb0ee9d37a4e996a4642c2e06d8a5cac3d6a9e88732b03bc.json" ] ] } @@ -255,8 +255,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/WorkoutProgram.NestedStack/WorkoutProgram.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataWorkoutProgramC83B24CA.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram.NestedStack/WorkoutProgram.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataWorkoutProgramF3A49908.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -279,32 +279,32 @@ "DynamoDBEnableServerSideEncryption": { "Ref": "DynamoDBEnableServerSideEncryption" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { "Fn::GetAtt": [ "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent6EDC1D70Arn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" } }, "Tags": [ @@ -345,7 +345,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/a53b312213fbb1827508ffd012a27dc746f1b05e1d3b1bedafecaabdd669ab3b.json" + "/12d625aa6cd011e2e75d539e7054752a21e29f1cc060ee87fcaf8108f16d6fea.json" ] ] } @@ -356,8 +356,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Exercise.NestedStack/Exercise.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExercise19714B23.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise.NestedStack/Exercise.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExercise9942F32B.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -380,32 +380,32 @@ "DynamoDBEnableServerSideEncryption": { "Ref": "DynamoDBEnableServerSideEncryption" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { "Fn::GetAtt": [ "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent6EDC1D70Arn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" } }, "Tags": [ @@ -446,7 +446,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/ef31568ac34d85a733913a1b8a780b8db342e33302334dc9e3409b797c66550c.json" + "/e0909ac34eda8c3d4fe59e45563f423b9a8202895c2c90834cb65221aabbb46d.json" ] ] } @@ -457,8 +457,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/Meal.NestedStack/Meal.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataMealB9714D72.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal.NestedStack/Meal.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMeal7D390DE4.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -466,38 +466,38 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseDataSource6949CF09Name": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name": { "Fn::GetAtt": [ "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseDataSource6949CF09Name" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseTable318B1DEBTableArn": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn": { "Fn::GetAtt": [ "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseTable318B1DEBTableArn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" } }, "Tags": [ @@ -538,7 +538,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/ae3c588bb7e63507d1e7939f5593ec23500867f74096f6bddc37548350d47191.json" + "/55d3af84db44ef02e9712cd140af686369ed562a906a5cd15fdf4071b773b4b0.json" ] ] } @@ -550,8 +550,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataConnectionStack40486637.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataConnectionStackC9FBC7D1.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -607,7 +607,7 @@ "Value": "true" }, { - "Key": "aws-cdk:cr-owned:8b89f787", + "Key": "aws-cdk:cr-owned:1f2b0d25", "Value": "true" }, { @@ -619,7 +619,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" } }, "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { @@ -674,7 +674,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" } }, "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { @@ -696,7 +696,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" } }, "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { @@ -711,7 +711,7 @@ "Description": "/opt/awscli/aws" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", "aws:asset:is-bundled": false, "aws:asset:property": "Content" @@ -753,7 +753,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" } }, "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { @@ -778,7 +778,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" } }, "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { @@ -817,7 +817,7 @@ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", "aws:asset:property": "Code" } @@ -871,7 +871,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" } }, "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { @@ -1005,7 +1005,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" } }, "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { @@ -1061,7 +1061,7 @@ "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -1088,7 +1088,7 @@ "Value": "true" }, { - "Key": "aws-cdk:cr-owned:5e69a07d", + "Key": "aws-cdk:cr-owned:d9a91a74", "Value": "true" }, { @@ -1100,7 +1100,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/modelIntrospectionSchemaBucket/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucket/Resource" } }, "modelIntrospectionSchemaBucketPolicy4DAB0D15": { @@ -1189,7 +1189,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/modelIntrospectionSchemaBucket/Policy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucket/Policy/Resource" } }, "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { @@ -1211,7 +1211,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" } }, "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { @@ -1226,7 +1226,7 @@ "Description": "/opt/awscli/aws" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", "aws:asset:is-bundled": false, "aws:asset:property": "Content" @@ -1262,13 +1262,13 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" } }, "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-f6c5a5beb3/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_GRAPHQL_ENDPOINT", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1284,13 +1284,13 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" } }, "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-f6c5a5beb3/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1303,13 +1303,13 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" } }, "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-f6c5a5beb3/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1320,13 +1320,13 @@ "Value": "modelIntrospectionSchema.json" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" } }, "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-f6c5a5beb3/AMPLIFY_DATA_DEFAULT_NAME", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_DEFAULT_NAME", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1337,7 +1337,7 @@ "Value": "amplifyData" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" } }, "lognutritiongen2mainlambdaServiceRoleEF64897B": { @@ -1393,7 +1393,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/lognutrition-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/lognutrition-gen2-main-lambda/ServiceRole/Resource" } }, "lognutritiongen2mainlambdaServiceRoleDefaultPolicy710D0C37": { @@ -1421,12 +1421,14 @@ "dynamodb:PartiQLDelete" ], "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataMealMealTableFB0A2E92TableArn" - ] - } + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn" + ] + } + ] } ], "Version": "2012-10-17" @@ -1439,7 +1441,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/lognutrition-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/lognutrition-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "lognutritiongen2mainlambda9BD8C969": { @@ -1452,7 +1454,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "91d03de9e89259cdf1c49e12563840635aabe14d176a5bbbae382bf753f0f415.zip" + "S3Key": "95bfa16faa7a499bfbb1e8a9f09b98f992b7cb9d303063244fd1159bf57c0ed7.zip" }, "Environment": { "Variables": { @@ -1468,7 +1470,7 @@ "API_FITNESSTRACKER_MEALTABLE_ARN": { "Fn::GetAtt": [ "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataMealMealTableFB0A2E92TableArn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn" ] }, "API_FITNESSTRACKER_MEALTABLE_NAME": { @@ -1486,7 +1488,7 @@ { "Fn::GetAtt": [ "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataMealMealTableFB0A2E92TableArn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn" ] } ] @@ -1541,8 +1543,8 @@ "lognutritiongen2mainlambdaServiceRoleEF64897B" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/lognutrition-gen2-main-lambda/Resource", - "aws:asset:path": "asset.91d03de9e89259cdf1c49e12563840635aabe14d176a5bbbae382bf753f0f415", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/lognutrition-gen2-main-lambda/Resource", + "aws:asset:path": "asset.95bfa16faa7a499bfbb1e8a9f09b98f992b7cb9d303063244fd1159bf57c0ed7", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -1550,10 +1552,10 @@ "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/11RS2+DMAz+Lb2nWct22JVSbYdVVVekXZEbDE2bB4tDEUL89ynQwrbT97Bi+4sjHr2s+WoBDS1Ffl0qeeLdHsljnnoQV3ZEsrUTyKChrIOqotYI3r07qM7fKq7kBghZUpjB+dzFlfylUnFGDcGIK/mBLdtbg1vwkI5Nk8LMqmf0zLtNLa7oQ+XORjhYJUU723c9irBDeJ11OVbKthqN52NpOxkMiNATjwP0TIE+5cC7pDA7aNF9oSNpDUulKRV6a95qI3xwJpIUk9kzCZp3R6uGEAPOK46sZ0Sad6l30pQHcKDRoxvqD/FYIzM2xwvx/QDzkKQw4xmSmrzV0zHCyAe/d1AhRAYNCSV53FCi5JCLDXlTD6U05Z/h/5oenL3JHN34mWEhfqGnWxTx9StfLS4k5dLVxkuN/DjiD79VxsM+AgAA" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUdu0h6E318F6aJFlMbDLMASMTKdM9OGJcjND8H8fZDVJ156KnUi+J5KPFGdydnsrry7gwFNV76eaNjIukAPWVQC1Fytk13mFAg68jtC23Fsl44OH9vm3Llq6B0ZRNnZEvj8VLb2JKvWMBhJQtPSIvVg4i3MIUOWiZWPP0SD4Rsb7Tu0xJCZ7P+PE0B+yk7vJW5FJDt/IkWKZnxZdcHPUGPDbZocq8GQQ/5X9S2Rq6TSp/qwpx59QlhOqAAEN2k8K+5h81JV2n7a2jjW22vWJfk2anwABzBhYFskMQoPZ1CBj2dgn6NH/QM/krKjIbjUGZ792VoWEnJyyOYGDIDAyrpweP2+05+1kbxDMRsYqeLLbJXgwGNCP/DE4ylhbV+OO5WI05yZlY/P5lR0HZ05HmFoe/dcKOg2xhgMrTbI4cKlpnEuM81YBtmS3/zR/V3Tp3QvV6PMykyC548uX2Uxef5FXFzsmmvrOBjIoV9n+BdBFrHc2AwAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1596,16 +1598,16 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { "Type": "String" } }, @@ -1876,12 +1878,12 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DRef": { + "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Ref": { "Value": { "Ref": "lognutritiongen2mainlambda9BD8C969" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { "Value": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", @@ -1889,7 +1891,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3GraphQLUrl": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAGraphQLUrl": { "Value": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", @@ -1897,7 +1899,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB31EBB484DestinationBucketArn": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8E4BD6ABDestinationBucketArn": { "Value": { "Fn::GetAtt": [ "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", @@ -1905,7 +1907,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPIDefaultApiKeyDA026B5BApiKey": { + "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIDefaultApiKeyE10BC731ApiKey": { "Value": { "Fn::GetAtt": [ "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", @@ -1913,7 +1915,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn": { + "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn": { "Value": { "Fn::GetAtt": [ "lognutritiongen2mainlambda9BD8C969", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.description.txt similarity index 55% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.description.txt index 7cc23c581cc..1e3215c63d9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.description.txt +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"custom","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json new file mode 100644 index 00000000000..177131508c3 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApiDeploymentStageprod3A54AD90Ref", + "OutputValue": "prod" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi59ABC85BRef", + "OutputValue": "rr7ckdesd4" + }, + { + "OutputKey": "RestApiEndpoint0551178A", + "OutputValue": "https://rr7ckdesd4.execute-api.us-east-1.amazonaws.com/prod/" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json new file mode 100644 index 00000000000..eacc7e7d488 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json similarity index 84% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json index ca5da1112a3..d7912bc3ee7 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", "Resources": { "RestApi0C43BF4B": { "Type": "AWS::ApiGateway::RestApi", @@ -25,7 +25,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Resource" } }, "RestApiCloudWatchRoleE3ED6605": { @@ -79,7 +79,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/CloudWatchRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/CloudWatchRole/Resource" } }, "RestApiAccount7C83CF5A": { @@ -98,10 +98,10 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Account" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Account" } }, - "RestApiDeployment180EC503f08cc8dc32d322e8ee0491887bc17f7c": { + "RestApiDeployment180EC503546d318a996a44726021c4af228bfd46": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "Automatically created by the RestApi construct", @@ -120,7 +120,7 @@ "RestApiDefault5XXD8CFC37C" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Deployment/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Deployment/Resource", "aws:cdk:do-not-refactor": true } }, @@ -128,7 +128,7 @@ "Type": "AWS::ApiGateway::Stage", "Properties": { "DeploymentId": { - "Ref": "RestApiDeployment180EC503f08cc8dc32d322e8ee0491887bc17f7c" + "Ref": "RestApiDeployment180EC503546d318a996a44726021c4af228bfd46" }, "RestApiId": { "Ref": "RestApi0C43BF4B" @@ -157,7 +157,7 @@ "RestApiAccount7C83CF5A" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/DeploymentStage.prod/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/DeploymentStage.prod/Resource" } }, "RestApiadmin6E2AFAD8": { @@ -175,7 +175,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/Resource" } }, "RestApiadminOPTIONS9579A88D": { @@ -218,15 +218,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/OPTIONS/Resource" } }, - "RestApiadminANYApiPermissionamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3EANYadmin44C7AD40": { + "RestApiadminANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadmin44FFEED1": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -259,15 +259,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3E.ANY..admin" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin" } }, - "RestApiadminANYApiPermissionTestamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3EANYadminA60A94A3": { + "RestApiadminANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadminD21F14BB": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -296,7 +296,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3E.ANY..admin" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin" } }, "RestApiadminANY959B010C": { @@ -321,7 +321,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" }, "/invocations" ] @@ -336,7 +336,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/ANY/Resource" } }, "RestApiadminproxy34EEEF46": { @@ -351,7 +351,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/Resource" } }, "RestApiadminproxyOPTIONS0428B0AB": { @@ -394,15 +394,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/OPTIONS/Resource" } }, - "RestApiadminproxyANYApiPermissionamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3EANYadminproxyDF28059D": { + "RestApiadminproxyANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadminproxy15EA3F86": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -435,15 +435,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3E.ANY..admin.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin.{proxy+}" } }, - "RestApiadminproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3EANYadminproxy4FB2BF17": { + "RestApiadminproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadminproxyCA6BDB78": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -472,7 +472,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi69C11D3E.ANY..admin.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin.{proxy+}" } }, "RestApiadminproxyANYAD871D2E": { @@ -497,7 +497,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" }, "/invocations" ] @@ -512,7 +512,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/Resource" } }, "RestApiDefault4XX291F46B7": { @@ -530,7 +530,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default4XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default4XX/Resource" } }, "RestApiDefault5XXD8CFC37C": { @@ -548,7 +548,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/RestApi/Default5XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default5XX/Resource" } }, "Gen1adminapiPolicy55C22DB4": { @@ -575,7 +575,7 @@ { "Ref": "AWS::AccountId" }, - ":kh5xa5hayh/*/GET/*" + ":bbk7dedp01/*/GET/*" ] ] } @@ -586,12 +586,12 @@ "PolicyName": "Gen1adminapiPolicy55C22DB4", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/Gen1adminapiPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/Gen1adminapiPolicy/Resource" } }, "adminAdminPolicyED58DCB3": { @@ -659,21 +659,21 @@ "PolicyName": "adminAdminPolicyED58DCB3", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/adminAdminPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/adminAdminPolicy/Resource" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X31GwVh10HSJyAKXsA5CVmZMs/1e5KVfXdUUgFEyd/vy927Bba+w2sVzhwY+yl8e4I0yuxkD0ImovCgd8nzO6EQgOOMGli2WWnHj/iDe6MSX0U9UTZpzFQlGJv0kHwRMVV0MSp7ww9IP+F5c/KLySfyRa10L5LX+Pv83O9RxPnFPln9L9azisrZuUwwKSTr0tK3SfvzFhipVl5DEeLUAx1wTG7FOfS8NZL7mVWMVmCM99d2xY2W1ivzuxc0/VRXCDQtX4DFZnJJlMBAAA=" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X3NIxqh10HSJyAKXsA5CVmeMs/1S5dVfXdUUgFEyd/vy927Fa3m41er2DgxrpL4+mop1dkQXcQsBcFA79PkOkEggOMejLIssukHj/iDe6sTX0U9YTZpzFglGJv0kHghMVVMMip7yw+AP+F5c/KLyifyRW10L5L1/H3+bneY5Bzivwz+l8t55UVsyIIejLJ1yWl7pMnO5ZYaVYewtGBLga7QMyU4lwa3nrJvcwqJof6zHdfbavvt3q9OjNR0/VRKKA2tX4D1w/yhFMBAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -705,12 +705,12 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi9C3E9536Ref": { + "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi59ABC85BRef": { "Value": { "Ref": "RestApi0C43BF4B" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApiDeploymentStageprodEE0CE72ARef": { + "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApiDeploymentStageprod3A54AD90Ref": { "Value": { "Ref": "RestApiDeploymentStageprod3855DE66" } @@ -983,13 +983,13 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { "Type": "String" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.description.txt similarity index 55% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.description.txt index 7cc23c581cc..1e3215c63d9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.description.txt +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"custom","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json new file mode 100644 index 00000000000..28d30bc1428 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiDeploymentStageprodD1246DCDRef", + "OutputValue": "prod" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApi1438AE73Ref", + "OutputValue": "e2y3anael5" + }, + { + "OutputKey": "RestApiEndpoint0551178A", + "OutputValue": "https://e2y3anael5.execute-api.us-east-1.amazonaws.com/prod/" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json new file mode 100644 index 00000000000..6ad66ae9091 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json similarity index 88% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json index e42063e577c..332fbac6f2c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", "Resources": { "RestApi0C43BF4B": { "Type": "AWS::ApiGateway::RestApi", @@ -25,7 +25,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Resource" } }, "RestApiCloudWatchRoleE3ED6605": { @@ -79,7 +79,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/CloudWatchRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/CloudWatchRole/Resource" } }, "RestApiAccount7C83CF5A": { @@ -98,10 +98,10 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Account" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Account" } }, - "RestApiDeployment180EC50348ad1ceaa83769d36410f648a7ea8c9b": { + "RestApiDeployment180EC503d495388c1d958d92be722f42111dede2": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "Automatically created by the RestApi construct", @@ -121,7 +121,7 @@ "RestApiDefault5XXD8CFC37C" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Deployment/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Deployment/Resource", "aws:cdk:do-not-refactor": true } }, @@ -129,7 +129,7 @@ "Type": "AWS::ApiGateway::Stage", "Properties": { "DeploymentId": { - "Ref": "RestApiDeployment180EC50348ad1ceaa83769d36410f648a7ea8c9b" + "Ref": "RestApiDeployment180EC503d495388c1d958d92be722f42111dede2" }, "RestApiId": { "Ref": "RestApi0C43BF4B" @@ -158,7 +158,7 @@ "RestApiAccount7C83CF5A" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/DeploymentStage.prod/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/DeploymentStage.prod/Resource" } }, "RestApinutrition3942DEFC": { @@ -176,7 +176,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/Resource" } }, "RestApinutritionlog525763DE": { @@ -191,7 +191,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/Resource" } }, "RestApinutritionlogOPTIONS0916370A": { @@ -234,15 +234,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/OPTIONS/Resource" } }, - "RestApinutritionlogANYApiPermissionamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05DANYnutritionlogB9582A16": { + "RestApinutritionlogANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlog9FE434DE": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -275,15 +275,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05D.ANY..nutrition.log" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log" } }, - "RestApinutritionlogANYApiPermissionTestamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05DANYnutritionlog4B62744A": { + "RestApinutritionlogANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlog638CFC51": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -312,7 +312,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05D.ANY..nutrition.log" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log" } }, "RestApinutritionlogANY08C15E55": { @@ -337,7 +337,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" }, "/invocations" ] @@ -352,7 +352,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/Resource" } }, "RestApinutritionlogproxyA0E81954": { @@ -367,7 +367,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/Resource" } }, "RestApinutritionlogproxyOPTIONS695D781E": { @@ -410,15 +410,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/OPTIONS/Resource" } }, - "RestApinutritionlogproxyANYApiPermissionamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05DANYnutritionlogproxyB2113086": { + "RestApinutritionlogproxyANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlogproxy049F99D2": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -451,15 +451,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05D.ANY..nutrition.log.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log.{proxy+}" } }, - "RestApinutritionlogproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05DANYnutritionlogproxy05563614": { + "RestApinutritionlogproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlogproxyE4A0E696": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -488,7 +488,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi5CE4D05D.ANY..nutrition.log.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log.{proxy+}" } }, "RestApinutritionlogproxyANY89358520": { @@ -513,7 +513,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" }, "/invocations" ] @@ -528,7 +528,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/Resource" } }, "RestApiDefault4XX291F46B7": { @@ -546,7 +546,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default4XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default4XX/Resource" } }, "RestApiDefault5XXD8CFC37C": { @@ -564,7 +564,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/RestApi/Default5XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default5XX/Resource" } }, "Gen1nutritionapiPolicyAC846721": { @@ -592,7 +592,7 @@ { "Ref": "AWS::AccountId" }, - ":6smuxn28tb/*/POST/*" + ":ekto8iln0h/*/POST/*" ] ] }, @@ -612,7 +612,7 @@ { "Ref": "AWS::AccountId" }, - ":6smuxn28tb/*/GET/*" + ":ekto8iln0h/*/GET/*" ] ] }, @@ -632,7 +632,7 @@ { "Ref": "AWS::AccountId" }, - ":6smuxn28tb/*/PUT/*" + ":ekto8iln0h/*/PUT/*" ] ] }, @@ -652,7 +652,7 @@ { "Ref": "AWS::AccountId" }, - ":6smuxn28tb/*/DELETE/*" + ":ekto8iln0h/*/DELETE/*" ] ] } @@ -664,12 +664,12 @@ "PolicyName": "Gen1nutritionapiPolicyAC846721", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/Gen1nutritionapiPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/Gen1nutritionapiPolicy/Resource" } }, "nutritionlogAuthPolicyF60C3901": { @@ -881,12 +881,12 @@ "PolicyName": "nutritionlogAuthPolicyF60C3901", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/nutritionlogAuthPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/nutritionlogAuthPolicy/Resource" } }, "nutritionlogAdminPolicy5FCB013F": { @@ -1098,21 +1098,21 @@ "PolicyName": "nutritionlogAdminPolicy5FCB013F", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/nutritionlogAdminPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/nutritionlogAdminPolicy/Resource" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X31GwVh10HSJyAKXsA5CVmZMs/1e5KVfXdUUgFEyd/vy927Bba+w2sVzhwY+yl8e4I0yuxkD0ImovCgd8nzO6EQgOOMGli2WWnHj/iDe6MSX0U9UTZpzFQlGJv0kHwRMVV0MSp7ww9IP+F5c/KLySfyRa10L5LX+Pv83O9RxPnFPln9L9azisrZuUwwKSTr0tK3SfvzFhipVl5DEeLUAx1wTG7FOfS8NZL7mVWMVmCM99d2xY2W1ivzuxc0/VRXCDQtX4DFZnJJlMBAAA=" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X3NIxqh10HSJyAKXsA5CVmeMs/1S5dVfXdUUgFEyd/vy927Fa3m41er2DgxrpL4+mop1dkQXcQsBcFA79PkOkEggOMejLIssukHj/iDe6sTX0U9YTZpzFglGJv0kHghMVVMMip7yw+AP+F5c/KLyifyRW10L5L1/H3+bneY5Bzivwz+l8t55UVsyIIejLJ1yWl7pMnO5ZYaVYewtGBLga7QMyU4lwa3nrJvcwqJof6zHdfbavvt3q9OjNR0/VRKKA2tX4D1w/yhFMBAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1144,12 +1144,12 @@ ] } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi33E7E7D9Ref": { + "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApi1438AE73Ref": { "Value": { "Ref": "RestApi0C43BF4B" } }, - "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApiDeploymentStageprod4B62A983Ref": { + "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiDeploymentStageprodD1246DCDRef": { "Value": { "Ref": "RestApiDeploymentStageprod3855DE66" } @@ -1422,13 +1422,13 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { "Type": "String" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.description.txt similarity index 56% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.description.txt index b40731368ef..afc6ec23957 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.description.txt +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"root","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json index 00773074c3f..4a2f22d3f04 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "webClientId", - "OutputValue": "2mph5n4c194d3ogp33evjku9cg" + "OutputValue": "dgddko7evul00or8262g7n9ub" }, { "OutputKey": "socialProviders", @@ -17,7 +17,7 @@ }, { "OutputKey": "oauthClientId", - "OutputValue": "2mph5n4c194d3ogp33evjku9cg" + "OutputValue": "dgddko7evul00or8262g7n9ub" }, { "OutputKey": "allowUnauthenticatedIdentities", @@ -53,7 +53,7 @@ }, { "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-ebjsxuyj6nccppdwuy2ozljcla" + "OutputValue": "da2-mpyed5y2pvbcjl2qcbxuq2rspe" }, { "OutputKey": "awsAppsyncAuthenticationType", @@ -61,7 +61,7 @@ }, { "OutputKey": "customOutputs", - "OutputValue": "{\"custom\":{\"API\":{\"adminapi-gen2-main\":{\"endpoint\":\"https://42m7vp2bob.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"adminapi-gen2-main\"},\"nutritionapi-gen2-main\":{\"endpoint\":\"https://nimt9s6hi5.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"nutritionapi-gen2-main\"}}},\"version\":\"1.4\"}" + "OutputValue": "{\"custom\":{\"API\":{\"adminapi-gen2-main\":{\"endpoint\":\"https://rr7ckdesd4.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"adminapi-gen2-main\"},\"nutritionapi-gen2-main\":{\"endpoint\":\"https://e2y3anael5.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"nutritionapi-gen2-main\"}}},\"version\":\"1.4\"}" }, { "OutputKey": "oauthRedirectSignIn", @@ -73,11 +73,11 @@ }, { "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://77wvqbitijagpavjez3eammdna.appsync-api.us-east-1.amazonaws.com/graphql" + "OutputValue": "https://7ltandzu5zbxvcqrr24edz4hym.appsync-api.us-east-1.amazonaws.com/graphql" }, { "OutputKey": "awsAppsyncApiId", - "OutputValue": "aolmivry45bvbmfywwm6tb542u" + "OutputValue": "uhg6hv7zmzav5doaroa4tocwv4" }, { "OutputKey": "authRegion", @@ -85,7 +85,7 @@ }, { "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-fitnesstracker-gen-amplifydataamplifycodege-cm7x3zuy98og/model-schema.graphql" + "OutputValue": "s3://amplify-fitnesstracker-ge-amplifydataamplifycodege-cxlnc2wmwnpq/model-schema.graphql" }, { "OutputKey": "groups", @@ -93,7 +93,7 @@ }, { "OutputKey": "definedFunctions", - "OutputValue": "[\"fitnesstracker6b0fc1196b0fc119PreSignup-gen2-main\",\"admin-gen2-main\",\"lognutrition-gen2-main\"]" + "OutputValue": "[\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main\",\"admin-gen2-main\",\"lognutrition-gen2-main\"]" }, { "OutputKey": "passwordlessOptions", @@ -117,11 +117,11 @@ }, { "OutputKey": "userPoolId", - "OutputValue": "us-east-1_MZOGAx4cE" + "OutputValue": "us-east-1_mQEsDQ1lC" }, { "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:6528409f-13ea-46fb-987a-ad861eedaad6" + "OutputValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" }, { "OutputKey": "verificationMechanisms", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.parameters.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.parameters.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.template.json similarity index 80% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.template.json index 816410eaeec..5c0f04feaf7 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"root\",\"metadata\":{}}", "Metadata": { "AWS::Amplify::Platform": { "version": "1", @@ -72,7 +72,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref" ] } }, @@ -80,7 +80,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPoolAppClient1C98798ERef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef" ] } }, @@ -88,7 +88,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" ] } }, @@ -146,7 +146,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPoolAppClient1C98798ERef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef" ] } }, @@ -162,21 +162,21 @@ { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authfitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambda8F8CF17DRef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref" ] }, "\",\"", { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6ARef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef" ] }, "\",\"", { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DRef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Ref" ] }, "\"]" @@ -188,7 +188,7 @@ "Value": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" ] } }, @@ -196,7 +196,7 @@ "Value": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3GraphQLUrl" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAGraphQLUrl" ] } }, @@ -229,7 +229,7 @@ { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB31EBB484DestinationBucketArn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8E4BD6ABDestinationBucketArn" ] } ] @@ -249,7 +249,7 @@ "Value": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPIDefaultApiKeyDA026B5BApiKey" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIDefaultApiKeyE10BC731ApiKey" ] } }, @@ -265,7 +265,7 @@ { "Fn::GetAtt": [ "restapistackadminapi43EA27F6", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi9C3E9536Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi59ABC85BRef" ] }, ".execute-api.", @@ -280,7 +280,7 @@ { "Fn::GetAtt": [ "restapistackadminapi43EA27F6", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApiDeploymentStageprodEE0CE72ARef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApiDeploymentStageprod3A54AD90Ref" ] }, "\",\"region\":\"", @@ -291,7 +291,7 @@ { "Fn::GetAtt": [ "restapistacknutritionapi72914ECD", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi33E7E7D9Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApi1438AE73Ref" ] }, ".execute-api.", @@ -306,7 +306,7 @@ { "Fn::GetAtt": [ "restapistacknutritionapi72914ECD", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApiDeploymentStageprod4B62A983Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiDeploymentStageprodD1246DCDRef" ] }, "\",\"region\":\"", @@ -369,7 +369,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" } }, "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { @@ -396,7 +396,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" } }, "AmplifyBranchLinkerCustomResourceLambda582AC093": { @@ -406,7 +406,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "1a757fd2e48bffd6245369585c61b0ce615ce78053da4f4387a9c069127512c0.zip" + "S3Key": "c46b855c2bbfeb6a46b246009556bfe72f2c2079543b813d7312946ee01480a0.zip" }, "Handler": "index.handler", "Role": { @@ -441,8 +441,8 @@ "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.1a757fd2e48bffd6245369585c61b0ce615ce78053da4f4387a9c069127512c0", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceLambda/Resource", + "aws:asset:path": "asset.c46b855c2bbfeb6a46b246009556bfe72f2c2079543b813d7312946ee01480a0", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -496,7 +496,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" } }, "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { @@ -551,7 +551,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" } }, "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { @@ -563,7 +563,7 @@ }, "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResourceProvider)", + "Description": "AWS CDK resource provider framework - onEvent (amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider)", "Environment": { "Variables": { "USER_ON_EVENT_FUNCTION_ARN": { @@ -611,7 +611,7 @@ "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -632,7 +632,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/AmplifyBranchLinker/CustomResource/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResource/Default" } }, "auth179371D7": { @@ -672,7 +672,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/e52c9bb6ad548fe086a3001e50d8a3a36a62877d32be522ac8a5e1690c00a794.json" + "/c98b0e8b3d82622c79869766e34c83f60f8a4afd502c4e1e8c8a7727a5ba0dd6.json" ] ] } @@ -680,8 +680,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3auth14C5D305.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799auth8002D454.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -689,28 +689,28 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" ] } }, @@ -748,7 +748,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/17bdd06ff46b5c99217013edb3cdb2e284f6a5942f7bc36239c10f6b1da19592.json" + "/9af9fdc04980936cf2e97dd00dd4f23f7c8d09e874b4d1759996528c6b1b2ad0.json" ] ] } @@ -756,8 +756,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataED3487CD.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799data7EFD86C7.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -765,22 +765,22 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" ] } }, @@ -818,7 +818,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/e439aa95599da7840f4d3dbd426f708cb124815fc9e644487d1aa70d17adc94a.json" + "/02247b1aa7791fcc8cd6660bc8c0d6b04aea06c33687347dbdce86e7cb25d36d.json" ] ] } @@ -826,8 +826,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-adminapi.NestedStack/rest-api-stack-adminapi.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapi3404F2D5.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi.NestedStack/rest-api-stack-adminapi.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapi0C1629F8.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -835,22 +835,22 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref": { + "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref" + "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" ] } }, @@ -888,7 +888,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/3fa005c13e160860bca05bdd866cc7bad1f73d84083432328d2f8dd258bddf0f.json" + "/230c849ea4015778484fa403f7ff7cb83d41e7a5b4a53ea1a867dc966a2f0081.json" ] ] } @@ -896,18 +896,18 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/rest-api-stack-nutritionapi.NestedStack/rest-api-stack-nutritionapi.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiE9E77A9E.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi.NestedStack/rest-api-stack-nutritionapi.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapi279DE088.nested.template.json", "aws:asset:property": "TemplateURL" } }, "CDKMetadata": { "Type": "AWS::CDK::Metadata", "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2cHHptDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWWhx1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoPuGVNkU3xaA7vGYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70scfeK202nIkVM3mRkrFc+AUTtSG0ZAQAA" + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2dHHJtDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWW+z1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoLuGVNkU3xaA7vCYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70s8fWA202nIkVM3mRkrFc+AXlCmgwZAQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-f6c5a5beb3/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.outputs.json deleted file mode 100644 index 8b5776bb764..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent6EDC1D70Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-gen-TableManagerCustomProvid-jfKSxmnonqJ5" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.parameters.json deleted file mode 100644 index 89c4b9427ca..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataAmplifyTableManagerNestedStackA-1A2OIOGDUJDM8.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId", - "ParameterValue": "aolmivry45bvbmfywwm6tb542u" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.parameters.json deleted file mode 100644 index 0195dc97253..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataConnectionStackNestedStackConne-1PZTW5BMDQ740.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthunauthenticate-xt24LpqBVS1s" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId", - "ParameterValue": "aolmivry45bvbmfywwm6tb542u" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseDataSource6949CF09Name", - "ParameterValue": "ExerciseTable" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseNestedStackExerciseNestedStackResource558D738COutputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseTable318B1DEBTableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef", - "ParameterValue": "us-east-1:6528409f-13ea-46fb-987a-ad861eedaad6" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.outputs.json deleted file mode 100644 index b505b6a1e85..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttExerciseTableName", - "OutputValue": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main", - "Description": "Your DynamoDB table name.", - "ExportName": "aolmivry45bvbmfywwm6tb542u:GetAtt:ExerciseTable:Name" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseTable318B1DEBTableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" - }, - { - "OutputKey": "GetAttExerciseTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-2aikutabnvbuhlzmh4mvkg3eji-main/stream/2026-03-07T19:49:12.813", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "aolmivry45bvbmfywwm6tb542u:GetAtt:ExerciseTable:StreamArn" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataExerciseExerciseDataSource6949CF09Name", - "OutputValue": "ExerciseTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.parameters.json deleted file mode 100644 index d6dedca64c5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataExerciseNestedStackExerciseNest-GSLDGK4G6DEO.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthunauthenticate-xt24LpqBVS1s" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId", - "ParameterValue": "aolmivry45bvbmfywwm6tb542u" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-gen-TableManagerCustomProvid-jfKSxmnonqJ5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef", - "ParameterValue": "us-east-1:6528409f-13ea-46fb-987a-ad861eedaad6" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.outputs.json deleted file mode 100644 index f1b98ddb27f..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "GetAttMealTableName", - "OutputValue": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main", - "Description": "Your DynamoDB table name.", - "ExportName": "aolmivry45bvbmfywwm6tb542u:GetAtt:MealTable:Name" - }, - { - "OutputKey": "GetAttMealTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-2aikutabnvbuhlzmh4mvkg3eji-main/stream/2026-03-07T19:49:12.348", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "aolmivry45bvbmfywwm6tb542u:GetAtt:MealTable:StreamArn" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataMealMealTableFB0A2E92TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-2aikutabnvbuhlzmh4mvkg3eji-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.parameters.json deleted file mode 100644 index d6dedca64c5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataMealNestedStackMealNestedStackR-8W0VUDLMFHA1.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthunauthenticate-xt24LpqBVS1s" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId", - "ParameterValue": "aolmivry45bvbmfywwm6tb542u" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-gen-TableManagerCustomProvid-jfKSxmnonqJ5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef", - "ParameterValue": "us-east-1:6528409f-13ea-46fb-987a-ad861eedaad6" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.parameters.json deleted file mode 100644 index d6dedca64c5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a-amplifyDataWorkoutProgramNestedStackWorkou-1KL1EWK5B27DM.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPINONEDSBA892CCCName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthunauthenticate-xt24LpqBVS1s" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId", - "ParameterValue": "aolmivry45bvbmfywwm6tb542u" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource9E5C3FE8Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyTableManagerTableMana3F678B61", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-gen-TableManagerCustomProvid-jfKSxmnonqJ5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef", - "ParameterValue": "us-east-1:6528409f-13ea-46fb-987a-ad861eedaad6" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.outputs.json deleted file mode 100644 index 3385d925170..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-auth179371D7-T5KTLQB5RTR1.outputs.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref", - "OutputValue": "amplify-fitnesstracker-gen-amplifyAuthunauthenticate-xt24LpqBVS1s" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authfitnesstracker6b0fc1196b0fc119PreSignupgen2mainlambda8F8CF17DRef", - "OutputValue": "fitnesstracker6b0fc1196b0fc119PreSignup-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef", - "OutputValue": "us-east-1:6528409f-13ea-46fb-987a-ad861eedaad6" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6ARef", - "OutputValue": "admin-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "OutputValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPoolAppClient1C98798ERef", - "OutputValue": "2mph5n4c194d3ogp33evjku9cg" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref", - "OutputValue": "us-east-1_MZOGAx4cE" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref", - "OutputValue": "amplify-fitnesstracker-gen-amplifyAuthAdminGroupRole-Xedsy5EWmRnv" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.outputs.json deleted file mode 100644 index 325fbbcc212..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.outputs.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DRef", - "OutputValue": "lognutrition-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3GraphQLUrl", - "OutputValue": "https://77wvqbitijagpavjez3eammdna.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPI530714E3ApiId", - "OutputValue": "aolmivry45bvbmfywwm6tb542u" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB31EBB484DestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-fitnesstracker-gen-amplifydataamplifycodege-cm7x3zuy98og" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3dataamplifyDataGraphQLAPIDefaultApiKeyDA026B5BApiKey", - "OutputValue": "da2-ebjsxuyj6nccppdwuy2ozljcla" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.parameters.json deleted file mode 100644 index 415648b03ad..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-data7552DF31-FY14PTEHE5GQ.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthUserPool82133007Ref", - "ParameterValue": "us-east-1_MZOGAx4cE" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthunauthenticatedUserRole0595D315Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthunauthenticate-xt24LpqBVS1s" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthIdentityPoolE5B9CC1CRef", - "ParameterValue": "us-east-1:6528409f-13ea-46fb-987a-ad861eedaad6" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.outputs.json deleted file mode 100644 index 6cbc04ee262..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApiDeploymentStageprodEE0CE72ARef", - "OutputValue": "prod" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistackadminapiRestApi9C3E9536Ref", - "OutputValue": "42m7vp2bob" - }, - { - "OutputKey": "RestApiEndpoint0551178A", - "OutputValue": "https://42m7vp2bob.execute-api.us-east-1.amazonaws.com/prod/" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.parameters.json deleted file mode 100644 index 215aaea3bae..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistackadminapi43EA27F6-1G3WMFGGD1GX.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authadmingen2mainlambda2E47DE6AArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthAdminGroupRole-Xedsy5EWmRnv" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.outputs.json deleted file mode 100644 index 023c38fdbac..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApiDeploymentStageprod4B62A983Ref", - "OutputValue": "prod" - }, - { - "OutputKey": "RestApiEndpoint0551178A", - "OutputValue": "https://nimt9s6hi5.execute-api.us-east-1.amazonaws.com/prod/" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranchf6c5a5beb3restapistacknutritionapiRestApi33E7E7D9Ref", - "OutputValue": "nimt9s6hi5" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.parameters.json deleted file mode 100644 index daeda5987b9..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-f6c5a5beb3-restapistacknutritionapi72914ECD-UEOCVVQH4SZ3.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3dataNestedStackdataNestedStackResource1172CA08Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3datalognutritiongen2mainlambdaB5F1A17DArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthauthenticatedUserRoleB67A2B52Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthauthenticatedU-ROG8INaCaQWH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranchf6c5a5beb3authNestedStackauthNestedStackResourceC6E94DB9Outputsamplifyfitnesstrackergen2mainbranchf6c5a5beb3authamplifyAuthAdminGroupRole5A967615Ref", - "ParameterValue": "amplify-fitnesstracker-gen-amplifyAuthAdminGroupRole-Xedsy5EWmRnv" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.outputs.json deleted file mode 100644 index 92f4a2d5ae6..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "2aikutabnvbuhlzmh4mvkg3eji", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://azg6sgrevzehjmrpkcghyncvci.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.description.txt deleted file mode 100644 index 28ba956271c..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.template.json deleted file mode 100644 index 6fd7a4879cc..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.template.json +++ /dev/null @@ -1,480 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { - "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" - }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { - "Type": "String", - "Default": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - }, - "permissions": { - "Type": "CommaDelimitedList" - }, - "authTriggerConnections": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes6b0fc119_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes6b0fc119_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole6b0fc119", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc119_identitypool_6b0fc119", - { - "Fn::Join": [ - "", - [ - "fitnesstracker6b0fc119_identitypool_6b0fc119__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "client": { - "Ref": "UserPoolClient" - } - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "webClient": { - "Ref": "UserPoolClientWeb" - } - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool", - "UserPoolClient", - "UserPoolClientWeb" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.description.txt deleted file mode 100644 index aa91c019d71..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.outputs.json deleted file mode 100644 index 65c2f629405..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "AdminGroupRole", - "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_u3DbKJdMj-AdminGroupRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.parameters.json deleted file mode 100644 index 008b590398b..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb", - "ParameterValue": "7rgr70g6grv2t7e4jstuq5uuqg" - }, - { - "ParameterKey": "UnauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-unauthRole" - }, - { - "ParameterKey": "authfitnesstracker6b0fc1196b0fc119UserPoolId", - "ParameterValue": "us-east-1_u3DbKJdMj" - }, - { - "ParameterKey": "authfitnesstracker6b0fc1196b0fc119AppClientID", - "ParameterValue": "7s3vppsutj69af1r91u7tm2a45" - }, - { - "ParameterKey": "AuthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-authRole" - }, - { - "ParameterKey": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId", - "ParameterValue": "us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.template.json deleted file mode 100644 index c0cf3b931f5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.template.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "DOMAINBLACKLIST": { - "Type": "String", - "Default": "" - }, - "DOMAINALLOWLIST": { - "Type": "String", - "Default": "" - }, - "modules": { - "Type": "String", - "Default": "", - "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." - }, - "resourceName": { - "Type": "String", - "Default": "" - }, - "trigger": { - "Type": "String", - "Default": "true" - }, - "functionName": { - "Type": "String", - "Default": "" - }, - "roleName": { - "Type": "String", - "Default": "" - }, - "parentResource": { - "Type": "String", - "Default": "" - }, - "parentStack": { - "Type": "String", - "Default": "" - }, - "env": { - "Type": "String" - }, - "deploymentBucketName": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", - { - "Fn::Join": [ - "", - [ - "fitnesstracker6b0fc1196b0fc119PreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "MODULES": { - "Ref": "modules" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "DOMAINALLOWLIST": { - "Ref": "DOMAINALLOWLIST" - }, - "DOMAINBLACKLIST": { - "Ref": "DOMAINBLACKLIST" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 25, - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - } - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker6b0fc1196b0fc119PreSignup", - { - "Fn::Join": [ - "", - [ - "fitnesstracker6b0fc1196b0fc119PreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.parameters.json deleted file mode 100644 index e4f2f4d49c0..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json similarity index 56% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json index 7a9296e421a..1e1034aadbb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json @@ -1,19 +1,19 @@ [ { "ParameterKey": "authRoleName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-authRole" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-authRole" }, { "ParameterKey": "nutritionapi", - "ParameterValue": "6smuxn28tb" + "ParameterValue": "ekto8iln0h" }, { "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-unauthRole" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-unauthRole" }, { "ParameterKey": "adminapi", - "ParameterValue": "kh5xa5hayh" + "ParameterValue": "bbk7dedp01" }, { "ParameterKey": "env", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.template.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-APIGatewayAuthStack-2YRT3JXB74ES.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.template.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json similarity index 50% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json index dbc97b6c78e..25d39b2699c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json @@ -1,19 +1,15 @@ [ { - "ParameterKey": "userpoolId", - "ParameterValue": "us-east-1_u3DbKJdMj" - }, - { - "ParameterKey": "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole", - "ParameterValue": "arn:aws:iam::123456789012:role/fitnesstracker6b0fc1196b0fc119PreSignup-main" + "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName", + "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" }, { - "ParameterKey": "functionfitnesstracker6b0fc1196b0fc119PreSignupName", - "ParameterValue": "fitnesstracker6b0fc1196b0fc119PreSignup-main" + "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole", + "ParameterValue": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" }, { - "ParameterKey": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker6b0fc1196b0fc119PreSignup-main" + "ParameterKey": "userpoolId", + "ParameterValue": "us-east-1_LAwe5ZJrw" }, { "ParameterKey": "env", @@ -21,6 +17,10 @@ }, { "ParameterKey": "userpoolArn", - "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_u3DbKJdMj" + "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw" + }, + { + "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json similarity index 94% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json index d6957843a14..6e288286c2b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-AuthTriggerCustomLambdaStack-ME2HIO3WXG9U.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json @@ -11,13 +11,13 @@ "userpoolArn": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Type": "String" }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Type": "String" } }, @@ -37,7 +37,7 @@ "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "functionfitnesstracker6b0fc1196b0fc119PreSignupName" + "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" }, "Principal": "cognito-idp.amazonaws.com", "SourceArn": { @@ -137,13 +137,13 @@ "lambdaConfig": [ { "triggerType": "PreSignUp", - "lambdaFunctionName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "lambdaFunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "lambdaFunctionArn": { - "Ref": "functionfitnesstracker6b0fc1196b0fc119PreSignupArn" + "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" } } ], - "nonce": "7cd6005c-9c8e-4220-8301-da63a38e9760" + "nonce": "81488207-64cc-4968-a2ba-e30eebc5a128" }, "DependsOn": [ "authTriggerFn7FCFA449", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json similarity index 75% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json index f7824fb4182..5bf3ae2705a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json @@ -6,12 +6,12 @@ }, { "OutputKey": "RootUrl", - "OutputValue": "https://kh5xa5hayh.execute-api.us-east-1.amazonaws.com/main", + "OutputValue": "https://bbk7dedp01.execute-api.us-east-1.amazonaws.com/main", "Description": "Root URL of the API gateway" }, { "OutputKey": "ApiId", - "OutputValue": "kh5xa5hayh", + "OutputValue": "bbk7dedp01", "Description": "API ID (prefix of API URL)" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json similarity index 76% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json index 8547d0750f0..bdd4c3def03 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json @@ -3,20 +3,20 @@ "ParameterKey": "functionadminArn", "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-main" }, - { - "ParameterKey": "authfitnesstracker6b0fc1196b0fc119UserPoolId", - "ParameterValue": "us-east-1_u3DbKJdMj" - }, { "ParameterKey": "functionadminName", "ParameterValue": "admin-main" }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", + "ParameterValue": "us-east-1_LAwe5ZJrw" + }, { "ParameterKey": "env", "ParameterValue": "main" }, { "ParameterKey": "authuserPoolGroupsAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_u3DbKJdMj-AdminGroupRole" + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json similarity index 97% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json index 6183a2fcf64..fe0413d381e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apiadminapi-T8AKDMEB7K09.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json @@ -2,9 +2,9 @@ "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponse3222e4e8": { + "adminapiDefault4XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponse3222e4e8": { + "adminapiDefault5XXResponsec0c67e32": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapi48d8979a": { + "DeploymentAPIGWadminapia8449e95": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponse3222e4e8", - "adminapiDefault5XXResponse3222e4e8" + "adminapiDefault4XXResponsec0c67e32", + "adminapiDefault5XXResponsec0c67e32" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.outputs.json new file mode 100644 index 00000000000..0637a088a01 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.outputs.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json similarity index 75% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json index 91bc23d610e..f9efb116ff2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json @@ -1,7 +1,7 @@ [ { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", @@ -9,15 +9,15 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "2aikutabnvbuhlzmh4mvkg3eji" + "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" }, { "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef", - "ParameterValue": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" + "ParameterValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json index c1c6aa9683f..a407b2cb80e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-ConnectionStack-MFCAEX2L0CKC.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json similarity index 60% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json index d52782c7820..3392dad0b9a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json @@ -1,11 +1,11 @@ [ { "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "AppSyncApiId", - "ParameterValue": "2aikutabnvbuhlzmh4mvkg3eji" + "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" }, { "ParameterKey": "env", @@ -13,7 +13,7 @@ }, { "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" }, { "ParameterKey": "AppSyncApiName", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.template.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-CustomResourcesjson-1N9JBA3LG1LSR.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.template.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json similarity index 62% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json index da274bd8921..605d333444d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json @@ -5,24 +5,24 @@ }, { "OutputKey": "GetAttExerciseTableName", - "OutputValue": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main", + "OutputValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "Description": "Your DynamoDB table name.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:ExerciseTable:Name" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:ExerciseTable:Name" }, { "OutputKey": "GetAttExerciseDataSourceName", "OutputValue": "ExerciseTable", "Description": "Your model DataSource name.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:ExerciseDataSource:Name" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:ExerciseDataSource:Name" }, { "OutputKey": "transformerrootstackExerciseExerciseTable2F3E478ERef", - "OutputValue": "Exercise-2aikutabnvbuhlzmh4mvkg3eji-main" + "OutputValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" }, { "OutputKey": "GetAttExerciseTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-2aikutabnvbuhlzmh4mvkg3eji-main/stream/2026-03-07T19:49:12.813", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:28.559", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:ExerciseTable:StreamArn" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:ExerciseTable:StreamArn" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json index bca438b6758..3cb59b48c2a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", @@ -17,27 +17,27 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "2aikutabnvbuhlzmh4mvkg3eji" + "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "ParameterValue": "mn5wca276raehbbj7ablvuzuyy" + "ParameterValue": "hljr36qmybdc5hsavbkunnih3q" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F", - "ParameterValue": "pjy2pklvwjg77kzmfes5eplwca" + "ParameterValue": "xzf3ab4birf23mtipkhxkd73wm" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", - "ParameterValue": "tjmf4nbjffc6baz6izyfa7zoee" + "ParameterValue": "mj463mjvznbcle6nf32tzkleca" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "ParameterValue": "gcj7zbxan5cnhovaulvkfubw3u" + "ParameterValue": "tja5qhhl2faydie7dowyhihm3e" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "ParameterValue": "go273nioyjckvme7sxyuctdzma" + "ParameterValue": "ryadbffrprh35offyqpul6fxjy" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", @@ -49,7 +49,7 @@ }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", - "ParameterValue": "2tyj3o3hzbcedjajmqiuiqkmki" + "ParameterValue": "n6yiskbqkvgwbma5c5wt7tluga" }, { "ParameterKey": "DynamoDBModelTableWriteIOPS", @@ -57,7 +57,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", @@ -65,6 +65,6 @@ }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", - "ParameterValue": "daqve7kbmzhx7iugbpnuykgqmi" + "ParameterValue": "25aslddh5rearbzsmjsddncqae" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json index bc7724b533f..a9eeaa78710 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Exercise-5FATTNCL6XOQ.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json similarity index 57% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json index b4d3ff64313..370e3c11bea 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json @@ -1,20 +1,20 @@ [ { "OutputKey": "GetAttMealTableName", - "OutputValue": "Meal-2aikutabnvbuhlzmh4mvkg3eji-main", + "OutputValue": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "Description": "Your DynamoDB table name.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:MealTable:Name" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:MealTable:Name" }, { "OutputKey": "GetAttMealDataSourceName", "OutputValue": "MealTable", "Description": "Your model DataSource name.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:MealDataSource:Name" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:MealDataSource:Name" }, { "OutputKey": "GetAttMealTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-2aikutabnvbuhlzmh4mvkg3eji-main/stream/2026-03-07T19:49:12.348", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:27.982", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:MealTable:StreamArn" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:MealTable:StreamArn" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json index 16cab91f61c..5a5e6a8d5b9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", @@ -17,19 +17,19 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "2aikutabnvbuhlzmh4mvkg3eji" + "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "ParameterValue": "mn5wca276raehbbj7ablvuzuyy" + "ParameterValue": "hljr36qmybdc5hsavbkunnih3q" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "ParameterValue": "gcj7zbxan5cnhovaulvkfubw3u" + "ParameterValue": "tja5qhhl2faydie7dowyhihm3e" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "ParameterValue": "go273nioyjckvme7sxyuctdzma" + "ParameterValue": "ryadbffrprh35offyqpul6fxjy" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", @@ -45,7 +45,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", @@ -53,6 +53,6 @@ }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", - "ParameterValue": "daqve7kbmzhx7iugbpnuykgqmi" + "ParameterValue": "25aslddh5rearbzsmjsddncqae" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json index 17b23d06950..1f6a60f3fb6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-Meal-T0IHN7YLGV2P.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json similarity index 72% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json index 065eb378801..a9d00f3d146 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json @@ -1,48 +1,48 @@ [ { "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", - "OutputValue": "tjmf4nbjffc6baz6izyfa7zoee" + "OutputValue": "mj463mjvznbcle6nf32tzkleca" }, { "OutputKey": "transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId", - "OutputValue": "pjy2pklvwjg77kzmfes5eplwca" + "OutputValue": "xzf3ab4birf23mtipkhxkd73wm" }, { "OutputKey": "GetAttWorkoutProgramTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main/stream/2026-03-07T19:48:24.327", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:13:40.073", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:WorkoutProgramTable:StreamArn" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:WorkoutProgramTable:StreamArn" }, { "OutputKey": "transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "OutputValue": "gcj7zbxan5cnhovaulvkfubw3u" + "OutputValue": "tja5qhhl2faydie7dowyhihm3e" }, { "OutputKey": "GetAttWorkoutProgramTableName", - "OutputValue": "WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main", + "OutputValue": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", "Description": "Your DynamoDB table name.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:WorkoutProgramTable:Name" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:WorkoutProgramTable:Name" }, { "OutputKey": "transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", - "OutputValue": "2tyj3o3hzbcedjajmqiuiqkmki" + "OutputValue": "n6yiskbqkvgwbma5c5wt7tluga" }, { "OutputKey": "GetAttWorkoutProgramDataSourceName", "OutputValue": "WorkoutProgramTable", "Description": "Your model DataSource name.", - "ExportName": "2aikutabnvbuhlzmh4mvkg3eji:GetAtt:WorkoutProgramDataSource:Name" + "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:WorkoutProgramDataSource:Name" }, { "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "OutputValue": "mn5wca276raehbbj7ablvuzuyy" + "OutputValue": "hljr36qmybdc5hsavbkunnih3q" }, { "OutputKey": "transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId", - "OutputValue": "daqve7kbmzhx7iugbpnuykgqmi" + "OutputValue": "25aslddh5rearbzsmjsddncqae" }, { "OutputKey": "transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "OutputValue": "go273nioyjckvme7sxyuctdzma" + "OutputValue": "ryadbffrprh35offyqpul6fxjy" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json similarity index 82% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json index 956ab094ba8..8893d0ab615 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", @@ -25,7 +25,7 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "2aikutabnvbuhlzmh4mvkg3eji" + "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" }, { "ParameterKey": "DynamoDBModelTableWriteIOPS", @@ -33,7 +33,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json index 231e86502e9..d65c9f90968 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS-WorkoutProgram-1LQLU2DSLQ8HT.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json new file mode 100644 index 00000000000..134e76829d9 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "4ebr7lx7bbhnpeo5dbtcvdajdm", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://3oyjlwrrofhp7jlc37qna22jva.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-2kuyxda27ncmpool2a2bjanloy", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ:GraphQLApiKey" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json similarity index 79% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json index 2c851c9541e..be04a0ba450 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json @@ -17,7 +17,7 @@ }, { "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "DynamoDBModelTableWriteIOPS", @@ -29,7 +29,7 @@ }, { "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a" + "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" }, { "ParameterKey": "AppSyncApiName", @@ -37,6 +37,6 @@ }, { "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_u3DbKJdMj" + "ParameterValue": "us-east-1_LAwe5ZJrw" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json similarity index 99% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json index 91ce2688779..651f9ceb637 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apifitnesstracker-1T86UW9NDGVCS.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1773519059 + "Expires": 1774896554 } }, "GraphQLAPINONEDS95A13CF0": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json similarity index 75% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json index c3e846b6c49..f5dfcac1e91 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json @@ -6,12 +6,12 @@ }, { "OutputKey": "RootUrl", - "OutputValue": "https://6smuxn28tb.execute-api.us-east-1.amazonaws.com/main", + "OutputValue": "https://ekto8iln0h.execute-api.us-east-1.amazonaws.com/main", "Description": "Root URL of the API gateway" }, { "OutputKey": "ApiId", - "OutputValue": "6smuxn28tb", + "OutputValue": "ekto8iln0h", "Description": "API ID (prefix of API URL)" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json index 42fc8635726..e09e968f491 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json @@ -1,8 +1,4 @@ [ - { - "ParameterKey": "authfitnesstracker6b0fc1196b0fc119UserPoolId", - "ParameterValue": "us-east-1_u3DbKJdMj" - }, { "ParameterKey": "functionlognutritionArn", "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main" @@ -11,12 +7,16 @@ "ParameterKey": "functionlognutritionName", "ParameterValue": "lognutrition-main" }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", + "ParameterValue": "us-east-1_LAwe5ZJrw" + }, { "ParameterKey": "env", "ParameterValue": "main" }, { "ParameterKey": "authuserPoolGroupsAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_u3DbKJdMj-AdminGroupRole" + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json index 0c19f7dd33c..1c507689fc5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-apinutritionapi-8ILYUUGF5PGJ.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json @@ -2,9 +2,9 @@ "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponsec3b6f366": { + "nutritionapiDefault4XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponsec3b6f366": { + "nutritionapiDefault5XXResponse59a22bc9": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi6697cfda": { + "DeploymentAPIGWnutritionapifc67c40b": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponsec3b6f366", - "nutritionapiDefault5XXResponsec3b6f366" + "nutritionapiDefault4XXResponse59a22bc9", + "nutritionapiDefault5XXResponse59a22bc9" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt new file mode 100644 index 00000000000..be81ecbcfe2 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt @@ -0,0 +1 @@ +Amplify Cognito Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json similarity index 62% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json index 08653517f4e..d991571da12 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authfitnesstracker6b0fc1196b0fc119-IU8FJDZI54QH.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json @@ -1,35 +1,35 @@ [ { "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_u3DbKJdMj", + "OutputValue": "us-east-1_LAwe5ZJrw", "Description": "Id for the user pool" }, { "OutputKey": "AppClientIDWeb", - "OutputValue": "7rgr70g6grv2t7e4jstuq5uuqg", + "OutputValue": "4bk8odk8blrf65ptk2dffug25k", "Description": "The user pool app client id for web" }, { "OutputKey": "AppClientID", - "OutputValue": "7s3vppsutj69af1r91u7tm2a45", + "OutputValue": "12hkvqjabpisei771tiefdhs76", "Description": "The user pool app client id" }, { "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:48e665cb-fd1f-483f-83c3-a11110c013db", + "OutputValue": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", "Description": "Id for the identity pool" }, { "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_u3DbKJdMj", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw", "Description": "Arn for the user pool" }, { "OutputKey": "IdentityPoolName", - "OutputValue": "fitnesstracker6b0fc119_identitypool_6b0fc119__main" + "OutputValue": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main" }, { "OutputKey": "UserPoolName", - "OutputValue": "fitnesstracker6b0fc119_userpool_6b0fc119" + "OutputValue": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json new file mode 100644 index 00000000000..d99a1808184 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json @@ -0,0 +1,178 @@ +[ + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "false" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "9ceb2e7c" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "manual" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c" + }, + { + "ParameterKey": "thirdPartyAuth", + "ParameterValue": "false" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "Admin" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "adminQueries", + "ParameterValue": "false" + }, + { + "ParameterKey": "permissions", + "ParameterValue": "" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "fitnes9ceb2e7c" + }, + { + "ParameterKey": "userPoolGroups", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn", + "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "[object Object]" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7c" + }, + { + "ParameterKey": "env", + "ParameterValue": "main" + }, + { + "ParameterKey": "triggers", + "ParameterValue": "{\"PreSignup\":[\"email-filter-allowlist\"]}" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" + }, + { + "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName", + "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "authTriggerConnections", + "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "fitnes9ceb2e7c_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json new file mode 100644 index 00000000000..79def9e5efb --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json @@ -0,0 +1,480 @@ +{ + "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "Type": "String", + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + }, + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "Type": "String", + "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes9ceb2e7c_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole9ceb2e7c", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "client": { + "Ref": "UserPoolClient" + } + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "webClient": { + "Ref": "UserPoolClientWeb" + } + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool", + "UserPoolClient", + "UserPoolClientWeb" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json new file mode 100644 index 00000000000..33ee4fb9a64 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "AdminGroupRole", + "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json new file mode 100644 index 00000000000..3a84ecd1058 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb", + "ParameterValue": "4bk8odk8blrf65ptk2dffug25k" + }, + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", + "ParameterValue": "us-east-1_LAwe5ZJrw" + }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId", + "ParameterValue": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + }, + { + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID", + "ParameterValue": "12hkvqjabpisei771tiefdhs76" + }, + { + "ParameterKey": "env", + "ParameterValue": "main" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json similarity index 69% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json index 0741b0ac99f..12c7040bd48 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-authuserPoolGroups-1RDWF2H8163RP.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "Root Stack for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientID" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker6b0fc1196b0fc119IdentityPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json similarity index 82% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json index 27a0f946070..5e51899ca79 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8a95290d-main" + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole64f55d16-main" }, { "OutputKey": "Region", @@ -17,6 +17,6 @@ }, { "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstrackerLambdaRole8a95290d-main" + "OutputValue": "fitnesstrackerLambdaRole64f55d16-main" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json similarity index 52% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json index 483014cc753..1752e93cb4d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json @@ -5,15 +5,15 @@ }, { "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/admin-536f797874787247392f-build.zip" + "ParameterValue": "amplify-builds/admin-765632787437744e386e-build.zip" }, { - "ParameterKey": "authfitnesstracker6b0fc1196b0fc119UserPoolId", - "ParameterValue": "us-east-1_u3DbKJdMj" + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", + "ParameterValue": "us-east-1_LAwe5ZJrw" }, { "ParameterKey": "env", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json index 2dbe7e47d6b..aaa8618655d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionadmin-1COFLOF4D1C47.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Type": "String", - "Default": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER6B0FC1196B0FC119_USERPOOLID": { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8a95290d", + "fitnesstrackerLambdaRole64f55d16", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker6b0fc1196b0fc119UserPoolId" + "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json similarity index 63% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json index cbe5d2d6675..cfe685f3804 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstracker6b0fc1196b0fc119PreSignup-main" + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" }, { "OutputKey": "Region", @@ -9,14 +9,14 @@ }, { "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker6b0fc1196b0fc119PreSignup-main" + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" }, { "OutputKey": "Name", - "OutputValue": "fitnesstracker6b0fc1196b0fc119PreSignup-main" + "OutputValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" }, { "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstracker6b0fc1196b0fc119PreSignup-main" + "OutputValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json index 592cb027916..92a5d88d7b5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionfitnesstracker6b0fc1196b0fc119PreSignup-IQSLCEZIETI0.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip" + "ParameterValue": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" }, { "ParameterKey": "functionName", @@ -21,7 +21,7 @@ }, { "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "DOMAINBLACKLIST", @@ -33,7 +33,7 @@ }, { "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker6b0fc1196b0fc119PreSignup" + "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" }, { "ParameterKey": "trigger", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json new file mode 100644 index 00000000000..04a3c261a89 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json @@ -0,0 +1,242 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "DOMAINBLACKLIST": { + "Type": "String", + "Default": "" + }, + "DOMAINALLOWLIST": { + "Type": "String", + "Default": "" + }, + "modules": { + "Type": "String", + "Default": "", + "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." + }, + "resourceName": { + "Type": "String", + "Default": "" + }, + "trigger": { + "Type": "String", + "Default": "true" + }, + "functionName": { + "Type": "String", + "Default": "" + }, + "roleName": { + "Type": "String", + "Default": "" + }, + "parentResource": { + "Type": "String", + "Default": "" + }, + "parentStack": { + "Type": "String", + "Default": "" + }, + "env": { + "Type": "String" + }, + "deploymentBucketName": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "MODULES": { + "Ref": "modules" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "DOMAINALLOWLIST": { + "Ref": "DOMAINALLOWLIST" + }, + "DOMAINBLACKLIST": { + "Ref": "DOMAINBLACKLIST" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 25, + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + } + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + { + "Fn::Join": [ + "", + [ + "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json index 0687ea2fe72..8016fe38118 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRolee7dd41c6-main" + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8dc6052c-main" }, { "OutputKey": "Region", @@ -17,6 +17,6 @@ }, { "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstrackerLambdaRolee7dd41c6-main" + "OutputValue": "fitnesstrackerLambdaRole8dc6052c-main" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json index 887bbd3b71a..2e5abe71d79 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "apifitnesstrackerGraphQLAPIIdOutput", - "ParameterValue": "2aikutabnvbuhlzmh4mvkg3eji" + "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" }, { "ParameterKey": "s3Key", @@ -13,7 +13,7 @@ }, { "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-0683c-deployment" + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" }, { "ParameterKey": "env", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json index fd10c7f0ba5..e1789ef2c20 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c-functionlognutrition-10VHW25DVQUYL.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRolee7dd41c6", + "fitnesstrackerLambdaRole8dc6052c", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt new file mode 100644 index 00000000000..daf66c0bc85 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.outputs.json similarity index 56% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.outputs.json index c3871838d76..89e90b54519 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.outputs.json @@ -1,42 +1,42 @@ [ { "OutputKey": "AuthRoleName", - "OutputValue": "amplify-fitnesstracker-main-0683c-authRole" + "OutputValue": "amplify-fitnesstracker-main-6fc9a-authRole" }, { "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-unauthRole" + "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" }, { "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-0683c-authRole" + "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" }, { "OutputKey": "Region", "OutputValue": "us-east-1", "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-fitnesstracker-main-0683c-Region" + "ExportName": "amplify-fitnesstracker-main-6fc9a-Region" }, { "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-fitnesstracker-main-0683c-deployment", + "OutputValue": "amplify-fitnesstracker-main-6fc9a-deployment", "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-fitnesstracker-main-0683c-DeploymentBucketName" + "ExportName": "amplify-fitnesstracker-main-6fc9a-DeploymentBucketName" }, { "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-fitnesstracker-main-0683c-unauthRole" + "OutputValue": "amplify-fitnesstracker-main-6fc9a-unauthRole" }, { "OutputKey": "StackName", - "OutputValue": "amplify-fitnesstracker-main-0683c", + "OutputValue": "amplify-fitnesstracker-main-6fc9a", "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-fitnesstracker-main-0683c-StackName" + "ExportName": "amplify-fitnesstracker-main-6fc9a-StackName" }, { "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-0683c/8ef87630-1a5b-11f1-84f6-12153bdc35f9", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-fitnesstracker-main-0683c-StackId" + "ExportName": "amplify-fitnesstracker-main-6fc9a-StackId" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json new file mode 100644 index 00000000000..e4f0b36fccf --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-fitnesstracker-main-6fc9a-unauthRole" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.template.json index 3c1652a8af6..5345516d4d9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-0683c.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.template.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -229,50 +229,50 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupLambdaExecutionRole": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupArn": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker6b0fc1196b0fc119PreSignupName": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker6b0fc1196b0fc119PreSignup", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker6b0fc1196b0fc119", - "functionfitnesstracker6b0fc1196b0fc119PreSignup" + "authfitnesstracker9ceb2e7c9ceb2e7c", + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" ] }, "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { "functionadminName": { "Fn::GetAtt": [ @@ -286,9 +286,9 @@ "Outputs.Arn" ] }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, @@ -305,19 +305,19 @@ "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "fitnesstracker", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-0683c-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/96fdcde6a80859ead18d697e115cb9bd809fa98a", + "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", "env": "main" } } @@ -325,7 +325,7 @@ "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { "functionlognutritionName": { "Fn::GetAtt": [ @@ -339,9 +339,9 @@ "Outputs.Arn" ] }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, @@ -355,15 +355,15 @@ } } }, - "authfitnesstracker6b0fc1196b0fc119": { + "authfitnesstracker9ceb2e7c9ceb2e7c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/fitnesstracker6b0fc1196b0fc119-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker6b0fc119_identitypool_6b0fc119", + "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes6b0fc119", - "userPoolName": "fitnesstracker6b0fc119_userpool_6b0fc119", + "resourceNameTruncated": "fitnes9ceb2e7c", + "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -377,13 +377,13 @@ "requiredAttributes": "email", "aliasAttributes": "", "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "30", + "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes6b0fc119_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "6b0fc119", - "resourceName": "fitnesstracker6b0fc1196b0fc119", + "sharedId": "9ceb2e7c", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -410,7 +410,7 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker6b0fc1196b0fc119PreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", "env": "main" } } @@ -418,7 +418,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -432,27 +432,27 @@ "Arn" ] }, - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientIDWeb": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.AppClientIDWeb" ] }, - "authfitnesstracker6b0fc1196b0fc119AppClientID": { + "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.AppClientID" ] }, - "authfitnesstracker6b0fc1196b0fc119IdentityPoolId": { + "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.IdentityPoolId" ] }, @@ -463,13 +463,13 @@ "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/admin-536f797874787247392f-build.zip", - "authfitnesstracker6b0fc1196b0fc119UserPoolId": { + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", + "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.UserPoolId" ] }, @@ -477,16 +477,16 @@ } } }, - "functionfitnesstracker6b0fc1196b0fc119PreSignup": { + "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/fitnesstracker6b0fc1196b0fc119PreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", "Parameters": { "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker6b0fc1196b0fc119PreSignup", + "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", - "s3Key": "amplify-builds/fitnesstracker6b0fc1196b0fc119PreSignup-555a623867446f4a3843-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", "env": "main" } } @@ -494,9 +494,9 @@ "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-0683c-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-0683c-deployment", + "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker6b0fc1196b0fc119" + "authfitnesstracker9ceb2e7c9ceb2e7c" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker6b0fc1196b0fc119", + "authfitnesstracker9ceb2e7c9ceb2e7c", "Outputs.IdentityPoolId" ] }, diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts index fae31be1fe0..19fb1885fc5 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/refactor.test.ts @@ -72,6 +72,10 @@ test('mood-board snapshot', async () => { await testSnapshot('mood-board'); }); +test('fitness-tracker snapshot', async () => { + await testSnapshot('fitness-tracker'); +}); + async function testSnapshot(appName: string, appOptions?: MigrationAppOptions, customize?: (app: MigrationApp) => Promise) { await MigrationApp.run( appName, From 8c3aac1d476afc40edff0d164d4cbcbb21f5ddcd Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Mon, 23 Mar 2026 20:55:55 -0400 Subject: [PATCH 45/91] chore: update snapshots --- ...179371D7-W7QZVETRVIH-holding.mappings.json | 8 ++-- ...7-W7QZVETRVIH-holding.source.template.json | 4 +- ...799-auth179371D7-W7QZVETRVIH.mappings.json | 40 +++++++++---------- ...h179371D7-W7QZVETRVIH.target.template.json | 4 +- ...799-auth179371D7-W7QZVETRVIH.mappings.json | 8 ++-- ...h179371D7-W7QZVETRVIH.target.template.json | 4 +- ...799-auth179371D7-W7QZVETRVIH.template.json | 4 +- 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json index 83c0978f566..d4a27b982d7 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04", - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" }, "Destination": { - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04", - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding", + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json index 5684a232e16..d8eba261f95 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json @@ -247,7 +247,7 @@ "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", "Runtime": "nodejs22.x", "Tags": [ { @@ -423,7 +423,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json index 4091bf8545c..ae2c9056571 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json @@ -1,52 +1,52 @@ [ { "Source": { - "LogicalResourceId": "UserPool", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", + "LogicalResourceId": "UserPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPool4BA7F805", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "LogicalResourceId": "UserPoolClientWeb", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", + "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "LogicalResourceId": "UserPoolClient", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", + "LogicalResourceId": "UserPoolClient" }, "Destination": { - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "LogicalResourceId": "IdentityPool", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", + "LogicalResourceId": "IdentityPool" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "LogicalResourceId": "IdentityPoolRoleMap", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD/9ac07e10-2594-11f1-aee1-0affcf84f6bb" + "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", + "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json index 99f8612dcd5..45938309e4f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json @@ -259,7 +259,7 @@ "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", "Runtime": "nodejs22.x", "Tags": [ { @@ -435,7 +435,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json index 86252db88e5..fb65e230dc8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json @@ -1,12 +1,12 @@ [ { "Source": { - "LogicalResourceId": "AdminGroup", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV/af7405c0-2594-11f1-8524-0affd2875eef" + "StackName": "amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV", + "LogicalResourceId": "AdminGroup" }, "Destination": { - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04", - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/785891a0-25fd-11f1-b51f-0e3e40e955b5" + "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json index e72ec0278ac..20656b6f77f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json @@ -247,7 +247,7 @@ "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", "Runtime": "nodejs22.x", "Tags": [ { @@ -423,7 +423,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json index 4b2c614ebc7..9cefa411a99 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json @@ -465,7 +465,7 @@ "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker9ceb2e7c9ce-xZE38EFlQueh", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", "Runtime": "nodejs22.x", "Tags": [ { @@ -641,7 +641,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-oHrOsDr6WPUj", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { From 8822035b7f53f51d6bf1b4f040da2a573bc7ea10 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 22:27:37 -0400 Subject: [PATCH 46/91] refactor(cli-internal): simplify beforeMove/afterMove to take stack ID Replace RefactorBlueprint parameter with gen2StackId string in beforeMove and afterMove. Both methods now fetch templates and build resource mappings independently from the blueprint, reading the actual stack state at plan time. This decouples holding stack operations from the main move mappings. Add info/debug helpers to CategoryRefactorer base class. Move empty-mappings guard from plan() into move(). Add debug logging to beforeMove and afterMove for traceability. Update fitness-tracker generate snapshots for resource naming. --- Prompt: commit my changes. --- ...79371D7-SEM95NL3BKFT-holding.mappings.json | 8 +- ...-SEM95NL3BKFT-holding.target.template.json | 42 +-- ...79371D7-DAPL7YOMHRB4-holding.mappings.json | 8 +- ...-DAPL7YOMHRB4-holding.target.template.json | 42 +-- .../email-filter-allowlist.js | 0 .../event.json | 0 .../index.js | 0 .../resource.ts | 4 +- .../amplify/auth/resource.ts | 4 +- .../amplify/backend.ts | 302 +++++++++--------- .../amplify/data/resource.ts | 6 +- ...7-W7QZVETRVIH-holding.target.template.json | 42 +-- ...h179371D7-UGINV3RD10-holding.mappings.json | 8 +- ...D7-UGINV3RD10-holding.target.template.json | 42 +-- ...9371D7-1RF1TAQPAA1WW-holding.mappings.json | 8 +- ...1RF1TAQPAA1WW-holding.target.template.json | 42 +-- ...79371D7-CFDKYQIOG2UJ-holding.mappings.json | 8 +- ...-CFDKYQIOG2UJ-holding.target.template.json | 42 +-- .../refactor/workflow/category-refactorer.ts | 25 +- .../workflow/forward-category-refactorer.ts | 63 ++-- .../workflow/rollback-category-refactorer.ts | 49 +-- 21 files changed, 389 insertions(+), 356 deletions(-) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/email-filter-allowlist.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/event.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/index.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker6b0fc1196b0fc119PreSignup => fitnesstracker9ceb2e7c9ceb2e7cPreSignup}/resource.ts (74%) diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json index e82e33ad210..759c58ea547 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json @@ -12,21 +12,21 @@ { "Source": { "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json index 0ac961a05d0..281c9db4335 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_W9u2NBSRe" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json index 0ba71166ed4..514e117ec84 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.mappings.json @@ -12,21 +12,21 @@ { "Source": { "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { "StackName": "amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json index a4cc052dc53..95c69630c2f 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4.__to__.amplify-discussions-gen2main-branch-96dfd1dc44-auth179371D7-DAPL7YOMHRB4-holding.target.template.json @@ -76,6 +76,27 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_olNpwuJIL" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -108,27 +129,6 @@ "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_olNpwuJIL" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-96dfd1dc44/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/email-filter-allowlist.js b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/email-filter-allowlist.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/email-filter-allowlist.js rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/email-filter-allowlist.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/event.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/event.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/event.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/event.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/index.js b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/index.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/index.js rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/index.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource.ts similarity index 74% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/resource.ts rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource.ts index 06a0de5e1b4..70e84323b8a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker6b0fc1196b0fc119PreSignup/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource.ts @@ -2,9 +2,9 @@ import { defineFunction } from '@aws-amplify/backend'; const branchName = process.env.AWS_BRANCH ?? 'sandbox'; -export const fitnesstracker6b0fc1196b0fc119PreSignup = defineFunction({ +export const fitnesstracker9ceb2e7c9ceb2e7cPreSignup = defineFunction({ entry: './index.js', - name: `fitnesstracker6b0fc1196b0fc119PreSignup-${branchName}`, + name: `fitnesstracker9ceb2e7c9ceb2e7cPreSignup-${branchName}`, timeoutSeconds: 25, memoryMB: 128, environment: { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts index f75b172e34b..d8023f79ff8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts @@ -1,5 +1,5 @@ import { defineAuth } from '@aws-amplify/backend'; -import { fitnesstracker6b0fc1196b0fc119PreSignup } from './fitnesstracker6b0fc1196b0fc119PreSignup/resource'; +import { fitnesstracker9ceb2e7c9ceb2e7cPreSignup } from './fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource'; import { admin } from '../function/admin/resource'; export const auth = defineAuth({ @@ -17,7 +17,7 @@ export const auth = defineAuth({ }, groups: ['Admin'], triggers: { - preSignUp: fitnesstracker6b0fc1196b0fc119PreSignup, + preSignUp: fitnesstracker9ceb2e7c9ceb2e7cPreSignup, }, multifactor: { mode: 'OFF', diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts index 874325a08aa..d38165f9a65 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts @@ -1,8 +1,8 @@ import { auth } from './auth/resource'; import { data } from './data/resource'; -import { fitnesstracker6b0fc1196b0fc119PreSignup } from './auth/fitnesstracker6b0fc1196b0fc119PreSignup/resource'; -import { lognutrition } from './function/lognutrition/resource'; import { admin } from './function/admin/resource'; +import { fitnesstracker9ceb2e7c9ceb2e7cPreSignup } from './auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource'; +import { lognutrition } from './function/lognutrition/resource'; import { RestApi, LambdaIntegration, @@ -12,77 +12,108 @@ import { } from 'aws-cdk-lib/aws-apigateway'; import { Policy, PolicyStatement } from 'aws-cdk-lib/aws-iam'; import { defineBackend } from '@aws-amplify/backend'; -import { Duration, Stack } from 'aws-cdk-lib'; +import { Stack, Duration } from 'aws-cdk-lib'; const backend = defineBackend({ auth, data, - fitnesstracker6b0fc1196b0fc119PreSignup, - lognutrition, admin, + fitnesstracker9ceb2e7c9ceb2e7cPreSignup, + lognutrition, }); -const cfnUserPool = backend.auth.resources.cfnResources.cfnUserPool; -cfnUserPool.usernameAttributes = undefined; -cfnUserPool.policies = { - passwordPolicy: { - minimumLength: 8, - requireUppercase: false, - requireLowercase: false, - requireNumbers: false, - requireSymbols: false, - temporaryPasswordValidityDays: 7, +const branchName = process.env.AWS_BRANCH ?? 'sandbox'; +const adminapiStack = backend.createStack('rest-api-stack-adminapi'); +const adminapiApi = new RestApi(adminapiStack, 'RestApi', { + restApiName: `adminapi-${branchName}`, +}); +adminapiApi.addGatewayResponse('Default4XX', { + type: ResponseType.DEFAULT_4XX, + responseHeaders: { + 'Access-Control-Allow-Origin': "'*'", + 'Access-Control-Allow-Headers': + "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", }, -}; -const cfnIdentityPool = backend.auth.resources.cfnResources.cfnIdentityPool; -cfnIdentityPool.allowUnauthenticatedIdentities = false; -const userPool = backend.auth.resources.userPool; -userPool.addClient('NativeAppClient', { - refreshTokenValidity: Duration.days(30), - enableTokenRevocation: true, - enablePropagateAdditionalUserContextData: false, - authSessionValidity: Duration.minutes(3), - disableOAuth: true, - generateSecret: false, }); -const branchName = process.env.AWS_BRANCH ?? 'sandbox'; -backend.fitnesstracker6b0fc1196b0fc119PreSignup.resources.cfnResources.cfnFunction.functionName = `fitnesstracker6b0fc1196b0fc119PreSignup-${branchName}`; -backend.lognutrition.resources.cfnResources.cfnFunction.functionName = `lognutrition-${branchName}`; -backend.lognutrition.addEnvironment( - 'API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT', - backend.data.apiId -); -backend.lognutrition.addEnvironment( - 'API_FITNESSTRACKER_MEALTABLE_ARN', - backend.data.resources.tables['Meal'].tableArn -); -backend.lognutrition.addEnvironment( - 'API_FITNESSTRACKER_MEALTABLE_NAME', - backend.data.resources.tables['Meal'].tableName +adminapiApi.addGatewayResponse('Default5XX', { + type: ResponseType.DEFAULT_5XX, + responseHeaders: { + 'Access-Control-Allow-Origin': "'*'", + 'Access-Control-Allow-Headers': + "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", + }, +}); +const adminIntegration = new LambdaIntegration(backend.admin.resources.lambda); +const gen1adminapiApi = RestApi.fromRestApiAttributes( + adminapiStack, + 'Gen1adminapiApi', + { + restApiId: 'bbk7dedp01', + rootResourceId: 'bbk7dedp01-root', + } ); -backend.data.resources.tables['Meal'].grant( - backend.lognutrition.resources.lambda, - 'dynamodb:Put*', - 'dynamodb:Create*', - 'dynamodb:BatchWriteItem', - 'dynamodb:PartiQLInsert', - 'dynamodb:Get*', - 'dynamodb:BatchGetItem', - 'dynamodb:List*', - 'dynamodb:Describe*', - 'dynamodb:Scan', - 'dynamodb:Query', - 'dynamodb:PartiQLSelect', - 'dynamodb:Update*', - 'dynamodb:RestoreTable*', - 'dynamodb:PartiQLUpdate', - 'dynamodb:Delete*', - 'dynamodb:PartiQLDelete' +const gen1adminapiPolicy = new Policy(adminapiStack, 'Gen1adminapiPolicy', { + statements: [ + new PolicyStatement({ + actions: ['execute-api:Invoke'], + resources: [`${gen1adminapiApi.arnForExecuteApi('GET', '/*')}`], + }), + ], +}); +backend.auth.resources.authenticatedUserIamRole.attachInlinePolicy( + gen1adminapiPolicy ); -backend.admin.resources.cfnResources.cfnFunction.functionName = `admin-${branchName}`; -backend.admin.addEnvironment( - 'AUTH_FITNESSTRACKER6B0FC1196B0FC119_USERPOOLID', - backend.auth.resources.userPool.userPoolId +const adminResource = adminapiApi.root.addResource('admin', { + defaultMethodOptions: { + authorizationType: AuthorizationType.IAM, + }, + defaultCorsPreflightOptions: { + allowOrigins: Cors.ALL_ORIGINS, + allowMethods: Cors.ALL_METHODS, + allowHeaders: [ + 'Content-Type', + 'X-Amz-Date', + 'Authorization', + 'X-Api-Key', + 'X-Amz-Security-Token', + 'X-Amz-User-Agent', + ], + statusCode: 200, + }, +}); +adminResource.addMethod('ANY', adminIntegration); +adminResource.addProxy({ + anyMethod: true, + defaultIntegration: adminIntegration, +}); +// /admin - Admin group only +backend.auth.resources.groups['Admin'].role.attachInlinePolicy( + new Policy(adminapiStack, 'adminAdminPolicy', { + statements: [ + new PolicyStatement({ + actions: ['execute-api:Invoke'], + resources: [ + adminapiApi.arnForExecuteApi('GET', '/admin'), + adminapiApi.arnForExecuteApi('GET', '/admin/*'), + ], + }), + ], + }) ); +backend.addOutput({ + custom: { + API: { + [adminapiApi.restApiName]: { + endpoint: adminapiApi.url.slice(0, -1), + region: Stack.of(adminapiApi).region, + apiName: adminapiApi.restApiName, + }, + }, + }, +}); const cfnGraphqlApi = backend.data.resources.cfnResources.cfnGraphqlApi; cfnGraphqlApi.additionalAuthenticationProviders = [ { @@ -120,8 +151,8 @@ const gen1nutritionapiApi = RestApi.fromRestApiAttributes( nutritionapiStack, 'Gen1nutritionapiApi', { - restApiId: '6smuxn28tb', - rootResourceId: '6smuxn28tb-root', + restApiId: 'ekto8iln0h', + rootResourceId: 'ekto8iln0h-root', } ); const gen1nutritionapiPolicy = new Policy( @@ -220,95 +251,64 @@ backend.addOutput({ }, }, }); -const adminapiStack = backend.createStack('rest-api-stack-adminapi'); -const adminapiApi = new RestApi(adminapiStack, 'RestApi', { - restApiName: `adminapi-${branchName}`, -}); -adminapiApi.addGatewayResponse('Default4XX', { - type: ResponseType.DEFAULT_4XX, - responseHeaders: { - 'Access-Control-Allow-Origin': "'*'", - 'Access-Control-Allow-Headers': - "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", - }, -}); -adminapiApi.addGatewayResponse('Default5XX', { - type: ResponseType.DEFAULT_5XX, - responseHeaders: { - 'Access-Control-Allow-Origin': "'*'", - 'Access-Control-Allow-Headers': - "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", +const cfnUserPool = backend.auth.resources.cfnResources.cfnUserPool; +cfnUserPool.usernameAttributes = undefined; +cfnUserPool.policies = { + passwordPolicy: { + minimumLength: 8, + requireUppercase: false, + requireLowercase: false, + requireNumbers: false, + requireSymbols: false, + temporaryPasswordValidityDays: 7, }, +}; +const cfnIdentityPool = backend.auth.resources.cfnResources.cfnIdentityPool; +cfnIdentityPool.allowUnauthenticatedIdentities = false; +const userPool = backend.auth.resources.userPool; +userPool.addClient('NativeAppClient', { + refreshTokenValidity: Duration.days(30), + enableTokenRevocation: true, + enablePropagateAdditionalUserContextData: false, + authSessionValidity: Duration.minutes(3), + disableOAuth: true, + generateSecret: false, }); -const adminIntegration = new LambdaIntegration(backend.admin.resources.lambda); -const gen1adminapiApi = RestApi.fromRestApiAttributes( - adminapiStack, - 'Gen1adminapiApi', - { - restApiId: 'kh5xa5hayh', - rootResourceId: 'kh5xa5hayh-root', - } +backend.admin.resources.cfnResources.cfnFunction.functionName = `admin-${branchName}`; +backend.admin.addEnvironment( + 'AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID', + backend.auth.resources.userPool.userPoolId ); -const gen1adminapiPolicy = new Policy(adminapiStack, 'Gen1adminapiPolicy', { - statements: [ - new PolicyStatement({ - actions: ['execute-api:Invoke'], - resources: [`${gen1adminapiApi.arnForExecuteApi('GET', '/*')}`], - }), - ], -}); -backend.auth.resources.authenticatedUserIamRole.attachInlinePolicy( - gen1adminapiPolicy +backend.fitnesstracker9ceb2e7c9ceb2e7cPreSignup.resources.cfnResources.cfnFunction.functionName = `fitnesstracker9ceb2e7c9ceb2e7cPreSignup-${branchName}`; +backend.lognutrition.resources.cfnResources.cfnFunction.functionName = `lognutrition-${branchName}`; +backend.lognutrition.addEnvironment( + 'API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT', + backend.data.apiId ); -const adminResource = adminapiApi.root.addResource('admin', { - defaultMethodOptions: { - authorizationType: AuthorizationType.IAM, - }, - defaultCorsPreflightOptions: { - allowOrigins: Cors.ALL_ORIGINS, - allowMethods: Cors.ALL_METHODS, - allowHeaders: [ - 'Content-Type', - 'X-Amz-Date', - 'Authorization', - 'X-Api-Key', - 'X-Amz-Security-Token', - 'X-Amz-User-Agent', - ], - statusCode: 200, - }, -}); -adminResource.addMethod('ANY', adminIntegration); -adminResource.addProxy({ - anyMethod: true, - defaultIntegration: adminIntegration, -}); -// /admin - Admin group only -backend.auth.resources.groups['Admin'].role.attachInlinePolicy( - new Policy(adminapiStack, 'adminAdminPolicy', { - statements: [ - new PolicyStatement({ - actions: ['execute-api:Invoke'], - resources: [ - adminapiApi.arnForExecuteApi('GET', '/admin'), - adminapiApi.arnForExecuteApi('GET', '/admin/*'), - ], - }), - ], - }) +backend.lognutrition.addEnvironment( + 'API_FITNESSTRACKER_MEALTABLE_ARN', + backend.data.resources.tables['Meal'].tableArn +); +backend.lognutrition.addEnvironment( + 'API_FITNESSTRACKER_MEALTABLE_NAME', + backend.data.resources.tables['Meal'].tableName +); +backend.data.resources.tables['Meal'].grant( + backend.lognutrition.resources.lambda, + 'dynamodb:Put*', + 'dynamodb:Create*', + 'dynamodb:BatchWriteItem', + 'dynamodb:PartiQLInsert', + 'dynamodb:Get*', + 'dynamodb:BatchGetItem', + 'dynamodb:List*', + 'dynamodb:Describe*', + 'dynamodb:Scan', + 'dynamodb:Query', + 'dynamodb:PartiQLSelect', + 'dynamodb:Update*', + 'dynamodb:RestoreTable*', + 'dynamodb:PartiQLUpdate', + 'dynamodb:Delete*', + 'dynamodb:PartiQLDelete' ); -backend.addOutput({ - custom: { - API: { - [adminapiApi.restApiName]: { - endpoint: adminapiApi.url.slice(0, -1), - region: Stack.of(adminapiApi).region, - apiName: adminapiApi.restApiName, - }, - }, - }, -}); diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts index f0cd5d66650..395962b74db 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts @@ -38,9 +38,9 @@ export const data = defineData({ //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables branchName: 'main', modelNameToTableNameMapping: { - WorkoutProgram: 'WorkoutProgram-2aikutabnvbuhlzmh4mvkg3eji-main', - Exercise: 'Exercise-2aikutabnvbuhlzmh4mvkg3eji-main', - Meal: 'Meal-2aikutabnvbuhlzmh4mvkg3eji-main', + WorkoutProgram: 'WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main', + Exercise: 'Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main', + Meal: 'Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main', }, }, ], diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json index 5bce33938d8..7dc317d8e76 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_mQEsDQ1lC" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_mQEsDQ1lC" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json index 79538fa7fde..1c699ef3e6d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json @@ -12,21 +12,21 @@ { "Source": { "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json index 56297208ba2..f9691d6822f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1A4RMvPNr" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json index 3ff71e8af10..c32bf4971d4 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json @@ -12,21 +12,21 @@ { "Source": { "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json index f86fae3e9c3..38ef9ab99c9 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_OFRBVzhq5" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json index f31a9ecca03..ff5c6741705 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json @@ -12,21 +12,21 @@ { "Source": { "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" }, "Destination": { "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" }, "Destination": { "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json index 779bb840e47..8656382c8f9 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json @@ -71,6 +71,27 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_pXlpWF7QY" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { @@ -103,27 +124,6 @@ "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" } }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, "amplifyAuthIdentityPool3FDE84CC": { "Type": "AWS::Cognito::IdentityPool", "Properties": { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts index 8d7a9baaad5..422178d913f 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/category-refactorer.ts @@ -2,7 +2,7 @@ import { Parameter, ResourceMapping } from '@aws-sdk/client-cloudformation'; import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource, CFNTemplate } from '../../cfn-template'; import { Planner } from '../../planner'; -import { AmplifyMigrationOperation, buildNoopOperation } from '../../_operation'; +import { AmplifyMigrationOperation } from '../../_operation'; import { AwsClients } from '../../aws-clients'; import { StackFacade } from '../stack-facade'; import { Cfn } from '../cfn'; @@ -87,10 +87,6 @@ export abstract class CategoryRefactorer implements Planner { const targetResources = this.filterResourcesByType(target.resolvedTemplate); const mappings = await this.buildResourceMappings(sourceResources, targetResources, source.stackId, target.stackId); - if (mappings.length === 0) { - this.logger.pop(); - return [buildNoopOperation(this.resource)]; - } source = addPlaceHolderIfNeeded(source, mappings); @@ -98,9 +94,9 @@ export abstract class CategoryRefactorer implements Planner { const updateSourceOps = await this.updateSource(source); const updateTargetOps = await this.updateTarget(target); - const beforeMoveOps = await this.beforeMove(blueprint); + const beforeMoveOps = await this.beforeMove(blueprint.targetStackId); const moveOps = await this.move(blueprint); - const afterMoveOps = await this.afterMove(blueprint); + const afterMoveOps = await this.afterMove(blueprint.sourceStackId); const operations = [...updateSourceOps, ...updateTargetOps, ...beforeMoveOps, ...moveOps, ...afterMoveOps]; this.logger.pop(); @@ -133,14 +129,14 @@ export abstract class CategoryRefactorer implements Planner { * Forward: moves Gen2 resources to holding stack. * Rollback: no-op. */ - protected abstract beforeMove(blueprint: RefactorBlueprint): Promise | AmplifyMigrationOperation[]; + protected abstract beforeMove(gen2StackId: string): Promise; /** * Post-move operations. * Forward: empty. * Rollback: restores holding stack resources into Gen2. */ - protected abstract afterMove(blueprint: RefactorBlueprint): Promise; + protected abstract afterMove(gen2StackId: string): Promise; // -- Shared workflow (concrete) -- @@ -233,6 +229,9 @@ export abstract class CategoryRefactorer implements Planner { * Templates are fetched and resolved fresh at execution time. */ protected async move(blueprint: RefactorBlueprint): Promise { + if (blueprint.mappings.length === 0) { + return []; + } const sourceStackName = extractStackNameFromId(blueprint.sourceStackId); const targetStackName = extractStackNameFromId(blueprint.targetStackId); @@ -294,6 +293,14 @@ export abstract class CategoryRefactorer implements Planner { } return `${table.toString()}\n`; } + + protected info(message: string) { + this.logger.info(`[${this.resource.category}/${this.resource.resourceName}] ${message}`); + } + + protected debug(message: string) { + this.logger.debug(`[${this.resource.category}/${this.resource.resourceName}] ${message}`); + } } function addPlaceHolderIfNeeded(source: ResolvedStack, mappings: ResourceMapping[]): ResolvedStack { diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index a470a55b25c..0bc62949eb2 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -7,7 +7,7 @@ import { resolveOutputs } from '../resolvers/cfn-output-resolver'; import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { resolveConditions } from '../resolvers/cfn-condition-resolver'; import { extractStackNameFromId } from '../utils'; -import { CategoryRefactorer, RefactorBlueprint, ResolvedStack } from './category-refactorer'; +import { CategoryRefactorer, ResolvedStack } from './category-refactorer'; /** * Forward direction base: moves resources from Gen1 (source) to Gen2 (target). @@ -20,7 +20,7 @@ import { CategoryRefactorer, RefactorBlueprint, ResolvedStack } from './category export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { /** * Matches source resources to target resources by type. - * Subclasses can override match() for custom disambiguation. + * Sub-classes can override match() for custom disambiguation. */ protected async buildResourceMappings( sourceResources: Map, @@ -126,16 +126,25 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { * Moves Gen2 resources to a holding stack before the main refactor. * Templates are fetched fresh at execution time. */ - protected async beforeMove(blueprint: RefactorBlueprint): Promise { - if (blueprint.mappings.length === 0) return []; - - const gen2StackName = extractStackNameFromId(blueprint.targetStackId); + protected async beforeMove(gen2StackId: string): Promise { + const gen2StackName = extractStackNameFromId(gen2StackId); const holdingStackName = this.getHoldingStackName(gen2StackName); - const resourceMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ - Source: { StackName: gen2StackName, LogicalResourceId: m.Destination.LogicalResourceId }, - Destination: { StackName: holdingStackName, LogicalResourceId: m.Destination.LogicalResourceId }, - })); + this.debug(`Fetching template of gen2 stack: ${gen2StackName}`); + const gen2StackTemplate = await this.gen2Branch.fetchTemplate(gen2StackName); + const resources = this.filterResourcesByType(gen2StackTemplate); + this.debug(`Found ${resources.size} resources to move from stack: ${gen2StackName}`); + + const resourceMappings: ResourceMapping[] = []; + for (const logicalId of resources.keys()) { + this.debug(`Registering ${logicalId} to move from ${gen2StackName} to ${holdingStackName}`); + resourceMappings.push({ + Source: { StackName: gen2StackName, LogicalResourceId: logicalId }, + Destination: { StackName: holdingStackName, LogicalResourceId: logicalId }, + }); + } + + this.debug(`Locating holding stack: ${holdingStackName}`); const holdingStack = await this.cfn.findStack(holdingStackName); const operations: AmplifyMigrationOperation[] = []; @@ -151,20 +160,22 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { }); } - operations.push({ - resource: this.resource, - validate: () => undefined, - describe: async () => { - const header = `Move ${blueprint.mappings.length} resource(s) from '${gen2StackName}' to '${extractStackNameFromId( - holdingStackName, - )}'`; - const table = this.renderMappingTable(resourceMappings); - return [`${header}\n\n${table}`]; - }, - execute: async () => { - await this.cfn.refactor(resourceMappings, this.resource); - }, - }); + if (resourceMappings.length > 0) { + operations.push({ + resource: this.resource, + validate: () => undefined, + describe: async () => { + const header = `Move ${resourceMappings.length} resource(s) from '${gen2StackName}' to '${extractStackNameFromId( + holdingStackName, + )}'`; + const table = this.renderMappingTable(resourceMappings); + return [`${header}\n\n${table}`]; + }, + execute: async () => { + await this.cfn.refactor(resourceMappings, this.resource); + }, + }); + } return operations; } @@ -172,13 +183,15 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { /** * Forward: no post-move operations. Holding stack survives for rollback. */ - protected async afterMove(): Promise { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + protected async afterMove(_gen2StackId: string): Promise { return []; } /** * Hook for OAuth parameter resolution. Override in auth category. */ + // eslint-disable-next-line @typescript-eslint/no-unused-vars protected async resolveOAuthParameters(parameters: Parameter[], _outputs: Output[]): Promise { return parameters; } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index a8be4677409..a39a767d063 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -6,13 +6,7 @@ import { resolveParameters } from '../resolvers/cfn-parameter-resolver'; import { resolveOutputs } from '../resolvers/cfn-output-resolver'; import { resolveDependencies } from '../resolvers/cfn-dependency-resolver'; import { extractStackNameFromId } from '../utils'; -import { - CategoryRefactorer, - MIGRATION_PLACEHOLDER_LOGICAL_ID, - PLACEHOLDER_RESOURCE, - RefactorBlueprint, - ResolvedStack, -} from './category-refactorer'; +import { CategoryRefactorer, MIGRATION_PLACEHOLDER_LOGICAL_ID, PLACEHOLDER_RESOURCE, ResolvedStack } from './category-refactorer'; /** * Rollback direction base: moves resources from Gen2 (source) back to Gen1 (target). @@ -53,7 +47,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { } /** - * Returns the Gen1 logical ID for a Gen2 resource. Subclasses implement per category. + * Returns the Gen1 logical ID for a Gen2 resource. Sub-classes implement per category. */ protected abstract targetLogicalId(sourceId: string, sourceResource: CFNResource): string | undefined; @@ -97,7 +91,8 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { /** * Rollback: no pre-move operations. */ - protected beforeMove(_blueprint: RefactorBlueprint): AmplifyMigrationOperation[] { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + protected async beforeMove(_gen2StackId: string): Promise { return []; } @@ -105,17 +100,35 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { * Restores holding stack resources into Gen2. * Templates are fetched fresh at execution time. */ - protected async afterMove(blueprint: RefactorBlueprint): Promise { - const gen2StackName = blueprint.sourceStackId; - const holdingStackName = this.getHoldingStackName(extractStackNameFromId(gen2StackName)); + protected async afterMove(gen2StackId: string): Promise { + const gen2StackName = extractStackNameFromId(gen2StackId); + const holdingStackName = this.getHoldingStackName(gen2StackName); + this.debug(`Locating holding stack: ${holdingStackName}`); const holdingStack = await this.cfn.findStack(holdingStackName); - if (!holdingStack) return []; + if (!holdingStack) { + this.debug(`Holding stack ${holdingStackName} not found. Nothing to do.`); + return []; + } + + this.debug(`Fetching template of holding stack: ${holdingStackName}`); + const holdingStackTemplate = await this.gen2Branch.fetchTemplate(holdingStackName); + const resources = this.filterResourcesByType(holdingStackTemplate); + this.debug(`Found ${resources.size} resources to move from stack: ${holdingStackName}`); + + const resourceMappings: ResourceMapping[] = []; + for (const logicalId of resources.keys()) { + this.debug(`Registering ${logicalId} to move from ${holdingStackName} to ${gen2StackName}`); + resourceMappings.push({ + Source: { StackName: holdingStackName, LogicalResourceId: logicalId }, + Destination: { StackName: gen2StackName, LogicalResourceId: logicalId }, + }); + } - const resourceMappings: ResourceMapping[] = blueprint.mappings.map((m) => ({ - Source: { StackName: holdingStackName, LogicalResourceId: m.Source.LogicalResourceId }, - Destination: { StackName: gen2StackName, LogicalResourceId: m.Source.LogicalResourceId }, - })); + if (resourceMappings.length === 0) { + this.debug(`No resources were registered for move from ${holdingStackName} to ${gen2StackName}. Nothing to do.`); + return []; + } return [ { @@ -139,7 +152,7 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { resource: this.resource, validate: () => undefined, describe: async () => { - const header = `Move ${blueprint.mappings.length} resource(s) from '${extractStackNameFromId( + const header = `Move ${resourceMappings.length} resource(s) from '${extractStackNameFromId( holdingStackName, )}' to '${extractStackNameFromId(gen2StackName)}'`; const table = this.renderMappingTable(resourceMappings); From 72fdab79966f1afcac550d946018f77629e9d7e7 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Mon, 23 Mar 2026 22:36:46 -0400 Subject: [PATCH 47/91] test(cli-internal): fix tests for beforeMove/afterMove signature change Update beforeMove tests to pass gen2StackId string and mock GetTemplateCommand for Gen2 template fetch. Update afterMove tests to pass gen2StackId string. Update plan orchestration tests for new operation counts (no early no-op return). --- Prompt: run all cli package tests and fix what's needed. --- .../workflow/category-refactorer.test.ts | 6 +- .../forward-category-refactorer.test.ts | 64 +++++++------------ .../rollback-category-refactorer.test.ts | 22 +------ 3 files changed, 27 insertions(+), 65 deletions(-) diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/category-refactorer.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/category-refactorer.test.ts index 183cb67225a..76823efd440 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/category-refactorer.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/category-refactorer.test.ts @@ -184,7 +184,7 @@ describe('CategoryRefactorer.plan() orchestration — via StorageS3ForwardRefact }, cfn, ).plan(); - expect(ops).toHaveLength(1); // no-op operation + expect(ops).toHaveLength(3); // updateSource + updateTarget + beforeMove (holding) }); it('produces updateSource → updateTarget → beforeMove → move for forward plan', async () => { @@ -272,7 +272,7 @@ describe('StorageS3RollbackRefactorer.plan() — rollback without holding stack' ).plan(); // Resources already exist in Gen1 target, so rollback produces no-op - expect(ops).toHaveLength(1); // no-op operation + expect(ops).toHaveLength(2); // updateSource + updateTarget only }); }); @@ -364,7 +364,7 @@ describe('Analytics wiring tests', () => { ).plan(); // Resources already exist in Gen1 target, so rollback produces no-op - expect(ops).toHaveLength(1); // no-op operation + expect(ops).toHaveLength(2); // updateSource + updateTarget only }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts index 4478faf4a1b..ac2abae42ee 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts @@ -1,5 +1,4 @@ import { ForwardCategoryRefactorer } from '../../../../../commands/gen2-migration/refactor/workflow/forward-category-refactorer'; -import { RefactorBlueprint } from '../../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; import { AwsClients } from '../../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../../commands/gen2-migration/refactor/stack-facade'; import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; @@ -31,13 +30,17 @@ class TestForwardRefactorer extends ForwardCategoryRefactorer { } } -function makeBlueprint(mappings: ResourceMapping[]): RefactorBlueprint { - return { - sourceStackId: 'gen1-stack', - targetStackId: 'gen2-stack', - mappings, - }; -} +const GEN2_TEMPLATE_WITH_BUCKET = JSON.stringify({ + AWSTemplateFormatVersion: '2010-09-09', + Resources: { MyBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }, + Outputs: {}, +}); + +const GEN2_TEMPLATE_NO_BUCKET = JSON.stringify({ + AWSTemplateFormatVersion: '2010-09-09', + Resources: { Lambda: { Type: 'AWS::Lambda::Function', Properties: {} } }, + Outputs: {}, +}); describe('ForwardCategoryRefactorer.beforeMove', () => { let cfnMock: ReturnType; @@ -47,8 +50,12 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { }); afterEach(() => cfnMock.restore()); - it('returns empty operations when no mappings', async () => { + it('returns empty operations when gen2 stack has no matching resources', async () => { + cfnMock.on(GetTemplateCommand).resolves({ TemplateBody: GEN2_TEMPLATE_NO_BUCKET }); + cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); + const clients = new AwsClients({ region: 'us-east-1' }); + (clients as any).cloudFormation = new CloudFormationClient({}); const cfn = new Cfn(new CloudFormationClient({}), noOpLogger()); const refactorer = new TestForwardRefactorer( new StackFacade(clients, 'g1'), @@ -60,13 +67,12 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, cfn, ); - const blueprint = makeBlueprint([]); - const operations = await (refactorer as any).beforeMove(blueprint); + const operations = await (refactorer as any).beforeMove('gen2-stack'); expect(operations).toHaveLength(0); }); - it('creates holding stack operation when mappings exist', async () => { + it('creates holding stack operation when gen2 stack has matching resources', async () => { cfnMock.on(DescribeStacksCommand).resolves({ Stacks: [] }); cfnMock.on(CreateStackRefactorCommand).resolves({ StackRefactorId: 'r1' }); cfnMock @@ -74,13 +80,7 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { .resolves({ Status: StackRefactorStatus.CREATE_COMPLETE, ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_COMPLETE }); cfnMock.on(ExecuteStackRefactorCommand).resolves({}); cfnMock.on(DescribeStackResourcesCommand).resolves({ StackResources: [] }); - cfnMock.on(GetTemplateCommand).resolves({ - TemplateBody: JSON.stringify({ - AWSTemplateFormatVersion: '2010-09-09', - Resources: { MyBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }, - Outputs: {}, - }), - }); + cfnMock.on(GetTemplateCommand).resolves({ TemplateBody: GEN2_TEMPLATE_WITH_BUCKET }); const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); @@ -96,14 +96,7 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { cfn, ); - const blueprint = makeBlueprint([ - { - Source: { StackName: 'gen1-stack', LogicalResourceId: 'S3Bucket' }, - Destination: { StackName: 'gen2-stack', LogicalResourceId: 'MyBucket' }, - }, - ]); - - const operations = await (refactorer as any).beforeMove(blueprint); + const operations = await (refactorer as any).beforeMove('gen2-stack'); expect(operations).toHaveLength(1); expect(await operations[0].describe()).toEqual([expect.stringContaining('holding')]); }); @@ -121,13 +114,7 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { .resolves({ Status: StackRefactorStatus.CREATE_COMPLETE, ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_COMPLETE }); cfnMock.on(ExecuteStackRefactorCommand).resolves({}); cfnMock.on(DescribeStackResourcesCommand).resolves({ StackResources: [] }); - cfnMock.on(GetTemplateCommand).resolves({ - TemplateBody: JSON.stringify({ - AWSTemplateFormatVersion: '2010-09-09', - Resources: { MyBucket: { Type: 'AWS::S3::Bucket', Properties: {} } }, - Outputs: {}, - }), - }); + cfnMock.on(GetTemplateCommand).resolves({ TemplateBody: GEN2_TEMPLATE_WITH_BUCKET }); const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); @@ -143,14 +130,7 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { cfn, ); - const blueprint = makeBlueprint([ - { - Source: { StackName: 'gen1-stack', LogicalResourceId: 'S3Bucket' }, - Destination: { StackName: 'gen2-stack', LogicalResourceId: 'MyBucket' }, - }, - ]); - - const operations = await (refactorer as any).beforeMove(blueprint); + const operations = await (refactorer as any).beforeMove('gen2-stack'); expect(operations).toHaveLength(2); await operations[0].execute(); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts index b787b952b5e..658094e11f4 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts @@ -1,6 +1,5 @@ import { RollbackCategoryRefactorer } from '../../../../../commands/gen2-migration/refactor/workflow/rollback-category-refactorer'; import { CFNResource, CFNTemplate } from '../../../../../commands/gen2-migration/cfn-template'; -import { RefactorBlueprint } from '../../../../../commands/gen2-migration/refactor/workflow/category-refactorer'; import { AwsClients } from '../../../../../commands/gen2-migration/aws-clients'; import { StackFacade } from '../../../../../commands/gen2-migration/refactor/stack-facade'; import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; @@ -36,14 +35,6 @@ class TestRollbackRefactorer extends RollbackCategoryRefactorer { } } -function makeBlueprint(mappings: ResourceMapping[]): RefactorBlueprint { - return { - sourceStackId: 'gen2-auth-stack-id', - targetStackId: 'gen1-stack-id', - mappings, - }; -} - describe('RollbackCategoryRefactorer.afterMove', () => { let cfnMock: ReturnType; @@ -89,14 +80,7 @@ describe('RollbackCategoryRefactorer.afterMove', () => { cfn, ); - const blueprint = makeBlueprint([ - { - Source: { StackName: 'gen2-auth-stack-id', LogicalResourceId: 'MyBucket' }, - Destination: { StackName: 'gen1-stack-id', LogicalResourceId: 'S3Bucket' }, - }, - ]); - - const operations = await (refactorer as any).afterMove(blueprint); + const operations = await (refactorer as any).afterMove('gen2-auth-stack-id'); // 2 operations: update holding with placeholder, refactor back to Gen2 expect(operations).toHaveLength(2); @@ -121,9 +105,7 @@ describe('RollbackCategoryRefactorer.afterMove', () => { cfn, ); - const blueprint = makeBlueprint([]); - - const operations = await (refactorer as any).afterMove(blueprint); + const operations = await (refactorer as any).afterMove('gen2-auth-stack-id'); expect(operations).toHaveLength(0); }); }); From d398c7711222b8d6ff6db6860b5af1475399243d Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Tue, 24 Mar 2026 00:11:17 -0400 Subject: [PATCH 48/91] chore: recapture snapshot --- .../fitness-tracker/README.md | 28 - .../email-filter-allowlist.js | 0 .../event.json | 0 .../index.js | 0 .../resource.ts | 8 +- .../amplify/auth/resource.ts | 4 +- .../amplify/backend.ts | 16 +- .../amplify/data/resource.ts | 6 +- ...9371D7-19RM9R3LOXG8I-holding.mappings.json | 12 + ...9RM9R3LOXG8I-holding.source.template.json} | 158 +-- ...9RM9R3LOXG8I-holding.target.template.json} | 36 +- ...179371D7-W7QZVETRVIH-holding.mappings.json | 12 - ...799-auth179371D7-W7QZVETRVIH.mappings.json | 52 - ...799-auth179371D7-W7QZVETRVIH.mappings.json | 12 - ...b-auth179371D7-19RM9R3LOXG8I.mappings.json | 52 + ...9371D7-19RM9R3LOXG8I.source.template.json} | 28 +- ...9371D7-19RM9R3LOXG8I.target.template.json} | 164 +-- ...b-auth179371D7-19RM9R3LOXG8I.mappings.json | 12 + ...9371D7-19RM9R3LOXG8I.source.template.json} | 24 +- ...9371D7-19RM9R3LOXG8I.target.template.json} | 162 +-- ...uth179371D7-19RM9R3LOXG8I.parameters.json} | 0 ...-auth179371D7-19RM9R3LOXG8I.template.json} | 160 +-- ...serPoolGroups-MXIW00J9KSSV.parameters.json | 30 - ...45533f55455-1DWODNQZOZ508.parameters.json} | 34 +- ...5545533f55455-1DWODNQZOZ508.template.json} | 62 +- ...erPoolGroups-19G9G5Q52J3XF.parameters.json | 30 + ...serPoolGroups-19G9G5Q52J3XF.template.json} | 28 +- .../#current-cloud-backend/amplify-meta.json | 464 +++---- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 1173 +++++++++-------- .../api/fitnesstracker/build/parameters.json | 6 +- .../build/stacks/ConnectionStack.json | 2 +- .../fitnesstracker/build/stacks/Exercise.json | 18 +- .../api/fitnesstracker/build/stacks/Meal.json | 16 +- .../build/stacks/WorkoutProgram.json | 18 +- .../api/fitnesstracker/cli-inputs.json | 4 +- .../api/fitnesstracker/parameters.json | 2 +- .../nutritionapi-cloudformation-template.json | 18 +- .../auth-trigger-cloudformation-template.json | 14 +- ...545533f55455-cloudformation-template.json} | 20 +- .../build/parameters.json | 16 +- .../cli-inputs.json | 12 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 5 +- .../nutritionapi-cloudformation-template.json | 18 +- ...545533f55455-cloudformation-template.json} | 20 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../build/root-cloudformation-stack.json | 276 ++-- .../admin/admin-cloudformation-template.json | 14 +- ...455PreSignup-cloudformation-template.json} | 8 +- .../lognutrition-cloudformation-template.json | 4 +- .../build/root-cloudformation-stack.json | 276 ++-- .../backend-config.json | 32 +- .../admin/admin-cloudformation-template.json | 14 +- .../function/admin/function-parameters.json | 2 +- .../amplify.state | 0 .../custom-policies.json | 0 ...455PreSignup-cloudformation-template.json} | 8 +- .../function-parameters.json | 8 +- .../parameters.json | 4 + .../src/email-filter-allowlist.js | 0 .../src/event.json | 0 .../src/index.js | 0 .../src/package.json | 2 +- .../src/yarn.lock | 0 .../parameters.json | 4 - .../lognutrition-cloudformation-template.json | 4 +- .../amplify/backend/amplify-meta.json | 460 +++---- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 1173 +++++++++-------- .../api/fitnesstracker/build/parameters.json | 6 +- .../build/stacks/ConnectionStack.json | 2 +- .../fitnesstracker/build/stacks/Exercise.json | 18 +- .../api/fitnesstracker/build/stacks/Meal.json | 16 +- .../build/stacks/WorkoutProgram.json | 18 +- .../api/fitnesstracker/cli-inputs.json | 4 +- .../api/fitnesstracker/parameters.json | 2 +- .../nutritionapi-cloudformation-template.json | 18 +- .../auth-trigger-cloudformation-template.json | 14 +- ...545533f55455-cloudformation-template.json} | 20 +- .../build/parameters.json | 16 +- .../cli-inputs.json | 12 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../adminapi-cloudformation-template.json | 18 +- .../build/cloudformation-template.json | 5 +- .../nutritionapi-cloudformation-template.json | 18 +- ...545533f55455-cloudformation-template.json} | 20 +- ...serPoolGroups-cloudformation-template.json | 24 +- .../build/root-cloudformation-stack.json | 276 ++-- .../admin/admin-cloudformation-template.json | 14 +- ...455PreSignup-cloudformation-template.json} | 8 +- .../lognutrition-cloudformation-template.json | 4 +- .../build/root-cloudformation-stack.json | 276 ++-- .../amplify/backend/backend-config.json | 32 +- .../admin/admin-cloudformation-template.json | 14 +- .../function/admin/function-parameters.json | 2 +- .../amplify.state | 0 .../custom-policies.json | 0 ...455PreSignup-cloudformation-template.json} | 8 +- .../function-parameters.json | 8 +- .../parameters.json | 4 + .../src/email-filter-allowlist.js | 0 .../src/event.json | 0 .../src/index.js | 0 .../src/package.json | 2 +- .../src/yarn.lock | 0 .../parameters.json | 4 - .../lognutrition-cloudformation-template.json | 4 +- .../amplify-dependent-resources-ref.d.ts | 4 +- .../amplify/team-provider-info.json | 32 +- ...NestedStackA-75CKIPDMA8E7.description.txt} | 0 ...agerNestedStackA-75CKIPDMA8E7.outputs.json | 6 + ...rNestedStackA-75CKIPDMA8E7.parameters.json | 6 + ...erNestedStackA-75CKIPDMA8E7.template.json} | 42 +- ...edStackConne-WNK2ROR3OZN0.description.txt} | 0 ...estedStackConne-WNK2ROR3OZN0.outputs.json} | 0 ...tedStackConne-WNK2ROR3OZN0.parameters.json | 30 + ...stedStackConne-WNK2ROR3OZN0.template.json} | 42 +- ...xerciseNest-1P5371DGLAVUG.description.txt} | 0 ...ackExerciseNest-1P5371DGLAVUG.outputs.json | 22 + ...xerciseNest-1P5371DGLAVUG.parameters.json} | 32 +- ...kExerciseNest-1P5371DGLAVUG.template.json} | 298 ++--- ...NestedStackR-A8J8VTBF4SWH.description.txt} | 0 ...MealNestedStackR-A8J8VTBF4SWH.outputs.json | 18 + ...NestedStackR-A8J8VTBF4SWH.parameters.json} | 32 +- ...alNestedStackR-A8J8VTBF4SWH.template.json} | 278 ++-- ...StackWorkou-162Z9OPH7DXYW.description.txt} | 0 ...tedStackWorkou-162Z9OPH7DXYW.outputs.json} | 8 +- ...StackWorkou-162Z9OPH7DXYW.parameters.json} | 32 +- ...edStackWorkou-162Z9OPH7DXYW.template.json} | 294 ++--- ...uth179371D7-19RM9R3LOXG8I.description.txt} | 0 ...eb-auth179371D7-19RM9R3LOXG8I.outputs.json | 38 + ...uth179371D7-19RM9R3LOXG8I.parameters.json} | 0 ...-auth179371D7-19RM9R3LOXG8I.template.json} | 102 +- ...ata7552DF31-1601DAFBL31V0.description.txt} | 0 ...eb-data7552DF31-1601DAFBL31V0.outputs.json | 26 + ...ata7552DF31-1601DAFBL31V0.parameters.json} | 24 +- ...-data7552DF31-1601DAFBL31V0.template.json} | 216 +-- ...api43EA27F6-156QTXWFLKBBU.description.txt} | 0 ...dminapi43EA27F6-156QTXWFLKBBU.outputs.json | 14 + ...napi43EA27F6-156QTXWFLKBBU.parameters.json | 14 + ...inapi43EA27F6-156QTXWFLKBBU.template.json} | 80 +- ...api72914ECD-13FDREQON6AQG.description.txt} | 0 ...tionapi72914ECD-13FDREQON6AQG.outputs.json | 14 + ...napi72914ECD-13FDREQON6AQG.parameters.json | 14 + ...onapi72914ECD-13FDREQON6AQG.template.json} | 92 +- ...en2main-branch-400746baeb.description.txt} | 0 ...r-gen2main-branch-400746baeb.outputs.json} | 20 +- ...en2main-branch-400746baeb.parameters.json} | 0 ...-gen2main-branch-400746baeb.template.json} | 116 +- ...agerNestedStackA-NPJK8GP5TJ4A.outputs.json | 6 - ...rNestedStackA-NPJK8GP5TJ4A.parameters.json | 6 - ...edStackConne-1Q5Y2AFMDU94J.parameters.json | 30 - ...ackExerciseNest-1FIMJDNV42OQ7.outputs.json | 22 - ...ealNestedStackR-1T4FU8CXY0GK6.outputs.json | 18 - ...d799-auth179371D7-W7QZVETRVIH.outputs.json | 38 - ...799-data7552DF31-11R0N9NYGZMM.outputs.json | 26 - ...dminapi43EA27F6-1RS06T9AL8ZH6.outputs.json | 14 - ...napi43EA27F6-1RS06T9AL8ZH6.parameters.json | 14 - ...tionapi72914ECD-1738NNTUFA9K8.outputs.json | 14 - ...napi72914ECD-1738NNTUFA9K8.parameters.json | 14 - ...pifitnesstracker-8NP6OMMBJJBQ.outputs.json | 20 - ...2e7c9ceb2e7c-13Y9822PMAATD.description.txt | 1 - ...eb2e7c9ceb2e7c-13Y9822PMAATD.template.json | 480 ------- ...thuserPoolGroups-MXIW00J9KSSV.outputs.json | 6 - ...serPoolGroups-MXIW00J9KSSV.parameters.json | 30 - ...eb2e7cPreSignup-3S3GBRYFYV12.template.json | 242 ---- ...-fitnesstracker-main-6fc9a.description.txt | 1 - ...-fitnesstracker-main-6fc9a.parameters.json | 14 - ...ayAuthStack-1PX292PE83STS.description.txt} | 0 ...tewayAuthStack-1PX292PE83STS.outputs.json} | 0 ...ayAuthStack-1PX292PE83STS.parameters.json} | 8 +- ...ewayAuthStack-1PX292PE83STS.template.json} | 0 ...mLambdaStack-TT7MSI2O15CI.description.txt} | 0 ...stomLambdaStack-TT7MSI2O15CI.outputs.json} | 0 ...mLambdaStack-TT7MSI2O15CI.parameters.json} | 20 +- ...tomLambdaStack-TT7MSI2O15CI.template.json} | 14 +- ...-apiadminapi-NIM0OPDFSKJR.description.txt} | 0 ...537-apiadminapi-NIM0OPDFSKJR.outputs.json} | 4 +- ...-apiadminapi-NIM0OPDFSKJR.parameters.json} | 6 +- ...37-apiadminapi-NIM0OPDFSKJR.template.json} | 16 +- ...nectionStack-96IMUMC3YX9X.description.txt} | 0 ...ConnectionStack-96IMUMC3YX9X.outputs.json} | 0 ...nectionStack-96IMUMC3YX9X.parameters.json} | 8 +- ...onnectionStack-96IMUMC3YX9X.template.json} | 2 +- ...sourcesjson-1FVS02E9NW5PX.description.txt} | 0 ...mResourcesjson-1FVS02E9NW5PX.outputs.json} | 0 ...sourcesjson-1FVS02E9NW5PX.parameters.json} | 6 +- ...Resourcesjson-1FVS02E9NW5PX.template.json} | 0 ...SYX-Exercise-FLH6MX715G6M.description.txt} | 0 ...S45SYX-Exercise-FLH6MX715G6M.outputs.json} | 12 +- ...SYX-Exercise-FLH6MX715G6M.parameters.json} | 20 +- ...45SYX-Exercise-FLH6MX715G6M.template.json} | 18 +- ...9S45SYX-Meal-PHGUK3IXO0QL.description.txt} | 0 ...NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json} | 10 +- ...9S45SYX-Meal-PHGUK3IXO0QL.parameters.json} | 14 +- ...TH9S45SYX-Meal-PHGUK3IXO0QL.template.json} | 16 +- ...rkoutProgram-DSQSG720758E.description.txt} | 0 ...-WorkoutProgram-DSQSG720758E.outputs.json} | 24 +- ...rkoutProgram-DSQSG720758E.parameters.json} | 6 +- ...WorkoutProgram-DSQSG720758E.template.json} | 18 +- ...nesstracker-103NTH9S45SYX.description.txt} | 0 ...ifitnesstracker-103NTH9S45SYX.outputs.json | 20 + ...nesstracker-103NTH9S45SYX.parameters.json} | 6 +- ...itnesstracker-103NTH9S45SYX.template.json} | 2 +- ...nutritionapi-HLNAE81TRC4B.description.txt} | 0 ...apinutritionapi-HLNAE81TRC4B.outputs.json} | 4 +- ...nutritionapi-HLNAE81TRC4B.parameters.json} | 10 +- ...pinutritionapi-HLNAE81TRC4B.template.json} | 16 +- ...545533f55455-1DWODNQZOZ508.description.txt | 1 + ...f5545533f55455-1DWODNQZOZ508.outputs.json} | 14 +- ...45533f55455-1DWODNQZOZ508.parameters.json} | 34 +- ...f5545533f55455-1DWODNQZOZ508.template.json | 480 +++++++ ...erPoolGroups-19G9G5Q52J3XF.description.txt | 1 + ...huserPoolGroups-19G9G5Q52J3XF.outputs.json | 6 + ...erPoolGroups-19G9G5Q52J3XF.parameters.json | 30 + ...serPoolGroups-19G9G5Q52J3XF.template.json} | 24 +- ...nctionadmin-1XHD95ED0WDDQ.description.txt} | 0 ...-functionadmin-1XHD95ED0WDDQ.outputs.json} | 4 +- ...nctionadmin-1XHD95ED0WDDQ.parameters.json} | 8 +- ...functionadmin-1XHD95ED0WDDQ.template.json} | 14 +- ...55PreSignup-1NSDWT8P6Z7SU.description.txt} | 0 ...55455PreSignup-1NSDWT8P6Z7SU.outputs.json} | 8 +- ...55PreSignup-1NSDWT8P6Z7SU.parameters.json} | 6 +- ...55455PreSignup-1NSDWT8P6Z7SU.template.json | 242 ++++ ...ognutrition-13HP6USYKZ4YI.description.txt} | 0 ...onlognutrition-13HP6USYKZ4YI.outputs.json} | 4 +- ...ognutrition-13HP6USYKZ4YI.parameters.json} | 4 +- ...nlognutrition-13HP6USYKZ4YI.template.json} | 4 +- ...fitnesstracker-main-a0537.description.txt} | 0 ...fy-fitnesstracker-main-a0537.outputs.json} | 22 +- ...-fitnesstracker-main-a0537.parameters.json | 14 + ...y-fitnesstracker-main-a0537.template.json} | 108 +- 234 files changed, 5242 insertions(+), 5266 deletions(-) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/email-filter-allowlist.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/event.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/index.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/resource.ts (74%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json => refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json => refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json} (87%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json => refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json} (81%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json => refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json} (85%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json => refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json} (63%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json => refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json => update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json => update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json} (86%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json => update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json} (83%) rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json => update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json} (81%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/{update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json => update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json} (62%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/{fitnesstracker9ceb2e7c9ceb2e7c => fitnesstracker33f5545533f55455}/build/auth-trigger-cloudformation-template.json (94%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json => #current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/auth/fitnesstracker9ceb2e7c9ceb2e7c => #current-cloud-backend/auth/fitnesstracker33f5545533f55455}/build/parameters.json (79%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/{fitnesstracker9ceb2e7c9ceb2e7c => fitnesstracker33f5545533f55455}/cli-inputs.json (80%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/{fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json => fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json => #current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json} (95%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/amplify.state (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/custom-policies.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json => #current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json} (95%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/function-parameters.json (61%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/email-filter-allowlist.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/event.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/index.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/package.json (78%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/yarn.lock (100%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/{fitnesstracker9ceb2e7c9ceb2e7c => fitnesstracker33f5545533f55455}/build/auth-trigger-cloudformation-template.json (94%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json => backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c => backend/auth/fitnesstracker33f5545533f55455}/build/parameters.json (79%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/{fitnesstracker9ceb2e7c9ceb2e7c => fitnesstracker33f5545533f55455}/cli-inputs.json (80%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/{auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json => awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json => backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json} (95%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/amplify.state (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/custom-policies.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/{#current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json => backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json} (95%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/function-parameters.json (61%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/email-filter-allowlist.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/event.json (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/index.js (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/package.json (78%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/{fitnesstracker9ceb2e7c9ceb2e7cPreSignup => fitnesstracker33f5545533f55455PreSignup}/src/yarn.lock (100%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.description.txt => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.description.txt => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.outputs.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.outputs.json} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.template.json} (81%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.description.txt => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.parameters.json} (51%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.description.txt => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.parameters.json} (51%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.description.txt => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.outputs.json} (54%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.parameters.json} (51%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json => amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.template.json} (85%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.description.txt => amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json => amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json => amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json} (90%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.description.txt => amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json => amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.parameters.json} (52%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json => amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.template.json} (80%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.description.txt => amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json => amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.template.json} (86%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.description.txt => amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json => amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.template.json} (89%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799.description.txt => amplify-fitnesstracker-gen2main-branch-400746baeb.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json => amplify-fitnesstracker-gen2main-branch-400746baeb.outputs.json} (79%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799.parameters.json => amplify-fitnesstracker-gen2main-branch-400746baeb.parameters.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-gen2main-branch-a09655d799.template.json => amplify-fitnesstracker-gen2main-branch-400746baeb.template.json} (81%) delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt delete mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.description.txt => amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.outputs.json => amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.outputs.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json => amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.parameters.json} (56%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.template.json => amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.template.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.description.txt => amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.outputs.json => amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.outputs.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json => amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.parameters.json} (50%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json => amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.template.json} (94%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.description.txt => amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json => amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.outputs.json} (75%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json => amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.parameters.json} (76%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json => amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.template.json} (97%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.description.txt => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.outputs.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.outputs.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.parameters.json} (75%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.description.txt => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.outputs.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.outputs.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.parameters.json} (60%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.template.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.template.json} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.description.txt => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.outputs.json} (62%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.parameters.json} (83%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.description.txt => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json} (57%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.parameters.json} (83%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.description.txt => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.outputs.json} (72%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.parameters.json} (82%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.description.txt => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.description.txt} (100%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.outputs.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.parameters.json} (79%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json => amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.template.json} (99%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.description.txt => amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json => amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.outputs.json} (75%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json => amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.parameters.json} (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json => amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.template.json} (98%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.description.txt rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json => amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.outputs.json} (62%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json => amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json} (83%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.description.txt create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.outputs.json create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json => amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json} (69%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.description.txt => amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json => amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.outputs.json} (82%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json => amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.parameters.json} (52%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json => amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.template.json} (93%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.description.txt => amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json => amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.outputs.json} (63%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json => amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.parameters.json} (77%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.template.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.description.txt => amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json => amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.outputs.json} (83%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json => amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.parameters.json} (77%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json => amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.template.json} (98%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.description.txt => amplify-fitnesstracker-main-a0537.description.txt} (100%) rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a.outputs.json => amplify-fitnesstracker-main-a0537.outputs.json} (56%) create mode 100644 amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.parameters.json rename amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/{amplify-fitnesstracker-main-6fc9a.template.json => amplify-fitnesstracker-main-a0537.template.json} (85%) diff --git a/amplify-migration-apps/fitness-tracker/README.md b/amplify-migration-apps/fitness-tracker/README.md index bb575803389..569b1cfd9de 100644 --- a/amplify-migration-apps/fitness-tracker/README.md +++ b/amplify-migration-apps/fitness-tracker/README.md @@ -300,30 +300,6 @@ npx amplify gen2-migration generate + branchName: "gen2-main" ``` -**Edit in `./amplify/backend.ts`:** - -Navigate to the Amplify Console to find the `` and `` on the ApiGateway AWS Console. For example: - -![](./images/gen1-rest-api-id.png) -![](./images/gen1-root-resource-id.png) - -```diff -+ const gen1RestApi = RestApi.fromRestApiAttributes(restApiStack, "Gen1RestApi", { -+ restApiId: '', -+ rootResourceId: '', -+ }) -+ const gen1RestApiPolicy = new Policy(restApiStack, "Gen1RestApiPolicy", { -+ statements: [ -+ new PolicyStatement({ -+ actions: ["execute-api:Invoke"], -+ resources: [`${gen1RestApi.arnForExecuteApi("*", "/*")}`] -+ }) -+ ] -+ }); -+ backend.auth.resources.authenticatedUserIamRole.attachInlinePolicy(gen1RestApiPolicy); -``` - - **Edit in `./amplify/function/lognutrition/resource.ts`:** ```diff @@ -489,10 +465,6 @@ Now connect the `gen2-main` branch to the hosting service: ![](./images/add-gen2-main-branch.png) ![](./images/deploying-gen2-main-branch.png) -> Note: REST API currently cannot be accessed via the Gen2 app due to some CORS misconfiguration that is -unrelated to the automatic migration process. It is likely a problem with the manually written REST API definitions -and needs to be addressed for the app to fully work. - Wait for the deployment to finish successfully. Next, locate the root stack of the Gen2 branch: ![](./images/find-gen2-stack.png) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/email-filter-allowlist.js b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/email-filter-allowlist.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/email-filter-allowlist.js rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/email-filter-allowlist.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/event.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/event.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/event.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/event.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/index.js b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/index.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/index.js rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/index.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/resource.ts similarity index 74% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource.ts rename to amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/resource.ts index 70e84323b8a..718f48a6ae7 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/resource.ts @@ -2,17 +2,17 @@ import { defineFunction } from '@aws-amplify/backend'; const branchName = process.env.AWS_BRANCH ?? 'sandbox'; -export const fitnesstracker9ceb2e7c9ceb2e7cPreSignup = defineFunction({ +export const fitnesstracker33f5545533f55455PreSignup = defineFunction({ entry: './index.js', - name: `fitnesstracker9ceb2e7c9ceb2e7cPreSignup-${branchName}`, + name: `fitnesstracker33f5545533f55455PreSignup-${branchName}`, timeoutSeconds: 25, memoryMB: 128, environment: { - ENV: `${branchName}`, MODULES: 'email-filter-allowlist', - REGION: 'us-east-1', DOMAINALLOWLIST: 'amazon.com', DOMAINBLACKLIST: '', + ENV: `${branchName}`, + REGION: 'us-east-1', }, runtime: 22, }); diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts index d8023f79ff8..49dafe755f2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/resource.ts @@ -1,5 +1,5 @@ import { defineAuth } from '@aws-amplify/backend'; -import { fitnesstracker9ceb2e7c9ceb2e7cPreSignup } from './fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource'; +import { fitnesstracker33f5545533f55455PreSignup } from './fitnesstracker33f5545533f55455PreSignup/resource'; import { admin } from '../function/admin/resource'; export const auth = defineAuth({ @@ -17,7 +17,7 @@ export const auth = defineAuth({ }, groups: ['Admin'], triggers: { - preSignUp: fitnesstracker9ceb2e7c9ceb2e7cPreSignup, + preSignUp: fitnesstracker33f5545533f55455PreSignup, }, multifactor: { mode: 'OFF', diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts index d38165f9a65..313c6c83f23 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts @@ -1,7 +1,7 @@ import { auth } from './auth/resource'; import { data } from './data/resource'; import { admin } from './function/admin/resource'; -import { fitnesstracker9ceb2e7c9ceb2e7cPreSignup } from './auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/resource'; +import { fitnesstracker33f5545533f55455PreSignup } from './auth/fitnesstracker33f5545533f55455PreSignup/resource'; import { lognutrition } from './function/lognutrition/resource'; import { RestApi, @@ -18,7 +18,7 @@ const backend = defineBackend({ auth, data, admin, - fitnesstracker9ceb2e7c9ceb2e7cPreSignup, + fitnesstracker33f5545533f55455PreSignup, lognutrition, }); const branchName = process.env.AWS_BRANCH ?? 'sandbox'; @@ -51,8 +51,8 @@ const gen1adminapiApi = RestApi.fromRestApiAttributes( adminapiStack, 'Gen1adminapiApi', { - restApiId: 'bbk7dedp01', - rootResourceId: 'bbk7dedp01-root', + restApiId: 'oxq86r59h6', + rootResourceId: 'gzkugf7nca', } ); const gen1adminapiPolicy = new Policy(adminapiStack, 'Gen1adminapiPolicy', { @@ -151,8 +151,8 @@ const gen1nutritionapiApi = RestApi.fromRestApiAttributes( nutritionapiStack, 'Gen1nutritionapiApi', { - restApiId: 'ekto8iln0h', - rootResourceId: 'ekto8iln0h-root', + restApiId: 'hmydcaubcb', + rootResourceId: '038x4g299a', } ); const gen1nutritionapiPolicy = new Policy( @@ -276,10 +276,10 @@ userPool.addClient('NativeAppClient', { }); backend.admin.resources.cfnResources.cfnFunction.functionName = `admin-${branchName}`; backend.admin.addEnvironment( - 'AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID', + 'AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID', backend.auth.resources.userPool.userPoolId ); -backend.fitnesstracker9ceb2e7c9ceb2e7cPreSignup.resources.cfnResources.cfnFunction.functionName = `fitnesstracker9ceb2e7c9ceb2e7cPreSignup-${branchName}`; +backend.fitnesstracker33f5545533f55455PreSignup.resources.cfnResources.cfnFunction.functionName = `fitnesstracker33f5545533f55455PreSignup-${branchName}`; backend.lognutrition.resources.cfnResources.cfnFunction.functionName = `lognutrition-${branchName}`; backend.lognutrition.addEnvironment( 'API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT', diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts index 395962b74db..26962a0c071 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts @@ -38,9 +38,9 @@ export const data = defineData({ //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables branchName: 'main', modelNameToTableNameMapping: { - WorkoutProgram: 'WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main', - Exercise: 'Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main', - Meal: 'Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main', + WorkoutProgram: 'WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main', + Exercise: 'Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main', + Meal: 'Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main', }, }, ], diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json new file mode 100644 index 00000000000..da95a3f5dc4 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" + } + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json index d8eba261f95..cb8aa896b71 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.source.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json @@ -5,12 +5,12 @@ "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" } }, "amplifyAuthauthenticatedUserRoleD8DA3689": { @@ -22,7 +22,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +60,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" } }, "amplifyAuthunauthenticatedUserRole2B524D9E": { @@ -72,7 +72,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -110,7 +110,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, "amplifyAuthAdminGroupRole766878DC": { @@ -122,7 +122,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -160,10 +160,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -207,7 +207,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -216,10 +216,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { "Type": "AWS::Lambda::Function", "Properties": { "Architectures": [ @@ -229,7 +229,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" }, "Environment": { "Variables": { @@ -244,10 +244,10 @@ "EphemeralStorage": { "Size": 512 }, - "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", "Runtime": "nodejs22.x", "Tags": [ { @@ -264,7 +264,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -274,8 +274,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -283,7 +283,7 @@ "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -291,10 +291,10 @@ "created-by": "amplify" }, "Type": "String", - "Value": "us-east-1_mQEsDQ1lC" + "Value": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" } }, "admingen2mainlambdaServiceRole439B1792": { @@ -350,7 +350,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" } }, "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { @@ -377,7 +377,7 @@ { "Ref": "AWS::AccountId" }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" ] ] } @@ -393,7 +393,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "admingen2mainlambdaECF7211C": { @@ -406,15 +406,15 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" }, "Environment": { "Variables": { "ENV": "gen2-main", "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" } }, "EphemeralStorage": { @@ -423,7 +423,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", "Runtime": "nodejs22.x", "Tags": [ { @@ -450,8 +450,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -464,7 +464,7 @@ { "Action": "cognito-idp:AdminGetDevice", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -477,7 +477,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" } }, "userpoolAccess268F187DB": { @@ -488,7 +488,7 @@ { "Action": "cognito-idp:AdminGetUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -501,7 +501,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" } }, "userpoolAccess3956C62F8": { @@ -512,7 +512,7 @@ { "Action": "cognito-idp:AdminListDevices", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -525,7 +525,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" } }, "userpoolAccess4A84025C3": { @@ -536,7 +536,7 @@ { "Action": "cognito-idp:AdminListGroupsForUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -549,7 +549,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" } }, "userpoolAccess585E2FB32": { @@ -560,7 +560,7 @@ { "Action": "cognito-idp:ListUsers", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -573,7 +573,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" } }, "userpoolAccess600DA4CB0": { @@ -584,7 +584,7 @@ { "Action": "cognito-idp:ListUsersInGroup", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -597,7 +597,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" } }, "userpoolAccess76F9C91C1": { @@ -608,7 +608,7 @@ { "Action": "cognito-idp:ListGroups", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -621,7 +621,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" } }, "CDKMetadata": { @@ -630,7 +630,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" }, @@ -668,7 +668,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "fitnesstracker33f55455_userpool_33f55455", "-", "main" ] @@ -682,24 +682,24 @@ "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": "false", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "amplifyAuthIdentityPool3FDE84CC": { @@ -708,7 +708,7 @@ "AllowUnauthenticatedIdentities": "false", "CognitoIdentityProviders": [ { - "ClientId": "12hkvqjabpisei771tiefdhs76", + "ClientId": "3s8jcv7nflisr91emephrr2a9s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -716,13 +716,13 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } }, { - "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -730,7 +730,7 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } @@ -740,7 +740,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", "main" ] ] @@ -750,7 +750,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", "RoleMappings": { "UserPoolClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -761,8 +761,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "client": "12hkvqjabpisei771tiefdhs76" + "userPool": "us-east-1_iguxCIcMS", + "client": "3s8jcv7nflisr91emephrr2a9s" } ] }, @@ -777,8 +777,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "webClient": "4bk8odk8blrf65ptk2dffug25k" + "userPool": "us-east-1_iguxCIcMS", + "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" } ] }, @@ -786,8 +786,8 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" } } } @@ -1059,32 +1059,32 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { - "Value": "us-east-1_mQEsDQ1lC" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { + "Value": "us-east-1_KGveHFLxc" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { - "Value": "dgddko7evul00or8262g7n9ub" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { + "Value": "1o40oi80febsgsdamen2i1gnfd" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { "Value": "admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json similarity index 87% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json index 7dc317d8e76..042061fab68 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json @@ -22,7 +22,7 @@ "EmailVerificationMessage": "Your verification code is {####}", "EmailVerificationSubject": "Your verification code", "LambdaConfig": { - "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main" }, "MfaConfiguration": "OFF", "Policies": { @@ -68,7 +68,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" } }, "amplifyAuthUserPoolNativeAppClient79534448": { @@ -86,10 +86,10 @@ "TokenValidityUnits": { "RefreshToken": "minutes" }, - "UserPoolId": "us-east-1_mQEsDQ1lC" + "UserPoolId": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" } }, "amplifyAuthUserPoolAppClient2626C6F8": { @@ -118,10 +118,10 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": "us-east-1_mQEsDQ1lC" + "UserPoolId": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPoolAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" } }, "amplifyAuthIdentityPool3FDE84CC": { @@ -130,7 +130,7 @@ "AllowUnauthenticatedIdentities": false, "CognitoIdentityProviders": [ { - "ClientId": "dgddko7evul00or8262g7n9ub", + "ClientId": "1o40oi80febsgsdamen2i1gnfd", "ProviderName": { "Fn::Join": [ "", @@ -140,7 +140,7 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_mQEsDQ1lC" + "us-east-1_KGveHFLxc" ] ] } @@ -171,13 +171,13 @@ "SupportedLoginProviders": {} }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPool" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" } }, "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842", + "IdentityPoolId": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3", "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -190,9 +190,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_mQEsDQ1lC", + "us-east-1_KGveHFLxc", ":", - "dgddko7evul00or8262g7n9ub" + "1o40oi80febsgsdamen2i1gnfd" ] ] }, @@ -200,12 +200,12 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPoolRoleAttachment" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" } }, "amplifyAuthAdminGroupCC42FF04": { @@ -213,11 +213,11 @@ "Properties": { "GroupName": "Admin", "Precedence": 0, - "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR", - "UserPoolId": "us-east-1_mQEsDQ1lC" + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", + "UserPoolId": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" } } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json deleted file mode 100644 index d4a27b982d7..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH-holding", - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json deleted file mode 100644 index ae2c9056571..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", - "LogicalResourceId": "UserPool" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", - "LogicalResourceId": "UserPoolClientWeb" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", - "LogicalResourceId": "UserPoolClient" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", - "LogicalResourceId": "IdentityPool" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD", - "LogicalResourceId": "IdentityPoolRoleMap" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json deleted file mode 100644 index fb65e230dc8..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV", - "LogicalResourceId": "AdminGroup" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH", - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json new file mode 100644 index 00000000000..369dad3a96d --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json similarity index 81% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json index f9e2dd40e74..747de2cd975 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json @@ -1,17 +1,17 @@ { - "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" }, "identityPoolName": { "Type": "String" @@ -165,14 +165,14 @@ "Fn::Join": [ "", [ - "upClientLambdaRole9ceb2e7c", + "upClientLambdaRole33f55455", { "Fn::Select": [ 3, { "Fn::Split": [ "-", - "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD" + "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508" ] } ] @@ -188,29 +188,29 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + "Value": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" }, "IdentityPoolName": { - "Value": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main" + "Value": "fitnesstracker33f55455_identitypool_33f55455__main" }, "UserPoolId": { "Description": "Id for the user pool", - "Value": "us-east-1_LAwe5ZJrw" + "Value": "us-east-1_iguxCIcMS" }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw" + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS" }, "UserPoolName": { - "Value": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + "Value": "fitnesstracker33f55455_userpool_33f55455" }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": "4bk8odk8blrf65ptk2dffug25k" + "Value": "29bubgvfbbqkp4k60rl7oaqd8s" }, "AppClientID": { "Description": "The user pool app client id", - "Value": "12hkvqjabpisei771tiefdhs76" + "Value": "3s8jcv7nflisr91emephrr2a9s" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json index 45938309e4f..34e96d7f10a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json @@ -5,12 +5,12 @@ "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" } }, "amplifyAuthauthenticatedUserRoleD8DA3689": { @@ -22,7 +22,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +60,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" } }, "amplifyAuthunauthenticatedUserRole2B524D9E": { @@ -72,7 +72,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -110,7 +110,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, "amplifyAuthAdminGroupRole766878DC": { @@ -122,7 +122,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -160,7 +160,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" } }, "amplifyAuthAdminGroupCC42FF04": { @@ -168,14 +168,14 @@ "Properties": { "GroupName": "Admin", "Precedence": 0, - "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR", - "UserPoolId": "us-east-1_mQEsDQ1lC" + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", + "UserPoolId": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -219,7 +219,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -228,10 +228,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { "Type": "AWS::Lambda::Function", "Properties": { "Architectures": [ @@ -241,7 +241,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" }, "Environment": { "Variables": { @@ -256,10 +256,10 @@ "EphemeralStorage": { "Size": 512 }, - "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", "Runtime": "nodejs22.x", "Tags": [ { @@ -276,7 +276,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -286,8 +286,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -295,7 +295,7 @@ "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -303,10 +303,10 @@ "created-by": "amplify" }, "Type": "String", - "Value": "us-east-1_mQEsDQ1lC" + "Value": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" } }, "admingen2mainlambdaServiceRole439B1792": { @@ -362,7 +362,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" } }, "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { @@ -389,7 +389,7 @@ { "Ref": "AWS::AccountId" }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" ] ] } @@ -405,7 +405,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "admingen2mainlambdaECF7211C": { @@ -418,15 +418,15 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" }, "Environment": { "Variables": { "ENV": "gen2-main", "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" } }, "EphemeralStorage": { @@ -435,7 +435,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", "Runtime": "nodejs22.x", "Tags": [ { @@ -462,8 +462,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -476,7 +476,7 @@ { "Action": "cognito-idp:AdminGetDevice", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -489,7 +489,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" } }, "userpoolAccess268F187DB": { @@ -500,7 +500,7 @@ { "Action": "cognito-idp:AdminGetUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -513,7 +513,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" } }, "userpoolAccess3956C62F8": { @@ -524,7 +524,7 @@ { "Action": "cognito-idp:AdminListDevices", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -537,7 +537,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" } }, "userpoolAccess4A84025C3": { @@ -548,7 +548,7 @@ { "Action": "cognito-idp:AdminListGroupsForUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -561,7 +561,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" } }, "userpoolAccess585E2FB32": { @@ -572,7 +572,7 @@ { "Action": "cognito-idp:ListUsers", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -585,7 +585,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" } }, "userpoolAccess600DA4CB0": { @@ -596,7 +596,7 @@ { "Action": "cognito-idp:ListUsersInGroup", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -609,7 +609,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" } }, "userpoolAccess76F9C91C1": { @@ -620,7 +620,7 @@ { "Action": "cognito-idp:ListGroups", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -633,7 +633,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" } }, "CDKMetadata": { @@ -642,7 +642,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" }, @@ -680,7 +680,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "fitnesstracker33f55455_userpool_33f55455", "-", "main" ] @@ -694,24 +694,24 @@ "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": "false", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "amplifyAuthIdentityPool3FDE84CC": { @@ -720,7 +720,7 @@ "AllowUnauthenticatedIdentities": "false", "CognitoIdentityProviders": [ { - "ClientId": "12hkvqjabpisei771tiefdhs76", + "ClientId": "3s8jcv7nflisr91emephrr2a9s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -728,13 +728,13 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } }, { - "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -742,7 +742,7 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } @@ -752,7 +752,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", "main" ] ] @@ -762,7 +762,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", "RoleMappings": { "UserPoolClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -773,8 +773,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "client": "12hkvqjabpisei771tiefdhs76" + "userPool": "us-east-1_iguxCIcMS", + "client": "3s8jcv7nflisr91emephrr2a9s" } ] }, @@ -789,8 +789,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "webClient": "4bk8odk8blrf65ptk2dffug25k" + "userPool": "us-east-1_iguxCIcMS", + "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" } ] }, @@ -798,8 +798,8 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" } } } @@ -1071,32 +1071,32 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { - "Value": "us-east-1_mQEsDQ1lC" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { + "Value": "us-east-1_KGveHFLxc" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { - "Value": "dgddko7evul00or8262g7n9ub" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { + "Value": "1o40oi80febsgsdamen2i1gnfd" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { "Value": "admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json new file mode 100644 index 00000000000..f8f4676ef5a --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF/19fc4ca0-272e-11f1-a89c-0affce72f097", + "LogicalResourceId": "AdminGroup" + }, + "Destination": { + "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" + } + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json similarity index 63% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json index d90598764f2..4f2192b77e7 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.source.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json @@ -1,5 +1,5 @@ { - "Description": "Root Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + "Default": "authfitnesstracker33f5545533f55455AppClientID" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + "cognito-identity.amazonaws.com:aud": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -65,7 +65,7 @@ "Fn::Join": [ "", [ - "us-east-1_LAwe5ZJrw", + "us-east-1_iguxCIcMS", "-AdminGroupRole" ] ] @@ -75,7 +75,7 @@ }, "Outputs": { "AdminGroupRole": { - "Value": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + "Value": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json index 20656b6f77f..b5fcf1180e6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.__to__.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json @@ -5,12 +5,12 @@ "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" } }, "amplifyAuthauthenticatedUserRoleD8DA3689": { @@ -22,7 +22,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -60,7 +60,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" } }, "amplifyAuthunauthenticatedUserRole2B524D9E": { @@ -72,7 +72,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -110,7 +110,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, "amplifyAuthAdminGroupRole766878DC": { @@ -122,7 +122,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -160,10 +160,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -207,7 +207,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -216,10 +216,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { "Type": "AWS::Lambda::Function", "Properties": { "Architectures": [ @@ -229,7 +229,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" }, "Environment": { "Variables": { @@ -244,10 +244,10 @@ "EphemeralStorage": { "Size": 512 }, - "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", "Runtime": "nodejs22.x", "Tags": [ { @@ -264,7 +264,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -274,8 +274,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -283,7 +283,7 @@ "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -291,10 +291,10 @@ "created-by": "amplify" }, "Type": "String", - "Value": "us-east-1_mQEsDQ1lC" + "Value": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" } }, "admingen2mainlambdaServiceRole439B1792": { @@ -350,7 +350,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" } }, "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { @@ -377,7 +377,7 @@ { "Ref": "AWS::AccountId" }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" ] ] } @@ -393,7 +393,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "admingen2mainlambdaECF7211C": { @@ -406,15 +406,15 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" }, "Environment": { "Variables": { "ENV": "gen2-main", "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" } }, "EphemeralStorage": { @@ -423,7 +423,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", "Runtime": "nodejs22.x", "Tags": [ { @@ -450,8 +450,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -464,7 +464,7 @@ { "Action": "cognito-idp:AdminGetDevice", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -477,7 +477,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" } }, "userpoolAccess268F187DB": { @@ -488,7 +488,7 @@ { "Action": "cognito-idp:AdminGetUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -501,7 +501,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" } }, "userpoolAccess3956C62F8": { @@ -512,7 +512,7 @@ { "Action": "cognito-idp:AdminListDevices", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -525,7 +525,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" } }, "userpoolAccess4A84025C3": { @@ -536,7 +536,7 @@ { "Action": "cognito-idp:AdminListGroupsForUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -549,7 +549,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" } }, "userpoolAccess585E2FB32": { @@ -560,7 +560,7 @@ { "Action": "cognito-idp:ListUsers", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -573,7 +573,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" } }, "userpoolAccess600DA4CB0": { @@ -584,7 +584,7 @@ { "Action": "cognito-idp:ListUsersInGroup", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -597,7 +597,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" } }, "userpoolAccess76F9C91C1": { @@ -608,7 +608,7 @@ { "Action": "cognito-idp:ListGroups", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -621,7 +621,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" } }, "CDKMetadata": { @@ -630,7 +630,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" }, @@ -668,7 +668,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "fitnesstracker33f55455_userpool_33f55455", "-", "main" ] @@ -682,24 +682,24 @@ "amplifyAuthUserPoolAppClient2626C6F8": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "amplifyAuthUserPoolNativeAppClient79534448": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": "false", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "amplifyAuthIdentityPool3FDE84CC": { @@ -708,7 +708,7 @@ "AllowUnauthenticatedIdentities": "false", "CognitoIdentityProviders": [ { - "ClientId": "12hkvqjabpisei771tiefdhs76", + "ClientId": "3s8jcv7nflisr91emephrr2a9s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -716,13 +716,13 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } }, { - "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -730,7 +730,7 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } @@ -740,7 +740,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", "main" ] ] @@ -750,7 +750,7 @@ "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", "RoleMappings": { "UserPoolClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -761,8 +761,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "client": "12hkvqjabpisei771tiefdhs76" + "userPool": "us-east-1_iguxCIcMS", + "client": "3s8jcv7nflisr91emephrr2a9s" } ] }, @@ -777,8 +777,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "webClient": "4bk8odk8blrf65ptk2dffug25k" + "userPool": "us-east-1_iguxCIcMS", + "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" } ] }, @@ -786,8 +786,8 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" } } }, @@ -797,8 +797,8 @@ "Description": "override success", "GroupName": "Admin", "Precedence": 1, - "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole", - "UserPoolId": "us-east-1_LAwe5ZJrw" + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", + "UserPoolId": "us-east-1_iguxCIcMS" } } }, @@ -1069,32 +1069,32 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { - "Value": "us-east-1_mQEsDQ1lC" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { + "Value": "us-east-1_KGveHFLxc" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { - "Value": "dgddko7evul00or8262g7n9ub" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { + "Value": "1o40oi80febsgsdamen2i1gnfd" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { "Value": "admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json similarity index 86% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json index 9cefa411a99..3e470ef8187 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json @@ -21,7 +21,7 @@ "EmailVerificationMessage": "Your verification code is {####}", "EmailVerificationSubject": "Your verification code", "LambdaConfig": { - "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main" }, "MfaConfiguration": "OFF", "Policies": { @@ -67,19 +67,19 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" } }, "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" } }, "amplifyAuthUserPoolNativeAppClient79534448": { @@ -97,10 +97,10 @@ "TokenValidityUnits": { "RefreshToken": "minutes" }, - "UserPoolId": "us-east-1_mQEsDQ1lC" + "UserPoolId": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" } }, "amplifyAuthUserPoolAppClient2626C6F8": { @@ -129,10 +129,10 @@ "SupportedIdentityProviders": [ "COGNITO" ], - "UserPoolId": "us-east-1_mQEsDQ1lC" + "UserPoolId": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPoolAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" } }, "amplifyAuthIdentityPool3FDE84CC": { @@ -141,7 +141,7 @@ "AllowUnauthenticatedIdentities": false, "CognitoIdentityProviders": [ { - "ClientId": "dgddko7evul00or8262g7n9ub", + "ClientId": "1o40oi80febsgsdamen2i1gnfd", "ProviderName": { "Fn::Join": [ "", @@ -151,7 +151,7 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_mQEsDQ1lC" + "us-east-1_KGveHFLxc" ] ] } @@ -182,7 +182,7 @@ "SupportedLoginProviders": {} }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPool" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" } }, "amplifyAuthauthenticatedUserRoleD8DA3689": { @@ -194,7 +194,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -232,7 +232,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" } }, "amplifyAuthunauthenticatedUserRole2B524D9E": { @@ -244,7 +244,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "unauthenticated" @@ -282,13 +282,13 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, "amplifyAuthIdentityPoolRoleAttachment045F17C8": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842", + "IdentityPoolId": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3", "RoleMappings": { "UserPoolWebClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -301,9 +301,9 @@ "Ref": "AWS::Region" }, ".amazonaws.com/", - "us-east-1_mQEsDQ1lC", + "us-east-1_KGveHFLxc", ":", - "dgddko7evul00or8262g7n9ub" + "1o40oi80febsgsdamen2i1gnfd" ] ] }, @@ -311,12 +311,12 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPoolRoleAttachment" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" } }, "amplifyAuthAdminGroupRole766878DC": { @@ -328,7 +328,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -366,7 +366,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" } }, "amplifyAuthAdminGroupCC42FF04": { @@ -374,14 +374,14 @@ "Properties": { "GroupName": "Admin", "Precedence": 0, - "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR", - "UserPoolId": "us-east-1_mQEsDQ1lC" + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", + "UserPoolId": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -425,7 +425,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -434,10 +434,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { "Type": "AWS::Lambda::Function", "Properties": { "Architectures": [ @@ -447,7 +447,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" }, "Environment": { "Variables": { @@ -462,10 +462,10 @@ "EphemeralStorage": { "Size": 512 }, - "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", "Runtime": "nodejs22.x", "Tags": [ { @@ -482,7 +482,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -492,8 +492,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -501,7 +501,7 @@ "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -509,10 +509,10 @@ "created-by": "amplify" }, "Type": "String", - "Value": "us-east-1_mQEsDQ1lC" + "Value": "us-east-1_KGveHFLxc" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" } }, "admingen2mainlambdaServiceRole439B1792": { @@ -568,7 +568,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" } }, "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { @@ -595,7 +595,7 @@ { "Ref": "AWS::AccountId" }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" ] ] } @@ -611,7 +611,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "admingen2mainlambdaECF7211C": { @@ -624,15 +624,15 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" }, "Environment": { "Variables": { "ENV": "gen2-main", "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": "us-east-1_mQEsDQ1lC" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" } }, "EphemeralStorage": { @@ -641,7 +641,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH/admingen2mainlambdaServiceRole439B1792", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", "Runtime": "nodejs22.x", "Tags": [ { @@ -668,8 +668,8 @@ "Timeout": 25 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -682,7 +682,7 @@ { "Action": "cognito-idp:AdminGetDevice", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -695,7 +695,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" } }, "userpoolAccess268F187DB": { @@ -706,7 +706,7 @@ { "Action": "cognito-idp:AdminGetUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -719,7 +719,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" } }, "userpoolAccess3956C62F8": { @@ -730,7 +730,7 @@ { "Action": "cognito-idp:AdminListDevices", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -743,7 +743,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" } }, "userpoolAccess4A84025C3": { @@ -754,7 +754,7 @@ { "Action": "cognito-idp:AdminListGroupsForUser", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -767,7 +767,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" } }, "userpoolAccess585E2FB32": { @@ -778,7 +778,7 @@ { "Action": "cognito-idp:ListUsers", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -791,7 +791,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" } }, "userpoolAccess600DA4CB0": { @@ -802,7 +802,7 @@ { "Action": "cognito-idp:ListUsersInGroup", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -815,7 +815,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" } }, "userpoolAccess76F9C91C1": { @@ -826,7 +826,7 @@ { "Action": "cognito-idp:ListGroups", "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_mQEsDQ1lC" + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" } ], "Version": "2012-10-17" @@ -839,7 +839,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" } }, "CDKMetadata": { @@ -848,7 +848,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1120,32 +1120,32 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { - "Value": "us-east-1_mQEsDQ1lC" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { + "Value": "us-east-1_KGveHFLxc" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { - "Value": "dgddko7evul00or8262g7n9ub" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { + "Value": "1o40oi80febsgsdamen2i1gnfd" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Value": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { "Value": "admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { + "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json deleted file mode 100644 index 3a84ecd1058..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb", - "ParameterValue": "4bk8odk8blrf65ptk2dffug25k" - }, - { - "ParameterKey": "UnauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" - }, - { - "ParameterKey": "AuthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" - }, - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", - "ParameterValue": "us-east-1_LAwe5ZJrw" - }, - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId", - "ParameterValue": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" - }, - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID", - "ParameterValue": "12hkvqjabpisei771tiefdhs76" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json index d99a1808184..01043034b58 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json @@ -1,7 +1,7 @@ [ { "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" }, { "ParameterKey": "autoVerifiedAttributes", @@ -37,7 +37,7 @@ }, { "ParameterKey": "sharedId", - "ParameterValue": "9ceb2e7c" + "ParameterValue": "33f55455" }, { "ParameterKey": "useDefault", @@ -53,7 +53,7 @@ }, { "ParameterKey": "identityPoolName", - "ParameterValue": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c" + "ParameterValue": "fitnesstracker33f55455_identitypool_33f55455" }, { "ParameterKey": "thirdPartyAuth", @@ -75,9 +75,13 @@ "ParameterKey": "permissions", "ParameterValue": "" }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, { "ParameterKey": "resourceNameTruncated", - "ParameterValue": "fitnes9ceb2e7c" + "ParameterValue": "fitnes33f55455" }, { "ParameterKey": "userPoolGroups", @@ -87,17 +91,13 @@ "ParameterKey": "smsAuthenticationMessage", "ParameterValue": "Your authentication code is {####}" }, - { - "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn", - "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" - }, { "ParameterKey": "passwordPolicyMinLength", "ParameterValue": "8" }, { "ParameterKey": "userPoolName", - "ParameterValue": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + "ParameterValue": "fitnesstracker33f55455_userpool_33f55455" }, { "ParameterKey": "userpoolClientWriteAttributes", @@ -111,13 +111,17 @@ "ParameterKey": "useEnabledMfas", "ParameterValue": "true" }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupName" + }, { "ParameterKey": "usernameCaseSensitive", "ParameterValue": "false" }, { "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7c" + "ParameterValue": "fitnesstracker33f5545533f55455" }, { "ParameterKey": "env", @@ -145,11 +149,7 @@ }, { "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" - }, - { - "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName", - "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" }, { "ParameterKey": "requiredAttributes", @@ -161,7 +161,7 @@ }, { "ParameterKey": "authTriggerConnections", - "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" + "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" }, { "ParameterKey": "aliasAttributes", @@ -169,7 +169,7 @@ }, { "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "fitnes9ceb2e7c_userpoolclient_lambda_role" + "ParameterValue": "fitnes33f55455_userpoolclient_lambda_role" }, { "ParameterKey": "defaultPasswordPolicy", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json similarity index 81% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json index 54e1b22232a..cf501295b33 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json @@ -1,17 +1,17 @@ { - "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" }, "identityPoolName": { "Type": "String" @@ -180,7 +180,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "fitnesstracker33f55455_userpool_33f55455", "-", "main" ] @@ -194,24 +194,24 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": "false", "RefreshTokenValidity": "30", "TokenValidityUnits": { "RefreshToken": "days" }, - "UserPoolId": "us-east-1_LAwe5ZJrw" + "UserPoolId": "us-east-1_iguxCIcMS" } }, "UserPoolClientRole": { @@ -233,14 +233,14 @@ "Fn::Join": [ "", [ - "upClientLambdaRole9ceb2e7c", + "upClientLambdaRole33f55455", { "Fn::Select": [ 3, { "Fn::Split": [ "-", - "amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD" + "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508" ] } ] @@ -258,7 +258,7 @@ "AllowUnauthenticatedIdentities": "false", "CognitoIdentityProviders": [ { - "ClientId": "12hkvqjabpisei771tiefdhs76", + "ClientId": "3s8jcv7nflisr91emephrr2a9s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -266,13 +266,13 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } }, { - "ClientId": "4bk8odk8blrf65ptk2dffug25k", + "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", "ProviderName": { "Fn::Sub": [ "cognito-idp.${region}.amazonaws.com/${client}", @@ -280,7 +280,7 @@ "region": { "Ref": "AWS::Region" }, - "client": "us-east-1_LAwe5ZJrw" + "client": "us-east-1_iguxCIcMS" } ] } @@ -290,7 +290,7 @@ "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", "main" ] ] @@ -300,7 +300,7 @@ "IdentityPoolRoleMap": { "Type": "AWS::Cognito::IdentityPoolRoleAttachment", "Properties": { - "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", "RoleMappings": { "UserPoolClientRoleMapping": { "AmbiguousRoleResolution": "AuthenticatedRole", @@ -311,8 +311,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "client": "12hkvqjabpisei771tiefdhs76" + "userPool": "us-east-1_iguxCIcMS", + "client": "3s8jcv7nflisr91emephrr2a9s" } ] }, @@ -327,8 +327,8 @@ "region": { "Ref": "AWS::Region" }, - "userPool": "us-east-1_LAwe5ZJrw", - "webClient": "4bk8odk8blrf65ptk2dffug25k" + "userPool": "us-east-1_iguxCIcMS", + "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" } ] }, @@ -336,8 +336,8 @@ } }, "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" } } } @@ -345,29 +345,29 @@ "Outputs": { "IdentityPoolId": { "Description": "Id for the identity pool", - "Value": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + "Value": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" }, "IdentityPoolName": { - "Value": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main" + "Value": "fitnesstracker33f55455_identitypool_33f55455__main" }, "UserPoolId": { "Description": "Id for the user pool", - "Value": "us-east-1_LAwe5ZJrw" + "Value": "us-east-1_iguxCIcMS" }, "UserPoolArn": { "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw" + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS" }, "UserPoolName": { - "Value": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + "Value": "fitnesstracker33f55455_userpool_33f55455" }, "AppClientIDWeb": { "Description": "The user pool app client id for web", - "Value": "4bk8odk8blrf65ptk2dffug25k" + "Value": "29bubgvfbbqkp4k60rl7oaqd8s" }, "AppClientID": { "Description": "The user pool app client id", - "Value": "12hkvqjabpisei771tiefdhs76" + "Value": "3s8jcv7nflisr91emephrr2a9s" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json new file mode 100644 index 00000000000..11a65b7a7e8 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455IdentityPoolId", + "ParameterValue": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_iguxCIcMS" + }, + { + "ParameterKey": "env", + "ParameterValue": "main" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientIDWeb", + "ParameterValue": "29bubgvfbbqkp4k60rl7oaqd8s" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientID", + "ParameterValue": "3s8jcv7nflisr91emephrr2a9s" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json similarity index 62% rename from amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json index 641c5596807..0b1b48d7a2e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json @@ -1,5 +1,5 @@ { - "Description": "Root Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + "Default": "authfitnesstracker33f5545533f55455AppClientID" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" } }, "Conditions": { @@ -43,8 +43,8 @@ "Description": "override success", "GroupName": "Admin", "Precedence": 1, - "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole", - "UserPoolId": "us-east-1_LAwe5ZJrw" + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", + "UserPoolId": "us-east-1_iguxCIcMS" } }, "AdminGroupRole": { @@ -62,7 +62,7 @@ "Action": "sts:AssumeRoleWithWebIdentity", "Condition": { "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" + "cognito-identity.amazonaws.com:aud": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" }, "ForAnyValue:StringLike": { "cognito-identity.amazonaws.com:amr": "authenticated" @@ -75,7 +75,7 @@ "Fn::Join": [ "", [ - "us-east-1_LAwe5ZJrw", + "us-east-1_iguxCIcMS", "-AdminGroupRole" ] ] @@ -85,7 +85,7 @@ }, "Outputs": { "AdminGroupRole": { - "Value": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + "Value": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 96397ae9746..8334327a376 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,313 +1,313 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-6fc9a-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole", + "AuthRoleName": "amplify-fitnesstracker-main-a0537-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-6fc9a-unauthRole", - "StackName": "amplify-fitnesstracker-main-6fc9a", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", + "DeploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "UnauthRoleName": "amplify-fitnesstracker-main-a0537-unauthRole", + "StackName": "amplify-fitnesstracker-main-a0537", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, - "api": { - "adminapi": { + "auth": { + "userPoolGroups": { + "service": "Cognito-UserPool-Groups", + "providerPlugin": "awscloudformation", "dependsOn": [ { - "attributes": [ - "Name", - "Arn" - ], - "category": "function", - "resourceName": "admin" - }, - { - "attributes": [ - "UserPoolId" - ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" - }, - { + "resourceName": "fitnesstracker33f5545533f55455", "attributes": [ - "AdminGroupRole" - ], - "category": "auth", - "resourceName": "userPoolGroups" + "UserPoolId", + "AppClientIDWeb", + "AppClientID", + "IdentityPoolId" + ] } ], - "providerPlugin": "awscloudformation", - "service": "API Gateway", - "output": { - "ApiName": "adminapi", - "RootUrl": "https://bbk7dedp01.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "bbk7dedp01" - }, - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", - "logicalId": "apiadminapi" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "logicalId": "authuserPoolGroups" }, - "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" - }, - "fitnesstracker": { - "dependsOn": [ - { - "attributes": [ - "UserPoolId" - ], - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" - } - ], "output": { - "authConfig": { - "additionalAuthenticationProviders": [ - { - "apiKeyConfig": { - "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", - "apiKeyExpirationDays": 7, - "description": "graphql" - }, - "authenticationType": "API_KEY" - } - ], - "defaultAuthentication": { - "authenticationType": "AMAZON_COGNITO_USER_POOLS", - "userPoolConfig": { - "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" - } - } - }, - "GraphQLAPIIdOutput": "4ebr7lx7bbhnpeo5dbtcvdajdm", - "GraphQLAPIEndpointOutput": "https://3oyjlwrrofhp7jlc37qna22jva.appsync-api.us-east-1.amazonaws.com/graphql", - "GraphQLAPIKeyOutput": "da2-2kuyxda27ncmpool2a2bjanloy" + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" }, - "providerPlugin": "awscloudformation", - "service": "AppSync", - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "logicalId": "apifitnesstracker" - }, - "lastPushDirHash": "sVImeaG/Q60+Vbb0gARPejjN99o=" + "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" }, - "nutritionapi": { - "dependsOn": [ - { - "attributes": [ - "Name", - "Arn" - ], - "category": "function", - "resourceName": "lognutrition" - }, - { - "attributes": [ - "UserPoolId" - ], - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" - }, - { - "attributes": [ - "AdminGroupRole" - ], - "category": "auth", - "resourceName": "userPoolGroups" - } - ], + "fitnesstracker33f5545533f55455": { + "service": "Cognito", "providerPlugin": "awscloudformation", - "service": "API Gateway", - "output": { - "ApiName": "nutritionapi", - "RootUrl": "https://ekto8iln0h.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "ekto8iln0h" - }, - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "logicalId": "apinutritionapi" - }, - "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" - } - }, - "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": { - "customAuth": false, "dependsOn": [ { + "category": "function", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", + "triggerProvider": "Cognito", "attributes": [ "Arn", "Name" - ], - "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "triggerProvider": "Cognito" + ] } ], + "customAuth": false, "frontendAuthConfig": { - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS" + "socialProviders": [], + "usernameAttributes": [], + "signupAttributes": [ + "EMAIL" ], "passwordProtectionSettings": { - "passwordPolicyCharacters": [], - "passwordPolicyMinLength": 8 + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": [] }, - "signupAttributes": [ - "EMAIL" + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS" ], - "socialProviders": [], - "usernameAttributes": [], "verificationMechanisms": [ "EMAIL" ] }, - "providerPlugin": "awscloudformation", - "service": "Cognito", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "logicalId": "authfitnesstracker33f5545533f55455" + }, + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", "output": { - "UserPoolId": "us-east-1_LAwe5ZJrw", - "AppClientIDWeb": "4bk8odk8blrf65ptk2dffug25k", - "AppClientID": "12hkvqjabpisei771tiefdhs76", - "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw", - "IdentityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main", - "UserPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + "UserPoolId": "us-east-1_iguxCIcMS", + "AppClientIDWeb": "29bubgvfbbqkp4k60rl7oaqd8s", + "AppClientID": "3s8jcv7nflisr91emephrr2a9s", + "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS", + "IdentityPoolName": "fitnesstracker33f55455_identitypool_33f55455__main", + "UserPoolName": "fitnesstracker33f55455_userpool_33f55455" + }, + "lastPushDirHash": "0UqXAz+SYrchlHkWJtyjmhwNAyw=" + } + }, + "function": { + "fitnesstracker33f5545533f55455PreSignup": { + "build": true, + "providerPlugin": "awscloudformation", + "service": "Lambda", + "lastBuildTimeStamp": "2026-03-24T03:03:03.155Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-24T03:03:03.215Z", + "distZipFilename": "fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" }, - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", - "logicalId": "authfitnesstracker9ceb2e7c9ceb2e7c" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "logicalId": "functionfitnesstracker33f5545533f55455PreSignup" }, - "lastPushDirHash": "LHa1sE4caL7GAFx9RONHvmVgPVo=" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main", + "Name": "fitnesstracker33f5545533f55455PreSignup-main", + "LambdaExecutionRole": "fitnesstracker33f5545533f55455PreSignup-main" + }, + "lastPushDirHash": "kHZgvjW478Vk1rWRqWN9hZbma+U=" }, - "userPoolGroups": { + "lognutrition": { + "build": true, + "providerPlugin": "awscloudformation", + "service": "Lambda", "dependsOn": [ { - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "category": "api", + "resourceName": "fitnesstracker", "attributes": [ - "UserPoolId", - "AppClientIDWeb", - "AppClientID", - "IdentityPoolId" + "GraphQLAPIIdOutput" ] } ], - "providerPlugin": "awscloudformation", - "service": "Cognito-UserPool-Groups", - "output": { - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + "lastBuildTimeStamp": "2026-03-24T03:03:04.944Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-24T03:03:05.883Z", + "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" }, - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", - "logicalId": "authuserPoolGroups" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "logicalId": "functionlognutrition" }, - "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" - } - }, - "function": { + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", + "Name": "lognutrition-main", + "LambdaExecutionRole": "fitnesstrackerLambdaRole2824d4b4-main" + }, + "lastPushDirHash": "KAgg7Tg7xQWrkPA+Y7AX2th1kaI=" + }, "admin": { "build": true, + "providerPlugin": "awscloudformation", + "service": "Lambda", "dependsOn": [ { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", "attributes": [ "UserPoolId" - ], - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + ] } ], - "providerPlugin": "awscloudformation", - "service": "Lambda", - "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole64f55d16-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", - "Name": "admin-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole64f55d16-main" + "lastBuildTimeStamp": "2026-03-24T03:03:08.363Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-24T03:03:14.781Z", + "distZipFilename": "admin-7934694b6d366c486d32-build.zip", + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip" }, - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "logicalId": "functionadmin" }, - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", + "Name": "admin-main", + "LambdaExecutionRole": "fitnesstrackerLambdaRole4a08108a-main" }, - "lastBuildTimeStamp": "2026-03-23T18:49:08.046Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-23T18:49:10.871Z", - "distZipFilename": "admin-765632787437744e386e-build.zip", - "lastPushDirHash": "slgY/GyKAD6Yg8mD7maeOXp9x1k=" - }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { - "build": true, + "lastPushDirHash": "20iOEIOvyMwayeWUC08s9NsJkTA=" + } + }, + "api": { + "fitnesstracker": { + "service": "AppSync", "providerPlugin": "awscloudformation", - "service": "Lambda", + "dependsOn": [ + { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", + "attributes": [ + "UserPoolId" + ] + } + ], "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", - "Name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", - "LambdaExecutionRole": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "authConfig": { + "defaultAuthentication": { + "authenticationType": "AMAZON_COGNITO_USER_POOLS", + "userPoolConfig": { + "userPoolId": "authfitnesstracker33f5545533f55455" + } + }, + "additionalAuthenticationProviders": [ + { + "authenticationType": "API_KEY", + "apiKeyConfig": { + "apiKeyExpirationDays": 7, + "apiKeyExpirationDate": "2026-03-31T02:59:49.009Z", + "description": "graphql" + } + } + ] + }, + "GraphQLAPIIdOutput": "jzwb5p2vcbd2ldlnlxokgjcjby", + "GraphQLAPIEndpointOutput": "https://lqftdnws2zb75jcuwdcmx23wdi.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", - "logicalId": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" - }, - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "logicalId": "apifitnesstracker" }, - "lastBuildTimeStamp": "2026-03-23T18:49:12.334Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-23T18:49:12.345Z", - "distZipFilename": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", - "lastPushDirHash": "qol/s4yC6lAAoI+0jAPoRyuH394=" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushDirHash": "RCtlX/RFS23/RTpTpKEuv4XLh08=" }, - "lognutrition": { - "build": true, + "nutritionapi": { + "service": "API Gateway", + "providerPlugin": "awscloudformation", "dependsOn": [ { + "category": "function", + "resourceName": "lognutrition", "attributes": [ - "GraphQLAPIIdOutput" - ], - "category": "api", - "resourceName": "fitnesstracker" + "Name", + "Arn" + ] + }, + { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", + "attributes": [ + "UserPoolId" + ] + }, + { + "category": "auth", + "resourceName": "userPoolGroups", + "attributes": [ + "AdminGroupRole" + ] } ], - "providerPlugin": "awscloudformation", - "service": "Lambda", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "logicalId": "apinutritionapi" + }, + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8dc6052c-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", - "Name": "lognutrition-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole8dc6052c-main" + "ApiName": "nutritionapi", + "RootUrl": "https://hmydcaubcb.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "hmydcaubcb" }, - "lastPushTimeStamp": "2026-03-23T18:51:33.560Z", + "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" + }, + "adminapi": { + "service": "API Gateway", + "providerPlugin": "awscloudformation", + "dependsOn": [ + { + "category": "function", + "resourceName": "admin", + "attributes": [ + "Name", + "Arn" + ] + }, + { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", + "attributes": [ + "UserPoolId" + ] + }, + { + "category": "auth", + "resourceName": "userPoolGroups", + "attributes": [ + "AdminGroupRole" + ] + } + ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", - "logicalId": "functionlognutrition" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "logicalId": "apiadminapi" }, - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "ApiName": "adminapi", + "RootUrl": "https://oxq86r59h6.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "oxq86r59h6" }, - "lastBuildTimeStamp": "2026-03-23T18:49:13.048Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-23T18:49:13.590Z", - "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", - "lastPushDirHash": "cvWf4K5nJd9hIYUUzDbXROaTzek=" + "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json index fe0413d381e..63a8fcdb155 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponsec0c67e32": { + "adminapiDefault4XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponsec0c67e32": { + "adminapiDefault5XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapia8449e95": { + "DeploymentAPIGWadminapiad7711e6": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponsec0c67e32", - "adminapiDefault5XXResponsec0c67e32" + "adminapiDefault4XXResponse0e27c647", + "adminapiDefault5XXResponse0e27c647" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json index 521e37ff3e1..cd07bb81a76 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json @@ -1,608 +1,609 @@ { - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } } + } }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - }, - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "graphql", - "Expires": 1774896554 - } + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "None Data Source for Pipeline functions", - "Name": "NONE_DS", - "Type": "NONE" - } + "Description": "graphql", + "Expires": 1774926196 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] }, - "WorkoutProgram": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/WorkoutProgram.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" + "Description": "None Data Source for Pipeline functions", + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "WorkoutProgram": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" ] - }, - "Exercise": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Exercise.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } }, - "Meal": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Meal.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/WorkoutProgram.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Exercise": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" + ] + } }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" - ] - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "Exercise", - "GraphQLAPITransformerSchema3CB2AE18" + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Exercise.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Meal": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + } }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "WorkoutProgram", - "Exercise", - "Meal", - "ConnectionStack" + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Meal.json" ] + ] } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" + ] + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" + ] + } }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Exercise", + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "WorkoutProgram", + "Exercise", + "Meal", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] } + } } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json index 8cb3b427185..42555b61e79 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json @@ -4,10 +4,10 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json index a407b2cb80e..37b698b468d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json index a9eeaa78710..cc800da40df 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json index 1f6a60f3fb6..ee4ac331787 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json index d65c9f90968..8d494295f5d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json index 06b33fdf9b2..848a1768ba9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json @@ -5,13 +5,13 @@ "serviceName": "AppSync", "defaultAuthType": { "mode": "AMAZON_COGNITO_USER_POOLS", - "cognitoUserPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" + "cognitoUserPoolId": "authfitnesstracker33f5545533f55455" }, "additionalAuthTypes": [ { "mode": "API_KEY", "expirationTime": 7, - "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", + "apiKeyExpirationDate": "2026-03-31T02:59:49.009Z", "keyDescription": "graphql" } ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json index dd8ecd65ac8..72d6b16ab57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json @@ -4,7 +4,7 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json index 1c507689fc5..ba07311cb22 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse59a22bc9": { + "nutritionapiDefault4XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse59a22bc9": { + "nutritionapiDefault5XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapifc67c40b": { + "DeploymentAPIGWnutritionapi5caf0abc": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse59a22bc9", - "nutritionapiDefault5XXResponse59a22bc9" + "nutritionapiDefault4XXResponsef55128fc", + "nutritionapiDefault5XXResponsef55128fc" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json similarity index 94% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json index 3123ddd2a0b..3d97c0ff654 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json @@ -11,13 +11,13 @@ "userpoolArn": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Type": "String" } }, @@ -37,7 +37,7 @@ "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Ref": "functionfitnesstracker33f5545533f55455PreSignupName" }, "Principal": "cognito-idp.amazonaws.com", "SourceArn": { @@ -137,13 +137,13 @@ "lambdaConfig": [ { "triggerType": "PreSignUp", - "lambdaFunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "lambdaFunctionName": "fitnesstracker33f5545533f55455PreSignup", "lambdaFunctionArn": { - "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Ref": "functionfitnesstracker33f5545533f55455PreSignupArn" } } ], - "nonce": "582f2307-255c-4c76-8d0e-f9ee3bd19136" + "nonce": "ce3e930d-07f8-4cb9-a927-2ce7de23494f" }, "DependsOn": [ "authTriggerFn7FCFA449", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index 79def9e5efb..f5ed153a8fe 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole9ceb2e7c", + "upClientLambdaRole33f55455", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "fitnesstracker33f55455_identitypool_33f55455", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/parameters.json similarity index 79% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/parameters.json index b80b3f56b64..41d861ce59c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/parameters.json @@ -1,8 +1,8 @@ { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": [ "email" ], @@ -29,10 +29,10 @@ "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -62,7 +62,7 @@ "dependsOn": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", "triggerProvider": "Cognito", "attributes": [ "Arn", @@ -72,6 +72,6 @@ ], "permissions": [], "authTriggerConnections": [ - "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" + "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" ] } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json similarity index 80% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json index 81dda741522..f8ecf9a776f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json @@ -1,10 +1,10 @@ { "version": "1", "cognitoConfig": { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": [ "email" ], @@ -31,10 +31,10 @@ "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 12c7040bd48..e34b9d7bd14 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "Root Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + "Default": "authfitnesstracker33f5545533f55455AppClientID" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Ref": "authfitnesstracker33f5545533f55455IdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json index fe0413d381e..63a8fcdb155 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponsec0c67e32": { + "adminapiDefault4XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponsec0c67e32": { + "adminapiDefault5XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapia8449e95": { + "DeploymentAPIGWadminapiad7711e6": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponsec0c67e32", - "adminapiDefault5XXResponsec0c67e32" + "adminapiDefault4XXResponse0e27c647", + "adminapiDefault5XXResponse0e27c647" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json index 651f9ceb637..cd07bb81a76 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1774896554 + "Expires": 1774926196 } }, "GraphQLAPINONEDS95A13CF0": { @@ -604,5 +604,6 @@ } } } - } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json index 1c507689fc5..ba07311cb22 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse59a22bc9": { + "nutritionapiDefault4XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse59a22bc9": { + "nutritionapiDefault5XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapifc67c40b": { + "DeploymentAPIGWnutritionapi5caf0abc": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse59a22bc9", - "nutritionapiDefault5XXResponse59a22bc9" + "nutritionapiDefault4XXResponsef55128fc", + "nutritionapiDefault5XXResponsef55128fc" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index 79def9e5efb..f5ed153a8fe 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole9ceb2e7c", + "upClientLambdaRole33f55455", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "fitnesstracker33f55455_identitypool_33f55455", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 12c7040bd48..e34b9d7bd14 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "Root Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + "Default": "authfitnesstracker33f5545533f55455AppClientID" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Ref": "authfitnesstracker33f5545533f55455IdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 5345516d4d9..3874b454557 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] }, - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] } @@ -229,141 +229,100 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "authfitnesstracker33f5545533f55455", + "functionfitnesstracker33f5545533f55455PreSignup" ] }, - "apiadminapi": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AuthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "AuthRole", + "Arn" ] }, - "authuserPoolGroupsAdminGroupRole": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "UnauthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "apifitnesstracker": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", - "env": "main" - } - } - }, - "apinutritionapi": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "Parameters": { - "functionlognutritionName": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientIDWeb" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455AppClientID": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientID" ] }, - "authuserPoolGroupsAdminGroupRole": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "authfitnesstracker33f5545533f55455", + "Outputs.IdentityPoolId" ] }, "env": "main" } } }, - "authfitnesstracker9ceb2e7c9ceb2e7c": { + "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -380,10 +339,10 @@ "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -410,98 +369,139 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", "env": "main" } } }, - "authuserPoolGroups": { + "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "UnauthRoleArn": { + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", + "env": "main" + } + } + }, + "functionlognutrition": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "env": "main" + } + } + }, + "functionadmin": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientIDWeb" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientID" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.IdentityPoolId" - ] - }, "env": "main" } } }, - "functionadmin": { + "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", "env": "main" } } }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" + ] + }, + "functionlognutritionArn": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" + ] + }, "env": "main" } } }, - "functionlognutrition": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "functionadminName": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "functionadmin", + "Outputs.Name" + ] + }, + "functionadminArn": { + "Fn::GetAtt": [ + "functionadmin", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker9ceb2e7c9ceb2e7c" + "authfitnesstracker33f5545533f55455" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json index aaa8618655d..57322afb5e3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index 04a3c261a89..e53fff724cb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json index e1789ef2c20..34e97f53ec9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 5345516d4d9..3874b454557 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] }, - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] } @@ -229,141 +229,100 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "authfitnesstracker33f5545533f55455", + "functionfitnesstracker33f5545533f55455PreSignup" ] }, - "apiadminapi": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AuthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "AuthRole", + "Arn" ] }, - "authuserPoolGroupsAdminGroupRole": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "UnauthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "apifitnesstracker": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", - "env": "main" - } - } - }, - "apinutritionapi": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "Parameters": { - "functionlognutritionName": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientIDWeb" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455AppClientID": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientID" ] }, - "authuserPoolGroupsAdminGroupRole": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "authfitnesstracker33f5545533f55455", + "Outputs.IdentityPoolId" ] }, "env": "main" } } }, - "authfitnesstracker9ceb2e7c9ceb2e7c": { + "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -380,10 +339,10 @@ "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -410,98 +369,139 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", "env": "main" } } }, - "authuserPoolGroups": { + "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "UnauthRoleArn": { + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", + "env": "main" + } + } + }, + "functionlognutrition": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "env": "main" + } + } + }, + "functionadmin": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientIDWeb" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientID" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.IdentityPoolId" - ] - }, "env": "main" } } }, - "functionadmin": { + "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", "env": "main" } } }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" + ] + }, + "functionlognutritionArn": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" + ] + }, "env": "main" } } }, - "functionlognutrition": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "functionadminName": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "functionadmin", + "Outputs.Name" + ] + }, + "functionadminArn": { + "Fn::GetAtt": [ + "functionadmin", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker9ceb2e7c9ceb2e7c" + "authfitnesstracker33f5545533f55455" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 3267de076bd..d15b0adea45 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -15,7 +15,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" }, { "attributes": [ @@ -35,7 +35,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" } ], "output": { @@ -43,7 +43,7 @@ "additionalAuthenticationProviders": [ { "apiKeyConfig": { - "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", + "apiKeyExpirationDate": "2026-03-31T02:59:49.009Z", "apiKeyExpirationDays": 7, "description": "graphql" }, @@ -53,7 +53,7 @@ "defaultAuthentication": { "authenticationType": "AMAZON_COGNITO_USER_POOLS", "userPoolConfig": { - "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" + "userPoolId": "authfitnesstracker33f5545533f55455" } } } @@ -76,7 +76,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" }, { "attributes": [ @@ -91,7 +91,7 @@ } }, "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": { + "fitnesstracker33f5545533f55455": { "customAuth": false, "dependsOn": [ { @@ -100,7 +100,7 @@ "Name" ], "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", "triggerProvider": "Cognito" } ], @@ -135,7 +135,7 @@ "IdentityPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" } ], "providerPlugin": "awscloudformation", @@ -151,13 +151,13 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" } ], "providerPlugin": "awscloudformation", "service": "Lambda" }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "fitnesstracker33f5545533f55455PreSignup": { "build": true, "providerPlugin": "awscloudformation", "service": "Lambda" @@ -194,27 +194,27 @@ } ] }, - "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_DOMAINALLOWLIST": { + "AMPLIFY_function_fitnesstracker33f5545533f55455PreSignup_DOMAINALLOWLIST": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "resourceName": "fitnesstracker33f5545533f55455PreSignup" } ] }, - "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_deploymentBucketName": { + "AMPLIFY_function_fitnesstracker33f5545533f55455PreSignup_deploymentBucketName": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "resourceName": "fitnesstracker33f5545533f55455PreSignup" } ] }, - "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_s3Key": { + "AMPLIFY_function_fitnesstracker33f5545533f55455PreSignup_s3Key": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "resourceName": "fitnesstracker33f5545533f55455PreSignup" } ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json index aaa8618655d..57322afb5e3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json index c3c652077d2..f87ac79fa6f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json @@ -1,7 +1,7 @@ { "permissions": { "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": [ + "fitnesstracker33f5545533f55455": [ "read" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index 04a3c261a89..e53fff724cb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json similarity index 61% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json index 911d754ad38..ddc07525de2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json @@ -3,14 +3,14 @@ "modules": [ "email-filter-allowlist" ], - "parentResource": "fitnesstracker9ceb2e7c9ceb2e7c", - "functionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "parentResource": "fitnesstracker33f5545533f55455", + "functionName": "fitnesstracker33f5545533f55455PreSignup", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", "parentStack": "auth", "triggerEnvs": "[]", "triggerDir": "/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-category-auth/provider-utils/awscloudformation/triggers/PreSignup", "triggerTemplate": "PreSignup.json.ejs", "triggerEventPath": "PreSignup.event.json", - "roleName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "roleName": "fitnesstracker33f5545533f55455PreSignup", "skipEdit": true } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json new file mode 100644 index 00000000000..020628a583f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json @@ -0,0 +1,4 @@ +{ + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker33f5545533f55455PreSignup" +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/email-filter-allowlist.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/email-filter-allowlist.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/event.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/event.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/index.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/index.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/package.json similarity index 78% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/package.json index af2b3ccd67f..9d1790c9a5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/package.json @@ -1,5 +1,5 @@ { - "name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "name": "fitnesstracker33f5545533f55455PreSignup", "version": "2.0.0", "description": "Lambda function generated by Amplify", "main": "index.js", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/yarn.lock similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/src/yarn.lock diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json deleted file mode 100644 index 22e01f31ee2..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json index e1789ef2c20..34e97f53ec9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 3a167eb2204..8334327a376 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,313 +1,313 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-6fc9a-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole", + "AuthRoleName": "amplify-fitnesstracker-main-a0537-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-6fc9a-unauthRole", - "StackName": "amplify-fitnesstracker-main-6fc9a", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", + "DeploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "UnauthRoleName": "amplify-fitnesstracker-main-a0537-unauthRole", + "StackName": "amplify-fitnesstracker-main-a0537", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, - "api": { - "adminapi": { + "auth": { + "userPoolGroups": { + "service": "Cognito-UserPool-Groups", + "providerPlugin": "awscloudformation", "dependsOn": [ { - "attributes": [ - "Name", - "Arn" - ], - "category": "function", - "resourceName": "admin" - }, - { - "attributes": [ - "UserPoolId" - ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" - }, - { + "resourceName": "fitnesstracker33f5545533f55455", "attributes": [ - "AdminGroupRole" - ], - "category": "auth", - "resourceName": "userPoolGroups" + "UserPoolId", + "AppClientIDWeb", + "AppClientID", + "IdentityPoolId" + ] } ], - "providerPlugin": "awscloudformation", - "service": "API Gateway", - "output": { - "ApiName": "adminapi", - "RootUrl": "https://bbk7dedp01.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "bbk7dedp01" - }, - "lastPushTimeStamp": "2026-03-24T00:40:26.010Z", + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", - "logicalId": "apiadminapi" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "logicalId": "authuserPoolGroups" }, - "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" - }, - "fitnesstracker": { - "dependsOn": [ - { - "attributes": [ - "UserPoolId" - ], - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" - } - ], "output": { - "authConfig": { - "additionalAuthenticationProviders": [ - { - "apiKeyConfig": { - "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", - "apiKeyExpirationDays": 7, - "description": "graphql" - }, - "authenticationType": "API_KEY" - } - ], - "defaultAuthentication": { - "authenticationType": "AMAZON_COGNITO_USER_POOLS", - "userPoolConfig": { - "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" - } - } - }, - "GraphQLAPIIdOutput": "4ebr7lx7bbhnpeo5dbtcvdajdm", - "GraphQLAPIEndpointOutput": "https://3oyjlwrrofhp7jlc37qna22jva.appsync-api.us-east-1.amazonaws.com/graphql", - "GraphQLAPIKeyOutput": "da2-2kuyxda27ncmpool2a2bjanloy" + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" }, - "providerPlugin": "awscloudformation", - "service": "AppSync", - "lastPushTimeStamp": "2026-03-24T00:40:26.014Z", - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "logicalId": "apifitnesstracker" - }, - "lastPushDirHash": "sVImeaG/Q60+Vbb0gARPejjN99o=" + "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" }, - "nutritionapi": { - "dependsOn": [ - { - "attributes": [ - "Name", - "Arn" - ], - "category": "function", - "resourceName": "lognutrition" - }, - { - "attributes": [ - "UserPoolId" - ], - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" - }, - { - "attributes": [ - "AdminGroupRole" - ], - "category": "auth", - "resourceName": "userPoolGroups" - } - ], + "fitnesstracker33f5545533f55455": { + "service": "Cognito", "providerPlugin": "awscloudformation", - "service": "API Gateway", - "output": { - "ApiName": "nutritionapi", - "RootUrl": "https://ekto8iln0h.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "ekto8iln0h" - }, - "lastPushTimeStamp": "2026-03-24T00:40:26.016Z", - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "logicalId": "apinutritionapi" - }, - "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" - } - }, - "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": { - "customAuth": false, "dependsOn": [ { + "category": "function", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", + "triggerProvider": "Cognito", "attributes": [ "Arn", "Name" - ], - "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "triggerProvider": "Cognito" + ] } ], + "customAuth": false, "frontendAuthConfig": { - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS" + "socialProviders": [], + "usernameAttributes": [], + "signupAttributes": [ + "EMAIL" ], "passwordProtectionSettings": { "passwordPolicyMinLength": 8, "passwordPolicyCharacters": [] }, - "signupAttributes": [ - "EMAIL" + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS" ], - "socialProviders": [], - "usernameAttributes": [], "verificationMechanisms": [ "EMAIL" ] }, - "providerPlugin": "awscloudformation", - "service": "Cognito", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "logicalId": "authfitnesstracker33f5545533f55455" + }, + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", "output": { - "UserPoolId": "us-east-1_LAwe5ZJrw", - "AppClientIDWeb": "4bk8odk8blrf65ptk2dffug25k", - "AppClientID": "12hkvqjabpisei771tiefdhs76", - "IdentityPoolId": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw", - "IdentityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main", - "UserPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + "UserPoolId": "us-east-1_iguxCIcMS", + "AppClientIDWeb": "29bubgvfbbqkp4k60rl7oaqd8s", + "AppClientID": "3s8jcv7nflisr91emephrr2a9s", + "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS", + "IdentityPoolName": "fitnesstracker33f55455_identitypool_33f55455__main", + "UserPoolName": "fitnesstracker33f55455_userpool_33f55455" + }, + "lastPushDirHash": "0UqXAz+SYrchlHkWJtyjmhwNAyw=" + } + }, + "function": { + "fitnesstracker33f5545533f55455PreSignup": { + "build": true, + "providerPlugin": "awscloudformation", + "service": "Lambda", + "lastBuildTimeStamp": "2026-03-24T03:03:03.155Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-24T03:03:03.215Z", + "distZipFilename": "fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" }, - "lastPushTimeStamp": "2026-03-24T00:40:26.019Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", - "logicalId": "authfitnesstracker9ceb2e7c9ceb2e7c" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "logicalId": "functionfitnesstracker33f5545533f55455PreSignup" }, - "lastPushDirHash": "LHa1sE4caL7GAFx9RONHvmVgPVo=" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main", + "Name": "fitnesstracker33f5545533f55455PreSignup-main", + "LambdaExecutionRole": "fitnesstracker33f5545533f55455PreSignup-main" + }, + "lastPushDirHash": "kHZgvjW478Vk1rWRqWN9hZbma+U=" }, - "userPoolGroups": { + "lognutrition": { + "build": true, + "providerPlugin": "awscloudformation", + "service": "Lambda", "dependsOn": [ { - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "category": "api", + "resourceName": "fitnesstracker", "attributes": [ - "UserPoolId", - "AppClientIDWeb", - "AppClientID", - "IdentityPoolId" + "GraphQLAPIIdOutput" ] } ], - "providerPlugin": "awscloudformation", - "service": "Cognito-UserPool-Groups", - "output": { - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + "lastBuildTimeStamp": "2026-03-24T03:03:04.944Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-24T03:03:05.883Z", + "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" }, - "lastPushTimeStamp": "2026-03-24T00:40:27.730Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", - "logicalId": "authuserPoolGroups" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "logicalId": "functionlognutrition" }, - "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" - } - }, - "function": { + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", + "Name": "lognutrition-main", + "LambdaExecutionRole": "fitnesstrackerLambdaRole2824d4b4-main" + }, + "lastPushDirHash": "KAgg7Tg7xQWrkPA+Y7AX2th1kaI=" + }, "admin": { "build": true, + "providerPlugin": "awscloudformation", + "service": "Lambda", "dependsOn": [ { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", "attributes": [ "UserPoolId" - ], - "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + ] } ], - "providerPlugin": "awscloudformation", - "service": "Lambda", - "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole64f55d16-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", - "Name": "admin-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole64f55d16-main" + "lastBuildTimeStamp": "2026-03-24T03:03:08.363Z", + "lastBuildType": "PROD", + "lastPackageTimeStamp": "2026-03-24T03:03:14.781Z", + "distZipFilename": "admin-7934694b6d366c486d32-build.zip", + "s3Bucket": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip" }, - "lastPushTimeStamp": "2026-03-24T00:40:26.026Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "logicalId": "functionadmin" }, - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-main", + "Region": "us-east-1", + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", + "Name": "admin-main", + "LambdaExecutionRole": "fitnesstrackerLambdaRole4a08108a-main" }, - "lastBuildTimeStamp": "2026-03-23T18:49:08.046Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-23T18:49:10.871Z", - "distZipFilename": "admin-765632787437744e386e-build.zip", - "lastPushDirHash": "slgY/GyKAD6Yg8mD7maeOXp9x1k=" - }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { - "build": true, + "lastPushDirHash": "20iOEIOvyMwayeWUC08s9NsJkTA=" + } + }, + "api": { + "fitnesstracker": { + "service": "AppSync", "providerPlugin": "awscloudformation", - "service": "Lambda", + "dependsOn": [ + { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", + "attributes": [ + "UserPoolId" + ] + } + ], "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", - "Name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main", - "LambdaExecutionRole": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "authConfig": { + "defaultAuthentication": { + "authenticationType": "AMAZON_COGNITO_USER_POOLS", + "userPoolConfig": { + "userPoolId": "authfitnesstracker33f5545533f55455" + } + }, + "additionalAuthenticationProviders": [ + { + "authenticationType": "API_KEY", + "apiKeyConfig": { + "apiKeyExpirationDays": 7, + "apiKeyExpirationDate": "2026-03-31T02:59:49.009Z", + "description": "graphql" + } + } + ] + }, + "GraphQLAPIIdOutput": "jzwb5p2vcbd2ldlnlxokgjcjby", + "GraphQLAPIEndpointOutput": "https://lqftdnws2zb75jcuwdcmx23wdi.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, - "lastPushTimeStamp": "2026-03-24T00:40:26.029Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", - "logicalId": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" - }, - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "logicalId": "apifitnesstracker" }, - "lastBuildTimeStamp": "2026-03-23T18:49:12.334Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-23T18:49:12.345Z", - "distZipFilename": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", - "lastPushDirHash": "qol/s4yC6lAAoI+0jAPoRyuH394=" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushDirHash": "RCtlX/RFS23/RTpTpKEuv4XLh08=" }, - "lognutrition": { - "build": true, + "nutritionapi": { + "service": "API Gateway", + "providerPlugin": "awscloudformation", "dependsOn": [ { + "category": "function", + "resourceName": "lognutrition", "attributes": [ - "GraphQLAPIIdOutput" - ], - "category": "api", - "resourceName": "fitnesstracker" + "Name", + "Arn" + ] + }, + { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", + "attributes": [ + "UserPoolId" + ] + }, + { + "category": "auth", + "resourceName": "userPoolGroups", + "attributes": [ + "AdminGroupRole" + ] } ], - "providerPlugin": "awscloudformation", - "service": "Lambda", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "logicalId": "apinutritionapi" + }, + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8dc6052c-main", - "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", - "Name": "lognutrition-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole8dc6052c-main" + "ApiName": "nutritionapi", + "RootUrl": "https://hmydcaubcb.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "hmydcaubcb" }, - "lastPushTimeStamp": "2026-03-24T00:40:26.035Z", + "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" + }, + "adminapi": { + "service": "API Gateway", + "providerPlugin": "awscloudformation", + "dependsOn": [ + { + "category": "function", + "resourceName": "admin", + "attributes": [ + "Name", + "Arn" + ] + }, + { + "category": "auth", + "resourceName": "fitnesstracker33f5545533f55455", + "attributes": [ + "UserPoolId" + ] + }, + { + "category": "auth", + "resourceName": "userPoolGroups", + "attributes": [ + "AdminGroupRole" + ] + } + ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", - "logicalId": "functionlognutrition" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "logicalId": "apiadminapi" }, - "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" + "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "output": { + "ApiName": "adminapi", + "RootUrl": "https://oxq86r59h6.execute-api.us-east-1.amazonaws.com/main", + "ApiId": "oxq86r59h6" }, - "lastBuildTimeStamp": "2026-03-23T18:49:13.048Z", - "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-23T18:49:13.590Z", - "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", - "lastPushDirHash": "cvWf4K5nJd9hIYUUzDbXROaTzek=" + "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" } } } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json index 03f897a5ce3..63a8fcdb155 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponse85f5ca6c": { + "adminapiDefault4XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponse85f5ca6c": { + "adminapiDefault5XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapi7b0e0b8f": { + "DeploymentAPIGWadminapiad7711e6": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponse85f5ca6c", - "adminapiDefault5XXResponse85f5ca6c" + "adminapiDefault4XXResponse0e27c647", + "adminapiDefault5XXResponse0e27c647" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json index a82fa55dc68..cd07bb81a76 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json @@ -1,608 +1,609 @@ { - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } } + } }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - }, - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "graphql", - "Expires": 1774917627 - } + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "None Data Source for Pipeline functions", - "Name": "NONE_DS", - "Type": "NONE" - } + "Description": "graphql", + "Expires": 1774926196 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] }, - "WorkoutProgram": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/WorkoutProgram.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" + "Description": "None Data Source for Pipeline functions", + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "WorkoutProgram": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" ] - }, - "Exercise": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Exercise.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } }, - "Meal": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Meal.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/WorkoutProgram.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Exercise": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" + ] + } }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" - ] - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "Exercise", - "GraphQLAPITransformerSchema3CB2AE18" + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Exercise.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Meal": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + } }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "WorkoutProgram", - "Exercise", - "Meal", - "ConnectionStack" + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Meal.json" ] + ] } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" + ] + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" + ] + } }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Exercise", + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "WorkoutProgram", + "Exercise", + "Meal", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] } + } } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json index 8cb3b427185..42555b61e79 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json @@ -4,10 +4,10 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json index a407b2cb80e..37b698b468d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json index a9eeaa78710..cc800da40df 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json index 1f6a60f3fb6..ee4ac331787 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json index d65c9f90968..8d494295f5d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json index 06b33fdf9b2..848a1768ba9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json @@ -5,13 +5,13 @@ "serviceName": "AppSync", "defaultAuthType": { "mode": "AMAZON_COGNITO_USER_POOLS", - "cognitoUserPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" + "cognitoUserPoolId": "authfitnesstracker33f5545533f55455" }, "additionalAuthTypes": [ { "mode": "API_KEY", "expirationTime": 7, - "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", + "apiKeyExpirationDate": "2026-03-31T02:59:49.009Z", "keyDescription": "graphql" } ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json index dd8ecd65ac8..72d6b16ab57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json @@ -4,7 +4,7 @@ "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json index d0fe820973d..ba07311cb22 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse22a5dbe5": { + "nutritionapiDefault4XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse22a5dbe5": { + "nutritionapiDefault5XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi7e86ac76": { + "DeploymentAPIGWnutritionapi5caf0abc": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse22a5dbe5", - "nutritionapiDefault5XXResponse22a5dbe5" + "nutritionapiDefault4XXResponsef55128fc", + "nutritionapiDefault5XXResponsef55128fc" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json similarity index 94% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json index 94bf04af18a..3d97c0ff654 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json @@ -11,13 +11,13 @@ "userpoolArn": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Type": "String" } }, @@ -37,7 +37,7 @@ "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Ref": "functionfitnesstracker33f5545533f55455PreSignupName" }, "Principal": "cognito-idp.amazonaws.com", "SourceArn": { @@ -137,13 +137,13 @@ "lambdaConfig": [ { "triggerType": "PreSignUp", - "lambdaFunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "lambdaFunctionName": "fitnesstracker33f5545533f55455PreSignup", "lambdaFunctionArn": { - "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Ref": "functionfitnesstracker33f5545533f55455PreSignupArn" } } ], - "nonce": "a3ec1075-1f5a-4a6d-9bb3-6caf273873db" + "nonce": "ce3e930d-07f8-4cb9-a927-2ce7de23494f" }, "DependsOn": [ "authTriggerFn7FCFA449", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index 79def9e5efb..f5ed153a8fe 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole9ceb2e7c", + "upClientLambdaRole33f55455", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "fitnesstracker33f55455_identitypool_33f55455", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/parameters.json similarity index 79% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/parameters.json index b80b3f56b64..41d861ce59c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/parameters.json @@ -1,8 +1,8 @@ { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": [ "email" ], @@ -29,10 +29,10 @@ "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -62,7 +62,7 @@ "dependsOn": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", "triggerProvider": "Cognito", "attributes": [ "Arn", @@ -72,6 +72,6 @@ ], "permissions": [], "authTriggerConnections": [ - "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" + "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" ] } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json similarity index 80% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json index 81dda741522..f8ecf9a776f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json @@ -1,10 +1,10 @@ { "version": "1", "cognitoConfig": { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": [ "email" ], @@ -31,10 +31,10 @@ "userpoolClientReadAttributes": [ "email" ], - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 12c7040bd48..e34b9d7bd14 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "Root Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + "Default": "authfitnesstracker33f5545533f55455AppClientID" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Ref": "authfitnesstracker33f5545533f55455IdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json index fe0413d381e..63a8fcdb155 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponsec0c67e32": { + "adminapiDefault4XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponsec0c67e32": { + "adminapiDefault5XXResponse0e27c647": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapia8449e95": { + "DeploymentAPIGWadminapiad7711e6": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponsec0c67e32", - "adminapiDefault5XXResponsec0c67e32" + "adminapiDefault4XXResponse0e27c647", + "adminapiDefault5XXResponse0e27c647" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json index 651f9ceb637..cd07bb81a76 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1774896554 + "Expires": 1774926196 } }, "GraphQLAPINONEDS95A13CF0": { @@ -604,5 +604,6 @@ } } } - } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json index 1c507689fc5..ba07311cb22 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -1,10 +1,10 @@ { - "Description": "API Gateway Resource for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse59a22bc9": { + "nutritionapiDefault4XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse59a22bc9": { + "nutritionapiDefault5XXResponsef55128fc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapifc67c40b": { + "DeploymentAPIGWnutritionapi5caf0abc": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse59a22bc9", - "nutritionapiDefault5XXResponse59a22bc9" + "nutritionapiDefault4XXResponsef55128fc", + "nutritionapiDefault5XXResponsef55128fc" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index 79def9e5efb..f5ed153a8fe 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker9ceb2e7c9ceb2e7c/build/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -1,17 +1,17 @@ { - "Description": "Amplify Cognito Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" }, "identityPoolName": { "Type": "String" @@ -216,7 +216,7 @@ "UserPoolClientWeb": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", + "ClientName": "fitnes33f55455_app_clientWeb", "RefreshTokenValidity": { "Ref": "userpoolClientRefreshTokenValidity" }, @@ -234,7 +234,7 @@ "UserPoolClient": { "Type": "AWS::Cognito::UserPoolClient", "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", + "ClientName": "fitnes33f55455_app_client", "GenerateSecret": { "Ref": "userpoolClientGenerateSecret" }, @@ -277,7 +277,7 @@ "Fn::Join": [ "", [ - "upClientLambdaRole9ceb2e7c", + "upClientLambdaRole33f55455", { "Fn::Select": [ 3, @@ -349,12 +349,12 @@ "IdentityPoolName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "fitnesstracker33f55455_identitypool_33f55455", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", + "fitnesstracker33f55455_identitypool_33f55455__", { "Ref": "env" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 12c7040bd48..e34b9d7bd14 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "Root Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + "Default": "authfitnesstracker33f5545533f55455AppClientID" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Ref": "authfitnesstracker33f5545533f55455IdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 5345516d4d9..3874b454557 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] }, - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] } @@ -229,141 +229,100 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "authfitnesstracker33f5545533f55455", + "functionfitnesstracker33f5545533f55455PreSignup" ] }, - "apiadminapi": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AuthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "AuthRole", + "Arn" ] }, - "authuserPoolGroupsAdminGroupRole": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "UnauthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "apifitnesstracker": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", - "env": "main" - } - } - }, - "apinutritionapi": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "Parameters": { - "functionlognutritionName": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientIDWeb" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455AppClientID": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientID" ] }, - "authuserPoolGroupsAdminGroupRole": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "authfitnesstracker33f5545533f55455", + "Outputs.IdentityPoolId" ] }, "env": "main" } } }, - "authfitnesstracker9ceb2e7c9ceb2e7c": { + "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -380,10 +339,10 @@ "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -410,98 +369,139 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", "env": "main" } } }, - "authuserPoolGroups": { + "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "UnauthRoleArn": { + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", + "env": "main" + } + } + }, + "functionlognutrition": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "env": "main" + } + } + }, + "functionadmin": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientIDWeb" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientID" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.IdentityPoolId" - ] - }, "env": "main" } } }, - "functionadmin": { + "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", "env": "main" } } }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" + ] + }, + "functionlognutritionArn": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" + ] + }, "env": "main" } } }, - "functionlognutrition": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "functionadminName": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "functionadmin", + "Outputs.Name" + ] + }, + "functionadminArn": { + "Fn::GetAtt": [ + "functionadmin", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker9ceb2e7c9ceb2e7c" + "authfitnesstracker33f5545533f55455" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json index aaa8618655d..57322afb5e3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index 04a3c261a89..e53fff724cb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json index e1789ef2c20..34e97f53ec9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 5345516d4d9..3874b454557 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -211,15 +211,15 @@ "Ref": "UnauthRoleName" }, "env": "main", - "adminapi": { + "nutritionapi": { "Fn::GetAtt": [ - "apiadminapi", + "apinutritionapi", "Outputs.ApiId" ] }, - "nutritionapi": { + "adminapi": { "Fn::GetAtt": [ - "apinutritionapi", + "apiadminapi", "Outputs.ApiId" ] } @@ -229,141 +229,100 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "authfitnesstracker33f5545533f55455", + "functionfitnesstracker33f5545533f55455PreSignup" ] }, - "apiadminapi": { + "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AuthRoleArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "AuthRole", + "Arn" ] }, - "authuserPoolGroupsAdminGroupRole": { + "UnauthRoleArn": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "UnauthRole", + "Arn" ] }, - "env": "main" - } - } - }, - "apifitnesstracker": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", - "env": "main" - } - } - }, - "apinutritionapi": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "Parameters": { - "functionlognutritionName": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientIDWeb" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455AppClientID": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.UserPoolId" + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientID" ] }, - "authuserPoolGroupsAdminGroupRole": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" + "authfitnesstracker33f5545533f55455", + "Outputs.IdentityPoolId" ] }, "env": "main" } } }, - "authfitnesstracker9ceb2e7c9ceb2e7c": { + "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -380,10 +339,10 @@ "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -410,98 +369,139 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", "env": "main" } } }, - "authuserPoolGroups": { + "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { - "AuthRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "UnauthRoleArn": { + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", + "env": "main" + } + } + }, + "functionlognutrition": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ - "UnauthRole", - "Arn" + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "env": "main" + } + } + }, + "functionadmin": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientIDWeb" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.AppClientID" - ] - }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "Outputs.IdentityPoolId" - ] - }, "env": "main" } } }, - "functionadmin": { + "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, + "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", "env": "main" } } }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" + ] + }, + "functionlognutritionArn": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" + ] + }, "env": "main" } } }, - "functionlognutrition": { + "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { + "functionadminName": { "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" + "functionadmin", + "Outputs.Name" + ] + }, + "functionadminArn": { + "Fn::GetAtt": [ + "functionadmin", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" ] }, "env": "main" @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker9ceb2e7c9ceb2e7c" + "authfitnesstracker33f5545533f55455" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json index 3267de076bd..d15b0adea45 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -15,7 +15,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" }, { "attributes": [ @@ -35,7 +35,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" } ], "output": { @@ -43,7 +43,7 @@ "additionalAuthenticationProviders": [ { "apiKeyConfig": { - "apiKeyExpirationDate": "2026-03-29T02:07:08.737Z", + "apiKeyExpirationDate": "2026-03-31T02:59:49.009Z", "apiKeyExpirationDays": 7, "description": "graphql" }, @@ -53,7 +53,7 @@ "defaultAuthentication": { "authenticationType": "AMAZON_COGNITO_USER_POOLS", "userPoolConfig": { - "userPoolId": "authfitnesstracker9ceb2e7c9ceb2e7c" + "userPoolId": "authfitnesstracker33f5545533f55455" } } } @@ -76,7 +76,7 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" }, { "attributes": [ @@ -91,7 +91,7 @@ } }, "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": { + "fitnesstracker33f5545533f55455": { "customAuth": false, "dependsOn": [ { @@ -100,7 +100,7 @@ "Name" ], "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", "triggerProvider": "Cognito" } ], @@ -135,7 +135,7 @@ "IdentityPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" } ], "providerPlugin": "awscloudformation", @@ -151,13 +151,13 @@ "UserPoolId" ], "category": "auth", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c" + "resourceName": "fitnesstracker33f5545533f55455" } ], "providerPlugin": "awscloudformation", "service": "Lambda" }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "fitnesstracker33f5545533f55455PreSignup": { "build": true, "providerPlugin": "awscloudformation", "service": "Lambda" @@ -194,27 +194,27 @@ } ] }, - "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_DOMAINALLOWLIST": { + "AMPLIFY_function_fitnesstracker33f5545533f55455PreSignup_DOMAINALLOWLIST": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "resourceName": "fitnesstracker33f5545533f55455PreSignup" } ] }, - "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_deploymentBucketName": { + "AMPLIFY_function_fitnesstracker33f5545533f55455PreSignup_deploymentBucketName": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "resourceName": "fitnesstracker33f5545533f55455PreSignup" } ] }, - "AMPLIFY_function_fitnesstracker9ceb2e7c9ceb2e7cPreSignup_s3Key": { + "AMPLIFY_function_fitnesstracker33f5545533f55455PreSignup_s3Key": { "usedBy": [ { "category": "function", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "resourceName": "fitnesstracker33f5545533f55455PreSignup" } ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json index aaa8618655d..57322afb5e3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json index c3c652077d2..f87ac79fa6f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json @@ -1,7 +1,7 @@ { "permissions": { "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": [ + "fitnesstracker33f5545533f55455": [ "read" ] } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/amplify.state rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/custom-policies.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json similarity index 95% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index 04a3c261a89..e53fff724cb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -71,12 +71,12 @@ "FunctionName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" @@ -129,12 +129,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", { "Fn::Join": [ "", [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "fitnesstracker33f5545533f55455PreSignup", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json similarity index 61% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json index 911d754ad38..ddc07525de2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json @@ -3,14 +3,14 @@ "modules": [ "email-filter-allowlist" ], - "parentResource": "fitnesstracker9ceb2e7c9ceb2e7c", - "functionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "parentResource": "fitnesstracker33f5545533f55455", + "functionName": "fitnesstracker33f5545533f55455PreSignup", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", "parentStack": "auth", "triggerEnvs": "[]", "triggerDir": "/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-category-auth/provider-utils/awscloudformation/triggers/PreSignup", "triggerTemplate": "PreSignup.json.ejs", "triggerEventPath": "PreSignup.event.json", - "roleName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "roleName": "fitnesstracker33f5545533f55455PreSignup", "skipEdit": true } \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json new file mode 100644 index 00000000000..020628a583f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json @@ -0,0 +1,4 @@ +{ + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker33f5545533f55455PreSignup" +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/email-filter-allowlist.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/email-filter-allowlist.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/email-filter-allowlist.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/event.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/event.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/event.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/index.js similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/index.js rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/index.js diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/package.json similarity index 78% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/package.json index af2b3ccd67f..9d1790c9a5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/package.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/package.json @@ -1,5 +1,5 @@ { - "name": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "name": "fitnesstracker33f5545533f55455PreSignup", "version": "2.0.0", "description": "Lambda function generated by Amplify", "main": "index.js", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/yarn.lock similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/src/yarn.lock rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/src/yarn.lock diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json deleted file mode 100644 index 22e01f31ee2..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup/parameters.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json index e1789ef2c20..34e97f53ec9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 378b7faee9a..f717052117c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -17,7 +17,7 @@ export type AmplifyDependentResourcesAttributes = { } }, "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": { + "fitnesstracker33f5545533f55455": { "AppClientID": "string", "AppClientIDWeb": "string", "IdentityPoolId": "string", @@ -38,7 +38,7 @@ export type AmplifyDependentResourcesAttributes = { "Name": "string", "Region": "string" }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "fitnesstracker33f5545533f55455PreSignup": { "Arn": "string", "LambdaExecutionRole": "string", "LambdaExecutionRoleArn": "string", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json index c471cdfb02c..23d20a11c3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,36 +1,36 @@ { "main": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-6fc9a-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole", + "AuthRoleName": "amplify-fitnesstracker-main-a0537-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-6fc9a-unauthRole", - "StackName": "amplify-fitnesstracker-main-6fc9a", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", + "DeploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "UnauthRoleName": "amplify-fitnesstracker-main-a0537-unauthRole", + "StackName": "amplify-fitnesstracker-main-a0537", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" }, "categories": { "auth": { - "fitnesstracker9ceb2e7c9ceb2e7c": {}, + "fitnesstracker33f5545533f55455": {}, "userPoolGroups": {} }, "function": { - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "fitnesstracker33f5545533f55455PreSignup": { "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" }, "lognutrition": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" }, "admin": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip" } }, "api": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.outputs.json new file mode 100644 index 00000000000..247a6aabec3 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.parameters.json new file mode 100644 index 00000000000..6d3d672c6ad --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", + "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.template.json index 1e57eb1dcab..5cab0a1cea5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.template.json @@ -54,7 +54,7 @@ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", { "apiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "envName": "NONE" } @@ -64,7 +64,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tableName": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] }, @@ -72,7 +72,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tableName": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] }, @@ -80,7 +80,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tableName": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] } @@ -126,7 +126,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" } }, "AmplifyManagedTableOnEventRoleB4E71DEA": { @@ -183,7 +183,7 @@ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", { "apiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "envName": "NONE" } @@ -193,7 +193,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tableName": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] }, @@ -201,7 +201,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tableName": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] }, @@ -209,7 +209,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", { - "tableName": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tableName": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] } @@ -255,7 +255,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" } }, "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { @@ -281,7 +281,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" } }, "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { @@ -293,7 +293,7 @@ }, "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" }, - "Description": "AmplifyManagedTable - onEvent (amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Description": "AmplifyManagedTable - onEvent (amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", "Environment": { "Variables": { "WAITER_STATE_MACHINE_ARN": { @@ -338,7 +338,7 @@ "AmplifyManagedTableOnEventRoleB4E71DEA" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -353,7 +353,7 @@ }, "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" }, - "Description": "AmplifyManagedTable - isComplete (amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Description": "AmplifyManagedTable - isComplete (amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", "Handler": "amplify-table-manager-handler.isComplete", "Role": { "Fn::GetAtt": [ @@ -390,7 +390,7 @@ "AmplifyManagedTableIsCompleteRoleF825222C" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -435,7 +435,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" } }, "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { @@ -480,7 +480,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" } }, "AmplifyTableWaiterStateMachine060600BC": { @@ -513,7 +513,7 @@ "AmplifyTableWaiterStateMachineRole470BE899" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" } }, "CDKMetadata": { @@ -522,7 +522,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNQQ6CMBBFz8K+jAgs3IqJS2PgAGRoR1IobcIUiWl6dwPo6r2ft/g55GUJWYIrp1KNqdEdhAexJ9V4lKPAldugcYJQO0Pi9rI7n85o+dnmYVEYnDqFEO6LlV47u7W/R8FFi8zkGa4bBBdQLXIkXyFTFDWxW2ZJYq+Nx17bfj/7hSisUwQDn955DucLZMnAWqfzYr2eCOqDX96JKODPAAAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -794,12 +794,12 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Type": "String" } }, "Outputs": { - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn": { "Value": { "Fn::GetAtt": [ "TableManagerCustomProviderframeworkonEvent1DFC2ECC", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.parameters.json new file mode 100644 index 00000000000..ed214a6fa9b --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", + "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", + "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name", + "ParameterValue": "ExerciseTable" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", + "ParameterValue": "NONE_DS" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.template.json similarity index 81% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.template.json index 46466c82645..3bf2b06531b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.template.json @@ -4,10 +4,10 @@ "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "WorkoutProgramexercisesauth0Function", @@ -17,17 +17,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/WorkoutProgramexercisesauth0Function/WorkoutProgramexercisesauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/WorkoutProgramexercisesauth0Function/WorkoutProgramexercisesauth0Function.AppSyncFunction" } }, "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name" }, "FunctionVersion": "2018-05-29", "Name": "WorkoutProgramExercisesDataResolverFn", @@ -39,14 +39,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/WorkoutProgramExercisesDataResolverFn/WorkoutProgramExercisesDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/WorkoutProgramExercisesDataResolverFn/WorkoutProgramExercisesDataResolverFn.AppSyncFunction" } }, "WorkoutProgramexercisesResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "exercises", "Kind": "PIPELINE", @@ -72,7 +72,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"exercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -88,7 +88,7 @@ "Fn::Split": [ ":", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn" } ] } @@ -108,7 +108,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -120,11 +120,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -134,7 +134,7 @@ "TypeName": "WorkoutProgram" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/workoutProgramExercisesResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/workoutProgramExercisesResolver" } }, "CDKMetadata": { @@ -143,7 +143,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycWBlchcXSAByBnOUgBr6TXQgzh3Q06ffmXX4MuCsgS3CQ13ZTO9gX7kyRQ1wQ0k8JN2l3yFkUoCNxPlORQRjNRKFFI4bLIhw3sVc+PyCZYx5Xj3g7R4xmq6rkmcfNK/jjU79EEHCwPh2LXEYxyWbWG6w2yZBRrUx852DdB/fcLf5ddvqcAAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -415,25 +415,25 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { "Type": "String" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.outputs.json new file mode 100644 index 00000000000..b0c8e37470e --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "GetAttExerciseTableName", + "OutputValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", + "Description": "Your DynamoDB table name.", + "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:ExerciseTable:Name" + }, + { + "OutputKey": "GetAttExerciseTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.212", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:ExerciseTable:StreamArn" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name", + "OutputValue": "ExerciseTable" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.parameters.json similarity index 51% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.parameters.json index 38cdcad28a9..96d6ac2b889 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.parameters.json @@ -4,43 +4,43 @@ "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", "ParameterValue": "true" }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" - }, { "ParameterKey": "DynamoDBEnablePointInTimeRecovery", "ParameterValue": "false" }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", + "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" + }, { "ParameterKey": "DynamoDBBillingMode", "ParameterValue": "PAY_PER_REQUEST" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", - "ParameterValue": "NONE_DS" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" }, { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", + "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", - "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", - "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", + "ParameterValue": "NONE_DS" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.template.json index 51d8ce95a98..fa010d191e5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.template.json @@ -37,22 +37,22 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { "Type": "String" } }, @@ -353,9 +353,9 @@ "Type": "Custom::ImportedAmplifyDynamoDBTable", "Properties": { "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE" }, - "tableName": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "tableName": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", "attributeDefinitions": [ { "attributeName": "id", @@ -444,7 +444,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseTable/Default/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseTable/Default/Default" } }, "ExerciseIAMRole28D09384": { @@ -487,7 +487,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", { - "tablename": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tablename": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] }, @@ -495,7 +495,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", { - "tablename": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tablename": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] } @@ -513,7 +513,7 @@ [ "ExerciseIAMRoled0d0e6-", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "-NONE" ] @@ -543,14 +543,14 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseIAMRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseIAMRole/Resource" } }, "ExerciseDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DynamoDBConfig": { "AwsRegion": { @@ -596,17 +596,17 @@ "ExerciseIAMRole28D09384" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseDataSource/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseDataSource/Resource" } }, "QuerygetExerciseauth0FunctionQuerygetExerciseauth0FunctionAppSyncFunction0AC70BDB": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetExerciseauth0Function", @@ -616,17 +616,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerygetExerciseauth0Function/QuerygetExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerygetExerciseauth0Function/QuerygetExerciseauth0Function.AppSyncFunction" } }, "QuerygetExercisepostAuth0FunctionQuerygetExercisepostAuth0FunctionAppSyncFunction6287EBF7": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetExercisepostAuth0Function", @@ -636,14 +636,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerygetExercisepostAuth0Function/QuerygetExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerygetExercisepostAuth0Function/QuerygetExercisepostAuth0Function.AppSyncFunction" } }, "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -664,14 +664,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QueryGetExerciseDataResolverFn/QueryGetExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QueryGetExerciseDataResolverFn/QueryGetExerciseDataResolverFn.AppSyncFunction" } }, "GetExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "getExercise", "Kind": "PIPELINE", @@ -703,7 +703,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -742,7 +742,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -754,11 +754,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -768,17 +768,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/queryGetExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/queryGetExerciseResolver" } }, "QuerylistExercisesauth0FunctionQuerylistExercisesauth0FunctionAppSyncFunction51A6AD03": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistExercisesauth0Function", @@ -788,17 +788,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerylistExercisesauth0Function/QuerylistExercisesauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerylistExercisesauth0Function/QuerylistExercisesauth0Function.AppSyncFunction" } }, "QuerylistExercisespostAuth0FunctionQuerylistExercisespostAuth0FunctionAppSyncFunction0E7A24F2": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistExercisespostAuth0Function", @@ -808,14 +808,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QuerylistExercisespostAuth0Function/QuerylistExercisespostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerylistExercisespostAuth0Function/QuerylistExercisespostAuth0Function.AppSyncFunction" } }, "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -836,14 +836,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/QueryListExercisesDataResolverFn/QueryListExercisesDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QueryListExercisesDataResolverFn/QueryListExercisesDataResolverFn.AppSyncFunction" } }, "ListExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "listExercises", "Kind": "PIPELINE", @@ -875,7 +875,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -914,7 +914,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -926,11 +926,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -940,17 +940,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/queryListExercisesResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/queryListExercisesResolver" } }, "MutationcreateExerciseinit0FunctionMutationcreateExerciseinit0FunctionAppSyncFunction007007C2": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateExerciseinit0Function", @@ -960,17 +960,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationcreateExerciseinit0Function/MutationcreateExerciseinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationcreateExerciseinit0Function/MutationcreateExerciseinit0Function.AppSyncFunction" } }, "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateExerciseauth0Function", @@ -980,17 +980,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationcreateExerciseauth0Function/MutationcreateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationcreateExerciseauth0Function/MutationcreateExerciseauth0Function.AppSyncFunction" } }, "MutationcreateExercisepostAuth0FunctionMutationcreateExercisepostAuth0FunctionAppSyncFunctionFAC86A10": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateExercisepostAuth0Function", @@ -1000,14 +1000,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationcreateExercisepostAuth0Function/MutationcreateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationcreateExercisepostAuth0Function/MutationcreateExercisepostAuth0Function.AppSyncFunction" } }, "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1028,14 +1028,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationCreateExerciseDataResolverFn/MutationCreateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationCreateExerciseDataResolverFn/MutationCreateExerciseDataResolverFn.AppSyncFunction" } }, "CreateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "createExercise", "Kind": "PIPELINE", @@ -1073,7 +1073,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1112,7 +1112,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1124,11 +1124,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1138,17 +1138,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/mutationCreateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/mutationCreateExerciseResolver" } }, "MutationupdateExerciseinit0FunctionMutationupdateExerciseinit0FunctionAppSyncFunction2DE5E607": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateExerciseinit0Function", @@ -1158,14 +1158,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationupdateExerciseinit0Function/MutationupdateExerciseinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationupdateExerciseinit0Function/MutationupdateExerciseinit0Function.AppSyncFunction" } }, "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1186,17 +1186,17 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationupdateExerciseauth0Function/MutationupdateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationupdateExerciseauth0Function/MutationupdateExerciseauth0Function.AppSyncFunction" } }, "MutationupdateExercisepostAuth0FunctionMutationupdateExercisepostAuth0FunctionAppSyncFunction25628A67": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateExercisepostAuth0Function", @@ -1206,14 +1206,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationupdateExercisepostAuth0Function/MutationupdateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationupdateExercisepostAuth0Function/MutationupdateExercisepostAuth0Function.AppSyncFunction" } }, "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1234,14 +1234,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationUpdateExerciseDataResolverFn/MutationUpdateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationUpdateExerciseDataResolverFn/MutationUpdateExerciseDataResolverFn.AppSyncFunction" } }, "UpdateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "updateExercise", "Kind": "PIPELINE", @@ -1279,7 +1279,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1318,7 +1318,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1330,11 +1330,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1344,14 +1344,14 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/mutationUpdateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/mutationUpdateExerciseResolver" } }, "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1372,17 +1372,17 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationdeleteExerciseauth0Function/MutationdeleteExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationdeleteExerciseauth0Function/MutationdeleteExerciseauth0Function.AppSyncFunction" } }, "MutationdeleteExercisepostAuth0FunctionMutationdeleteExercisepostAuth0FunctionAppSyncFunction990C3B7B": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationdeleteExercisepostAuth0Function", @@ -1392,14 +1392,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationdeleteExercisepostAuth0Function/MutationdeleteExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationdeleteExercisepostAuth0Function/MutationdeleteExercisepostAuth0Function.AppSyncFunction" } }, "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1420,14 +1420,14 @@ "ExerciseDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/MutationDeleteExerciseDataResolverFn/MutationDeleteExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationDeleteExerciseDataResolverFn/MutationDeleteExerciseDataResolverFn.AppSyncFunction" } }, "DeleteExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "deleteExercise", "Kind": "PIPELINE", @@ -1459,7 +1459,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1498,7 +1498,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1510,11 +1510,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1524,17 +1524,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/mutationDeleteExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/mutationDeleteExerciseResolver" } }, "SubscriptiononCreateExerciseauth0FunctionSubscriptiononCreateExerciseauth0FunctionAppSyncFunctionC50A81C7": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateExerciseauth0Function", @@ -1544,17 +1544,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononCreateExerciseauth0Function/SubscriptiononCreateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononCreateExerciseauth0Function/SubscriptiononCreateExerciseauth0Function.AppSyncFunction" } }, "SubscriptiononCreateExercisepostAuth0FunctionSubscriptiononCreateExercisepostAuth0FunctionAppSyncFunction5A196A51": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateExercisepostAuth0Function", @@ -1564,17 +1564,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononCreateExercisepostAuth0Function/SubscriptiononCreateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononCreateExercisepostAuth0Function/SubscriptiononCreateExercisepostAuth0Function.AppSyncFunction" } }, "SubscriptionOnCreateExerciseDataResolverFnSubscriptionOnCreateExerciseDataResolverFnAppSyncFunctionAB5DF306": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnCreateExerciseDataResolverFn", @@ -1586,14 +1586,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptionOnCreateExerciseDataResolverFn/SubscriptionOnCreateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptionOnCreateExerciseDataResolverFn/SubscriptionOnCreateExerciseDataResolverFn.AppSyncFunction" } }, "SubscriptiononCreateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onCreateExercise", "Kind": "PIPELINE", @@ -1625,7 +1625,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1637,7 +1637,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1649,11 +1649,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1663,17 +1663,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/subscriptionOnCreateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/subscriptionOnCreateExerciseResolver" } }, "SubscriptiononUpdateExerciseauth0FunctionSubscriptiononUpdateExerciseauth0FunctionAppSyncFunction9193D2A0": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateExerciseauth0Function", @@ -1683,17 +1683,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononUpdateExerciseauth0Function/SubscriptiononUpdateExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononUpdateExerciseauth0Function/SubscriptiononUpdateExerciseauth0Function.AppSyncFunction" } }, "SubscriptiononUpdateExercisepostAuth0FunctionSubscriptiononUpdateExercisepostAuth0FunctionAppSyncFunctionDE028CEA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateExercisepostAuth0Function", @@ -1703,17 +1703,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononUpdateExercisepostAuth0Function/SubscriptiononUpdateExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononUpdateExercisepostAuth0Function/SubscriptiononUpdateExercisepostAuth0Function.AppSyncFunction" } }, "SubscriptionOnUpdateExerciseDataResolverFnSubscriptionOnUpdateExerciseDataResolverFnAppSyncFunctionA7AA88CA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnUpdateExerciseDataResolverFn", @@ -1725,14 +1725,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptionOnUpdateExerciseDataResolverFn/SubscriptionOnUpdateExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptionOnUpdateExerciseDataResolverFn/SubscriptionOnUpdateExerciseDataResolverFn.AppSyncFunction" } }, "SubscriptiononUpdateExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onUpdateExercise", "Kind": "PIPELINE", @@ -1764,7 +1764,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1776,7 +1776,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1788,11 +1788,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1802,17 +1802,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/subscriptionOnUpdateExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/subscriptionOnUpdateExerciseResolver" } }, "SubscriptiononDeleteExerciseauth0FunctionSubscriptiononDeleteExerciseauth0FunctionAppSyncFunction54DF160B": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteExerciseauth0Function", @@ -1822,17 +1822,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononDeleteExerciseauth0Function/SubscriptiononDeleteExerciseauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononDeleteExerciseauth0Function/SubscriptiononDeleteExerciseauth0Function.AppSyncFunction" } }, "SubscriptiononDeleteExercisepostAuth0FunctionSubscriptiononDeleteExercisepostAuth0FunctionAppSyncFunctionAF03921E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteExercisepostAuth0Function", @@ -1842,17 +1842,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptiononDeleteExercisepostAuth0Function/SubscriptiononDeleteExercisepostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononDeleteExercisepostAuth0Function/SubscriptiononDeleteExercisepostAuth0Function.AppSyncFunction" } }, "SubscriptionOnDeleteExerciseDataResolverFnSubscriptionOnDeleteExerciseDataResolverFnAppSyncFunctionA2A2A8C9": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnDeleteExerciseDataResolverFn", @@ -1864,14 +1864,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/SubscriptionOnDeleteExerciseDataResolverFn/SubscriptionOnDeleteExerciseDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptionOnDeleteExerciseDataResolverFn/SubscriptionOnDeleteExerciseDataResolverFn.AppSyncFunction" } }, "SubscriptiononDeleteExerciseResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onDeleteExercise", "Kind": "PIPELINE", @@ -1903,7 +1903,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1915,7 +1915,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1927,11 +1927,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1941,17 +1941,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/subscriptionOnDeleteExerciseResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/subscriptionOnDeleteExerciseResolver" } }, "ExerciseOwnerDataResolverFnExerciseOwnerDataResolverFnAppSyncFunction8652EC02": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "ExerciseOwnerDataResolverFn", @@ -1963,14 +1963,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/ExerciseOwnerDataResolverFn/ExerciseOwnerDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseOwnerDataResolverFn/ExerciseOwnerDataResolverFn.AppSyncFunction" } }, "ExerciseownerResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "owner", "Kind": "PIPELINE", @@ -1990,7 +1990,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Exercise\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -2002,7 +2002,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -2014,11 +2014,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -2028,7 +2028,7 @@ "TypeName": "Exercise" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/exerciseOwnerResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/exerciseOwnerResolver" } }, "CDKMetadata": { @@ -2037,7 +2037,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -2057,7 +2057,7 @@ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "GetAtt:ExerciseTable:StreamArn" ] @@ -2067,14 +2067,14 @@ }, "GetAttExerciseTableName": { "Description": "Your DynamoDB table name.", - "Value": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "Value": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", "Export": { "Name": { "Fn::Join": [ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "GetAtt:ExerciseTable:Name" ] @@ -2082,7 +2082,7 @@ } } }, - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name": { "Value": { "Fn::GetAtt": [ "ExerciseDataSource", @@ -2090,7 +2090,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn": { "Value": { "Fn::GetAtt": [ "ExerciseTable", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.outputs.json new file mode 100644 index 00000000000..bc276ddef47 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "GetAttMealTableName", + "OutputValue": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", + "Description": "Your DynamoDB table name.", + "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:MealTable:Name" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" + }, + { + "OutputKey": "GetAttMealTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.935", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:MealTable:StreamArn" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.parameters.json similarity index 51% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.parameters.json index 38cdcad28a9..96d6ac2b889 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.parameters.json @@ -4,43 +4,43 @@ "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", "ParameterValue": "true" }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" - }, { "ParameterKey": "DynamoDBEnablePointInTimeRecovery", "ParameterValue": "false" }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", + "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" + }, { "ParameterKey": "DynamoDBBillingMode", "ParameterValue": "PAY_PER_REQUEST" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", - "ParameterValue": "NONE_DS" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" }, { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", + "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", - "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", - "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", + "ParameterValue": "NONE_DS" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.template.json index 9a63657aa60..b05d293abf6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.template.json @@ -37,22 +37,22 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { "Type": "String" } }, @@ -353,9 +353,9 @@ "Type": "Custom::ImportedAmplifyDynamoDBTable", "Properties": { "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE" }, - "tableName": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "tableName": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", "attributeDefinitions": [ { "attributeName": "id", @@ -418,7 +418,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MealTable/Default/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MealTable/Default/Default" } }, "MealIAMRoleEDE19E15": { @@ -461,7 +461,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", { - "tablename": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tablename": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] }, @@ -469,7 +469,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", { - "tablename": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tablename": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] } @@ -487,7 +487,7 @@ [ "MealIAMRole54b7fd-", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "-NONE" ] @@ -517,14 +517,14 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MealIAMRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MealIAMRole/Resource" } }, "MealDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DynamoDBConfig": { "AwsRegion": { @@ -570,17 +570,17 @@ "MealIAMRoleEDE19E15" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MealDataSource/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MealDataSource/Resource" } }, "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetMealauth0Function", @@ -590,17 +590,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerygetMealauth0Function/QuerygetMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerygetMealauth0Function/QuerygetMealauth0Function.AppSyncFunction" } }, "QuerygetMealpostAuth0FunctionQuerygetMealpostAuth0FunctionAppSyncFunction9E0F196D": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetMealpostAuth0Function", @@ -610,14 +610,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerygetMealpostAuth0Function/QuerygetMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerygetMealpostAuth0Function/QuerygetMealpostAuth0Function.AppSyncFunction" } }, "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -638,14 +638,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QueryGetMealDataResolverFn/QueryGetMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QueryGetMealDataResolverFn/QueryGetMealDataResolverFn.AppSyncFunction" } }, "GetMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "getMeal", "Kind": "PIPELINE", @@ -677,7 +677,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -716,7 +716,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -728,11 +728,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -742,17 +742,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/queryGetMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/queryGetMealResolver" } }, "QuerylistMealsauth0FunctionQuerylistMealsauth0FunctionAppSyncFunctionB47607B5": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistMealsauth0Function", @@ -762,17 +762,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerylistMealsauth0Function/QuerylistMealsauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerylistMealsauth0Function/QuerylistMealsauth0Function.AppSyncFunction" } }, "QuerylistMealspostAuth0FunctionQuerylistMealspostAuth0FunctionAppSyncFunction15CC850C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistMealspostAuth0Function", @@ -782,14 +782,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QuerylistMealspostAuth0Function/QuerylistMealspostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerylistMealspostAuth0Function/QuerylistMealspostAuth0Function.AppSyncFunction" } }, "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -810,14 +810,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/QueryListMealsDataResolverFn/QueryListMealsDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QueryListMealsDataResolverFn/QueryListMealsDataResolverFn.AppSyncFunction" } }, "ListMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "listMeals", "Kind": "PIPELINE", @@ -849,7 +849,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMeals\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -888,7 +888,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -900,11 +900,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -914,17 +914,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/queryListMealsResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/queryListMealsResolver" } }, "MutationcreateMealinit0FunctionMutationcreateMealinit0FunctionAppSyncFunctionC8456643": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateMealinit0Function", @@ -934,17 +934,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationcreateMealinit0Function/MutationcreateMealinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationcreateMealinit0Function/MutationcreateMealinit0Function.AppSyncFunction" } }, "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateMealauth0Function", @@ -954,17 +954,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationcreateMealauth0Function/MutationcreateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationcreateMealauth0Function/MutationcreateMealauth0Function.AppSyncFunction" } }, "MutationcreateMealpostAuth0FunctionMutationcreateMealpostAuth0FunctionAppSyncFunctionF0FDFBD0": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateMealpostAuth0Function", @@ -974,14 +974,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationcreateMealpostAuth0Function/MutationcreateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationcreateMealpostAuth0Function/MutationcreateMealpostAuth0Function.AppSyncFunction" } }, "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1002,14 +1002,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationCreateMealDataResolverFn/MutationCreateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationCreateMealDataResolverFn/MutationCreateMealDataResolverFn.AppSyncFunction" } }, "CreateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "createMeal", "Kind": "PIPELINE", @@ -1047,7 +1047,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1086,7 +1086,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1098,11 +1098,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1112,17 +1112,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/mutationCreateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/mutationCreateMealResolver" } }, "MutationupdateMealinit0FunctionMutationupdateMealinit0FunctionAppSyncFunction80065D7F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateMealinit0Function", @@ -1132,14 +1132,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationupdateMealinit0Function/MutationupdateMealinit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationupdateMealinit0Function/MutationupdateMealinit0Function.AppSyncFunction" } }, "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1160,17 +1160,17 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationupdateMealauth0Function/MutationupdateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationupdateMealauth0Function/MutationupdateMealauth0Function.AppSyncFunction" } }, "MutationupdateMealpostAuth0FunctionMutationupdateMealpostAuth0FunctionAppSyncFunction5B29DBED": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateMealpostAuth0Function", @@ -1180,14 +1180,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationupdateMealpostAuth0Function/MutationupdateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationupdateMealpostAuth0Function/MutationupdateMealpostAuth0Function.AppSyncFunction" } }, "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1208,14 +1208,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationUpdateMealDataResolverFn/MutationUpdateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationUpdateMealDataResolverFn/MutationUpdateMealDataResolverFn.AppSyncFunction" } }, "UpdateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "updateMeal", "Kind": "PIPELINE", @@ -1253,7 +1253,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1292,7 +1292,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1304,11 +1304,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1318,14 +1318,14 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/mutationUpdateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/mutationUpdateMealResolver" } }, "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1346,17 +1346,17 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationdeleteMealauth0Function/MutationdeleteMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationdeleteMealauth0Function/MutationdeleteMealauth0Function.AppSyncFunction" } }, "MutationdeleteMealpostAuth0FunctionMutationdeleteMealpostAuth0FunctionAppSyncFunctionC9BB36B8": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationdeleteMealpostAuth0Function", @@ -1366,14 +1366,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationdeleteMealpostAuth0Function/MutationdeleteMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationdeleteMealpostAuth0Function/MutationdeleteMealpostAuth0Function.AppSyncFunction" } }, "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1394,14 +1394,14 @@ "MealDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/MutationDeleteMealDataResolverFn/MutationDeleteMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationDeleteMealDataResolverFn/MutationDeleteMealDataResolverFn.AppSyncFunction" } }, "DeleteMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "deleteMeal", "Kind": "PIPELINE", @@ -1433,7 +1433,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1472,7 +1472,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1484,11 +1484,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1498,17 +1498,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/mutationDeleteMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/mutationDeleteMealResolver" } }, "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateMealauth0Function", @@ -1518,17 +1518,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononCreateMealauth0Function/SubscriptiononCreateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononCreateMealauth0Function/SubscriptiononCreateMealauth0Function.AppSyncFunction" } }, "SubscriptiononCreateMealpostAuth0FunctionSubscriptiononCreateMealpostAuth0FunctionAppSyncFunction820A2BD2": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateMealpostAuth0Function", @@ -1538,17 +1538,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononCreateMealpostAuth0Function/SubscriptiononCreateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononCreateMealpostAuth0Function/SubscriptiononCreateMealpostAuth0Function.AppSyncFunction" } }, "SubscriptionOnCreateMealDataResolverFnSubscriptionOnCreateMealDataResolverFnAppSyncFunctionF1334F8F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnCreateMealDataResolverFn", @@ -1560,14 +1560,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptionOnCreateMealDataResolverFn/SubscriptionOnCreateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptionOnCreateMealDataResolverFn/SubscriptionOnCreateMealDataResolverFn.AppSyncFunction" } }, "SubscriptiononCreateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onCreateMeal", "Kind": "PIPELINE", @@ -1599,7 +1599,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1611,7 +1611,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1623,11 +1623,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1637,17 +1637,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/subscriptionOnCreateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/subscriptionOnCreateMealResolver" } }, "SubscriptiononUpdateMealauth0FunctionSubscriptiononUpdateMealauth0FunctionAppSyncFunction2DF3B7A1": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateMealauth0Function", @@ -1657,17 +1657,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononUpdateMealauth0Function/SubscriptiononUpdateMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononUpdateMealauth0Function/SubscriptiononUpdateMealauth0Function.AppSyncFunction" } }, "SubscriptiononUpdateMealpostAuth0FunctionSubscriptiononUpdateMealpostAuth0FunctionAppSyncFunction6DDD0917": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateMealpostAuth0Function", @@ -1677,17 +1677,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononUpdateMealpostAuth0Function/SubscriptiononUpdateMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononUpdateMealpostAuth0Function/SubscriptiononUpdateMealpostAuth0Function.AppSyncFunction" } }, "SubscriptionOnUpdateMealDataResolverFnSubscriptionOnUpdateMealDataResolverFnAppSyncFunction7E09A153": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnUpdateMealDataResolverFn", @@ -1699,14 +1699,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptionOnUpdateMealDataResolverFn/SubscriptionOnUpdateMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptionOnUpdateMealDataResolverFn/SubscriptionOnUpdateMealDataResolverFn.AppSyncFunction" } }, "SubscriptiononUpdateMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onUpdateMeal", "Kind": "PIPELINE", @@ -1738,7 +1738,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1750,7 +1750,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1762,11 +1762,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1776,17 +1776,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/subscriptionOnUpdateMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/subscriptionOnUpdateMealResolver" } }, "SubscriptiononDeleteMealauth0FunctionSubscriptiononDeleteMealauth0FunctionAppSyncFunctionE50EF48C": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteMealauth0Function", @@ -1796,17 +1796,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononDeleteMealauth0Function/SubscriptiononDeleteMealauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononDeleteMealauth0Function/SubscriptiononDeleteMealauth0Function.AppSyncFunction" } }, "SubscriptiononDeleteMealpostAuth0FunctionSubscriptiononDeleteMealpostAuth0FunctionAppSyncFunction6FA10C5F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteMealpostAuth0Function", @@ -1816,17 +1816,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptiononDeleteMealpostAuth0Function/SubscriptiononDeleteMealpostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononDeleteMealpostAuth0Function/SubscriptiononDeleteMealpostAuth0Function.AppSyncFunction" } }, "SubscriptionOnDeleteMealDataResolverFnSubscriptionOnDeleteMealDataResolverFnAppSyncFunction0A2F61AD": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnDeleteMealDataResolverFn", @@ -1838,14 +1838,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/SubscriptionOnDeleteMealDataResolverFn/SubscriptionOnDeleteMealDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptionOnDeleteMealDataResolverFn/SubscriptionOnDeleteMealDataResolverFn.AppSyncFunction" } }, "SubscriptiononDeleteMealResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onDeleteMeal", "Kind": "PIPELINE", @@ -1877,7 +1877,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1889,7 +1889,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1901,11 +1901,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1915,7 +1915,7 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/subscriptionOnDeleteMealResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/subscriptionOnDeleteMealResolver" } }, "CDKMetadata": { @@ -1924,7 +1924,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1944,7 +1944,7 @@ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "GetAtt:MealTable:StreamArn" ] @@ -1954,14 +1954,14 @@ }, "GetAttMealTableName": { "Description": "Your DynamoDB table name.", - "Value": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "Value": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", "Export": { "Name": { "Fn::Join": [ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "GetAtt:MealTable:Name" ] @@ -1969,7 +1969,7 @@ } } }, - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn": { "Value": { "Fn::GetAtt": [ "MealTable", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.outputs.json similarity index 54% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.outputs.json index 8547db3c37e..c750785a346 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.outputs.json @@ -1,14 +1,14 @@ [ { "OutputKey": "GetAttWorkoutProgramTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:13:40.073", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:04:23.623", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:WorkoutProgramTable:StreamArn" + "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:WorkoutProgramTable:StreamArn" }, { "OutputKey": "GetAttWorkoutProgramTableName", - "OutputValue": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "OutputValue": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", "Description": "Your DynamoDB table name.", - "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:WorkoutProgramTable:Name" + "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:WorkoutProgramTable:Name" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.parameters.json similarity index 51% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.parameters.json index 38cdcad28a9..96d6ac2b889 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.parameters.json @@ -4,43 +4,43 @@ "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", "ParameterValue": "true" }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" - }, { "ParameterKey": "DynamoDBEnablePointInTimeRecovery", "ParameterValue": "false" }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", + "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" + }, { "ParameterKey": "DynamoDBBillingMode", "ParameterValue": "PAY_PER_REQUEST" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", - "ParameterValue": "NONE_DS" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" }, { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", + "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", - "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", - "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", + "ParameterValue": "NONE_DS" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.template.json index 60c31d30707..185f385ee91 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataWorkoutProgramNestedStackWorkou-93OL8N89CFYW.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.template.json @@ -37,22 +37,22 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { "Type": "String" } }, @@ -353,9 +353,9 @@ "Type": "Custom::ImportedAmplifyDynamoDBTable", "Properties": { "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE" }, - "tableName": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "tableName": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", "attributeDefinitions": [ { "attributeName": "id", @@ -418,7 +418,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramTable/Default/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramTable/Default/Default" } }, "WorkoutProgramIAMRoleB75B98D5": { @@ -461,7 +461,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", { - "tablename": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tablename": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] }, @@ -469,7 +469,7 @@ "Fn::Sub": [ "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", { - "tablename": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "tablename": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" } ] } @@ -487,7 +487,7 @@ [ "WorkoutProgramIAMRol516c57-", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "-NONE" ] @@ -517,14 +517,14 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramIAMRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramIAMRole/Resource" } }, "WorkoutProgramDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DynamoDBConfig": { "AwsRegion": { @@ -570,17 +570,17 @@ "WorkoutProgramIAMRoleB75B98D5" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramDataSource/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramDataSource/Resource" } }, "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetWorkoutProgramauth0Function", @@ -590,17 +590,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgramauth0Function/QuerygetWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgramauth0Function/QuerygetWorkoutProgramauth0Function.AppSyncFunction" } }, "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerygetWorkoutProgrampostAuth0Function", @@ -610,14 +610,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgrampostAuth0Function/QuerygetWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgrampostAuth0Function/QuerygetWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -638,14 +638,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QueryGetWorkoutProgramDataResolverFn/QueryGetWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QueryGetWorkoutProgramDataResolverFn/QueryGetWorkoutProgramDataResolverFn.AppSyncFunction" } }, "GetWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "getWorkoutProgram", "Kind": "PIPELINE", @@ -677,7 +677,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -716,7 +716,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -728,11 +728,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -742,17 +742,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/queryGetWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/queryGetWorkoutProgramResolver" } }, "QuerylistWorkoutProgramsauth0FunctionQuerylistWorkoutProgramsauth0FunctionAppSyncFunctionEDC95461": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistWorkoutProgramsauth0Function", @@ -762,17 +762,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramsauth0Function/QuerylistWorkoutProgramsauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramsauth0Function/QuerylistWorkoutProgramsauth0Function.AppSyncFunction" } }, "QuerylistWorkoutProgramspostAuth0FunctionQuerylistWorkoutProgramspostAuth0FunctionAppSyncFunction784BDD23": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "QuerylistWorkoutProgramspostAuth0Function", @@ -782,14 +782,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramspostAuth0Function/QuerylistWorkoutProgramspostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramspostAuth0Function/QuerylistWorkoutProgramspostAuth0Function.AppSyncFunction" } }, "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -810,14 +810,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/QueryListWorkoutProgramsDataResolverFn/QueryListWorkoutProgramsDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QueryListWorkoutProgramsDataResolverFn/QueryListWorkoutProgramsDataResolverFn.AppSyncFunction" } }, "ListWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "listWorkoutPrograms", "Kind": "PIPELINE", @@ -849,7 +849,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listWorkoutPrograms\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -888,7 +888,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -900,11 +900,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -914,17 +914,17 @@ "TypeName": "Query" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/queryListWorkoutProgramsResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/queryListWorkoutProgramsResolver" } }, "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateWorkoutPrograminit0Function", @@ -934,17 +934,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationcreateWorkoutPrograminit0Function/MutationcreateWorkoutPrograminit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationcreateWorkoutPrograminit0Function/MutationcreateWorkoutPrograminit0Function.AppSyncFunction" } }, "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateWorkoutProgramauth0Function", @@ -954,17 +954,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgramauth0Function/MutationcreateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgramauth0Function/MutationcreateWorkoutProgramauth0Function.AppSyncFunction" } }, "MutationcreateWorkoutProgrampostAuth0FunctionMutationcreateWorkoutProgrampostAuth0FunctionAppSyncFunctionC1F2C501": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationcreateWorkoutProgrampostAuth0Function", @@ -974,14 +974,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgrampostAuth0Function/MutationcreateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgrampostAuth0Function/MutationcreateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1002,14 +1002,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationCreateWorkoutProgramDataResolverFn/MutationCreateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationCreateWorkoutProgramDataResolverFn/MutationCreateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "CreateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "createWorkoutProgram", "Kind": "PIPELINE", @@ -1047,7 +1047,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1086,7 +1086,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1098,11 +1098,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1112,17 +1112,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/mutationCreateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/mutationCreateWorkoutProgramResolver" } }, "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateWorkoutPrograminit0Function", @@ -1132,14 +1132,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationupdateWorkoutPrograminit0Function/MutationupdateWorkoutPrograminit0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationupdateWorkoutPrograminit0Function/MutationupdateWorkoutPrograminit0Function.AppSyncFunction" } }, "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1160,17 +1160,17 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgramauth0Function/MutationupdateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgramauth0Function/MutationupdateWorkoutProgramauth0Function.AppSyncFunction" } }, "MutationupdateWorkoutProgrampostAuth0FunctionMutationupdateWorkoutProgrampostAuth0FunctionAppSyncFunction848486DA": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationupdateWorkoutProgrampostAuth0Function", @@ -1180,14 +1180,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgrampostAuth0Function/MutationupdateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgrampostAuth0Function/MutationupdateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1208,14 +1208,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationUpdateWorkoutProgramDataResolverFn/MutationUpdateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationUpdateWorkoutProgramDataResolverFn/MutationUpdateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "UpdateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "updateWorkoutProgram", "Kind": "PIPELINE", @@ -1253,7 +1253,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1292,7 +1292,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1304,11 +1304,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1318,14 +1318,14 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/mutationUpdateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/mutationUpdateWorkoutProgramResolver" } }, "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1346,17 +1346,17 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgramauth0Function/MutationdeleteWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgramauth0Function/MutationdeleteWorkoutProgramauth0Function.AppSyncFunction" } }, "MutationdeleteWorkoutProgrampostAuth0FunctionMutationdeleteWorkoutProgrampostAuth0FunctionAppSyncFunction1A56FB4E": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "MutationdeleteWorkoutProgrampostAuth0Function", @@ -1366,14 +1366,14 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgrampostAuth0Function/MutationdeleteWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgrampostAuth0Function/MutationdeleteWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { "Fn::GetAtt": [ @@ -1394,14 +1394,14 @@ "WorkoutProgramDataSource" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/MutationDeleteWorkoutProgramDataResolverFn/MutationDeleteWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationDeleteWorkoutProgramDataResolverFn/MutationDeleteWorkoutProgramDataResolverFn.AppSyncFunction" } }, "DeleteWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "deleteWorkoutProgram", "Kind": "PIPELINE", @@ -1433,7 +1433,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", { @@ -1472,7 +1472,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1484,11 +1484,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1498,17 +1498,17 @@ "TypeName": "Mutation" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/mutationDeleteWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/mutationDeleteWorkoutProgramResolver" } }, "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateWorkoutProgramauth0Function", @@ -1518,17 +1518,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgramauth0Function/SubscriptiononCreateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgramauth0Function/SubscriptiononCreateWorkoutProgramauth0Function.AppSyncFunction" } }, "SubscriptiononCreateWorkoutProgrampostAuth0FunctionSubscriptiononCreateWorkoutProgrampostAuth0FunctionAppSyncFunction1FBC8B34": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononCreateWorkoutProgrampostAuth0Function", @@ -1538,17 +1538,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgrampostAuth0Function/SubscriptiononCreateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgrampostAuth0Function/SubscriptiononCreateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnCreateWorkoutProgramDataResolverFn", @@ -1560,14 +1560,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptionOnCreateWorkoutProgramDataResolverFn/SubscriptionOnCreateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptionOnCreateWorkoutProgramDataResolverFn/SubscriptionOnCreateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "SubscriptiononCreateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onCreateWorkoutProgram", "Kind": "PIPELINE", @@ -1599,7 +1599,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1611,7 +1611,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1623,11 +1623,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1637,17 +1637,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/subscriptionOnCreateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/subscriptionOnCreateWorkoutProgramResolver" } }, "SubscriptiononUpdateWorkoutProgramauth0FunctionSubscriptiononUpdateWorkoutProgramauth0FunctionAppSyncFunctionEC33DFA9": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateWorkoutProgramauth0Function", @@ -1657,17 +1657,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgramauth0Function/SubscriptiononUpdateWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgramauth0Function/SubscriptiononUpdateWorkoutProgramauth0Function.AppSyncFunction" } }, "SubscriptiononUpdateWorkoutProgrampostAuth0FunctionSubscriptiononUpdateWorkoutProgrampostAuth0FunctionAppSyncFunctionB64D3021": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononUpdateWorkoutProgrampostAuth0Function", @@ -1677,17 +1677,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgrampostAuth0Function/SubscriptiononUpdateWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgrampostAuth0Function/SubscriptiononUpdateWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "SubscriptionOnUpdateWorkoutProgramDataResolverFnSubscriptionOnUpdateWorkoutProgramDataResolverFnAppSyncFunction09BC3352": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnUpdateWorkoutProgramDataResolverFn", @@ -1699,14 +1699,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptionOnUpdateWorkoutProgramDataResolverFn/SubscriptionOnUpdateWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptionOnUpdateWorkoutProgramDataResolverFn/SubscriptionOnUpdateWorkoutProgramDataResolverFn.AppSyncFunction" } }, "SubscriptiononUpdateWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onUpdateWorkoutProgram", "Kind": "PIPELINE", @@ -1738,7 +1738,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1750,7 +1750,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1762,11 +1762,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1776,17 +1776,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/subscriptionOnUpdateWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/subscriptionOnUpdateWorkoutProgramResolver" } }, "SubscriptiononDeleteWorkoutProgramauth0FunctionSubscriptiononDeleteWorkoutProgramauth0FunctionAppSyncFunction798D646D": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteWorkoutProgramauth0Function", @@ -1796,17 +1796,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgramauth0Function/SubscriptiononDeleteWorkoutProgramauth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgramauth0Function/SubscriptiononDeleteWorkoutProgramauth0Function.AppSyncFunction" } }, "SubscriptiononDeleteWorkoutProgrampostAuth0FunctionSubscriptiononDeleteWorkoutProgrampostAuth0FunctionAppSyncFunctionF1F4A2FC": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptiononDeleteWorkoutProgrampostAuth0Function", @@ -1816,17 +1816,17 @@ "ResponseMappingTemplate": "$util.toJson({})" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgrampostAuth0Function/SubscriptiononDeleteWorkoutProgrampostAuth0Function.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgrampostAuth0Function/SubscriptiononDeleteWorkoutProgrampostAuth0Function.AppSyncFunction" } }, "SubscriptionOnDeleteWorkoutProgramDataResolverFnSubscriptionOnDeleteWorkoutProgramDataResolverFnAppSyncFunction7AE965FB": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "SubscriptionOnDeleteWorkoutProgramDataResolverFn", @@ -1838,14 +1838,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/SubscriptionOnDeleteWorkoutProgramDataResolverFn/SubscriptionOnDeleteWorkoutProgramDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptionOnDeleteWorkoutProgramDataResolverFn/SubscriptionOnDeleteWorkoutProgramDataResolverFn.AppSyncFunction" } }, "SubscriptiononDeleteWorkoutProgramResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "onDeleteWorkoutProgram", "Kind": "PIPELINE", @@ -1877,7 +1877,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1889,7 +1889,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1901,11 +1901,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -1915,17 +1915,17 @@ "TypeName": "Subscription" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/subscriptionOnDeleteWorkoutProgramResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/subscriptionOnDeleteWorkoutProgramResolver" } }, "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" }, "FunctionVersion": "2018-05-29", "Name": "WorkoutProgramOwnerDataResolverFn", @@ -1937,14 +1937,14 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/WorkoutProgramOwnerDataResolverFn/WorkoutProgramOwnerDataResolverFn.AppSyncFunction" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramOwnerDataResolverFn/WorkoutProgramOwnerDataResolverFn.AppSyncFunction" } }, "WorkoutProgramownerResolver": { "Type": "AWS::AppSync::Resolver", "Properties": { "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "FieldName": "owner", "Kind": "PIPELINE", @@ -1964,7 +1964,7 @@ [ "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", { @@ -1976,7 +1976,7 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", { @@ -1988,11 +1988,11 @@ }, ":assumed-role/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" }, "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] @@ -2002,7 +2002,7 @@ "TypeName": "WorkoutProgram" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/workoutProgramOwnerResolver" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/workoutProgramOwnerResolver" } }, "CDKMetadata": { @@ -2011,7 +2011,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -2031,7 +2031,7 @@ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "GetAtt:WorkoutProgramTable:StreamArn" ] @@ -2041,14 +2041,14 @@ }, "GetAttWorkoutProgramTableName": { "Description": "Your DynamoDB table name.", - "Value": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "Value": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", "Export": { "Name": { "Fn::Join": [ ":", [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" }, "GetAtt:WorkoutProgramTable:Name" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.outputs.json new file mode 100644 index 00000000000..6ce6d9f7248 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.outputs.json @@ -0,0 +1,38 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref", + "OutputValue": "us-east-1_KGveHFLxc" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref", + "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", + "OutputValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref", + "OutputValue": "admin-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", + "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef", + "OutputValue": "fitnesstracker33f5545533f55455PreSignup-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef", + "OutputValue": "1o40oi80febsgsdamen2i1gnfd" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json similarity index 90% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json index eabf888a35e..b2a19c89b11 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json @@ -23,7 +23,7 @@ "LambdaConfig": { "PreSignUp": { "Fn::GetAtt": [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42", + "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02", "Arn" ] } @@ -72,7 +72,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" } }, "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { @@ -81,7 +81,7 @@ "Action": "lambda:InvokeFunction", "FunctionName": { "Fn::GetAtt": [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42", + "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02", "Arn" ] }, @@ -94,7 +94,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/PreSignUpCognito" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" } }, "amplifyAuthUserPoolNativeAppClient79534448": { @@ -117,7 +117,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" } }, "amplifyAuthUserPoolAppClient2626C6F8": { @@ -151,7 +151,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/UserPoolAppClient/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" } }, "amplifyAuthIdentityPool3FDE84CC": { @@ -205,7 +205,7 @@ "SupportedLoginProviders": {} }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPool" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" } }, "amplifyAuthauthenticatedUserRoleD8DA3689": { @@ -257,7 +257,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/authenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" } }, "amplifyAuthunauthenticatedUserRole2B524D9E": { @@ -309,7 +309,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/unauthenticatedUserRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, "amplifyAuthIdentityPoolRoleAttachment045F17C8": { @@ -363,7 +363,7 @@ "amplifyAuthUserPoolAppClient2626C6F8" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/IdentityPoolRoleAttachment" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" } }, "amplifyAuthAdminGroupRole766878DC": { @@ -415,7 +415,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroupRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" } }, "amplifyAuthAdminGroupCC42FF04": { @@ -434,10 +434,10 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/amplifyAuth/AdminGroup" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -481,7 +481,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -490,10 +490,10 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" } }, - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42": { + "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { "Type": "AWS::Lambda::Function", "Properties": { "Architectures": [ @@ -503,7 +503,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371.zip" + "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" }, "Environment": { "Variables": { @@ -518,12 +518,12 @@ "EphemeralStorage": { "Size": 512 }, - "FunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main", + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, "Role": { "Fn::GetAtt": [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE", + "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", "Arn" ] }, @@ -543,7 +543,7 @@ }, { "Key": "amplify:friendly-name", - "Value": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" }, { "Key": "created-by", @@ -553,11 +553,11 @@ "Timeout": 25 }, "DependsOn": [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaServiceRole059288DE" + "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.760ad82965dad99ed53d951c493a36c4179e9dd370854fff7b2cd69b86fc3371", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", + "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -565,7 +565,7 @@ "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -578,7 +578,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" } }, "admingen2mainlambdaServiceRole439B1792": { @@ -634,7 +634,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" } }, "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { @@ -661,7 +661,7 @@ { "Ref": "AWS::AccountId" }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID" + ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" ] ] } @@ -677,7 +677,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "admingen2mainlambdaECF7211C": { @@ -690,15 +690,15 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a.zip" + "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" }, "Environment": { "Variables": { "ENV": "gen2-main", "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { "Ref": "amplifyAuthUserPool4BA7F805" } } @@ -744,8 +744,8 @@ "admingen2mainlambdaServiceRole439B1792" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.4e723dc014ae2f9078fd069f23775b347aee3a961eecd6ad8e96385276460c1a", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", + "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -776,7 +776,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess1/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" } }, "userpoolAccess268F187DB": { @@ -805,7 +805,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess2/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" } }, "userpoolAccess3956C62F8": { @@ -834,7 +834,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess3/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" } }, "userpoolAccess4A84025C3": { @@ -863,7 +863,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess4/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" } }, "userpoolAccess585E2FB32": { @@ -892,7 +892,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess5/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" } }, "userpoolAccess600DA4CB0": { @@ -921,7 +921,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess6/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" } }, "userpoolAccess76F9C91C1": { @@ -950,7 +950,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/userpoolAccess7/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" } }, "CDKMetadata": { @@ -959,7 +959,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1231,42 +1231,42 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { "Value": { "Ref": "amplifyAuthUserPool4BA7F805" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef": { + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { "Value": { "Ref": "amplifyAuthUserPoolAppClient2626C6F8" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { "Value": { "Ref": "amplifyAuthIdentityPool3FDE84CC" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { "Value": { - "Ref": "fitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambda9B996C42" + "Ref": "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { "Value": { "Ref": "admingen2mainlambdaECF7211C" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Value": { "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { "Value": { "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { "Value": { "Fn::GetAtt": [ "admingen2mainlambdaECF7211C", @@ -1274,7 +1274,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { "Value": { "Ref": "amplifyAuthAdminGroupRole766878DC" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.outputs.json new file mode 100644 index 00000000000..3083780a1d2 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.outputs.json @@ -0,0 +1,26 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", + "OutputValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIDefaultApiKey7DAA10FCApiKey", + "OutputValue": "da2-s7g7rnzffjfsvp6a5as4utznce" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BGraphQLUrl", + "OutputValue": "https://lpsucva2qjdofmkpzenwokjsue.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0917740FDestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-fitnesstracker-ge-amplifydataamplifycodege-qcmnmg6hhy5m" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Ref", + "OutputValue": "lognutrition-gen2-main" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.parameters.json similarity index 52% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.parameters.json index 59d1fb810b6..6ecdf1c9579 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.parameters.json @@ -4,35 +4,35 @@ "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", "ParameterValue": "true" }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" - }, { "ParameterKey": "DynamoDBEnablePointInTimeRecovery", "ParameterValue": "false" }, { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", + "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref", - "ParameterValue": "us-east-1_mQEsDQ1lC" + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" }, { "ParameterKey": "DynamoDBModelTableWriteIOPS", "ParameterValue": "5" }, { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", - "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref", + "ParameterValue": "us-east-1_KGveHFLxc" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.template.json similarity index 80% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.template.json index b49a224a022..ac561915d3d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.template.json @@ -39,12 +39,12 @@ }, "DefaultAction": "ALLOW", "UserPoolId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref" } } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/Resource" } }, "amplifyDataGraphQLAPITransformerSchemaFF50A789": { @@ -61,7 +61,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/TransformerSchema" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/TransformerSchema" } }, "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { @@ -74,10 +74,10 @@ ] }, "Description": "graphql", - "Expires": 1774832761 + "Expires": 1774928171 }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/DefaultApiKey" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/DefaultApiKey" } }, "amplifyDataGraphQLAPINONEDS684BF699": { @@ -94,14 +94,14 @@ "Type": "NONE" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/NONE_DS/Resource" } }, "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" @@ -146,7 +146,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/e196781c904575721375d59a240f99923ff104a298c1fdf313ff66f196d891d8.json" + "/f37420166f9ac08186a3cdad4004870869529236abd5f4fbf5ce02519bd0d2d9.json" ] ] } @@ -154,8 +154,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerF6C912A7.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManager8867D646.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -178,32 +178,32 @@ "DynamoDBEnableServerSideEncryption": { "Ref": "DynamoDBEnableServerSideEncryption" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { "Fn::GetAtt": [ "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" } }, "Tags": [ @@ -244,7 +244,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/17902e785c4e729dbb0ee9d37a4e996a4642c2e06d8a5cac3d6a9e88732b03bc.json" + "/f49170eb7c9d78b1e4c6b9e7c434a75f6cb5412d1ebd22ebf34ddfdb7a0b1763.json" ] ] } @@ -255,8 +255,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/WorkoutProgram.NestedStack/WorkoutProgram.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataWorkoutProgramF3A49908.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram.NestedStack/WorkoutProgram.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataWorkoutProgramDF6E3FC5.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -279,32 +279,32 @@ "DynamoDBEnableServerSideEncryption": { "Ref": "DynamoDBEnableServerSideEncryption" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { "Fn::GetAtt": [ "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" } }, "Tags": [ @@ -345,7 +345,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/12d625aa6cd011e2e75d539e7054752a21e29f1cc060ee87fcaf8108f16d6fea.json" + "/654e5882a5d4df0c80b2afc1f525ea4f0b5f32771060945aead2e22641a51060.json" ] ] } @@ -356,8 +356,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Exercise.NestedStack/Exercise.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExercise9942F32B.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise.NestedStack/Exercise.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExercise2AF6D082.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -380,32 +380,32 @@ "DynamoDBEnableServerSideEncryption": { "Ref": "DynamoDBEnableServerSideEncryption" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource89A06036Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableMa39604183": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { "Fn::GetAtt": [ "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" } }, "Tags": [ @@ -446,7 +446,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/e0909ac34eda8c3d4fe59e45563f423b9a8202895c2c90834cb65221aabbb46d.json" + "/90bc7c76efd60f7749effd654020bce258df5515192150cb2cffb73afb4b121a.json" ] ] } @@ -457,8 +457,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/Meal.NestedStack/Meal.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMeal7D390DE4.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal.NestedStack/Meal.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMeal183E05A4.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -466,38 +466,38 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", "ApiId" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { "Fn::GetAtt": [ "amplifyDataGraphQLAPINONEDS684BF699", "Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name": { "Fn::GetAtt": [ "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn": { "Fn::GetAtt": [ "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" } }, "Tags": [ @@ -538,7 +538,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/55d3af84db44ef02e9712cd140af686369ed562a906a5cd15fdf4071b773b4b0.json" + "/453d993ef8245185b0fdbb2c736c1d61b4ab7885cfa293984e7c652e2006f0d4.json" ] ] } @@ -550,8 +550,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataConnectionStackC9FBC7D1.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataConnectionStackBA42D0E4.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -607,7 +607,7 @@ "Value": "true" }, { - "Key": "aws-cdk:cr-owned:1f2b0d25", + "Key": "aws-cdk:cr-owned:85b13048", "Value": "true" }, { @@ -619,7 +619,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" } }, "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { @@ -674,7 +674,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" } }, "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { @@ -696,7 +696,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" } }, "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { @@ -711,7 +711,7 @@ "Description": "/opt/awscli/aws" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", "aws:asset:is-bundled": false, "aws:asset:property": "Content" @@ -753,7 +753,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" } }, "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { @@ -778,7 +778,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" } }, "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { @@ -817,7 +817,7 @@ "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", "aws:asset:property": "Code" } @@ -871,7 +871,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" } }, "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { @@ -1005,7 +1005,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" } }, "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { @@ -1061,7 +1061,7 @@ "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -1088,7 +1088,7 @@ "Value": "true" }, { - "Key": "aws-cdk:cr-owned:d9a91a74", + "Key": "aws-cdk:cr-owned:eadf0ce8", "Value": "true" }, { @@ -1100,7 +1100,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucket/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucket/Resource" } }, "modelIntrospectionSchemaBucketPolicy4DAB0D15": { @@ -1189,7 +1189,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucket/Policy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucket/Policy/Resource" } }, "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { @@ -1211,7 +1211,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" } }, "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { @@ -1226,7 +1226,7 @@ "Description": "/opt/awscli/aws" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", "aws:asset:is-bundled": false, "aws:asset:property": "Content" @@ -1262,13 +1262,13 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" } }, "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_GRAPHQL_ENDPOINT", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1284,13 +1284,13 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" } }, "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1303,13 +1303,13 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" } }, "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1320,13 +1320,13 @@ "Value": "modelIntrospectionSchema.json" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" } }, "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { "Type": "AWS::SSM::Parameter", "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-a09655d799/AMPLIFY_DATA_DEFAULT_NAME", + "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_DEFAULT_NAME", "Tags": { "amplify:app-id": "fitnesstracker", "amplify:branch-name": "gen2-main", @@ -1337,7 +1337,7 @@ "Value": "amplifyData" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" } }, "lognutritiongen2mainlambdaServiceRoleEF64897B": { @@ -1393,7 +1393,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/lognutrition-gen2-main-lambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/lognutrition-gen2-main-lambda/ServiceRole/Resource" } }, "lognutritiongen2mainlambdaServiceRoleDefaultPolicy710D0C37": { @@ -1425,7 +1425,7 @@ { "Fn::GetAtt": [ "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn" ] } ] @@ -1441,7 +1441,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/lognutrition-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/lognutrition-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" } }, "lognutritiongen2mainlambda9BD8C969": { @@ -1454,7 +1454,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "95bfa16faa7a499bfbb1e8a9f09b98f992b7cb9d303063244fd1159bf57c0ed7.zip" + "S3Key": "2bcd86cf1eee34f16acb031224a530896ecfe84b4004ec66912a8281b73f0356.zip" }, "Environment": { "Variables": { @@ -1470,7 +1470,7 @@ "API_FITNESSTRACKER_MEALTABLE_ARN": { "Fn::GetAtt": [ "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn" ] }, "API_FITNESSTRACKER_MEALTABLE_NAME": { @@ -1488,7 +1488,7 @@ { "Fn::GetAtt": [ "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn" ] } ] @@ -1543,8 +1543,8 @@ "lognutritiongen2mainlambdaServiceRoleEF64897B" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/lognutrition-gen2-main-lambda/Resource", - "aws:asset:path": "asset.95bfa16faa7a499bfbb1e8a9f09b98f992b7cb9d303063244fd1159bf57c0ed7", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/lognutrition-gen2-main-lambda/Resource", + "aws:asset:path": "asset.2bcd86cf1eee34f16acb031224a530896ecfe84b4004ec66912a8281b73f0356", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -1555,7 +1555,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUdu0h6E318F6aJFlMbDLMASMTKdM9OGJcjND8H8fZDVJ156KnUi+J5KPFGdydnsrry7gwFNV76eaNjIukAPWVQC1Fytk13mFAg68jtC23Fsl44OH9vm3Llq6B0ZRNnZEvj8VLb2JKvWMBhJQtPSIvVg4i3MIUOWiZWPP0SD4Rsb7Tu0xJCZ7P+PE0B+yk7vJW5FJDt/IkWKZnxZdcHPUGPDbZocq8GQQ/5X9S2Rq6TSp/qwpx59QlhOqAAEN2k8K+5h81JV2n7a2jjW22vWJfk2anwABzBhYFskMQoPZ1CBj2dgn6NH/QM/krKjIbjUGZ792VoWEnJyyOYGDIDAyrpweP2+05+1kbxDMRsYqeLLbJXgwGNCP/DE4ylhbV+OO5WI05yZlY/P5lR0HZ05HmFoe/dcKOg2xhgMrTbI4cKlpnEuM81YBtmS3/zR/V3Tp3QvV6PMykyC548uX2Uxef5FXFzsmmvrOBjIoV9n+BdBFrHc2AwAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1598,16 +1598,16 @@ ], "Description": "Enable server side encryption powered by KMS." }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { "Type": "String" } }, @@ -1878,12 +1878,12 @@ } }, "Outputs": { - "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Ref": { "Value": { "Ref": "lognutritiongen2mainlambda9BD8C969" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { "Value": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", @@ -1891,7 +1891,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAGraphQLUrl": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BGraphQLUrl": { "Value": { "Fn::GetAtt": [ "amplifyDataGraphQLAPI42A6FA33", @@ -1899,7 +1899,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8E4BD6ABDestinationBucketArn": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0917740FDestinationBucketArn": { "Value": { "Fn::GetAtt": [ "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", @@ -1907,7 +1907,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIDefaultApiKeyE10BC731ApiKey": { + "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIDefaultApiKey7DAA10FCApiKey": { "Value": { "Fn::GetAtt": [ "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", @@ -1915,7 +1915,7 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn": { + "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn": { "Value": { "Fn::GetAtt": [ "lognutritiongen2mainlambda9BD8C969", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.outputs.json new file mode 100644 index 00000000000..bbfcb44ca35 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi15E05C08Ref", + "OutputValue": "3tygfqh1kh" + }, + { + "OutputKey": "RestApiEndpoint0551178A", + "OutputValue": "https://3tygfqh1kh.execute-api.us-east-1.amazonaws.com/prod/" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApiDeploymentStageprodB49BA490Ref", + "OutputValue": "prod" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.parameters.json new file mode 100644 index 00000000000..b6b8c1039a9 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.template.json similarity index 86% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.template.json index d7912bc3ee7..cfafb176428 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.template.json @@ -25,7 +25,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Resource" } }, "RestApiCloudWatchRoleE3ED6605": { @@ -79,7 +79,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/CloudWatchRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/CloudWatchRole/Resource" } }, "RestApiAccount7C83CF5A": { @@ -98,10 +98,10 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Account" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Account" } }, - "RestApiDeployment180EC503546d318a996a44726021c4af228bfd46": { + "RestApiDeployment180EC5035a234307e06871ce9f41d5b69075e5fe": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "Automatically created by the RestApi construct", @@ -120,7 +120,7 @@ "RestApiDefault5XXD8CFC37C" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Deployment/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Deployment/Resource", "aws:cdk:do-not-refactor": true } }, @@ -128,7 +128,7 @@ "Type": "AWS::ApiGateway::Stage", "Properties": { "DeploymentId": { - "Ref": "RestApiDeployment180EC503546d318a996a44726021c4af228bfd46" + "Ref": "RestApiDeployment180EC5035a234307e06871ce9f41d5b69075e5fe" }, "RestApiId": { "Ref": "RestApi0C43BF4B" @@ -157,7 +157,7 @@ "RestApiAccount7C83CF5A" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/DeploymentStage.prod/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/DeploymentStage.prod/Resource" } }, "RestApiadmin6E2AFAD8": { @@ -175,7 +175,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/Resource" } }, "RestApiadminOPTIONS9579A88D": { @@ -218,15 +218,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/OPTIONS/Resource" } }, - "RestApiadminANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadmin44FFEED1": { + "RestApiadminANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadmin6E3EDE44": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -259,15 +259,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin" } }, - "RestApiadminANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadminD21F14BB": { + "RestApiadminANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadmin68E49803": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -296,7 +296,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin" } }, "RestApiadminANY959B010C": { @@ -321,7 +321,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" }, "/invocations" ] @@ -336,7 +336,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/ANY/Resource" } }, "RestApiadminproxy34EEEF46": { @@ -351,7 +351,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/Resource" } }, "RestApiadminproxyOPTIONS0428B0AB": { @@ -394,15 +394,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/OPTIONS/Resource" } }, - "RestApiadminproxyANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadminproxy15EA3F86": { + "RestApiadminproxyANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadminproxyE1CD8302": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -435,15 +435,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin.{proxy+}" } }, - "RestApiadminproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AEANYadminproxyCA6BDB78": { + "RestApiadminproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadminproxyE5AA6688": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -472,7 +472,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi22C035AE.ANY..admin.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin.{proxy+}" } }, "RestApiadminproxyANYAD871D2E": { @@ -497,7 +497,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" }, "/invocations" ] @@ -512,7 +512,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/Resource" } }, "RestApiDefault4XX291F46B7": { @@ -530,7 +530,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default4XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default4XX/Resource" } }, "RestApiDefault5XXD8CFC37C": { @@ -548,7 +548,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/RestApi/Default5XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default5XX/Resource" } }, "Gen1adminapiPolicy55C22DB4": { @@ -575,7 +575,7 @@ { "Ref": "AWS::AccountId" }, - ":bbk7dedp01/*/GET/*" + ":oxq86r59h6/*/GET/*" ] ] } @@ -586,12 +586,12 @@ "PolicyName": "Gen1adminapiPolicy55C22DB4", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/Gen1adminapiPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/Gen1adminapiPolicy/Resource" } }, "adminAdminPolicyED58DCB3": { @@ -659,12 +659,12 @@ "PolicyName": "adminAdminPolicyED58DCB3", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/adminAdminPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/adminAdminPolicy/Resource" } }, "CDKMetadata": { @@ -673,7 +673,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X3NIxqh10HSJyAKXsA5CVmeMs/1S5dVfXdUUgFEyd/vy927Fa3m41er2DgxrpL4+mop1dkQXcQsBcFA79PkOkEggOMejLIssukHj/iDe6sTX0U9YTZpzFglGJv0kHghMVVMMip7yw+AP+F5c/KLyifyRW10L5L1/H3+bneY5Bzivwz+l8t55UVsyIIejLJ1yWl7pMnO5ZYaVYewtGBLga7QMyU4lwa3nrJvcwqJof6zHdfbavvt3q9OjNR0/VRKKA2tX4D1w/yhFMBAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -705,12 +705,12 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi59ABC85BRef": { + "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi15E05C08Ref": { "Value": { "Ref": "RestApi0C43BF4B" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApiDeploymentStageprod3A54AD90Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApiDeploymentStageprodB49BA490Ref": { "Value": { "Ref": "RestApiDeploymentStageprod3855DE66" } @@ -983,13 +983,13 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { "Type": "String" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.outputs.json new file mode 100644 index 00000000000..a721256f026 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiEC7FBBC7Ref", + "OutputValue": "klqsuoycl8" + }, + { + "OutputKey": "RestApiEndpoint0551178A", + "OutputValue": "https://klqsuoycl8.execute-api.us-east-1.amazonaws.com/prod/" + }, + { + "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiDeploymentStageprod41F1D9FFRef", + "OutputValue": "prod" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.parameters.json new file mode 100644 index 00000000000..b14479fe049 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", + "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.template.json similarity index 89% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.template.json index 332fbac6f2c..c0e5129c687 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.template.json @@ -25,7 +25,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Resource" } }, "RestApiCloudWatchRoleE3ED6605": { @@ -79,7 +79,7 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/CloudWatchRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/CloudWatchRole/Resource" } }, "RestApiAccount7C83CF5A": { @@ -98,10 +98,10 @@ "UpdateReplacePolicy": "Retain", "DeletionPolicy": "Retain", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Account" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Account" } }, - "RestApiDeployment180EC503d495388c1d958d92be722f42111dede2": { + "RestApiDeployment180EC50372b8910fb447646fe0ec851ddd88eb80": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "Automatically created by the RestApi construct", @@ -121,7 +121,7 @@ "RestApiDefault5XXD8CFC37C" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Deployment/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Deployment/Resource", "aws:cdk:do-not-refactor": true } }, @@ -129,7 +129,7 @@ "Type": "AWS::ApiGateway::Stage", "Properties": { "DeploymentId": { - "Ref": "RestApiDeployment180EC503d495388c1d958d92be722f42111dede2" + "Ref": "RestApiDeployment180EC50372b8910fb447646fe0ec851ddd88eb80" }, "RestApiId": { "Ref": "RestApi0C43BF4B" @@ -158,7 +158,7 @@ "RestApiAccount7C83CF5A" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/DeploymentStage.prod/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/DeploymentStage.prod/Resource" } }, "RestApinutrition3942DEFC": { @@ -176,7 +176,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/Resource" } }, "RestApinutritionlog525763DE": { @@ -191,7 +191,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/Resource" } }, "RestApinutritionlogOPTIONS0916370A": { @@ -234,15 +234,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/OPTIONS/Resource" } }, - "RestApinutritionlogANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlog9FE434DE": { + "RestApinutritionlogANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlog0E7B0360": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -275,15 +275,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log" } }, - "RestApinutritionlogANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlog638CFC51": { + "RestApinutritionlogANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlogC943788E": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -312,7 +312,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log" } }, "RestApinutritionlogANY08C15E55": { @@ -337,7 +337,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" }, "/invocations" ] @@ -352,7 +352,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/Resource" } }, "RestApinutritionlogproxyA0E81954": { @@ -367,7 +367,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/Resource" } }, "RestApinutritionlogproxyOPTIONS695D781E": { @@ -410,15 +410,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/OPTIONS/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/OPTIONS/Resource" } }, - "RestApinutritionlogproxyANYApiPermissionamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlogproxy049F99D2": { + "RestApinutritionlogproxyANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlogproxy30B465F0": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -451,15 +451,15 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log.{proxy+}" } }, - "RestApinutritionlogproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DCANYnutritionlogproxyE4A0E696": { + "RestApinutritionlogproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlogproxy7276060A": { "Type": "AWS::Lambda::Permission", "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" }, "Principal": "apigateway.amazonaws.com", "SourceArn": { @@ -488,7 +488,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiBC4946DC.ANY..nutrition.log.{proxy+}" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log.{proxy+}" } }, "RestApinutritionlogproxyANY89358520": { @@ -513,7 +513,7 @@ }, ":lambda:path/2015-03-31/functions/", { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" }, "/invocations" ] @@ -528,7 +528,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/Resource" } }, "RestApiDefault4XX291F46B7": { @@ -546,7 +546,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default4XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default4XX/Resource" } }, "RestApiDefault5XXD8CFC37C": { @@ -564,7 +564,7 @@ } }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/RestApi/Default5XX/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default5XX/Resource" } }, "Gen1nutritionapiPolicyAC846721": { @@ -592,7 +592,7 @@ { "Ref": "AWS::AccountId" }, - ":ekto8iln0h/*/POST/*" + ":hmydcaubcb/*/POST/*" ] ] }, @@ -612,7 +612,7 @@ { "Ref": "AWS::AccountId" }, - ":ekto8iln0h/*/GET/*" + ":hmydcaubcb/*/GET/*" ] ] }, @@ -632,7 +632,7 @@ { "Ref": "AWS::AccountId" }, - ":ekto8iln0h/*/PUT/*" + ":hmydcaubcb/*/PUT/*" ] ] }, @@ -652,7 +652,7 @@ { "Ref": "AWS::AccountId" }, - ":ekto8iln0h/*/DELETE/*" + ":hmydcaubcb/*/DELETE/*" ] ] } @@ -664,12 +664,12 @@ "PolicyName": "Gen1nutritionapiPolicyAC846721", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/Gen1nutritionapiPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/Gen1nutritionapiPolicy/Resource" } }, "nutritionlogAuthPolicyF60C3901": { @@ -881,12 +881,12 @@ "PolicyName": "nutritionlogAuthPolicyF60C3901", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/nutritionlogAuthPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/nutritionlogAuthPolicy/Resource" } }, "nutritionlogAdminPolicy5FCB013F": { @@ -1098,12 +1098,12 @@ "PolicyName": "nutritionlogAdminPolicy5FCB013F", "Roles": [ { - "Ref": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" + "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" } ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/nutritionlogAdminPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/nutritionlogAdminPolicy/Resource" } }, "CDKMetadata": { @@ -1112,7 +1112,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X3NIxqh10HSJyAKXsA5CVmeMs/1S5dVfXdUUgFEyd/vy927Fa3m41er2DgxrpL4+mop1dkQXcQsBcFA79PkOkEggOMejLIssukHj/iDe6sTX0U9YTZpzFglGJv0kHghMVVMMip7yw+AP+F5c/KLyifyRW10L5L1/H3+bneY5Bzivwz+l8t55UVsyIIejLJ1yWl7pMnO5ZYaVYewtGBLga7QMyU4lwa3nrJvcwqJof6zHdfbavvt3q9OjNR0/VRKKA2tX4D1w/yhFMBAAA=" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } @@ -1144,12 +1144,12 @@ ] } }, - "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApi1438AE73Ref": { + "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiEC7FBBC7Ref": { "Value": { "Ref": "RestApi0C43BF4B" } }, - "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiDeploymentStageprodD1246DCDRef": { + "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiDeploymentStageprod41F1D9FFRef": { "Value": { "Ref": "RestApiDeploymentStageprod3855DE66" } @@ -1422,13 +1422,13 @@ } }, "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Type": "String" }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { "Type": "String" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.outputs.json similarity index 79% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.outputs.json index 4a2f22d3f04..c449c2cb961 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "webClientId", - "OutputValue": "dgddko7evul00or8262g7n9ub" + "OutputValue": "1o40oi80febsgsdamen2i1gnfd" }, { "OutputKey": "socialProviders", @@ -17,7 +17,7 @@ }, { "OutputKey": "oauthClientId", - "OutputValue": "dgddko7evul00or8262g7n9ub" + "OutputValue": "1o40oi80febsgsdamen2i1gnfd" }, { "OutputKey": "allowUnauthenticatedIdentities", @@ -53,7 +53,7 @@ }, { "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-mpyed5y2pvbcjl2qcbxuq2rspe" + "OutputValue": "da2-s7g7rnzffjfsvp6a5as4utznce" }, { "OutputKey": "awsAppsyncAuthenticationType", @@ -61,7 +61,7 @@ }, { "OutputKey": "customOutputs", - "OutputValue": "{\"custom\":{\"API\":{\"adminapi-gen2-main\":{\"endpoint\":\"https://rr7ckdesd4.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"adminapi-gen2-main\"},\"nutritionapi-gen2-main\":{\"endpoint\":\"https://e2y3anael5.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"nutritionapi-gen2-main\"}}},\"version\":\"1.4\"}" + "OutputValue": "{\"custom\":{\"API\":{\"adminapi-gen2-main\":{\"endpoint\":\"https://3tygfqh1kh.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"adminapi-gen2-main\"},\"nutritionapi-gen2-main\":{\"endpoint\":\"https://klqsuoycl8.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"nutritionapi-gen2-main\"}}},\"version\":\"1.4\"}" }, { "OutputKey": "oauthRedirectSignIn", @@ -73,11 +73,11 @@ }, { "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://7ltandzu5zbxvcqrr24edz4hym.appsync-api.us-east-1.amazonaws.com/graphql" + "OutputValue": "https://lpsucva2qjdofmkpzenwokjsue.appsync-api.us-east-1.amazonaws.com/graphql" }, { "OutputKey": "awsAppsyncApiId", - "OutputValue": "uhg6hv7zmzav5doaroa4tocwv4" + "OutputValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" }, { "OutputKey": "authRegion", @@ -85,7 +85,7 @@ }, { "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-fitnesstracker-ge-amplifydataamplifycodege-cxlnc2wmwnpq/model-schema.graphql" + "OutputValue": "s3://amplify-fitnesstracker-ge-amplifydataamplifycodege-qcmnmg6hhy5m/model-schema.graphql" }, { "OutputKey": "groups", @@ -93,7 +93,7 @@ }, { "OutputKey": "definedFunctions", - "OutputValue": "[\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main\",\"admin-gen2-main\",\"lognutrition-gen2-main\"]" + "OutputValue": "[\"fitnesstracker33f5545533f55455PreSignup-gen2-main\",\"admin-gen2-main\",\"lognutrition-gen2-main\"]" }, { "OutputKey": "passwordlessOptions", @@ -117,11 +117,11 @@ }, { "OutputKey": "userPoolId", - "OutputValue": "us-east-1_mQEsDQ1lC" + "OutputValue": "us-east-1_KGveHFLxc" }, { "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" + "OutputValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" }, { "OutputKey": "verificationMechanisms", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.parameters.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.parameters.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.template.json similarity index 81% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.template.json index 5c0f04feaf7..052eaffe513 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.template.json @@ -72,7 +72,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref" ] } }, @@ -80,7 +80,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef" ] } }, @@ -88,7 +88,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" ] } }, @@ -146,7 +146,7 @@ "Value": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef" ] } }, @@ -162,21 +162,21 @@ { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef" ] }, "\",\"", { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref" ] }, "\",\"", { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Ref" ] }, "\"]" @@ -188,7 +188,7 @@ "Value": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" ] } }, @@ -196,7 +196,7 @@ "Value": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAGraphQLUrl" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BGraphQLUrl" ] } }, @@ -229,7 +229,7 @@ { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8E4BD6ABDestinationBucketArn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0917740FDestinationBucketArn" ] } ] @@ -249,7 +249,7 @@ "Value": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIDefaultApiKeyE10BC731ApiKey" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIDefaultApiKey7DAA10FCApiKey" ] } }, @@ -265,7 +265,7 @@ { "Fn::GetAtt": [ "restapistackadminapi43EA27F6", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi59ABC85BRef" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi15E05C08Ref" ] }, ".execute-api.", @@ -280,7 +280,7 @@ { "Fn::GetAtt": [ "restapistackadminapi43EA27F6", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApiDeploymentStageprod3A54AD90Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApiDeploymentStageprodB49BA490Ref" ] }, "\",\"region\":\"", @@ -291,7 +291,7 @@ { "Fn::GetAtt": [ "restapistacknutritionapi72914ECD", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApi1438AE73Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiEC7FBBC7Ref" ] }, ".execute-api.", @@ -306,7 +306,7 @@ { "Fn::GetAtt": [ "restapistacknutritionapi72914ECD", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiDeploymentStageprodD1246DCDRef" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiDeploymentStageprod41F1D9FFRef" ] }, "\",\"region\":\"", @@ -369,7 +369,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" } }, "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { @@ -396,7 +396,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" } }, "AmplifyBranchLinkerCustomResourceLambda582AC093": { @@ -406,7 +406,7 @@ "S3Bucket": { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "S3Key": "c46b855c2bbfeb6a46b246009556bfe72f2c2079543b813d7312946ee01480a0.zip" + "S3Key": "577f96ca22e59dc05e8bc39fd45b966f0ad8e25629b3b9b29d444de63fb17b12.zip" }, "Handler": "index.handler", "Role": { @@ -441,8 +441,8 @@ "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.c46b855c2bbfeb6a46b246009556bfe72f2c2079543b813d7312946ee01480a0", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceLambda/Resource", + "aws:asset:path": "asset.577f96ca22e59dc05e8bc39fd45b966f0ad8e25629b3b9b29d444de63fb17b12", "aws:asset:is-bundled": true, "aws:asset:property": "Code" } @@ -496,7 +496,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" } }, "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { @@ -551,7 +551,7 @@ ] }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" } }, "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { @@ -563,7 +563,7 @@ }, "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider)", + "Description": "AWS CDK resource provider framework - onEvent (amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider)", "Environment": { "Variables": { "USER_ON_EVENT_FUNCTION_ARN": { @@ -611,7 +611,7 @@ "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" ], "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", "aws:asset:is-bundled": false, "aws:asset:property": "Code" @@ -632,7 +632,7 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/AmplifyBranchLinker/CustomResource/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResource/Default" } }, "auth179371D7": { @@ -672,7 +672,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/c98b0e8b3d82622c79869766e34c83f60f8a4afd502c4e1e8c8a7727a5ba0dd6.json" + "/cf42b4b21cde117f111d5c596f26c0d0d33834a6fcf5c3ca7ec443ab7b961ca6.json" ] ] } @@ -680,8 +680,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799auth8002D454.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebauthA2EE5AF1.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -689,28 +689,28 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" ] } }, @@ -748,7 +748,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/9af9fdc04980936cf2e97dd00dd4f23f7c8d09e874b4d1759996528c6b1b2ad0.json" + "/2fca8ecbae58008f1b1aded02efbc20cd87689de55be452c699f6a28a85af107.json" ] ] } @@ -756,8 +756,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799data7EFD86C7.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdata8B7F9287.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -765,22 +765,22 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" ] } }, @@ -818,7 +818,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/02247b1aa7791fcc8cd6660bc8c0d6b04aea06c33687347dbdce86e7cb25d36d.json" + "/8b7a6079311343b27ad9c9f2567281b7b85489b503537696f832d8af79a699eb.json" ] ] } @@ -826,8 +826,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-adminapi.NestedStack/rest-api-stack-adminapi.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapi0C1629F8.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi.NestedStack/rest-api-stack-adminapi.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapi4B6BAEAB.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -835,22 +835,22 @@ "Type": "AWS::CloudFormation::Stack", "Properties": { "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn": { "Fn::GetAtt": [ "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" ] }, - "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref": { + "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { "Fn::GetAtt": [ "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref" + "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" ] } }, @@ -888,7 +888,7 @@ { "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" }, - "/230c849ea4015778484fa403f7ff7cb83d41e7a5b4a53ea1a867dc966a2f0081.json" + "/9a84370ad847765ed4eb615e833384812e6b681a28efa0db729a14d1282b6310.json" ] ] } @@ -896,8 +896,8 @@ "UpdateReplacePolicy": "Delete", "DeletionPolicy": "Delete", "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/rest-api-stack-nutritionapi.NestedStack/rest-api-stack-nutritionapi.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapi279DE088.nested.template.json", + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi.NestedStack/rest-api-stack-nutritionapi.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapi29813263.nested.template.json", "aws:asset:property": "TemplateURL" } }, @@ -907,7 +907,7 @@ "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2dHHJtDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWW+z1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoLuGVNkU3xaA7vCYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70s8fWA202nIkVM3mRkrFc+AXlCmgwZAQAA" }, "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-a09655d799/CDKMetadata/Default" + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/CDKMetadata/Default" }, "Condition": "CDKMetadataAvailable" } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json deleted file mode 100644 index 163e9b73460..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent9609CD96Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-533GcbPIs8Jk" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json deleted file mode 100644 index 2874d152002..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataAmplifyTableManagerNestedStackA-NPJK8GP5TJ4A.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", - "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json deleted file mode 100644 index a0c53ba02c5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataConnectionStackNestedStackConne-1Q5Y2AFMDU94J.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPINONEDSEDA66472Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", - "ParameterValue": "uhg6hv7zmzav5doaroa4tocwv4" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseNestedStackExerciseNestedStackResourceC9DAC2F3Outputsamplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name", - "ParameterValue": "ExerciseTable" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", - "ParameterValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json deleted file mode 100644 index bc97b58fab7..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataExerciseNestedStackExerciseNest-1FIMJDNV42OQ7.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttExerciseTableName", - "OutputValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", - "Description": "Your DynamoDB table name.", - "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:ExerciseTable:Name" - }, - { - "OutputKey": "GetAttExerciseTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:28.559", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:ExerciseTable:StreamArn" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseDataSourceDCCBFD77Name", - "OutputValue": "ExerciseTable" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataExerciseExerciseTableECDBC610TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json deleted file mode 100644 index 806d542aba6..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a096-amplifyDataMealNestedStackMealNestedStackR-1T4FU8CXY0GK6.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "GetAttMealTableName", - "OutputValue": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", - "Description": "Your DynamoDB table name.", - "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:MealTable:Name" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataMealMealTableFD0BC2A7TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main" - }, - { - "OutputKey": "GetAttMealTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:27.982", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "uhg6hv7zmzav5doaroa4tocwv4:GetAtt:MealTable:StreamArn" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json deleted file mode 100644 index acc4660e422..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-auth179371D7-W7QZVETRVIH.outputs.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPoolAppClientE9EEF58ARef", - "OutputValue": "dgddko7evul00or8262g7n9ub" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref", - "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FRef", - "OutputValue": "admin-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthIdentityPoolF929A427Ref", - "OutputValue": "us-east-1:ba67548f-183b-4887-96be-2b3e5c93c842" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthunauthenticatedUserRole600599A6Ref", - "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-clvX5844lcZc" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthUserPool8CF7C424Ref", - "OutputValue": "us-east-1_mQEsDQ1lC" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799authfitnesstracker9ceb2e7c9ceb2e7cPreSignupgen2mainlambdaB4152CB6Ref", - "OutputValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json deleted file mode 100644 index 43bc96aaa6b..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-data7552DF31-11R0N9NYGZMM.outputs.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Ref", - "OutputValue": "lognutrition-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAApiId", - "OutputValue": "uhg6hv7zmzav5doaroa4tocwv4" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIDefaultApiKeyE10BC731ApiKey", - "OutputValue": "da2-mpyed5y2pvbcjl2qcbxuq2rspe" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataGraphQLAPIC1F782FAGraphQLUrl", - "OutputValue": "https://7ltandzu5zbxvcqrr24edz4hym.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8E4BD6ABDestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-fitnesstracker-ge-amplifydataamplifycodege-cxlnc2wmwnpq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json deleted file mode 100644 index 177131508c3..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApiDeploymentStageprod3A54AD90Ref", - "OutputValue": "prod" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistackadminapiRestApi59ABC85BRef", - "OutputValue": "rr7ckdesd4" - }, - { - "OutputKey": "RestApiEndpoint0551178A", - "OutputValue": "https://rr7ckdesd4.execute-api.us-east-1.amazonaws.com/prod/" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json deleted file mode 100644 index eacc7e7d488..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistackadminapi43EA27F6-1RS06T9AL8ZH6.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authadmingen2mainlambdaAFBC209FArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json deleted file mode 100644 index 28d30bc1428..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApiDeploymentStageprodD1246DCDRef", - "OutputValue": "prod" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbrancha09655d799restapistacknutritionapiRestApi1438AE73Ref", - "OutputValue": "e2y3anael5" - }, - { - "OutputKey": "RestApiEndpoint0551178A", - "OutputValue": "https://e2y3anael5.execute-api.us-east-1.amazonaws.com/prod/" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json deleted file mode 100644 index 6ad66ae9091..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-a09655d799-restapistacknutritionapi72914ECD-1738NNTUFA9K8.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthauthenticatedUserRoleDC4EF599Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-Ko1Fb2NmvtwH" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799authNestedStackauthNestedStackResource845551EDOutputsamplifyfitnesstrackergen2mainbrancha09655d799authamplifyAuthAdminGroupRole06BE9A34Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-RZHpxrEYkgrR" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbrancha09655d799dataNestedStackdataNestedStackResourceB2B84E5EOutputsamplifyfitnesstrackergen2mainbrancha09655d799datalognutritiongen2mainlambda739A6536Arn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json deleted file mode 100644 index 134e76829d9..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "4ebr7lx7bbhnpeo5dbtcvdajdm", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://3oyjlwrrofhp7jlc37qna22jva.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-2kuyxda27ncmpool2a2bjanloy", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt deleted file mode 100644 index be81ecbcfe2..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.description.txt +++ /dev/null @@ -1 +0,0 @@ -Amplify Cognito Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json deleted file mode 100644 index 79def9e5efb..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.template.json +++ /dev/null @@ -1,480 +0,0 @@ -{ - "Description": "Amplify Cognito Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { - "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" - }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { - "Type": "String", - "Default": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - }, - "permissions": { - "Type": "CommaDelimitedList" - }, - "authTriggerConnections": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes9ceb2e7c_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes9ceb2e7c_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole9ceb2e7c", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", - { - "Fn::Join": [ - "", - [ - "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "client": { - "Ref": "UserPoolClient" - } - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "webClient": { - "Ref": "UserPoolClientWeb" - } - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool", - "UserPoolClient", - "UserPoolClientWeb" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json deleted file mode 100644 index 33ee4fb9a64..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "AdminGroupRole", - "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json deleted file mode 100644 index 3a84ecd1058..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb", - "ParameterValue": "4bk8odk8blrf65ptk2dffug25k" - }, - { - "ParameterKey": "UnauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" - }, - { - "ParameterKey": "AuthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" - }, - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", - "ParameterValue": "us-east-1_LAwe5ZJrw" - }, - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId", - "ParameterValue": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d" - }, - { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID", - "ParameterValue": "12hkvqjabpisei771tiefdhs76" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json deleted file mode 100644 index 04a3c261a89..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.template.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "DOMAINBLACKLIST": { - "Type": "String", - "Default": "" - }, - "DOMAINALLOWLIST": { - "Type": "String", - "Default": "" - }, - "modules": { - "Type": "String", - "Default": "", - "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." - }, - "resourceName": { - "Type": "String", - "Default": "" - }, - "trigger": { - "Type": "String", - "Default": "true" - }, - "functionName": { - "Type": "String", - "Default": "" - }, - "roleName": { - "Type": "String", - "Default": "" - }, - "parentResource": { - "Type": "String", - "Default": "" - }, - "parentStack": { - "Type": "String", - "Default": "" - }, - "env": { - "Type": "String" - }, - "deploymentBucketName": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - { - "Fn::Join": [ - "", - [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "MODULES": { - "Ref": "modules" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "DOMAINALLOWLIST": { - "Ref": "DOMAINALLOWLIST" - }, - "DOMAINBLACKLIST": { - "Ref": "DOMAINBLACKLIST" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 25, - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - } - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - { - "Fn::Join": [ - "", - [ - "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json deleted file mode 100644 index e4f0b36fccf..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.parameters.json similarity index 56% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.parameters.json index 1e1034aadbb..f12a02b2c3a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.parameters.json @@ -1,19 +1,19 @@ [ { "ParameterKey": "authRoleName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-authRole" + "ParameterValue": "amplify-fitnesstracker-main-a0537-authRole" }, { "ParameterKey": "nutritionapi", - "ParameterValue": "ekto8iln0h" + "ParameterValue": "hmydcaubcb" }, { "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-unauthRole" + "ParameterValue": "amplify-fitnesstracker-main-a0537-unauthRole" }, { "ParameterKey": "adminapi", - "ParameterValue": "bbk7dedp01" + "ParameterValue": "oxq86r59h6" }, { "ParameterKey": "env", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.template.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-APIGatewayAuthStack-1WV7E8TEEBZCC.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.template.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.parameters.json similarity index 50% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.parameters.json index 25d39b2699c..6ed9f4a0eae 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.parameters.json @@ -1,15 +1,19 @@ [ { - "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName", - "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole", + "ParameterValue": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main" }, { - "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole", - "ParameterValue": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", + "ParameterValue": "fitnesstracker33f5545533f55455PreSignup-main" + }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main" }, { "ParameterKey": "userpoolId", - "ParameterValue": "us-east-1_LAwe5ZJrw" + "ParameterValue": "us-east-1_iguxCIcMS" }, { "ParameterKey": "env", @@ -17,10 +21,6 @@ }, { "ParameterKey": "userpoolArn", - "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw" - }, - { - "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.template.json similarity index 94% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.template.json index 6e288286c2b..fd44b22e128 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-AuthTriggerCustomLambdaStack-I19H7X9HZF2Z.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.template.json @@ -11,13 +11,13 @@ "userpoolArn": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Type": "String" }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Type": "String" } }, @@ -37,7 +37,7 @@ "Properties": { "Action": "lambda:InvokeFunction", "FunctionName": { - "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "Ref": "functionfitnesstracker33f5545533f55455PreSignupName" }, "Principal": "cognito-idp.amazonaws.com", "SourceArn": { @@ -137,13 +137,13 @@ "lambdaConfig": [ { "triggerType": "PreSignUp", - "lambdaFunctionName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "lambdaFunctionName": "fitnesstracker33f5545533f55455PreSignup", "lambdaFunctionArn": { - "Ref": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" + "Ref": "functionfitnesstracker33f5545533f55455PreSignupArn" } } ], - "nonce": "81488207-64cc-4968-a2ba-e30eebc5a128" + "nonce": "bb94c712-a1c6-4c6a-82b8-4cb8c57b4acc" }, "DependsOn": [ "authTriggerFn7FCFA449", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.outputs.json similarity index 75% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.outputs.json index 5bf3ae2705a..124a527f440 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.outputs.json @@ -6,12 +6,12 @@ }, { "OutputKey": "RootUrl", - "OutputValue": "https://bbk7dedp01.execute-api.us-east-1.amazonaws.com/main", + "OutputValue": "https://oxq86r59h6.execute-api.us-east-1.amazonaws.com/main", "Description": "Root URL of the API gateway" }, { "OutputKey": "ApiId", - "OutputValue": "bbk7dedp01", + "OutputValue": "oxq86r59h6", "Description": "API ID (prefix of API URL)" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.parameters.json similarity index 76% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.parameters.json index bdd4c3def03..b06a743d6c9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.parameters.json @@ -8,8 +8,8 @@ "ParameterValue": "admin-main" }, { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", - "ParameterValue": "us-east-1_LAwe5ZJrw" + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_iguxCIcMS" }, { "ParameterKey": "env", @@ -17,6 +17,6 @@ }, { "ParameterKey": "authuserPoolGroupsAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.template.json similarity index 97% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.template.json index fe0413d381e..0eb23e1dfa6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apiadminapi-PR5X22IZPJYP.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.template.json @@ -2,9 +2,9 @@ "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -104,7 +104,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponsec0c67e32": { + "adminapiDefault4XXResponse1cf3cfdc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponsec0c67e32": { + "adminapiDefault5XXResponse1cf3cfdc": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapia8449e95": { + "DeploymentAPIGWadminapi1af07a4b": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponsec0c67e32", - "adminapiDefault5XXResponsec0c67e32" + "adminapiDefault4XXResponse1cf3cfdc", + "adminapiDefault5XXResponse1cf3cfdc" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.parameters.json similarity index 75% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.parameters.json index f9efb116ff2..6b366cbc8e7 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.parameters.json @@ -1,7 +1,7 @@ [ { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", @@ -9,15 +9,15 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" + "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" }, { "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef", - "ParameterValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "ParameterValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.template.json index a407b2cb80e..c6490dbf938 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-ConnectionStack-1V56DVJ0AK6M2.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.template.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.outputs.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.outputs.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.parameters.json similarity index 60% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.parameters.json index 3392dad0b9a..4097d78d936 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.parameters.json @@ -1,11 +1,11 @@ [ { "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "AppSyncApiId", - "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" + "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" }, { "ParameterKey": "env", @@ -13,7 +13,7 @@ }, { "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" }, { "ParameterKey": "AppSyncApiName", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.template.json similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-CustomResourcesjson-NRPIHV30QY0G.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.template.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.outputs.json similarity index 62% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.outputs.json index 605d333444d..f1efdb2a150 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.outputs.json @@ -5,24 +5,24 @@ }, { "OutputKey": "GetAttExerciseTableName", - "OutputValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "OutputValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", "Description": "Your DynamoDB table name.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:ExerciseTable:Name" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:ExerciseTable:Name" }, { "OutputKey": "GetAttExerciseDataSourceName", "OutputValue": "ExerciseTable", "Description": "Your model DataSource name.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:ExerciseDataSource:Name" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:ExerciseDataSource:Name" }, { "OutputKey": "transformerrootstackExerciseExerciseTable2F3E478ERef", - "OutputValue": "Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main" + "OutputValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" }, { "OutputKey": "GetAttExerciseTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:28.559", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.212", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:ExerciseTable:StreamArn" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:ExerciseTable:StreamArn" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.parameters.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.parameters.json index 3cb59b48c2a..020d0d0614b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", @@ -17,27 +17,27 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" + "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "ParameterValue": "hljr36qmybdc5hsavbkunnih3q" + "ParameterValue": "azpojmlshjb33hbzmjtsne6eke" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F", - "ParameterValue": "xzf3ab4birf23mtipkhxkd73wm" + "ParameterValue": "p4zgtsdhtfd5plnqeuyw434jry" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", - "ParameterValue": "mj463mjvznbcle6nf32tzkleca" + "ParameterValue": "7rhd6ral6railaajcfswqeadf4" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "ParameterValue": "tja5qhhl2faydie7dowyhihm3e" + "ParameterValue": "fws4doskqbag7dbslx7eygyckq" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "ParameterValue": "ryadbffrprh35offyqpul6fxjy" + "ParameterValue": "cdecyw7rljhx7kqioiulvfozuq" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", @@ -49,7 +49,7 @@ }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", - "ParameterValue": "n6yiskbqkvgwbma5c5wt7tluga" + "ParameterValue": "c3jrt4vcd5cfbirsv2pukwfqt4" }, { "ParameterKey": "DynamoDBModelTableWriteIOPS", @@ -57,7 +57,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", @@ -65,6 +65,6 @@ }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", - "ParameterValue": "25aslddh5rearbzsmjsddncqae" + "ParameterValue": "bsbxi7b5m5hnjh55tvtvnd55tq" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.template.json index a9eeaa78710..dfd88a7f935 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Exercise-1BEMQSWOJN9LA.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.template.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json similarity index 57% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json index 370e3c11bea..c2ec65f8932 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json @@ -1,20 +1,20 @@ [ { "OutputKey": "GetAttMealTableName", - "OutputValue": "Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "OutputValue": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", "Description": "Your DynamoDB table name.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:MealTable:Name" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:MealTable:Name" }, { "OutputKey": "GetAttMealDataSourceName", "OutputValue": "MealTable", "Description": "Your model DataSource name.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:MealDataSource:Name" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:MealDataSource:Name" }, { "OutputKey": "GetAttMealTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:14:27.982", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.935", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:MealTable:StreamArn" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:MealTable:StreamArn" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.parameters.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.parameters.json index 5a5e6a8d5b9..fb60a11041e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", @@ -17,19 +17,19 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" + "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "ParameterValue": "hljr36qmybdc5hsavbkunnih3q" + "ParameterValue": "azpojmlshjb33hbzmjtsne6eke" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "ParameterValue": "tja5qhhl2faydie7dowyhihm3e" + "ParameterValue": "fws4doskqbag7dbslx7eygyckq" }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "ParameterValue": "ryadbffrprh35offyqpul6fxjy" + "ParameterValue": "cdecyw7rljhx7kqioiulvfozuq" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", @@ -45,7 +45,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", @@ -53,6 +53,6 @@ }, { "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", - "ParameterValue": "25aslddh5rearbzsmjsddncqae" + "ParameterValue": "bsbxi7b5m5hnjh55tvtvnd55tq" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.template.json index 1f6a60f3fb6..0ab887347e8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-Meal-1M9W7UKSTT0UZ.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.template.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.outputs.json similarity index 72% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.outputs.json index a9d00f3d146..9f9b1cb8cc5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.outputs.json @@ -1,48 +1,48 @@ [ { "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", - "OutputValue": "mj463mjvznbcle6nf32tzkleca" + "OutputValue": "7rhd6ral6railaajcfswqeadf4" }, { "OutputKey": "transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId", - "OutputValue": "xzf3ab4birf23mtipkhxkd73wm" + "OutputValue": "p4zgtsdhtfd5plnqeuyw434jry" }, { "OutputKey": "GetAttWorkoutProgramTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main/stream/2026-03-22T02:13:40.073", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:04:23.623", "Description": "Your DynamoDB table StreamArn.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:WorkoutProgramTable:StreamArn" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:WorkoutProgramTable:StreamArn" }, { "OutputKey": "transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "OutputValue": "tja5qhhl2faydie7dowyhihm3e" + "OutputValue": "fws4doskqbag7dbslx7eygyckq" }, { "OutputKey": "GetAttWorkoutProgramTableName", - "OutputValue": "WorkoutProgram-4ebr7lx7bbhnpeo5dbtcvdajdm-main", + "OutputValue": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", "Description": "Your DynamoDB table name.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:WorkoutProgramTable:Name" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:WorkoutProgramTable:Name" }, { "OutputKey": "transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", - "OutputValue": "n6yiskbqkvgwbma5c5wt7tluga" + "OutputValue": "c3jrt4vcd5cfbirsv2pukwfqt4" }, { "OutputKey": "GetAttWorkoutProgramDataSourceName", "OutputValue": "WorkoutProgramTable", "Description": "Your model DataSource name.", - "ExportName": "4ebr7lx7bbhnpeo5dbtcvdajdm:GetAtt:WorkoutProgramDataSource:Name" + "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:WorkoutProgramDataSource:Name" }, { "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "OutputValue": "hljr36qmybdc5hsavbkunnih3q" + "OutputValue": "azpojmlshjb33hbzmjtsne6eke" }, { "OutputKey": "transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId", - "OutputValue": "25aslddh5rearbzsmjsddncqae" + "OutputValue": "bsbxi7b5m5hnjh55tvtvnd55tq" }, { "OutputKey": "transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "OutputValue": "ryadbffrprh35offyqpul6fxjy" + "OutputValue": "cdecyw7rljhx7kqioiulvfozuq" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.parameters.json similarity index 82% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.parameters.json index 8893d0ab615..7ab6bc5b463 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" }, { "ParameterKey": "DynamoDBEnableServerSideEncryption", @@ -25,7 +25,7 @@ }, { "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" + "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" }, { "ParameterKey": "DynamoDBModelTableWriteIOPS", @@ -33,7 +33,7 @@ }, { "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.template.json index d65c9f90968..5e3c935a32f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ-WorkoutProgram-W5V18SR651C7.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.template.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" ] ] }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.outputs.json new file mode 100644 index 00000000000..028a35d20d0 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "jzwb5p2vcbd2ldlnlxokgjcjby", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://lqftdnws2zb75jcuwdcmx23wdi.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX:GraphQLApiKey" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.parameters.json similarity index 79% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.parameters.json index be04a0ba450..989b15c2007 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.parameters.json @@ -17,7 +17,7 @@ }, { "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "DynamoDBModelTableWriteIOPS", @@ -29,7 +29,7 @@ }, { "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa" + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" }, { "ParameterKey": "AppSyncApiName", @@ -37,6 +37,6 @@ }, { "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_LAwe5ZJrw" + "ParameterValue": "us-east-1_iguxCIcMS" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.template.json similarity index 99% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.template.json index 651f9ceb637..eb461aa7cbb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apifitnesstracker-8NP6OMMBJJBQ.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1774896554 + "Expires": 1774926795 } }, "GraphQLAPINONEDS95A13CF0": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.outputs.json similarity index 75% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.outputs.json index f5dfcac1e91..7c901a65dec 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.outputs.json @@ -6,12 +6,12 @@ }, { "OutputKey": "RootUrl", - "OutputValue": "https://ekto8iln0h.execute-api.us-east-1.amazonaws.com/main", + "OutputValue": "https://hmydcaubcb.execute-api.us-east-1.amazonaws.com/main", "Description": "Root URL of the API gateway" }, { "OutputKey": "ApiId", - "OutputValue": "ekto8iln0h", + "OutputValue": "hmydcaubcb", "Description": "API ID (prefix of API URL)" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.parameters.json index e09e968f491..2805d4489d2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.parameters.json @@ -4,12 +4,12 @@ "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main" }, { - "ParameterKey": "functionlognutritionName", - "ParameterValue": "lognutrition-main" + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_iguxCIcMS" }, { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", - "ParameterValue": "us-east-1_LAwe5ZJrw" + "ParameterKey": "functionlognutritionName", + "ParameterValue": "lognutrition-main" }, { "ParameterKey": "env", @@ -17,6 +17,6 @@ }, { "ParameterKey": "authuserPoolGroupsAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_LAwe5ZJrw-AdminGroupRole" + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.template.json index 1c507689fc5..eaa3ad7fcfe 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-apinutritionapi-ZQRRV8SP6B3V.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.template.json @@ -2,9 +2,9 @@ "Description": "API Gateway Resource for AWS Amplify CLI", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, "authuserPoolGroupsAdminGroupRole": { "Type": "String", @@ -344,7 +344,7 @@ "-", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "AdminGroupRole" ] @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponse59a22bc9": { + "nutritionapiDefault4XXResponse59d8037a": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponse59a22bc9": { + "nutritionapiDefault5XXResponse59d8037a": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapifc67c40b": { + "DeploymentAPIGWnutritionapi633ac738": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponse59a22bc9", - "nutritionapiDefault5XXResponse59a22bc9" + "nutritionapiDefault4XXResponse59d8037a", + "nutritionapiDefault5XXResponse59d8037a" ] } }, diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.description.txt new file mode 100644 index 00000000000..28ba956271c --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.outputs.json similarity index 62% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.outputs.json index d991571da12..38dc79f5baf 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.outputs.json @@ -1,35 +1,35 @@ [ { "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_LAwe5ZJrw", + "OutputValue": "us-east-1_iguxCIcMS", "Description": "Id for the user pool" }, { "OutputKey": "AppClientIDWeb", - "OutputValue": "4bk8odk8blrf65ptk2dffug25k", + "OutputValue": "29bubgvfbbqkp4k60rl7oaqd8s", "Description": "The user pool app client id for web" }, { "OutputKey": "AppClientID", - "OutputValue": "12hkvqjabpisei771tiefdhs76", + "OutputValue": "3s8jcv7nflisr91emephrr2a9s", "Description": "The user pool app client id" }, { "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:e77ee826-ef64-4189-a4e0-6c44ea48be6d", + "OutputValue": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", "Description": "Id for the identity pool" }, { "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_LAwe5ZJrw", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS", "Description": "Arn for the user pool" }, { "OutputKey": "IdentityPoolName", - "OutputValue": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c__main" + "OutputValue": "fitnesstracker33f55455_identitypool_33f55455__main" }, { "OutputKey": "UserPoolName", - "OutputValue": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + "OutputValue": "fitnesstracker33f55455_userpool_33f55455" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json index d99a1808184..01043034b58 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authfitnesstracker9ceb2e7c9ceb2e7c-13Y9822PMAATD.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json @@ -1,7 +1,7 @@ [ { "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" }, { "ParameterKey": "autoVerifiedAttributes", @@ -37,7 +37,7 @@ }, { "ParameterKey": "sharedId", - "ParameterValue": "9ceb2e7c" + "ParameterValue": "33f55455" }, { "ParameterKey": "useDefault", @@ -53,7 +53,7 @@ }, { "ParameterKey": "identityPoolName", - "ParameterValue": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c" + "ParameterValue": "fitnesstracker33f55455_identitypool_33f55455" }, { "ParameterKey": "thirdPartyAuth", @@ -75,9 +75,13 @@ "ParameterKey": "permissions", "ParameterValue": "" }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, { "ParameterKey": "resourceNameTruncated", - "ParameterValue": "fitnes9ceb2e7c" + "ParameterValue": "fitnes33f55455" }, { "ParameterKey": "userPoolGroups", @@ -87,17 +91,13 @@ "ParameterKey": "smsAuthenticationMessage", "ParameterValue": "Your authentication code is {####}" }, - { - "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn", - "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn" - }, { "ParameterKey": "passwordPolicyMinLength", "ParameterValue": "8" }, { "ParameterKey": "userPoolName", - "ParameterValue": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c" + "ParameterValue": "fitnesstracker33f55455_userpool_33f55455" }, { "ParameterKey": "userpoolClientWriteAttributes", @@ -111,13 +111,17 @@ "ParameterKey": "useEnabledMfas", "ParameterValue": "true" }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupName" + }, { "ParameterKey": "usernameCaseSensitive", "ParameterValue": "false" }, { "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7c" + "ParameterValue": "fitnesstracker33f5545533f55455" }, { "ParameterKey": "env", @@ -145,11 +149,7 @@ }, { "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" - }, - { - "ParameterKey": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName", - "ParameterValue": "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName" + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" }, { "ParameterKey": "requiredAttributes", @@ -161,7 +161,7 @@ }, { "ParameterKey": "authTriggerConnections", - "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}" + "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" }, { "ParameterKey": "aliasAttributes", @@ -169,7 +169,7 @@ }, { "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "fitnes9ceb2e7c_userpoolclient_lambda_role" + "ParameterValue": "fitnes33f55455_userpoolclient_lambda_role" }, { "ParameterKey": "defaultPasswordPolicy", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json new file mode 100644 index 00000000000..f5ed153a8fe --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json @@ -0,0 +1,480 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionfitnesstracker33f5545533f55455PreSignupArn": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, + "functionfitnesstracker33f5545533f55455PreSignupName": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole33f55455", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker33f55455_identitypool_33f55455", + { + "Fn::Join": [ + "", + [ + "fitnesstracker33f55455_identitypool_33f55455__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "client": { + "Ref": "UserPoolClient" + } + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "webClient": { + "Ref": "UserPoolClientWeb" + } + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool", + "UserPoolClient", + "UserPoolClientWeb" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.description.txt new file mode 100644 index 00000000000..aa91c019d71 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.outputs.json new file mode 100644 index 00000000000..86a20382cd6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "AdminGroupRole", + "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json new file mode 100644 index 00000000000..11a65b7a7e8 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455IdentityPoolId", + "ParameterValue": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_iguxCIcMS" + }, + { + "ParameterKey": "env", + "ParameterValue": "main" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientIDWeb", + "ParameterValue": "29bubgvfbbqkp4k60rl7oaqd8s" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientID", + "ParameterValue": "3s8jcv7nflisr91emephrr2a9s" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json similarity index 69% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json index 12c7040bd48..e34b9d7bd14 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json @@ -1,5 +1,5 @@ { - "Description": "Root Stack for AWS Amplify CLI", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -11,21 +11,21 @@ "UnauthRoleArn": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID" + "Default": "authfitnesstracker33f5545533f55455AppClientID" }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb" + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" } }, "Conditions": { @@ -52,7 +52,7 @@ ] }, "UserPoolId": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -72,7 +72,7 @@ "Condition": { "StringEquals": { "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId" + "Ref": "authfitnesstracker33f5545533f55455IdentityPoolId" } }, "ForAnyValue:StringLike": { @@ -87,7 +87,7 @@ "", [ { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" }, "-AdminGroupRole" ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.outputs.json similarity index 82% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.outputs.json index 5e51899ca79..25dd9bb9cfe 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole64f55d16-main" + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-main" }, { "OutputKey": "Region", @@ -17,6 +17,6 @@ }, { "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstrackerLambdaRole64f55d16-main" + "OutputValue": "fitnesstrackerLambdaRole4a08108a-main" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.parameters.json similarity index 52% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.parameters.json index 1752e93cb4d..8893510b234 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.parameters.json @@ -5,15 +5,15 @@ }, { "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/admin-765632787437744e386e-build.zip" + "ParameterValue": "amplify-builds/admin-7934694b6d366c486d32-build.zip" }, { "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { - "ParameterKey": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId", - "ParameterValue": "us-east-1_LAwe5ZJrw" + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_iguxCIcMS" }, { "ParameterKey": "env", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.template.json similarity index 93% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.template.json index aaa8618655d..57322afb5e3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionadmin-ELA4T2BKK7S3.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.template.json @@ -16,9 +16,9 @@ "s3Key": { "Type": "String" }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Type": "String", - "Default": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Default": "authfitnesstracker33f5545533f55455UserPoolId" } }, "Conditions": { @@ -74,8 +74,8 @@ "REGION": { "Ref": "AWS::Region" }, - "AUTH_FITNESSTRACKER9CEB2E7C9CEB2E7C_USERPOOLID": { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } } }, @@ -96,12 +96,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole64f55d16", + "fitnesstrackerLambdaRole4a08108a", "-", { "Ref": "env" @@ -220,7 +220,7 @@ }, ":userpool/", { - "Ref": "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId" + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" } ] ] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.outputs.json similarity index 63% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.outputs.json index cfe685f3804..eb2c3a837ae 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main" }, { "OutputKey": "Region", @@ -9,14 +9,14 @@ }, { "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main" }, { "OutputKey": "Name", - "OutputValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "OutputValue": "fitnesstracker33f5545533f55455PreSignup-main" }, { "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup-main" + "OutputValue": "fitnesstracker33f5545533f55455PreSignup-main" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.parameters.json index 92a5d88d7b5..5f958b22dc3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup-3S3GBRYFYV12.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip" + "ParameterValue": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" }, { "ParameterKey": "functionName", @@ -21,7 +21,7 @@ }, { "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "DOMAINBLACKLIST", @@ -33,7 +33,7 @@ }, { "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "ParameterValue": "fitnesstracker33f5545533f55455PreSignup" }, { "ParameterKey": "trigger", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.template.json new file mode 100644 index 00000000000..e53fff724cb --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.template.json @@ -0,0 +1,242 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "DOMAINBLACKLIST": { + "Type": "String", + "Default": "" + }, + "DOMAINALLOWLIST": { + "Type": "String", + "Default": "" + }, + "modules": { + "Type": "String", + "Default": "", + "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." + }, + "resourceName": { + "Type": "String", + "Default": "" + }, + "trigger": { + "Type": "String", + "Default": "true" + }, + "functionName": { + "Type": "String", + "Default": "" + }, + "roleName": { + "Type": "String", + "Default": "" + }, + "parentResource": { + "Type": "String", + "Default": "" + }, + "parentStack": { + "Type": "String", + "Default": "" + }, + "env": { + "Type": "String" + }, + "deploymentBucketName": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker33f5545533f55455PreSignup", + { + "Fn::Join": [ + "", + [ + "fitnesstracker33f5545533f55455PreSignup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "MODULES": { + "Ref": "modules" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "DOMAINALLOWLIST": { + "Ref": "DOMAINALLOWLIST" + }, + "DOMAINBLACKLIST": { + "Ref": "DOMAINBLACKLIST" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 25, + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + } + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker33f5545533f55455PreSignup", + { + "Fn::Join": [ + "", + [ + "fitnesstracker33f5545533f55455PreSignup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + } +} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.outputs.json similarity index 83% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.outputs.json index 8016fe38118..ff6bec326d2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.outputs.json @@ -1,7 +1,7 @@ [ { "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole8dc6052c-main" + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-main" }, { "OutputKey": "Region", @@ -17,6 +17,6 @@ }, { "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstrackerLambdaRole8dc6052c-main" + "OutputValue": "fitnesstrackerLambdaRole2824d4b4-main" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.parameters.json similarity index 77% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.parameters.json index 2e5abe71d79..f5b9c93a1a7 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.parameters.json @@ -5,7 +5,7 @@ }, { "ParameterKey": "apifitnesstrackerGraphQLAPIIdOutput", - "ParameterValue": "4ebr7lx7bbhnpeo5dbtcvdajdm" + "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" }, { "ParameterKey": "s3Key", @@ -13,7 +13,7 @@ }, { "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-6fc9a-deployment" + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" }, { "ParameterKey": "env", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.template.json similarity index 98% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.template.json index e1789ef2c20..34e97f53ec9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-functionlognutrition-T6VGX60KCB8H.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.template.json @@ -122,12 +122,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", { "Fn::Join": [ "", [ - "fitnesstrackerLambdaRole8dc6052c", + "fitnesstrackerLambdaRole2824d4b4", "-", { "Ref": "env" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.description.txt similarity index 100% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a-authuserPoolGroups-MXIW00J9KSSV.description.txt rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.description.txt diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.outputs.json similarity index 56% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.outputs.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.outputs.json index 89e90b54519..12c76d2fccb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.outputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.outputs.json @@ -1,42 +1,42 @@ [ { "OutputKey": "AuthRoleName", - "OutputValue": "amplify-fitnesstracker-main-6fc9a-authRole" + "OutputValue": "amplify-fitnesstracker-main-a0537-authRole" }, { "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-unauthRole" + "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" }, { "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-6fc9a-authRole" + "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" }, { "OutputKey": "Region", "OutputValue": "us-east-1", "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-fitnesstracker-main-6fc9a-Region" + "ExportName": "amplify-fitnesstracker-main-a0537-Region" }, { "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-fitnesstracker-main-6fc9a-deployment", + "OutputValue": "amplify-fitnesstracker-main-a0537-deployment", "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-fitnesstracker-main-6fc9a-DeploymentBucketName" + "ExportName": "amplify-fitnesstracker-main-a0537-DeploymentBucketName" }, { "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-fitnesstracker-main-6fc9a-unauthRole" + "OutputValue": "amplify-fitnesstracker-main-a0537-unauthRole" }, { "OutputKey": "StackName", - "OutputValue": "amplify-fitnesstracker-main-6fc9a", + "OutputValue": "amplify-fitnesstracker-main-a0537", "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-fitnesstracker-main-6fc9a-StackName" + "ExportName": "amplify-fitnesstracker-main-a0537-StackName" }, { "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-6fc9a/d1ee9bf0-2590-11f1-8e36-1220ebfe67af", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-fitnesstracker-main-6fc9a-StackId" + "ExportName": "amplify-fitnesstracker-main-a0537-StackId" } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.parameters.json new file mode 100644 index 00000000000..9ba77cc775e --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-fitnesstracker-main-a0537-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-fitnesstracker-main-a0537-unauthRole" + } +] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.template.json similarity index 85% rename from amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.template.json rename to amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.template.json index 5345516d4d9..e4e090d2980 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-6fc9a.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.template.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -229,50 +229,50 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { "env": "main", "userpoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, "userpoolArn": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupLambdaExecutionRole": { + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.LambdaExecutionRoleArn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupArn": { + "functionfitnesstracker33f5545533f55455PreSignupArn": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Arn" ] }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignupName": { + "functionfitnesstracker33f5545533f55455PreSignupName": { "Fn::GetAtt": [ - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "functionfitnesstracker33f5545533f55455PreSignup", "Outputs.Name" ] } } }, "DependsOn": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup" + "authfitnesstracker33f5545533f55455", + "functionfitnesstracker33f5545533f55455PreSignup" ] }, "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { "functionadminName": { "Fn::GetAtt": [ @@ -286,9 +286,9 @@ "Outputs.Arn" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, @@ -305,19 +305,19 @@ "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "fitnesstracker", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, "AuthCognitoUserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-6fc9a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/4e96d1a40e125259298887f594df139304e5e3fa", + "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", "env": "main" } } @@ -325,7 +325,7 @@ "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { "functionlognutritionName": { "Fn::GetAtt": [ @@ -339,9 +339,9 @@ "Outputs.Arn" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, @@ -355,15 +355,15 @@ } } }, - "authfitnesstracker9ceb2e7c9ceb2e7c": { + "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/fitnesstracker9ceb2e7c9ceb2e7c-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { - "identityPoolName": "fitnesstracker9ceb2e7c_identitypool_9ceb2e7c", + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes9ceb2e7c", - "userPoolName": "fitnesstracker9ceb2e7c_userpool_9ceb2e7c", + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -380,10 +380,10 @@ "userpoolClientRefreshTokenValidity": 30, "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes9ceb2e7c_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "9ceb2e7c", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7c", + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -410,7 +410,7 @@ "breakCircularDependency": true, "dependsOn": "[object Object]", "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker9ceb2e7c9ceb2e7cPreSignup\"}", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", "env": "main" } } @@ -418,7 +418,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -432,27 +432,27 @@ "Arn" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientIDWeb": { + "authfitnesstracker33f5545533f55455AppClientIDWeb": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.AppClientIDWeb" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cAppClientID": { + "authfitnesstracker33f5545533f55455AppClientID": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.AppClientID" ] }, - "authfitnesstracker9ceb2e7c9ceb2e7cIdentityPoolId": { + "authfitnesstracker33f5545533f55455IdentityPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.IdentityPoolId" ] }, @@ -463,13 +463,13 @@ "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/admin-765632787437744e386e-build.zip", - "authfitnesstracker9ceb2e7c9ceb2e7cUserPoolId": { + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, @@ -477,16 +477,16 @@ } } }, - "functionfitnesstracker9ceb2e7c9ceb2e7cPreSignup": { + "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker9ceb2e7c9ceb2e7cPreSignup", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", - "s3Key": "amplify-builds/fitnesstracker9ceb2e7c9ceb2e7cPreSignup-30665350613379623339-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", "env": "main" } } @@ -494,9 +494,9 @@ "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-6fc9a-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-6fc9a-deployment", + "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ @@ -512,7 +512,7 @@ "DependsOn": [ "AuthRole", "UnauthRole", - "authfitnesstracker9ceb2e7c9ceb2e7c" + "authfitnesstracker33f5545533f55455" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -622,7 +622,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authfitnesstracker9ceb2e7c9ceb2e7c", + "authfitnesstracker33f5545533f55455", "Outputs.IdentityPoolId" ] }, From 6ffd8213a7807da8db8aeeea3eecd6111a350768 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Tue, 24 Mar 2026 00:19:45 -0400 Subject: [PATCH 49/91] chore: update snapshots --- .../resource.ts | 4 +- .../amplify/backend.ts | 296 +++++++------- ...9371D7-19RM9R3LOXG8I-holding.mappings.json | 44 ++- ...19RM9R3LOXG8I-holding.source.template.json | 163 +------- ...19RM9R3LOXG8I-holding.target.template.json | 24 +- ...b-auth179371D7-19RM9R3LOXG8I.mappings.json | 20 +- ...79371D7-19RM9R3LOXG8I.target.template.json | 26 +- ...b-auth179371D7-19RM9R3LOXG8I.mappings.json | 4 +- ...79371D7-19RM9R3LOXG8I.target.template.json | 367 ++++++++++-------- ...b-auth179371D7-19RM9R3LOXG8I.template.json | 4 +- 10 files changed, 446 insertions(+), 506 deletions(-) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/resource.ts index 718f48a6ae7..ebc5e5951a1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/auth/fitnesstracker33f5545533f55455PreSignup/resource.ts @@ -8,11 +8,11 @@ export const fitnesstracker33f5545533f55455PreSignup = defineFunction({ timeoutSeconds: 25, memoryMB: 128, environment: { + ENV: `${branchName}`, MODULES: 'email-filter-allowlist', + REGION: 'us-east-1', DOMAINALLOWLIST: 'amazon.com', DOMAINBLACKLIST: '', - ENV: `${branchName}`, - REGION: 'us-east-1', }, runtime: 22, }); diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts index 313c6c83f23..582a879b36a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts @@ -1,8 +1,8 @@ import { auth } from './auth/resource'; import { data } from './data/resource'; -import { admin } from './function/admin/resource'; import { fitnesstracker33f5545533f55455PreSignup } from './auth/fitnesstracker33f5545533f55455PreSignup/resource'; import { lognutrition } from './function/lognutrition/resource'; +import { admin } from './function/admin/resource'; import { RestApi, LambdaIntegration, @@ -12,108 +12,77 @@ import { } from 'aws-cdk-lib/aws-apigateway'; import { Policy, PolicyStatement } from 'aws-cdk-lib/aws-iam'; import { defineBackend } from '@aws-amplify/backend'; -import { Stack, Duration } from 'aws-cdk-lib'; +import { Duration, Stack } from 'aws-cdk-lib'; const backend = defineBackend({ auth, data, - admin, fitnesstracker33f5545533f55455PreSignup, lognutrition, + admin, }); -const branchName = process.env.AWS_BRANCH ?? 'sandbox'; -const adminapiStack = backend.createStack('rest-api-stack-adminapi'); -const adminapiApi = new RestApi(adminapiStack, 'RestApi', { - restApiName: `adminapi-${branchName}`, -}); -adminapiApi.addGatewayResponse('Default4XX', { - type: ResponseType.DEFAULT_4XX, - responseHeaders: { - 'Access-Control-Allow-Origin': "'*'", - 'Access-Control-Allow-Headers': - "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", - }, -}); -adminapiApi.addGatewayResponse('Default5XX', { - type: ResponseType.DEFAULT_5XX, - responseHeaders: { - 'Access-Control-Allow-Origin': "'*'", - 'Access-Control-Allow-Headers': - "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", +const cfnUserPool = backend.auth.resources.cfnResources.cfnUserPool; +cfnUserPool.usernameAttributes = undefined; +cfnUserPool.policies = { + passwordPolicy: { + minimumLength: 8, + requireUppercase: false, + requireLowercase: false, + requireNumbers: false, + requireSymbols: false, + temporaryPasswordValidityDays: 7, }, +}; +const cfnIdentityPool = backend.auth.resources.cfnResources.cfnIdentityPool; +cfnIdentityPool.allowUnauthenticatedIdentities = false; +const userPool = backend.auth.resources.userPool; +userPool.addClient('NativeAppClient', { + refreshTokenValidity: Duration.days(30), + enableTokenRevocation: true, + enablePropagateAdditionalUserContextData: false, + authSessionValidity: Duration.minutes(3), + disableOAuth: true, + generateSecret: false, }); -const adminIntegration = new LambdaIntegration(backend.admin.resources.lambda); -const gen1adminapiApi = RestApi.fromRestApiAttributes( - adminapiStack, - 'Gen1adminapiApi', - { - restApiId: 'oxq86r59h6', - rootResourceId: 'gzkugf7nca', - } +const branchName = process.env.AWS_BRANCH ?? 'sandbox'; +backend.fitnesstracker33f5545533f55455PreSignup.resources.cfnResources.cfnFunction.functionName = `fitnesstracker33f5545533f55455PreSignup-${branchName}`; +backend.lognutrition.resources.cfnResources.cfnFunction.functionName = `lognutrition-${branchName}`; +backend.lognutrition.addEnvironment( + 'API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT', + backend.data.apiId ); -const gen1adminapiPolicy = new Policy(adminapiStack, 'Gen1adminapiPolicy', { - statements: [ - new PolicyStatement({ - actions: ['execute-api:Invoke'], - resources: [`${gen1adminapiApi.arnForExecuteApi('GET', '/*')}`], - }), - ], -}); -backend.auth.resources.authenticatedUserIamRole.attachInlinePolicy( - gen1adminapiPolicy +backend.lognutrition.addEnvironment( + 'API_FITNESSTRACKER_MEALTABLE_ARN', + backend.data.resources.tables['Meal'].tableArn ); -const adminResource = adminapiApi.root.addResource('admin', { - defaultMethodOptions: { - authorizationType: AuthorizationType.IAM, - }, - defaultCorsPreflightOptions: { - allowOrigins: Cors.ALL_ORIGINS, - allowMethods: Cors.ALL_METHODS, - allowHeaders: [ - 'Content-Type', - 'X-Amz-Date', - 'Authorization', - 'X-Api-Key', - 'X-Amz-Security-Token', - 'X-Amz-User-Agent', - ], - statusCode: 200, - }, -}); -adminResource.addMethod('ANY', adminIntegration); -adminResource.addProxy({ - anyMethod: true, - defaultIntegration: adminIntegration, -}); -// /admin - Admin group only -backend.auth.resources.groups['Admin'].role.attachInlinePolicy( - new Policy(adminapiStack, 'adminAdminPolicy', { - statements: [ - new PolicyStatement({ - actions: ['execute-api:Invoke'], - resources: [ - adminapiApi.arnForExecuteApi('GET', '/admin'), - adminapiApi.arnForExecuteApi('GET', '/admin/*'), - ], - }), - ], - }) +backend.lognutrition.addEnvironment( + 'API_FITNESSTRACKER_MEALTABLE_NAME', + backend.data.resources.tables['Meal'].tableName +); +backend.data.resources.tables['Meal'].grant( + backend.lognutrition.resources.lambda, + 'dynamodb:Put*', + 'dynamodb:Create*', + 'dynamodb:BatchWriteItem', + 'dynamodb:PartiQLInsert', + 'dynamodb:Get*', + 'dynamodb:BatchGetItem', + 'dynamodb:List*', + 'dynamodb:Describe*', + 'dynamodb:Scan', + 'dynamodb:Query', + 'dynamodb:PartiQLSelect', + 'dynamodb:Update*', + 'dynamodb:RestoreTable*', + 'dynamodb:PartiQLUpdate', + 'dynamodb:Delete*', + 'dynamodb:PartiQLDelete' +); +backend.admin.resources.cfnResources.cfnFunction.functionName = `admin-${branchName}`; +backend.admin.addEnvironment( + 'AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID', + backend.auth.resources.userPool.userPoolId ); -backend.addOutput({ - custom: { - API: { - [adminapiApi.restApiName]: { - endpoint: adminapiApi.url.slice(0, -1), - region: Stack.of(adminapiApi).region, - apiName: adminapiApi.restApiName, - }, - }, - }, -}); const cfnGraphqlApi = backend.data.resources.cfnResources.cfnGraphqlApi; cfnGraphqlApi.additionalAuthenticationProviders = [ { @@ -152,7 +121,7 @@ const gen1nutritionapiApi = RestApi.fromRestApiAttributes( 'Gen1nutritionapiApi', { restApiId: 'hmydcaubcb', - rootResourceId: '038x4g299a', + rootResourceId: 'hmydcaubcb-root', } ); const gen1nutritionapiPolicy = new Policy( @@ -251,64 +220,95 @@ backend.addOutput({ }, }, }); -const cfnUserPool = backend.auth.resources.cfnResources.cfnUserPool; -cfnUserPool.usernameAttributes = undefined; -cfnUserPool.policies = { - passwordPolicy: { - minimumLength: 8, - requireUppercase: false, - requireLowercase: false, - requireNumbers: false, - requireSymbols: false, - temporaryPasswordValidityDays: 7, +const adminapiStack = backend.createStack('rest-api-stack-adminapi'); +const adminapiApi = new RestApi(adminapiStack, 'RestApi', { + restApiName: `adminapi-${branchName}`, +}); +adminapiApi.addGatewayResponse('Default4XX', { + type: ResponseType.DEFAULT_4XX, + responseHeaders: { + 'Access-Control-Allow-Origin': "'*'", + 'Access-Control-Allow-Headers': + "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", }, -}; -const cfnIdentityPool = backend.auth.resources.cfnResources.cfnIdentityPool; -cfnIdentityPool.allowUnauthenticatedIdentities = false; -const userPool = backend.auth.resources.userPool; -userPool.addClient('NativeAppClient', { - refreshTokenValidity: Duration.days(30), - enableTokenRevocation: true, - enablePropagateAdditionalUserContextData: false, - authSessionValidity: Duration.minutes(3), - disableOAuth: true, - generateSecret: false, }); -backend.admin.resources.cfnResources.cfnFunction.functionName = `admin-${branchName}`; -backend.admin.addEnvironment( - 'AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID', - backend.auth.resources.userPool.userPoolId -); -backend.fitnesstracker33f5545533f55455PreSignup.resources.cfnResources.cfnFunction.functionName = `fitnesstracker33f5545533f55455PreSignup-${branchName}`; -backend.lognutrition.resources.cfnResources.cfnFunction.functionName = `lognutrition-${branchName}`; -backend.lognutrition.addEnvironment( - 'API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT', - backend.data.apiId -); -backend.lognutrition.addEnvironment( - 'API_FITNESSTRACKER_MEALTABLE_ARN', - backend.data.resources.tables['Meal'].tableArn +adminapiApi.addGatewayResponse('Default5XX', { + type: ResponseType.DEFAULT_5XX, + responseHeaders: { + 'Access-Control-Allow-Origin': "'*'", + 'Access-Control-Allow-Headers': + "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + 'Access-Control-Allow-Methods': "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + 'Access-Control-Expose-Headers': "'Date,X-Amzn-ErrorType'", + }, +}); +const adminIntegration = new LambdaIntegration(backend.admin.resources.lambda); +const gen1adminapiApi = RestApi.fromRestApiAttributes( + adminapiStack, + 'Gen1adminapiApi', + { + restApiId: 'oxq86r59h6', + rootResourceId: 'oxq86r59h6-root', + } ); -backend.lognutrition.addEnvironment( - 'API_FITNESSTRACKER_MEALTABLE_NAME', - backend.data.resources.tables['Meal'].tableName +const gen1adminapiPolicy = new Policy(adminapiStack, 'Gen1adminapiPolicy', { + statements: [ + new PolicyStatement({ + actions: ['execute-api:Invoke'], + resources: [`${gen1adminapiApi.arnForExecuteApi('GET', '/*')}`], + }), + ], +}); +backend.auth.resources.authenticatedUserIamRole.attachInlinePolicy( + gen1adminapiPolicy ); -backend.data.resources.tables['Meal'].grant( - backend.lognutrition.resources.lambda, - 'dynamodb:Put*', - 'dynamodb:Create*', - 'dynamodb:BatchWriteItem', - 'dynamodb:PartiQLInsert', - 'dynamodb:Get*', - 'dynamodb:BatchGetItem', - 'dynamodb:List*', - 'dynamodb:Describe*', - 'dynamodb:Scan', - 'dynamodb:Query', - 'dynamodb:PartiQLSelect', - 'dynamodb:Update*', - 'dynamodb:RestoreTable*', - 'dynamodb:PartiQLUpdate', - 'dynamodb:Delete*', - 'dynamodb:PartiQLDelete' +const adminResource = adminapiApi.root.addResource('admin', { + defaultMethodOptions: { + authorizationType: AuthorizationType.IAM, + }, + defaultCorsPreflightOptions: { + allowOrigins: Cors.ALL_ORIGINS, + allowMethods: Cors.ALL_METHODS, + allowHeaders: [ + 'Content-Type', + 'X-Amz-Date', + 'Authorization', + 'X-Api-Key', + 'X-Amz-Security-Token', + 'X-Amz-User-Agent', + ], + statusCode: 200, + }, +}); +adminResource.addMethod('ANY', adminIntegration); +adminResource.addProxy({ + anyMethod: true, + defaultIntegration: adminIntegration, +}); +// /admin - Admin group only +backend.auth.resources.groups['Admin'].role.attachInlinePolicy( + new Policy(adminapiStack, 'adminAdminPolicy', { + statements: [ + new PolicyStatement({ + actions: ['execute-api:Invoke'], + resources: [ + adminapiApi.arnForExecuteApi('GET', '/admin'), + adminapiApi.arnForExecuteApi('GET', '/admin/*'), + ], + }), + ], + }) ); +backend.addOutput({ + custom: { + API: { + [adminapiApi.restApiName]: { + endpoint: adminapiApi.url.slice(0, -1), + region: Stack.of(adminapiApi).region, + apiName: adminapiApi.restApiName, + }, + }, + }, +}); diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json index da95a3f5dc4..45dc09dc29f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json @@ -2,11 +2,51 @@ { "Source": { "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" }, "Destination": { "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } ] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json index cb8aa896b71..59b4cf9ec3a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json @@ -247,7 +247,7 @@ "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", "Runtime": "nodejs22.x", "Tags": [ { @@ -423,7 +423,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { @@ -634,162 +634,15 @@ }, "Condition": "CDKMetadataAvailable" }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_userpool_33f55455", - "-", - "main" - ] - ] - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", "UserPoolId": "us-east-1_iguxCIcMS" } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "3s8jcv7nflisr91emephrr2a9s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - }, - { - "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_identitypool_33f55455__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "client": "3s8jcv7nflisr91emephrr2a9s" - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - } - } } }, "Conditions": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json index 042061fab68..17c4bf8ebf4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json @@ -2,6 +2,18 @@ "AWSTemplateFormatVersion": "2010-09-09", "Description": "Temporary holding stack for Gen2 migration", "Resources": { + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", + "UserPoolId": "us-east-1_KGveHFLxc" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" + } + }, "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", "Properties": { @@ -207,18 +219,6 @@ "Metadata": { "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" } - }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "Admin", - "Precedence": 0, - "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" - } } }, "Outputs": {} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json index 369dad3a96d..44c8ff21ad3 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json @@ -1,51 +1,51 @@ [ { "Source": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", "LogicalResourceId": "UserPool" }, "Destination": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", "LogicalResourceId": "amplifyAuthUserPool4BA7F805" } }, { "Source": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", "LogicalResourceId": "UserPoolClientWeb" }, "Destination": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" } }, { "Source": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", "LogicalResourceId": "UserPoolClient" }, "Destination": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" } }, { "Source": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", "LogicalResourceId": "IdentityPool" }, "Destination": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" } }, { "Source": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508/0525fab0-272e-11f1-be1e-0ecc63820e19", + "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", "LogicalResourceId": "IdentityPoolRoleMap" }, "Destination": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json index 34e96d7f10a..d34f92e81e5 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json @@ -163,18 +163,6 @@ "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" } }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "Admin", - "Precedence": 0, - "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" - } - }, "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { "Type": "AWS::IAM::Role", "Properties": { @@ -259,7 +247,7 @@ "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", "Runtime": "nodejs22.x", "Tags": [ { @@ -435,7 +423,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { @@ -646,6 +634,16 @@ }, "Condition": "CDKMetadataAvailable" }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", + "UserPoolId": "us-east-1_iguxCIcMS" + } + }, "amplifyAuthUserPool4BA7F805": { "Type": "AWS::Cognito::UserPool", "Properties": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json index f8f4676ef5a..d6ab8efe950 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json @@ -1,11 +1,11 @@ [ { "Source": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF/19fc4ca0-272e-11f1-a89c-0affce72f097", + "StackName": "amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF", "LogicalResourceId": "AdminGroup" }, "Destination": { - "StackName": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/a48ae490-2732-11f1-99cb-12d4bb1e164d", + "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" } } diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json index b5fcf1180e6..90e47d86a0d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json @@ -1,6 +1,75 @@ { "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:app-id": "fitnesstracker", + "amplify:branch-name": "gen2-main", + "amplify:deployment-type": "branch", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" + } + }, "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { "Type": "AWS::Lambda::Permission", "Properties": { @@ -13,6 +82,109 @@ "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" } }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_KGveHFLxc" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_KGveHFLxc" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "1o40oi80febsgsdamen2i1gnfd", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_KGveHFLxc" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:app-id", + "Value": "fitnesstracker" + }, + { + "Key": "amplify:branch-name", + "Value": "gen2-main" + }, + { + "Key": "amplify:deployment-type", + "Value": "branch" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" + } + }, "amplifyAuthauthenticatedUserRoleD8DA3689": { "Type": "AWS::IAM::Role", "Properties": { @@ -113,6 +285,40 @@ "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" } }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_KGveHFLxc", + ":", + "1o40oi80febsgsdamen2i1gnfd" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" + } + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, "amplifyAuthAdminGroupRole766878DC": { "Type": "AWS::IAM::Role", "Properties": { @@ -247,7 +453,7 @@ "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", "Runtime": "nodejs22.x", "Tags": [ { @@ -423,7 +629,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { @@ -634,163 +840,6 @@ }, "Condition": "CDKMetadataAvailable" }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_userpool_33f55455", - "-", - "main" - ] - ] - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "3s8jcv7nflisr91emephrr2a9s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - }, - { - "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_identitypool_33f55455__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "client": "3s8jcv7nflisr91emephrr2a9s" - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - } - } - }, "amplifyAuthAdminGroupCC42FF04": { "Type": "AWS::Cognito::UserPoolGroup", "Properties": { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json index 3e470ef8187..3d8a92fce02 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json @@ -465,7 +465,7 @@ "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-fitnesstracker33f5545533f-4xULtIdI9U7p", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", "Runtime": "nodejs22.x", "Tags": [ { @@ -641,7 +641,7 @@ "FunctionName": "admin-gen2-main", "Handler": "index.handler", "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-admingen2mainlambdaServic-BeMjaVS7HTg0", + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", "Runtime": "nodejs22.x", "Tags": [ { From 7c2aedb0f585af0622e1435ec60f11d2014cb224 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 24 Mar 2026 08:21:31 -0400 Subject: [PATCH 50/91] docs(cli-internal): update refactor.md for beforeMove/afterMove changes Update flowcharts and plan() lifecycle to reflect that beforeMove and afterMove now independently discover resources from stack templates rather than using blueprint mappings. --- Prompt: run the PR stage from AGENTS.md. --- .../src/commands/gen2-migration/refactor.md | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md b/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md index ab9b0a94eab..7d2750bd130 100644 --- a/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md +++ b/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md @@ -48,16 +48,16 @@ AmplifyMigrationRefactorStep (refactor.ts) flowchart TD A[Resolve Gen1 source template] --> B[Resolve Gen2 target template] B --> C[Build resource mappings by type] - C --> D{mappings empty?} - D -- yes --> E[no-op] - D -- no --> F[Add placeholder if source would be empty] - F --> G["Update Gen1 stack (resolve refs)"] - G --> H["Update Gen2 stack (resolve refs)"] - H --> I[Move Gen2 resources → holding stack] - I --> J[Move Gen1 resources → Gen2 stack] + C --> D[Add placeholder if source would be empty] + D --> E["Update Gen1 stack (resolve refs)"] + E --> F["Update Gen2 stack (resolve refs)"] + F --> G["Move Gen2 resources → holding stack (discovers from Gen2 template)"] + G --> H{mappings empty?} + H -- yes --> I[done] + H -- no --> J[Move Gen1 resources → Gen2 stack] ``` -The forward workflow resolves both stack templates to replace `Ref`/`Fn::GetAtt` with literal values, then pushes those resolved templates via UpdateStack. This ensures no dangling references when resources are later removed. Gen2 resources are moved to a temporary holding stack first (preserving test data), then Gen1 resources are moved into the Gen2 stack. +The forward workflow resolves both stack templates to replace `Ref`/`Fn::GetAtt` with literal values, then pushes those resolved templates via UpdateStack. This ensures no dangling references when resources are later removed. `beforeMove` independently fetches the Gen2 template and discovers which resources to move to the holding stack (preserving test data). The main move then transfers Gen1 resources into the Gen2 stack. ### Rollback (Gen2 → Gen1) @@ -65,19 +65,21 @@ The forward workflow resolves both stack templates to replace `Ref`/`Fn::GetAtt` flowchart TD A[Resolve Gen2 source template] --> B[Resolve Gen1 target template] B --> C[Build resource mappings by Gen1 logical IDs] - C --> D{mappings empty?} - D -- yes --> E[no-op] - D -- no --> F[Add placeholder if source would be empty] - F --> G["Update Gen2 stack (resolve refs)"] - G --> H["Update Gen1 stack (resolve refs)"] - H --> I[Move Gen2 resources → Gen1 stack] - I --> J{holding stack exists?} + C --> D[Add placeholder if source would be empty] + D --> E["Update Gen2 stack (resolve refs)"] + E --> F["Update Gen1 stack (resolve refs)"] + F --> G{mappings empty?} + G -- yes --> H[skip main move] + G -- no --> I[Move Gen2 resources → Gen1 stack] + H --> J{holding stack exists?} + I --> J J -- no --> K[done] - J -- yes --> L[Add placeholder to holding stack] - L --> M[Move holding resources → Gen2 stack] + J -- yes --> L["Discover holding stack resources"] + L --> M[Add placeholder to holding stack] + M --> N[Move holding resources → Gen2 stack] ``` -The rollback workflow mirrors forward but in reverse. It resolves and updates both stacks (necessary if the Gen2 app was redeployed after forward, which introduces fresh `Fn::GetAtt` references). After moving resources back to Gen1, it restores any holding stack resources back to Gen2. The holding stack is left with just a placeholder resource — cleanup is handled by `amplify gen2-migration decommission`. +The rollback workflow mirrors forward but in reverse. It resolves and updates both stacks (necessary if the Gen2 app was redeployed after forward, which introduces fresh `Fn::GetAtt` references). After moving resources back to Gen1, `afterMove` independently fetches the holding stack template and discovers which resources to restore back to Gen2. The holding stack is left with just a placeholder resource — cleanup is handled by `amplify gen2-migration decommission`. ### plan() Lifecycle @@ -88,9 +90,9 @@ Each `CategoryRefactorer.plan()` follows this sequence: 3. **Build mappings**: `buildResourceMappings()` matches source resources to target resources by type (forward) or by known Gen1 logical IDs (rollback). Returns `ResourceMapping[]` (SDK type). 4. **Add placeholder**: If removing all mapped resources would leave the source stack empty, a `WaitConditionHandle` placeholder is added to the resolved template. 5. **Update stacks**: `updateSource()` / `updateTarget()` push the resolved templates to CloudFormation via `Cfn.update()`. This replaces `Ref`/`Fn::GetAtt` with literal values so resources can be safely removed later. Dedup: if a stack was already claimed by a previous refactorer, the update is skipped. -6. **Before move** (forward only): Moves Gen2 target resources to a temporary holding stack via `Cfn.refactor()`. -7. **Move**: The main refactor — moves resources from source to target via `Cfn.refactor()`. -8. **After move** (rollback only): Restores holding stack resources back to Gen2, then deletes the holding stack. +6. **Before move** (forward only): Independently fetches the Gen2 template, discovers matching resources, and moves them to a temporary holding stack via `Cfn.refactor()`. +7. **Move**: The main refactor — moves resources from source to target via `Cfn.refactor()`. Skipped if mappings are empty. +8. **After move** (rollback only): Independently fetches the holding stack template, discovers matching resources, and restores them back to Gen2. ### Template Resolution From 398db04a5d73e58091e9749c38b0cd4311ffa5be Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 24 Mar 2026 09:34:24 -0400 Subject: [PATCH 51/91] test(cli-internal): add buildResourceMappings edge case tests Add tests for multiple matching targets, empty source, resource already in target (rollback skip), and empty rollback source. Remove unused CFNResource import from category-refactorer test. --- Prompt: add missing buildResourceMappings tests. --- .../forward-category-refactorer.test.ts | 17 +++++++++++++++++ .../rollback-category-refactorer.test.ts | 15 +++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts index ac2abae42ee..736dc742610 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts @@ -205,4 +205,21 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching refactorer.testBuildResourceMappings(new Map([['Stream', r('AWS::Kinesis::Stream')]]), new Map([['Bucket', r('AWS::S3::Bucket')]])), ).rejects.toThrow("Source resource 'Stream' (AWS::Kinesis::Stream) has no corresponding target resource"); }); + + it('throws when source resource has multiple matching target resources', async () => { + await expect( + refactorer.testBuildResourceMappings( + new Map([['S3Bucket', r('AWS::S3::Bucket')]]), + new Map([ + ['Bucket1', r('AWS::S3::Bucket')], + ['Bucket2', r('AWS::S3::Bucket')], + ]), + ), + ).rejects.toThrow("Source resource 'S3Bucket' (AWS::S3::Bucket) has multiple corresponding target resources"); + }); + + it('returns empty mappings when source is empty', async () => { + const mappings = await refactorer.testBuildResourceMappings(new Map(), new Map([['amplifyBucket', r('AWS::S3::Bucket')]])); + expect(mappings).toHaveLength(0); + }); }); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts index 658094e11f4..5f181a2cf37 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.test.ts @@ -177,4 +177,19 @@ describe('RollbackCategoryRefactorer.buildResourceMappings (gen1LogicalIds-based 'Unable to determine target id of resource amplifyTopic', ); }); + + it('skips resources that already exist in target stack', async () => { + const refactorer = new TestRollbackMappingRefactorer(new Map([['amplifyBucket', 'S3Bucket']])); + const mappings = await refactorer.testBuildResourceMappings( + new Map([['amplifyBucket', r('AWS::S3::Bucket')]]), + new Map([['S3Bucket', r('AWS::S3::Bucket')]]), + ); + expect(mappings).toHaveLength(0); + }); + + it('returns empty mappings when source is empty', async () => { + const refactorer = new TestRollbackMappingRefactorer(new Map()); + const mappings = await refactorer.testBuildResourceMappings(new Map(), new Map()); + expect(mappings).toHaveLength(0); + }); }); From 576a3477e84c486e298b8d6e6a4afe68c051a421 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 24 Mar 2026 10:30:41 -0400 Subject: [PATCH 52/91] test(cli-internal): add targetLogicalId and match tests for all refactorers Add targetLogicalId tests for auth-cognito-rollback, auth-user-pool-groups-rollback, storage-rollback, storage-dynamo-rollback, and analytics-rollback. Add GroupName-based match tests for auth-user-pool-groups-forward. Add forward edge case tests for duplicate targets and ambiguous same-type matching. Fix bare throw in auth-cognito-rollback to use AmplifyError. Remove unused AmplifyError import from storage-dynamo-rollback. --- Prompt: add targetLogicalId and match tests for all refactorers, fix bare throw. --- .../analytics/analytics-rollback.test.ts | 28 ++++++++ .../auth/auth-cognito-rollback.test.ts | 57 +++++++++++++++ .../auth-user-pool-groups-forward.test.ts | 70 +++++++++++++++++++ .../auth-user-pool-groups-rollback.test.ts | 30 ++++++++ .../storage/storage-dynamo-rollback.test.ts | 28 ++++++++ .../refactor/storage/storage-rollback.test.ts | 28 ++++++++ .../forward-category-refactorer.test.ts | 27 +++++++ .../refactor/auth/auth-cognito-rollback.ts | 5 +- .../storage/storage-dynamo-rollback.ts | 1 - .../workflow/forward-category-refactorer.ts | 60 ++++++++++------ 10 files changed, 310 insertions(+), 24 deletions(-) create mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/analytics/analytics-rollback.test.ts create mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.test.ts create mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.test.ts create mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.test.ts create mode 100644 packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-rollback.test.ts diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/analytics/analytics-rollback.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/analytics/analytics-rollback.test.ts new file mode 100644 index 00000000000..1d99d3e21a7 --- /dev/null +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/analytics/analytics-rollback.test.ts @@ -0,0 +1,28 @@ +import { AnalyticsKinesisRollbackRefactorer } from '../../../../../commands/gen2-migration/refactor/analytics/analytics-rollback'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; +import { noOpLogger } from '../../_framework/logger'; + +describe('AnalyticsKinesisRollbackRefactorer.targetLogicalId', () => { + const refactorer = new (class extends AnalyticsKinesisRollbackRefactorer { + public testTargetLogicalId(type: string): string | undefined { + return this.targetLogicalId('anySourceId', { Type: type, Properties: {} }); + } + })( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'analytics', resourceName: 'test', service: 'Kinesis', key: 'analytics:Kinesis' as const }, + null as unknown as Cfn, + ); + + it('maps Kinesis::Stream to KinesisStream', () => { + expect(refactorer.testTargetLogicalId('AWS::Kinesis::Stream')).toBe('KinesisStream'); + }); + + it('returns undefined for unknown resource type', () => { + expect(refactorer.testTargetLogicalId('AWS::Lambda::Function')).toBeUndefined(); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-rollback.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-rollback.test.ts index a65cede8a74..a6eeb680c86 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-rollback.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-cognito-rollback.test.ts @@ -120,3 +120,60 @@ describe('AuthCognitoRollbackRefactorer.plan()', () => { expect(descriptions.some((d) => d.includes('Move'))).toBe(true); }); }); + +describe('AuthCognitoRollbackRefactorer.targetLogicalId', () => { + function createRefactorer() { + return new (class extends AuthCognitoRollbackRefactorer { + public testTargetLogicalId(sourceId: string, type: string): string | undefined { + return this.targetLogicalId(sourceId, { Type: type, Properties: {} }); + } + })( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'auth', resourceName: 'test', service: 'Cognito', key: 'auth:Cognito' as const }, + null as unknown as Cfn, + ); + } + + const refactorer = createRefactorer(); + + it('maps UserPool to UserPool', () => { + expect(refactorer.testTargetLogicalId('amplifyAuthUserPool1234', 'AWS::Cognito::UserPool')).toBe('UserPool'); + }); + + it('maps IdentityPool to IdentityPool', () => { + expect(refactorer.testTargetLogicalId('amplifyAuthIdentityPool1234', 'AWS::Cognito::IdentityPool')).toBe('IdentityPool'); + }); + + it('maps IdentityPoolRoleAttachment to IdentityPoolRoleMap', () => { + expect(refactorer.testTargetLogicalId('amplifyAuthIdentityPoolRoleAttachment1234', 'AWS::Cognito::IdentityPoolRoleAttachment')).toBe( + 'IdentityPoolRoleMap', + ); + }); + + it('maps UserPoolDomain to UserPoolDomain', () => { + expect(refactorer.testTargetLogicalId('amplifyAuthUserPoolDomain1234', 'AWS::Cognito::UserPoolDomain')).toBe('UserPoolDomain'); + }); + + it('maps NativeAppClient to UserPoolClient', () => { + expect(refactorer.testTargetLogicalId('amplifyAuthUserPoolNativeAppClient1234', 'AWS::Cognito::UserPoolClient')).toBe('UserPoolClient'); + }); + + it('maps AppClient (web) to UserPoolClientWeb', () => { + expect(refactorer.testTargetLogicalId('amplifyAuthUserPoolAppClient1234', 'AWS::Cognito::UserPoolClient')).toBe('UserPoolClientWeb'); + }); + + it('throws for unrecognized UserPoolClient logical ID', () => { + expect(() => refactorer.testTargetLogicalId('SomeRandomClient', 'AWS::Cognito::UserPoolClient')).toThrow( + 'Unable to determine Gen1 logical ID', + ); + }); + + it('returns undefined for unknown resource type', () => { + expect(refactorer.testTargetLogicalId('SomeResource', 'AWS::Lambda::Function')).toBeUndefined(); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.test.ts new file mode 100644 index 00000000000..5ef59cecdb4 --- /dev/null +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.test.ts @@ -0,0 +1,70 @@ +import { AuthUserPoolGroupsForwardRefactorer } from '../../../../../commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward'; +import { CFNResource } from '../../../../../commands/gen2-migration/cfn-template'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; +import { ResourceMapping } from '@aws-sdk/client-cloudformation'; +import { noOpLogger } from '../../_framework/logger'; + +const r = (type: string, props: Record = {}): CFNResource => ({ Type: type, Properties: props }); + +describe('AuthUserPoolGroupsForwardRefactorer.buildResourceMappings — GroupName matching', () => { + function createRefactorer() { + return new (class extends AuthUserPoolGroupsForwardRefactorer { + public async testBuildResourceMappings( + source: Map, + target: Map, + ): Promise { + return this.buildResourceMappings(source, target, 'gen1-auth', 'gen2-auth'); + } + })( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { + category: 'auth', + resourceName: 'userPoolGroups', + service: 'Cognito-UserPool-Groups', + key: 'auth:Cognito-UserPool-Groups' as const, + }, + null as unknown as Cfn, + ); + } + + it('matches groups by GroupName property', async () => { + const refactorer = createRefactorer(); + const mappings = await refactorer.testBuildResourceMappings( + new Map([['AdminGroup', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Admin' })]]), + new Map([['amplifyAuthAdminGroup1234', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Admin' })]]), + ); + expect(mappings).toHaveLength(1); + expect(mappings[0].Source.LogicalResourceId).toBe('AdminGroup'); + expect(mappings[0].Destination.LogicalResourceId).toBe('amplifyAuthAdminGroup1234'); + }); + + it('does not match groups with different GroupName', async () => { + const refactorer = createRefactorer(); + await expect( + refactorer.testBuildResourceMappings( + new Map([['AdminGroup', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Admin' })]]), + new Map([['amplifyAuthEditorGroup1234', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Editor' })]]), + ), + ).rejects.toThrow('has no corresponding target resource'); + }); + + it('matches multiple groups independently', async () => { + const refactorer = createRefactorer(); + const mappings = await refactorer.testBuildResourceMappings( + new Map([ + ['AdminGroup', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Admin' })], + ['EditorGroup', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Editor' })], + ]), + new Map([ + ['amplifyAuthAdminGroup1234', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Admin' })], + ['amplifyAuthEditorGroup1234', r('AWS::Cognito::UserPoolGroup', { GroupName: 'Editor' })], + ]), + ); + expect(mappings).toHaveLength(2); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.test.ts new file mode 100644 index 00000000000..3961d049d65 --- /dev/null +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.test.ts @@ -0,0 +1,30 @@ +import { AuthUserPoolGroupsRollbackRefactorer } from '../../../../../commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; +import { noOpLogger } from '../../_framework/logger'; + +describe('AuthUserPoolGroupsRollbackRefactorer.targetLogicalId', () => { + const refactorer = new (class extends AuthUserPoolGroupsRollbackRefactorer { + public testTargetLogicalId(sourceId: string, type: string, props: Record): string | undefined { + return this.targetLogicalId(sourceId, { Type: type, Properties: props }); + } + })( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'auth', resourceName: 'userPoolGroups', service: 'Cognito-UserPool-Groups', key: 'auth:Cognito-UserPool-Groups' as const }, + null as unknown as Cfn, + ); + + it('maps UserPoolGroup to {GroupName}Group', () => { + expect(refactorer.testTargetLogicalId('amplifyAuthAdminGroup1234', 'AWS::Cognito::UserPoolGroup', { GroupName: 'Admin' })).toBe( + 'AdminGroup', + ); + }); + + it('returns undefined for unknown resource type', () => { + expect(refactorer.testTargetLogicalId('SomeResource', 'AWS::Lambda::Function', {})).toBeUndefined(); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.test.ts new file mode 100644 index 00000000000..8365136e9f5 --- /dev/null +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.test.ts @@ -0,0 +1,28 @@ +import { StorageDynamoRollbackRefactorer } from '../../../../../commands/gen2-migration/refactor/storage/storage-dynamo-rollback'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; +import { noOpLogger } from '../../_framework/logger'; + +describe('StorageDynamoRollbackRefactorer.targetLogicalId', () => { + const refactorer = new (class extends StorageDynamoRollbackRefactorer { + public testTargetLogicalId(type: string): string | undefined { + return this.targetLogicalId('anySourceId', { Type: type, Properties: {} }); + } + })( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'DynamoDB', key: 'storage:DynamoDB' as const }, + null as unknown as Cfn, + ); + + it('maps DynamoDB::Table to DynamoDBTable', () => { + expect(refactorer.testTargetLogicalId('AWS::DynamoDB::Table')).toBe('DynamoDBTable'); + }); + + it('returns undefined for unknown resource type', () => { + expect(refactorer.testTargetLogicalId('AWS::Lambda::Function')).toBeUndefined(); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-rollback.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-rollback.test.ts new file mode 100644 index 00000000000..1c96458847f --- /dev/null +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/storage/storage-rollback.test.ts @@ -0,0 +1,28 @@ +import { StorageS3RollbackRefactorer } from '../../../../../commands/gen2-migration/refactor/storage/storage-rollback'; +import { Cfn } from '../../../../../commands/gen2-migration/refactor/cfn'; +import { noOpLogger } from '../../_framework/logger'; + +describe('StorageS3RollbackRefactorer.targetLogicalId', () => { + const refactorer = new (class extends StorageS3RollbackRefactorer { + public testTargetLogicalId(type: string): string | undefined { + return this.targetLogicalId('anySourceId', { Type: type, Properties: {} }); + } + })( + null as any, + null as any, + null as any, + 'us-east-1', + '123', + noOpLogger(), + { category: 'storage', resourceName: 'test', service: 'S3', key: 'storage:S3' as const }, + null as unknown as Cfn, + ); + + it('maps S3::Bucket to S3Bucket', () => { + expect(refactorer.testTargetLogicalId('AWS::S3::Bucket')).toBe('S3Bucket'); + }); + + it('returns undefined for unknown resource type', () => { + expect(refactorer.testTargetLogicalId('AWS::Lambda::Function')).toBeUndefined(); + }); +}); diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts index 736dc742610..0486d798a8b 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts @@ -222,4 +222,31 @@ describe('ForwardCategoryRefactorer.buildResourceMappings (default type-matching const mappings = await refactorer.testBuildResourceMappings(new Map(), new Map([['amplifyBucket', r('AWS::S3::Bucket')]])); expect(mappings).toHaveLength(0); }); + + it('throws when two source resources match the same target', async () => { + await expect( + refactorer.testBuildResourceMappings( + new Map([ + ['BucketA', r('AWS::S3::Bucket')], + ['BucketB', r('AWS::S3::Bucket')], + ]), + new Map([['GenBucket', r('AWS::S3::Bucket')]]), + ), + ).rejects.toThrow('has no corresponding target resource'); + }); + + it('throws when both sides have multiple resources of the same type', async () => { + await expect( + refactorer.testBuildResourceMappings( + new Map([ + ['BucketA', r('AWS::S3::Bucket')], + ['BucketB', r('AWS::S3::Bucket')], + ]), + new Map([ + ['GenBucket1', r('AWS::S3::Bucket')], + ['GenBucket2', r('AWS::S3::Bucket')], + ]), + ), + ).rejects.toThrow('has multiple corresponding target resources'); + }); }); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts index 74c8a68fd22..ff11b0d8857 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/auth/auth-cognito-rollback.ts @@ -1,3 +1,4 @@ +import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource } from '../../cfn-template'; import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; import { @@ -36,7 +37,9 @@ export class AuthCognitoRollbackRefactorer extends RollbackCategoryRefactorer { if (sourceId.includes(GEN2_WEB_CLIENT)) { return GEN1_WEB_CLIENT; } - throw new Error(); + throw new AmplifyError('MigrationError', { + message: `Unable to determine Gen1 logical ID for UserPoolClient '${sourceId}' — expected logical ID to contain '${GEN2_NATIVE_APP_CLIENT}' or '${GEN2_WEB_CLIENT}'`, + }); } case 'AWS::Cognito::UserPool': return 'UserPool'; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts index f3e7cb2b47a..b9df4d415c8 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.ts @@ -1,4 +1,3 @@ -import { AmplifyError } from '@aws-amplify/amplify-cli-core'; import { CFNResource } from '../../cfn-template'; import { RollbackCategoryRefactorer } from '../workflow/rollback-category-refactorer'; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 0bc62949eb2..3bf50499eb1 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -28,30 +28,11 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { sourceStackId: string, targetStackId: string, ): Promise { + const usedTargetIds = new Set(); const mappings: ResourceMapping[] = []; for (const [sourceId, sourceResource] of sourceResources) { - const matchedTargets = []; - for (const [targetId, targetResource] of targetResources) { - const matched = this.match(sourceId, sourceResource, targetId, targetResource); - if (matched) { - matchedTargets.push(targetId); - } - } - if (matchedTargets.length === 0) { - throw new AmplifyError('InvalidStackError', { - message: `Source resource '${sourceId}' (${ - sourceResource.Type - }) has no corresponding target resource in stack: ${extractStackNameFromId(targetStackId)}`, - }); - } - if (matchedTargets.length > 1) { - throw new AmplifyError('InvalidStackError', { - message: `Source resource '${sourceId}' (${ - sourceResource.Type - }) has multiple corresponding target resources in stack: ${extractStackNameFromId(targetStackId)}`, - }); - } - const targetId = matchedTargets[0]; + const targetId = this.findMatchingTarget(sourceId, sourceResource, targetResources, usedTargetIds, targetStackId); + usedTargetIds.add(targetId); mappings.push({ Source: { StackName: sourceStackId, LogicalResourceId: sourceId }, Destination: { StackName: targetStackId, LogicalResourceId: targetId }, @@ -60,6 +41,41 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { return mappings; } + /** + * Finds exactly one matching target for a source resource. + * Throws if zero or multiple matches are found. + */ + private findMatchingTarget( + sourceId: string, + sourceResource: CFNResource, + targetResources: Map, + usedTargetIds: Set, + targetStackId: string, + ): string { + const matched: string[] = []; + for (const [targetId, targetResource] of targetResources) { + if (usedTargetIds.has(targetId)) continue; + if (this.match(sourceId, sourceResource, targetId, targetResource)) { + matched.push(targetId); + } + } + if (matched.length === 0) { + throw new AmplifyError('InvalidStackError', { + message: `Source resource '${sourceId}' (${ + sourceResource.Type + }) has no corresponding target resource in stack: ${extractStackNameFromId(targetStackId)}`, + }); + } + if (matched.length > 1) { + throw new AmplifyError('InvalidStackError', { + message: `Source resource '${sourceId}' (${ + sourceResource.Type + }) has multiple corresponding target resources in stack: ${extractStackNameFromId(targetStackId)}`, + }); + } + return matched[0]; + } + /** * Returns true if a source resource corresponds to a target resource. * Default: matches by type. Override for disambiguation (e.g., UserPoolClient). From b9e4ef746849c81247fd1007ffaac5466eb18f5c Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 24 Mar 2026 10:57:51 -0400 Subject: [PATCH 53/91] docs(cli-internal): document resource mapping happy and unhappy paths Add Resource Mapping section to refactor.md explaining forward type-based matching with usedTargetIds dedup, rollback targetLogicalId-based mapping, and all error conditions. --- Prompt: explain happy and unhappy paths of building resource mappings in refactor.md. --- .../src/commands/gen2-migration/refactor.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md b/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md index 7d2750bd130..6e19e5f79e5 100644 --- a/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md +++ b/docs/packages/amplify-cli/src/commands/gen2-migration/refactor.md @@ -94,6 +94,28 @@ Each `CategoryRefactorer.plan()` follows this sequence: 7. **Move**: The main refactor — moves resources from source to target via `Cfn.refactor()`. Skipped if mappings are empty. 8. **After move** (rollback only): Independently fetches the holding stack template, discovers matching resources, and restores them back to Gen2. +### Resource Mapping + +Resource mappings determine which source resources move to which target logical IDs. The mapping strategy differs between forward and rollback. + +**Forward** uses type-based matching. For each source resource, it scans the target stack for resources of the same CloudFormation type. Each target can only be matched once (tracked via a `usedTargetIds` set to prevent two source resources from claiming the same target). + +Happy paths: + +- One source resource of type X, one target resource of type X → maps 1:1 +- Multiple source resources of different types, each with one target match → maps independently +- Source has no resources of the declared types → empty mappings, move is skipped + +Unhappy paths: + +- Source resource has zero matching targets → throws "has no corresponding target resource" +- Source resource has multiple matching targets → throws "has multiple corresponding target resources" +- Two source resources of the same type, one target → first claims the target, second throws "has no corresponding target resource" + +Categories with multiple resources of the same type (e.g., auth with two `UserPoolClient` resources) must override `match()` to disambiguate. Auth Cognito uses the logical ID pattern (Web vs Native), and UserPoolGroups matches by `GroupName` property. + +**Rollback** uses `targetLogicalId()` — each subclass maps Gen2 resource types to known Gen1 logical IDs (e.g., `AWS::Cognito::UserPool` → `UserPool`). Resources whose Gen1 logical ID already exists in the target stack are skipped (they were never moved, or were already rolled back). + ### Template Resolution Templates are resolved to replace CloudFormation intrinsic functions with literal values. This is necessary because the StackRefactor API submits new template bodies for both stacks, and any `Ref`/`Fn::GetAtt` pointing to a resource being moved would become a dangling reference. From e3d532dbb19b3ac5ee6d8709eee99d542bdba670 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 24 Mar 2026 11:44:43 -0400 Subject: [PATCH 54/91] fix(cli-internal): skip holding stack resources already present in beforeMove beforeMove now checks the holding stack template before building resource mappings. Resources that already exist in the holding stack are skipped to handle re-execution of forward after a partial failure. Fix test mock to return empty template for REVIEW_IN_PROGRESS holding stacks. --- Prompt: fix REVIEW_IN_PROGRESS holding stack test failure. --- .../forward-category-refactorer.test.ts | 8 +++++++- .../workflow/forward-category-refactorer.ts | 19 +++++++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts index 0486d798a8b..05cacb08db4 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor/workflow/forward-category-refactorer.test.ts @@ -114,7 +114,13 @@ describe('ForwardCategoryRefactorer.beforeMove', () => { .resolves({ Status: StackRefactorStatus.CREATE_COMPLETE, ExecutionStatus: StackRefactorExecutionStatus.EXECUTE_COMPLETE }); cfnMock.on(ExecuteStackRefactorCommand).resolves({}); cfnMock.on(DescribeStackResourcesCommand).resolves({ StackResources: [] }); - cfnMock.on(GetTemplateCommand).resolves({ TemplateBody: GEN2_TEMPLATE_WITH_BUCKET }); + cfnMock.on(GetTemplateCommand).callsFake(async (input: { StackName?: string }) => { + // REVIEW_IN_PROGRESS holding stack has no resources of interest + if (input.StackName?.endsWith('-holding')) { + return { TemplateBody: JSON.stringify({ AWSTemplateFormatVersion: '2010-09-09', Resources: {}, Outputs: {} }) }; + } + return { TemplateBody: GEN2_TEMPLATE_WITH_BUCKET }; + }); const clients = new AwsClients({ region: 'us-east-1' }); (clients as any).cloudFormation = new CloudFormationClient({}); diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index 3bf50499eb1..d5fc2826608 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -148,21 +148,32 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { this.debug(`Fetching template of gen2 stack: ${gen2StackName}`); const gen2StackTemplate = await this.gen2Branch.fetchTemplate(gen2StackName); + + this.debug(`Locating holding stack: ${holdingStackName}`); + const holdingStack = await this.cfn.findStack(holdingStackName); + const resources = this.filterResourcesByType(gen2StackTemplate); this.debug(`Found ${resources.size} resources to move from stack: ${gen2StackName}`); + const holdingStackTemplate = holdingStack ? await this.cfn.fetchTemplate(holdingStackName) : undefined; + const holdingStackResources = holdingStackTemplate?.Resources ?? {}; + const resourceMappings: ResourceMapping[] = []; for (const logicalId of resources.keys()) { - this.debug(`Registering ${logicalId} to move from ${gen2StackName} to ${holdingStackName}`); + if (logicalId in holdingStackResources) { + // holding stack already contains this resource. can happen on a second + // subsequent execution of forward. the resources we discovered here + // are actually the gen1 resources that were moved. + this.debug(`Not registering ${logicalId} since it already exists in ${holdingStackName}`); + continue; + } + this.debug(`Registering ${logicalId} move to ${holdingStackName}`); resourceMappings.push({ Source: { StackName: gen2StackName, LogicalResourceId: logicalId }, Destination: { StackName: holdingStackName, LogicalResourceId: logicalId }, }); } - this.debug(`Locating holding stack: ${holdingStackName}`); - const holdingStack = await this.cfn.findStack(holdingStackName); - const operations: AmplifyMigrationOperation[] = []; if (holdingStack?.StackStatus === 'REVIEW_IN_PROGRESS') { From c1f546f3d72021f80ce6b3f7bfe773920c507211 Mon Sep 17 00:00:00 2001 From: "Eli Polonsky (AI)" Date: Tue, 24 Mar 2026 14:20:19 -0400 Subject: [PATCH 55/91] feat(cli-internal): delete holding stack after rollback if only placeholder remains After moving resources out of the holding stack during rollback, check if only the migration placeholder resource remains. If so, delete the holding stack. This cleanup happens at execution time since each refactorer moves its own resources independently. --- Prompt: commit what I did. --- .../refactor/workflow/rollback-category-refactorer.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index a39a767d063..5825ddfe032 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -160,6 +160,17 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { }, execute: async () => { await this.cfn.refactor(resourceMappings, this.resource); + + // this needs to happen here instead of during planning because + // each refactorer moves its own resources out of the holding stack. + const holdingStack = await this.cfn.findStack(holdingStackName); + if (holdingStack) { + const holdingStackTemplate = await this.cfn.fetchTemplate(holdingStackName); + const holdingStackResourceIds = Object.keys(holdingStackTemplate.Resources); + if (holdingStackResourceIds.length === 1 && holdingStackResourceIds[0] === MIGRATION_PLACEHOLDER_LOGICAL_ID) { + await this.cfn.deleteStack(holdingStackName, this.resource); + } + } }, }, ]; From 0920d3e99bb0be765acc5ebc3e1992dd9a308f34 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Tue, 24 Mar 2026 16:09:28 -0400 Subject: [PATCH 56/91] chore: bring back discussions from gen2-migration --- amplify-migration-apps/discussions/README.md | 67 ++++- .../amplify/backend.ts | 39 ++- .../amplify/data/resource.ts | 6 +- ...-6NIMXK30VQKX-holding.target.template.json | 4 + ...0a-auth179371D7-6NIMXK30VQKX.template.json | 4 + .../#current-cloud-backend/amplify-meta.json | 255 ++++++++++-------- .../build/cloudformation-template.json | 4 +- .../api/discussions/build/parameters.json | 2 +- .../build/cloudformation-template.json | 4 +- .../build/root-cloudformation-stack.json | 135 +++++++--- ...huseractivity-cloudformation-template.json | 6 +- ...duseractivity-cloudformation-template.json | 6 +- .../build/root-cloudformation-stack.json | 135 +++++++--- .../activity-cloudformation-template.json | 2 +- .../backend-config.json | 11 +- ...huseractivity-cloudformation-template.json | 6 +- .../fetchuseractivity/src/package.json | 4 - ...duseractivity-cloudformation-template.json | 6 +- .../recorduseractivity/src/package.json | 4 - .../activity-cloudformation-template.json | 2 +- .../amplify/backend/amplify-meta.json | 255 ++++++++++-------- .../build/cloudformation-template.json | 4 +- .../api/discussions/build/parameters.json | 2 +- .../build/cloudformation-template.json | 4 +- .../build/root-cloudformation-stack.json | 135 +++++++--- ...huseractivity-cloudformation-template.json | 6 +- ...duseractivity-cloudformation-template.json | 6 +- .../build/root-cloudformation-stack.json | 135 +++++++--- .../activity-cloudformation-template.json | 2 +- .../amplify/backend/backend-config.json | 11 +- ...huseractivity-cloudformation-template.json | 6 +- .../fetchuseractivity/src/package.json | 4 - ...duseractivity-cloudformation-template.json | 6 +- .../recorduseractivity/src/package.json | 4 - .../activity-cloudformation-template.json | 2 +- .../amplify-dependent-resources-ref.d.ts | 16 +- .../amplify/team-provider-info.json | 34 +-- .../_snapshot.pre.generate/package.json | 2 + .../discussions/gen1-test-script.ts | 30 ++- amplify-migration-apps/discussions/index.html | 112 +++++++- .../discussions/migration-config.json | 20 +- .../discussions/package.json | 2 + .../discussions/src/main.js | 114 +++++++- .../discussions/test-utils.ts | 151 ++++++++++- 44 files changed, 1266 insertions(+), 499 deletions(-) diff --git a/amplify-migration-apps/discussions/README.md b/amplify-migration-apps/discussions/README.md index 4f92a3fc61a..dffb23cd7d6 100644 --- a/amplify-migration-apps/discussions/README.md +++ b/amplify-migration-apps/discussions/README.md @@ -2,7 +2,7 @@ ![](./images/app.png) -A discussion application built featuring authentication, GraphQL API, Lambda functions, and DynamoDB storage. +A discussion application built featuring authentication, GraphQL API, Lambda functions, multiple DynamoDB storage tables (activity + bookmarks), and S3. > [!NOTICE] > Since amplify operations add files to your local directory, its better not to operate within this repo. @@ -116,8 +116,9 @@ amplify add api ### Storage -DynamoDB table for storing user activity logs with partition key, sort key, -and global secondary index for querying by activity type. +Two DynamoDB tables: `activity` for storing user activity logs, and `bookmarks` for storing user bookmarks on posts. + +#### Activity Table ```console amplify add storage @@ -169,6 +170,59 @@ https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.Core ✔ Do you want to add a Lambda Trigger for your Table? (y/N) · no ``` +#### Bookmarks Table + +```console +amplify add storage +``` + +```console +? Select from one of the below mentioned services: NoSQL Database + +Welcome to the NoSQL DynamoDB database wizard +This wizard asks you a series of questions to help determine how to set up your NoSQL database table. + +✔ Provide a friendly name · bookmarks +✔ Provide table name · bookmarks + +You can now add columns to the table. + +✔ What would you like to name this column · userId +✔ Choose the data type · string +✔ Would you like to add another column? (Y/n) · yes +✔ What would you like to name this column · postId +✔ Choose the data type · string +✔ Would you like to add another column? (Y/n) · no + +✔ Choose partition key for the table · userId +✔ Do you want to add a sort key to your table? (Y/n) · yes +✔ Choose sort key for the table · postId + +✔ Do you want to add global secondary indexes to your table? (Y/n) · yes +✔ Provide the GSI name · byPost +✔ Choose partition key for the GSI · postId +✔ Do you want to add a sort key to your global secondary index? (Y/n) · no +✔ Do you want to add more global secondary indexes to your table? (Y/n) · no +✔ Do you want to add a Lambda Trigger for your Table? (y/N) · no +``` + +### Storage (S3 Avatars) + +S3 bucket for storing user profile pictures. + +```console +amplify add storage +``` + +```console +? Select from one of the below mentioned services: Content (Images, audio, video, etc.) +✔ Provide a friendly name for your resource that will be used to label this category in the project: · avatars +✔ Provide bucket name: · discus-avatars +✔ Who should have access: · Auth users only +✔ What kind of access do you want for Authenticated users? · create/update, read, delete +✔ Do you want to add a Lambda Trigger for your S3 Bucket? (y/N) · no +``` + ### Function **Node.js Lambda function that retrieves user activity from DynamoDB storage.** @@ -280,6 +334,10 @@ amplify push ├──────────┼─────────────────────────────┼───────────┼───────────────────┤ │ Storage │ activity │ Create │ awscloudformation │ ├──────────┼─────────────────────────────┼───────────┼───────────────────┤ +│ Storage │ bookmarks │ Create │ awscloudformation │ +├──────────┼─────────────────────────────┼───────────┼───────────────────┤ +│ Storage │ avatars │ Create │ awscloudformation │ +├──────────┼─────────────────────────────┼───────────┼───────────────────┤ │ Function │ fetchuseractivity │ Create │ awscloudformation │ ├──────────┼─────────────────────────────┼───────────┼───────────────────┤ │ Function │ recorduseractivity │ Create │ awscloudformation │ @@ -332,7 +390,7 @@ this process for any number of users. > Based on https://github.com/aws-amplify/amplify-cli/blob/gen2-migration/GEN2_MIGRATION_GUIDE.md -First and install the experimental CLI package the provides the new commands: +First install the experimental amplify CLI package that provides the migration commands. ```console npm install --no-save @aws-amplify/cli-internal-gen2-migration-experimental-alpha @@ -419,4 +477,3 @@ git push origin gen2-main ``` Wait for the deployment to finish successfully. - diff --git a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts index a7439aa72ee..b6573ff9559 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts @@ -1,26 +1,28 @@ import { auth } from './auth/resource'; import { data } from './data/resource'; +import { storage } from './storage/resource'; import { fetchuseractivity } from './storage/fetchuseractivity/resource'; import { recorduseractivity } from './storage/recorduseractivity/resource'; +import { DynamoEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; +import { StartingPosition } from 'aws-cdk-lib/aws-lambda'; import { Table, AttributeType, BillingMode, StreamViewType, } from 'aws-cdk-lib/aws-dynamodb'; -import { DynamoEventSource } from 'aws-cdk-lib/aws-lambda-event-sources'; -import { StartingPosition } from 'aws-cdk-lib/aws-lambda'; import { defineBackend } from '@aws-amplify/backend'; import { Duration } from 'aws-cdk-lib'; const backend = defineBackend({ auth, data, + storage, fetchuseractivity, recorduseractivity, }); -const storageStack = backend.createStack('storage'); -const activity = new Table(storageStack, 'activity', { +const storageActivityStack = backend.createStack('storageactivity'); +const activity = new Table(storageActivityStack, 'activity', { partitionKey: { name: 'id', type: AttributeType.STRING }, billingMode: BillingMode.PROVISIONED, readCapacity: 5, @@ -36,6 +38,22 @@ activity.addGlobalSecondaryIndex({ readCapacity: 5, writeCapacity: 5, }); +const storageBookmarksStack = backend.createStack('storagebookmarks'); +const bookmarks = new Table(storageBookmarksStack, 'bookmarks', { + partitionKey: { name: 'userId', type: AttributeType.STRING }, + billingMode: BillingMode.PROVISIONED, + readCapacity: 5, + writeCapacity: 5, + stream: StreamViewType.NEW_IMAGE, + sortKey: { name: 'postId', type: AttributeType.STRING }, +}); +// Add this property to the Table above post refactor: tableName: 'bookmarks-main' +bookmarks.addGlobalSecondaryIndex({ + indexName: 'byPost', + partitionKey: { name: 'postId', type: AttributeType.STRING }, + readCapacity: 5, + writeCapacity: 5, +}); const cfnUserPool = backend.auth.resources.cfnResources.cfnUserPool; cfnUserPool.usernameAttributes = ['phone_number']; cfnUserPool.policies = { @@ -125,3 +143,16 @@ for (const model of ['Topic', 'Post', 'Comment']) { backend.recorduseractivity.resources.lambda.role! ); } +const s3Bucket = backend.storage.resources.cfnResources.cfnBucket; +// Use this bucket name post refactor +// s3Bucket.bucketName = 'discus-avatarsc39a5-main'; +s3Bucket.bucketEncryption = { + serverSideEncryptionConfiguration: [ + { + serverSideEncryptionByDefault: { + sseAlgorithm: 'AES256', + }, + bucketKeyEnabled: false, + }, + ], +}; diff --git a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts index 2c105859a05..2d3a097ac7d 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts @@ -41,9 +41,9 @@ export const data = defineData({ //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables branchName: 'main', modelNameToTableNameMapping: { - Topic: 'Topic-ruiylk7rjnb4ziygno3jh4wrsq-main', - Post: 'Post-ruiylk7rjnb4ziygno3jh4wrsq-main', - Comment: 'Comment-ruiylk7rjnb4ziygno3jh4wrsq-main', + Topic: 'Topic-u3jn2qbupzbyhc3h53673wdvim-main', + Post: 'Post-u3jn2qbupzbyhc3h53673wdvim-main', + Comment: 'Comment-u3jn2qbupzbyhc3h53673wdvim-main', }, }, ], diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.target.template.json index 436c49291be..5a533e7e419 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.target.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.target.template.json @@ -209,6 +209,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json index 41640dfbadb..60395f860ba 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json @@ -308,6 +308,10 @@ "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" } }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], "Metadata": { "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPoolRoleAttachment" } diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 9de8dab1e35..34b789e4330 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,193 +1,228 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-discussions-main-d5a80-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole", + "AuthRoleName": "amplify-discussions-main-c39a5-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "UnauthRoleName": "amplify-discussions-main-d5a80-unauthRole", - "StackName": "amplify-discussions-main-d5a80", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-d5a80/2bc587e0-1a44-11f1-8b6b-0affd4d11c2d", + "DeploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "UnauthRoleName": "amplify-discussions-main-c39a5-unauthRole", + "StackName": "amplify-discussions-main-c39a5", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-c39a5/0e9a6f60-24a2-11f1-8462-0afffd2fb801", "AmplifyAppId": "discussions" } }, - "auth": { - "discussions22367c6822367c68": { - "service": "Cognito", - "providerPlugin": "awscloudformation", - "dependsOn": [], - "customAuth": false, - "frontendAuthConfig": { - "socialProviders": [], - "usernameAttributes": [ - "PHONE_NUMBER" - ], - "signupAttributes": [ - "EMAIL", - "PHONE_NUMBER" - ], - "passwordProtectionSettings": { - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": [] - }, - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS" - ], - "verificationMechanisms": [ - "EMAIL" - ] - }, - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/auth/discussions22367c6822367c68-cloudformation-template.json", - "logicalId": "authdiscussions22367c6822367c68" - }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", - "output": { - "CreatedSNSRole": "arn:aws:iam::123456789012:role/sns22367c68d5a80-main", - "UserPoolId": "us-east-1_Zs9EZpCYX", - "AppClientIDWeb": "ptm2eqjiee7l3e202lstfjd3r", - "AppClientID": "75sq8s16g37d0as1148og20p3i", - "IdentityPoolId": "us-east-1:d1df5c0c-2dd2-4471-bb0b-59c99bdbfe7f", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Zs9EZpCYX", - "IdentityPoolName": "discussions22367c68_identitypool_22367c68__main", - "UserPoolName": "discussions22367c68_userpool_22367c68" - }, - "lastPushDirHash": "ZvxYrY5jFkJyUy3eyrP7RoSop4Y=" - } - }, "api": { "discussions": { - "service": "AppSync", - "providerPlugin": "awscloudformation", "dependsOn": [], "output": { "authConfig": { + "additionalAuthenticationProviders": [], "defaultAuthentication": { - "authenticationType": "API_KEY", "apiKeyConfig": { "apiKeyExpirationDays": 7 - } - }, - "additionalAuthenticationProviders": [] + }, + "authenticationType": "API_KEY" + } }, - "GraphQLAPIIdOutput": "ruiylk7rjnb4ziygno3jh4wrsq", - "GraphQLAPIEndpointOutput": "https://ouxhkkyjibe47illvcmepix6ru.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "u3jn2qbupzbyhc3h53673wdvim", + "GraphQLAPIEndpointOutput": "https://jsm5ex363jcy5fm2reylyox4te.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, + "providerPlugin": "awscloudformation", + "service": "AppSync", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apidiscussions" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "lastPushDirHash": "f67ZKOJM4WJlPWXfx5EsRQOT4UA=" } }, - "storage": { - "activity": { - "service": "DynamoDB", + "auth": { + "discussionsc578c16ec578c16e": { + "customAuth": false, + "dependsOn": [], + "frontendAuthConfig": { + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS" + ], + "passwordProtectionSettings": { + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": [] + }, + "signupAttributes": [ + "EMAIL", + "PHONE_NUMBER" + ], + "socialProviders": [], + "usernameAttributes": [ + "PHONE_NUMBER" + ], + "verificationMechanisms": [ + "EMAIL" + ] + }, "providerPlugin": "awscloudformation", + "service": "Cognito", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", - "logicalId": "storageactivity" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "logicalId": "authdiscussionsc578c16ec578c16e" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "output": { - "PartitionKeyName": "id", - "SortKeyName": "userId", - "SortKeyType": "S", - "Region": "us-east-1", - "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main", - "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-07T17:11:10.591", - "PartitionKeyType": "S", - "Name": "activity-main" + "CreatedSNSRole": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main", + "UserPoolId": "us-east-1_vv2HFjwRK", + "AppClientIDWeb": "7nhjrv5jepqc7kacqiknlj0siu", + "AppClientID": "7tbnnc27p4edfrp7m6bqqkh0gq", + "IdentityPoolId": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_vv2HFjwRK", + "IdentityPoolName": "discussionsc578c16e_identitypool_c578c16e__main", + "UserPoolName": "discussionsc578c16e_userpool_c578c16e" }, - "lastPushDirHash": "LKrx9n9rI5MFeuTLmyTA2Bho0zg=" + "lastPushDirHash": "mPKsrH+CL3NCuCtTWB9nkOHB7ls=" } }, "function": { "fetchuseractivity": { "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", "dependsOn": [ { - "category": "storage", - "resourceName": "activity", "attributes": [ "Name", "Arn", "StreamArn" - ] + ], + "category": "storage", + "resourceName": "activity" } ], - "lastBuildTimeStamp": "2026-03-07T17:10:44.841Z", + "providerPlugin": "awscloudformation", + "service": "Lambda", + "lastBuildTimeStamp": "2026-03-20T21:19:47.115Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T17:10:50.407Z", - "distZipFilename": "fetchuseractivity-6e6d76524e6255314269-build.zip", + "lastPackageTimeStamp": "2026-03-20T21:19:47.147Z", + "distZipFilename": "fetchuseractivity-6e523036545438726f37-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e6d76524e6255314269-build.zip" + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "logicalId": "functionfetchuseractivity" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole0d8fb131-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-main", "Region": "us-east-1", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-main", "Name": "fetchuseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole0d8fb131-main" + "LambdaExecutionRole": "discussionsLambdaRole44bd86bc-main" }, - "lastPushDirHash": "CCqZ3/vYa1JDk4/MxnxlXZTZKG0=" + "lastPushDirHash": "R64T5GvXPz84ttStgLRDEvqSeOg=" }, "recorduseractivity": { "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", "dependsOn": [ { - "category": "api", - "resourceName": "discussions", "attributes": [ "GraphQLAPIIdOutput", "GraphQLAPIEndpointOutput" - ] + ], + "category": "api", + "resourceName": "discussions" }, { - "category": "storage", - "resourceName": "activity", "attributes": [ "Name", "Arn", "StreamArn" - ] + ], + "category": "storage", + "resourceName": "activity" } ], - "lastBuildTimeStamp": "2026-03-07T17:10:52.805Z", + "providerPlugin": "awscloudformation", + "service": "Lambda", + "lastBuildTimeStamp": "2026-03-20T21:19:47.546Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T17:10:58.024Z", - "distZipFilename": "recorduseractivity-4969755347686f776962-build.zip", + "lastPackageTimeStamp": "2026-03-20T21:19:47.560Z", + "distZipFilename": "recorduseractivity-433947686f7145754543-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/recorduseractivity-4969755347686f776962-build.zip" + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "logicalId": "functionrecorduseractivity" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole7674760b-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-main", "Region": "us-east-1", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-main", "Name": "recorduseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole7674760b-main" + "LambdaExecutionRole": "discussionsLambdaRole62a425ae-main" + }, + "lastPushDirHash": "wpepR6GRBy0XTCEXNmYdMZdmEvM=" + } + }, + "storage": { + "activity": { + "providerPlugin": "awscloudformation", + "service": "DynamoDB", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "logicalId": "storageactivity" + }, + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "output": { + "PartitionKeyName": "id", + "SortKeyName": "userId", + "SortKeyType": "S", + "Region": "us-east-1", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516", + "PartitionKeyType": "S", + "Name": "activity-main" + }, + "lastPushDirHash": "LKrx9n9rI5MFeuTLmyTA2Bho0zg=" + }, + "avatars": { + "dependsOn": [], + "providerPlugin": "awscloudformation", + "service": "S3", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "logicalId": "storageavatars" + }, + "output": { + "BucketName": "discus-avatarsc39a5-main", + "Region": "us-east-1" + }, + "lastPushDirHash": "rNwwRZG31h4CJSNavssQfx7X9sQ=" + }, + "bookmarks": { + "providerPlugin": "awscloudformation", + "service": "DynamoDB", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "logicalId": "storagebookmarks" + }, + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "output": { + "PartitionKeyName": "userId", + "SortKeyName": "postId", + "SortKeyType": "S", + "Region": "us-east-1", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main/stream/2026-03-20T21:19:57.495", + "PartitionKeyType": "S", + "Name": "bookmarks-main" }, - "lastPushDirHash": "oiEx6GaCR5Xqn9AkM8N+qHVANXw=" + "lastPushDirHash": "UcosRNORY7WR8bi+QNNLl+eX+Eo=" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json index 545cd8480fd..647ae86b7e0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1773508259 + "Expires": 1774646388 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json index 85fe81669da..7219a2a69a5 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json @@ -2,6 +2,6 @@ "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-d5a80-deployment", + "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json index 545cd8480fd..647ae86b7e0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1773508259 + "Expires": 1774646388 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 3c701beabac..7d427d24e55 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -199,15 +199,29 @@ } } }, - "authdiscussions22367c6822367c68": { + "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/auth/discussions22367c6822367c68-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "identityPoolName": "discussions22367c68_identitypool_22367c68", + "AppSyncApiName": "discussions", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", + "env": "main" + } + } + }, + "authdiscussionsc578c16ec578c16e": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "Parameters": { + "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "discus22367c68", - "userPoolName": "discussions22367c68_userpool_22367c68", + "resourceNameTruncated": "discusc578c16e", + "userPoolName": "discussionsc578c16e_userpool_c578c16e", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -224,10 +238,10 @@ "userpoolClientRefreshTokenValidity": "120", "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "discus22367c68_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "discusc578c16e_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "22367c68", - "resourceName": "discussions22367c6822367c68", + "sharedId": "c578c16e", + "resourceName": "discussionsc578c16ec578c16e", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -258,41 +272,13 @@ } } }, - "apidiscussions": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "discussions", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-d5a80-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" - } - } - }, - "storageactivity": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", - "Parameters": { - "tableName": "activity", - "partitionKeyName": "id", - "partitionKeyType": "S", - "sortKeyName": "userId", - "sortKeyType": "S", - "env": "main" - } - } - }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e6d76524e6255314269-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -318,10 +304,10 @@ "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/recorduseractivity-4969755347686f776962-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -356,11 +342,72 @@ } } }, + "storageactivity": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "Parameters": { + "tableName": "activity", + "partitionKeyName": "id", + "partitionKeyType": "S", + "sortKeyName": "userId", + "sortKeyType": "S", + "env": "main" + } + } + }, + "storageavatars": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "discus-avatars", + "selectedGuestPermissions": "", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_bf41454d", + "s3ProtectedPolicy": "Protected_policy_bf41454d", + "s3PublicPolicy": "Public_policy_bf41454d", + "s3ReadPolicy": "read_policy_bf41454d", + "s3UploadsPolicy": "Uploads_policy_bf41454d", + "authPolicyName": "s3_amplify_bf41454d", + "unauthPolicyName": "s3_amplify_bf41454d", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "DISALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "DISALLOW", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "main" + } + } + }, + "storagebookmarks": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "Parameters": { + "tableName": "bookmarks", + "partitionKeyName": "userId", + "partitionKeyType": "S", + "sortKeyName": "postId", + "sortKeyType": "S", + "env": "main" + } + } + }, "UpdateRolesWithIDPFunction": { "DependsOn": [ "AuthRole", "UnauthRole", - "authdiscussions22367c6822367c68" + "authdiscussionsc578c16ec578c16e" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -470,7 +517,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authdiscussions22367c6822367c68", + "authdiscussionsc578c16ec578c16e", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index cff69443a2b..e44e73d93aa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -110,12 +110,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", { "Fn::Join": [ "", [ - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 1b1d6a91237..34511d0c3c6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -118,12 +118,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", { "Fn::Join": [ "", [ - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 3c701beabac..7d427d24e55 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -199,15 +199,29 @@ } } }, - "authdiscussions22367c6822367c68": { + "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/auth/discussions22367c6822367c68-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "identityPoolName": "discussions22367c68_identitypool_22367c68", + "AppSyncApiName": "discussions", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", + "env": "main" + } + } + }, + "authdiscussionsc578c16ec578c16e": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "Parameters": { + "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "discus22367c68", - "userPoolName": "discussions22367c68_userpool_22367c68", + "resourceNameTruncated": "discusc578c16e", + "userPoolName": "discussionsc578c16e_userpool_c578c16e", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -224,10 +238,10 @@ "userpoolClientRefreshTokenValidity": "120", "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "discus22367c68_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "discusc578c16e_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "22367c68", - "resourceName": "discussions22367c6822367c68", + "sharedId": "c578c16e", + "resourceName": "discussionsc578c16ec578c16e", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -258,41 +272,13 @@ } } }, - "apidiscussions": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "discussions", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-d5a80-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" - } - } - }, - "storageactivity": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", - "Parameters": { - "tableName": "activity", - "partitionKeyName": "id", - "partitionKeyType": "S", - "sortKeyName": "userId", - "sortKeyType": "S", - "env": "main" - } - } - }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e6d76524e6255314269-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -318,10 +304,10 @@ "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/recorduseractivity-4969755347686f776962-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -356,11 +342,72 @@ } } }, + "storageactivity": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "Parameters": { + "tableName": "activity", + "partitionKeyName": "id", + "partitionKeyType": "S", + "sortKeyName": "userId", + "sortKeyType": "S", + "env": "main" + } + } + }, + "storageavatars": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "discus-avatars", + "selectedGuestPermissions": "", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_bf41454d", + "s3ProtectedPolicy": "Protected_policy_bf41454d", + "s3PublicPolicy": "Public_policy_bf41454d", + "s3ReadPolicy": "read_policy_bf41454d", + "s3UploadsPolicy": "Uploads_policy_bf41454d", + "authPolicyName": "s3_amplify_bf41454d", + "unauthPolicyName": "s3_amplify_bf41454d", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "DISALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "DISALLOW", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "main" + } + } + }, + "storagebookmarks": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "Parameters": { + "tableName": "bookmarks", + "partitionKeyName": "userId", + "partitionKeyType": "S", + "sortKeyName": "postId", + "sortKeyType": "S", + "env": "main" + } + } + }, "UpdateRolesWithIDPFunction": { "DependsOn": [ "AuthRole", "UnauthRole", - "authdiscussions22367c6822367c68" + "authdiscussionsc578c16ec578c16e" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -470,7 +517,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authdiscussions22367c6822367c68", + "authdiscussionsc578c16ec578c16e", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json index a2cf77e20fa..17ea25a0a60 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index d030749556a..49fe6deb7c4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -18,7 +18,7 @@ } }, "auth": { - "discussions22367c6822367c68": { + "discussionsc578c16ec578c16e": { "customAuth": false, "dependsOn": [], "frontendAuthConfig": { @@ -126,6 +126,15 @@ "activity": { "providerPlugin": "awscloudformation", "service": "DynamoDB" + }, + "avatars": { + "dependsOn": [], + "providerPlugin": "awscloudformation", + "service": "S3" + }, + "bookmarks": { + "providerPlugin": "awscloudformation", + "service": "DynamoDB" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index cff69443a2b..e44e73d93aa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -110,12 +110,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", { "Fn::Join": [ "", [ - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/src/package.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/src/package.json index 9c932a8d90b..4adb03a1ee0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/src/package.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/src/package.json @@ -6,9 +6,5 @@ "license": "Apache-2.0", "devDependencies": { "@types/aws-lambda": "^8.10.92" - }, - "dependencies": { - "@aws-sdk/client-dynamodb": "^3.936.0", - "@aws-sdk/lib-dynamodb": "^3.936.0" } } diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 1b1d6a91237..34511d0c3c6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -118,12 +118,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", { "Fn::Join": [ "", [ - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/src/package.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/src/package.json index 4b0d757e73f..88d7e9d4aca 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/src/package.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/src/package.json @@ -6,9 +6,5 @@ "license": "Apache-2.0", "devDependencies": { "@types/aws-lambda": "^8.10.92" - }, - "dependencies": { - "@aws-sdk/client-dynamodb": "^3.936.0", - "@aws-sdk/lib-dynamodb": "^3.936.0" } } diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json index a2cf77e20fa..17ea25a0a60 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 9de8dab1e35..34b789e4330 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,193 +1,228 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-discussions-main-d5a80-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole", + "AuthRoleName": "amplify-discussions-main-c39a5-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "UnauthRoleName": "amplify-discussions-main-d5a80-unauthRole", - "StackName": "amplify-discussions-main-d5a80", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-d5a80/2bc587e0-1a44-11f1-8b6b-0affd4d11c2d", + "DeploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "UnauthRoleName": "amplify-discussions-main-c39a5-unauthRole", + "StackName": "amplify-discussions-main-c39a5", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-c39a5/0e9a6f60-24a2-11f1-8462-0afffd2fb801", "AmplifyAppId": "discussions" } }, - "auth": { - "discussions22367c6822367c68": { - "service": "Cognito", - "providerPlugin": "awscloudformation", - "dependsOn": [], - "customAuth": false, - "frontendAuthConfig": { - "socialProviders": [], - "usernameAttributes": [ - "PHONE_NUMBER" - ], - "signupAttributes": [ - "EMAIL", - "PHONE_NUMBER" - ], - "passwordProtectionSettings": { - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": [] - }, - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS" - ], - "verificationMechanisms": [ - "EMAIL" - ] - }, - "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/auth/discussions22367c6822367c68-cloudformation-template.json", - "logicalId": "authdiscussions22367c6822367c68" - }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", - "output": { - "CreatedSNSRole": "arn:aws:iam::123456789012:role/sns22367c68d5a80-main", - "UserPoolId": "us-east-1_Zs9EZpCYX", - "AppClientIDWeb": "ptm2eqjiee7l3e202lstfjd3r", - "AppClientID": "75sq8s16g37d0as1148og20p3i", - "IdentityPoolId": "us-east-1:d1df5c0c-2dd2-4471-bb0b-59c99bdbfe7f", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Zs9EZpCYX", - "IdentityPoolName": "discussions22367c68_identitypool_22367c68__main", - "UserPoolName": "discussions22367c68_userpool_22367c68" - }, - "lastPushDirHash": "ZvxYrY5jFkJyUy3eyrP7RoSop4Y=" - } - }, "api": { "discussions": { - "service": "AppSync", - "providerPlugin": "awscloudformation", "dependsOn": [], "output": { "authConfig": { + "additionalAuthenticationProviders": [], "defaultAuthentication": { - "authenticationType": "API_KEY", "apiKeyConfig": { "apiKeyExpirationDays": 7 - } - }, - "additionalAuthenticationProviders": [] + }, + "authenticationType": "API_KEY" + } }, - "GraphQLAPIIdOutput": "ruiylk7rjnb4ziygno3jh4wrsq", - "GraphQLAPIEndpointOutput": "https://ouxhkkyjibe47illvcmepix6ru.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "u3jn2qbupzbyhc3h53673wdvim", + "GraphQLAPIEndpointOutput": "https://jsm5ex363jcy5fm2reylyox4te.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, + "providerPlugin": "awscloudformation", + "service": "AppSync", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apidiscussions" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "lastPushDirHash": "f67ZKOJM4WJlPWXfx5EsRQOT4UA=" } }, - "storage": { - "activity": { - "service": "DynamoDB", + "auth": { + "discussionsc578c16ec578c16e": { + "customAuth": false, + "dependsOn": [], + "frontendAuthConfig": { + "mfaConfiguration": "OFF", + "mfaTypes": [ + "SMS" + ], + "passwordProtectionSettings": { + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": [] + }, + "signupAttributes": [ + "EMAIL", + "PHONE_NUMBER" + ], + "socialProviders": [], + "usernameAttributes": [ + "PHONE_NUMBER" + ], + "verificationMechanisms": [ + "EMAIL" + ] + }, "providerPlugin": "awscloudformation", + "service": "Cognito", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", - "logicalId": "storageactivity" + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "logicalId": "authdiscussionsc578c16ec578c16e" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "output": { - "PartitionKeyName": "id", - "SortKeyName": "userId", - "SortKeyType": "S", - "Region": "us-east-1", - "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main", - "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-07T17:11:10.591", - "PartitionKeyType": "S", - "Name": "activity-main" + "CreatedSNSRole": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main", + "UserPoolId": "us-east-1_vv2HFjwRK", + "AppClientIDWeb": "7nhjrv5jepqc7kacqiknlj0siu", + "AppClientID": "7tbnnc27p4edfrp7m6bqqkh0gq", + "IdentityPoolId": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_vv2HFjwRK", + "IdentityPoolName": "discussionsc578c16e_identitypool_c578c16e__main", + "UserPoolName": "discussionsc578c16e_userpool_c578c16e" }, - "lastPushDirHash": "LKrx9n9rI5MFeuTLmyTA2Bho0zg=" + "lastPushDirHash": "mPKsrH+CL3NCuCtTWB9nkOHB7ls=" } }, "function": { "fetchuseractivity": { "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", "dependsOn": [ { - "category": "storage", - "resourceName": "activity", "attributes": [ "Name", "Arn", "StreamArn" - ] + ], + "category": "storage", + "resourceName": "activity" } ], - "lastBuildTimeStamp": "2026-03-07T17:10:44.841Z", + "providerPlugin": "awscloudformation", + "service": "Lambda", + "lastBuildTimeStamp": "2026-03-20T21:19:47.115Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T17:10:50.407Z", - "distZipFilename": "fetchuseractivity-6e6d76524e6255314269-build.zip", + "lastPackageTimeStamp": "2026-03-20T21:19:47.147Z", + "distZipFilename": "fetchuseractivity-6e523036545438726f37-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e6d76524e6255314269-build.zip" + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "logicalId": "functionfetchuseractivity" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole0d8fb131-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-main", "Region": "us-east-1", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-main", "Name": "fetchuseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole0d8fb131-main" + "LambdaExecutionRole": "discussionsLambdaRole44bd86bc-main" }, - "lastPushDirHash": "CCqZ3/vYa1JDk4/MxnxlXZTZKG0=" + "lastPushDirHash": "R64T5GvXPz84ttStgLRDEvqSeOg=" }, "recorduseractivity": { "build": true, - "providerPlugin": "awscloudformation", - "service": "Lambda", "dependsOn": [ { - "category": "api", - "resourceName": "discussions", "attributes": [ "GraphQLAPIIdOutput", "GraphQLAPIEndpointOutput" - ] + ], + "category": "api", + "resourceName": "discussions" }, { - "category": "storage", - "resourceName": "activity", "attributes": [ "Name", "Arn", "StreamArn" - ] + ], + "category": "storage", + "resourceName": "activity" } ], - "lastBuildTimeStamp": "2026-03-07T17:10:52.805Z", + "providerPlugin": "awscloudformation", + "service": "Lambda", + "lastBuildTimeStamp": "2026-03-20T21:19:47.546Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T17:10:58.024Z", - "distZipFilename": "recorduseractivity-4969755347686f776962-build.zip", + "lastPackageTimeStamp": "2026-03-20T21:19:47.560Z", + "distZipFilename": "recorduseractivity-433947686f7145754543-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/recorduseractivity-4969755347686f776962-build.zip" + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "logicalId": "functionrecorduseractivity" }, - "lastPushTimeStamp": "2026-03-07T17:15:23.263Z", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole7674760b-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-main", "Region": "us-east-1", "Arn": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-main", "Name": "recorduseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole7674760b-main" + "LambdaExecutionRole": "discussionsLambdaRole62a425ae-main" + }, + "lastPushDirHash": "wpepR6GRBy0XTCEXNmYdMZdmEvM=" + } + }, + "storage": { + "activity": { + "providerPlugin": "awscloudformation", + "service": "DynamoDB", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "logicalId": "storageactivity" + }, + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "output": { + "PartitionKeyName": "id", + "SortKeyName": "userId", + "SortKeyType": "S", + "Region": "us-east-1", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516", + "PartitionKeyType": "S", + "Name": "activity-main" + }, + "lastPushDirHash": "LKrx9n9rI5MFeuTLmyTA2Bho0zg=" + }, + "avatars": { + "dependsOn": [], + "providerPlugin": "awscloudformation", + "service": "S3", + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "logicalId": "storageavatars" + }, + "output": { + "BucketName": "discus-avatarsc39a5-main", + "Region": "us-east-1" + }, + "lastPushDirHash": "rNwwRZG31h4CJSNavssQfx7X9sQ=" + }, + "bookmarks": { + "providerPlugin": "awscloudformation", + "service": "DynamoDB", + "providerMetadata": { + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "logicalId": "storagebookmarks" + }, + "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "output": { + "PartitionKeyName": "userId", + "SortKeyName": "postId", + "SortKeyType": "S", + "Region": "us-east-1", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main/stream/2026-03-20T21:19:57.495", + "PartitionKeyType": "S", + "Name": "bookmarks-main" }, - "lastPushDirHash": "oiEx6GaCR5Xqn9AkM8N+qHVANXw=" + "lastPushDirHash": "UcosRNORY7WR8bi+QNNLl+eX+Eo=" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json index 545cd8480fd..647ae86b7e0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1773508259 + "Expires": 1774646388 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json index 85fe81669da..7219a2a69a5 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json @@ -2,6 +2,6 @@ "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-d5a80-deployment", + "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json index 545cd8480fd..647ae86b7e0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1773508259 + "Expires": 1774646388 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 3c701beabac..7d427d24e55 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -199,15 +199,29 @@ } } }, - "authdiscussions22367c6822367c68": { + "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/auth/discussions22367c6822367c68-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "identityPoolName": "discussions22367c68_identitypool_22367c68", + "AppSyncApiName": "discussions", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", + "env": "main" + } + } + }, + "authdiscussionsc578c16ec578c16e": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "Parameters": { + "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "discus22367c68", - "userPoolName": "discussions22367c68_userpool_22367c68", + "resourceNameTruncated": "discusc578c16e", + "userPoolName": "discussionsc578c16e_userpool_c578c16e", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -224,10 +238,10 @@ "userpoolClientRefreshTokenValidity": "120", "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "discus22367c68_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "discusc578c16e_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "22367c68", - "resourceName": "discussions22367c6822367c68", + "sharedId": "c578c16e", + "resourceName": "discussionsc578c16ec578c16e", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -258,41 +272,13 @@ } } }, - "apidiscussions": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "discussions", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-d5a80-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" - } - } - }, - "storageactivity": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", - "Parameters": { - "tableName": "activity", - "partitionKeyName": "id", - "partitionKeyType": "S", - "sortKeyName": "userId", - "sortKeyType": "S", - "env": "main" - } - } - }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e6d76524e6255314269-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -318,10 +304,10 @@ "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/recorduseractivity-4969755347686f776962-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -356,11 +342,72 @@ } } }, + "storageactivity": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "Parameters": { + "tableName": "activity", + "partitionKeyName": "id", + "partitionKeyType": "S", + "sortKeyName": "userId", + "sortKeyType": "S", + "env": "main" + } + } + }, + "storageavatars": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "discus-avatars", + "selectedGuestPermissions": "", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_bf41454d", + "s3ProtectedPolicy": "Protected_policy_bf41454d", + "s3PublicPolicy": "Public_policy_bf41454d", + "s3ReadPolicy": "read_policy_bf41454d", + "s3UploadsPolicy": "Uploads_policy_bf41454d", + "authPolicyName": "s3_amplify_bf41454d", + "unauthPolicyName": "s3_amplify_bf41454d", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "DISALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "DISALLOW", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "main" + } + } + }, + "storagebookmarks": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "Parameters": { + "tableName": "bookmarks", + "partitionKeyName": "userId", + "partitionKeyType": "S", + "sortKeyName": "postId", + "sortKeyType": "S", + "env": "main" + } + } + }, "UpdateRolesWithIDPFunction": { "DependsOn": [ "AuthRole", "UnauthRole", - "authdiscussions22367c6822367c68" + "authdiscussionsc578c16ec578c16e" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -470,7 +517,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authdiscussions22367c6822367c68", + "authdiscussionsc578c16ec578c16e", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index cff69443a2b..e44e73d93aa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -110,12 +110,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", { "Fn::Join": [ "", [ - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 1b1d6a91237..34511d0c3c6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -118,12 +118,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", { "Fn::Join": [ "", [ - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 3c701beabac..7d427d24e55 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -199,15 +199,29 @@ } } }, - "authdiscussions22367c6822367c68": { + "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/auth/discussions22367c6822367c68-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { - "identityPoolName": "discussions22367c68_identitypool_22367c68", + "AppSyncApiName": "discussions", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", + "env": "main" + } + } + }, + "authdiscussionsc578c16ec578c16e": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "Parameters": { + "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "discus22367c68", - "userPoolName": "discussions22367c68_userpool_22367c68", + "resourceNameTruncated": "discusc578c16e", + "userPoolName": "discussionsc578c16e_userpool_c578c16e", "autoVerifiedAttributes": "email", "mfaConfiguration": "OFF", "mfaTypes": "SMS Text Message", @@ -224,10 +238,10 @@ "userpoolClientRefreshTokenValidity": "120", "userpoolClientWriteAttributes": "email", "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "discus22367c68_userpoolclient_lambda_role", + "userpoolClientLambdaRole": "discusc578c16e_userpoolclient_lambda_role", "userpoolClientSetAttributes": false, - "sharedId": "22367c68", - "resourceName": "discussions22367c6822367c68", + "sharedId": "c578c16e", + "resourceName": "discussionsc578c16ec578c16e", "authSelections": "identityPoolAndUserPool", "useDefault": "manual", "thirdPartyAuth": false, @@ -258,41 +272,13 @@ } } }, - "apidiscussions": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "discussions", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-d5a80-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" - } - } - }, - "storageactivity": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", - "Parameters": { - "tableName": "activity", - "partitionKeyName": "id", - "partitionKeyType": "S", - "sortKeyName": "userId", - "sortKeyType": "S", - "env": "main" - } - } - }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e6d76524e6255314269-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -318,10 +304,10 @@ "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-d5a80-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/recorduseractivity-4969755347686f776962-build.zip", + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -356,11 +342,72 @@ } } }, + "storageactivity": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "Parameters": { + "tableName": "activity", + "partitionKeyName": "id", + "partitionKeyType": "S", + "sortKeyName": "userId", + "sortKeyType": "S", + "env": "main" + } + } + }, + "storageavatars": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "discus-avatars", + "selectedGuestPermissions": "", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_bf41454d", + "s3ProtectedPolicy": "Protected_policy_bf41454d", + "s3PublicPolicy": "Public_policy_bf41454d", + "s3ReadPolicy": "read_policy_bf41454d", + "s3UploadsPolicy": "Uploads_policy_bf41454d", + "authPolicyName": "s3_amplify_bf41454d", + "unauthPolicyName": "s3_amplify_bf41454d", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "DISALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "DISALLOW", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "main" + } + } + }, + "storagebookmarks": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "Parameters": { + "tableName": "bookmarks", + "partitionKeyName": "userId", + "partitionKeyType": "S", + "sortKeyName": "postId", + "sortKeyType": "S", + "env": "main" + } + } + }, "UpdateRolesWithIDPFunction": { "DependsOn": [ "AuthRole", "UnauthRole", - "authdiscussions22367c6822367c68" + "authdiscussionsc578c16ec578c16e" ], "Type": "AWS::Lambda::Function", "Properties": { @@ -470,7 +517,7 @@ }, "idpId": { "Fn::GetAtt": [ - "authdiscussions22367c6822367c68", + "authdiscussionsc578c16ec578c16e", "Outputs.IdentityPoolId" ] }, diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json index a2cf77e20fa..17ea25a0a60 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json index d030749556a..49fe6deb7c4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -18,7 +18,7 @@ } }, "auth": { - "discussions22367c6822367c68": { + "discussionsc578c16ec578c16e": { "customAuth": false, "dependsOn": [], "frontendAuthConfig": { @@ -126,6 +126,15 @@ "activity": { "providerPlugin": "awscloudformation", "service": "DynamoDB" + }, + "avatars": { + "dependsOn": [], + "providerPlugin": "awscloudformation", + "service": "S3" + }, + "bookmarks": { + "providerPlugin": "awscloudformation", + "service": "DynamoDB" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index cff69443a2b..e44e73d93aa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -110,12 +110,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", { "Fn::Join": [ "", [ - "discussionsLambdaRole0d8fb131", + "discussionsLambdaRole44bd86bc", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/src/package.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/src/package.json index 9c932a8d90b..4adb03a1ee0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/src/package.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/src/package.json @@ -6,9 +6,5 @@ "license": "Apache-2.0", "devDependencies": { "@types/aws-lambda": "^8.10.92" - }, - "dependencies": { - "@aws-sdk/client-dynamodb": "^3.936.0", - "@aws-sdk/lib-dynamodb": "^3.936.0" } } diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 1b1d6a91237..34511d0c3c6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -118,12 +118,12 @@ "RoleName": { "Fn::If": [ "ShouldNotCreateEnvResources", - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", { "Fn::Join": [ "", [ - "discussionsLambdaRole7674760b", + "discussionsLambdaRole62a425ae", "-", { "Ref": "env" diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/src/package.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/src/package.json index 4b0d757e73f..88d7e9d4aca 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/src/package.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/src/package.json @@ -6,9 +6,5 @@ "license": "Apache-2.0", "devDependencies": { "@types/aws-lambda": "^8.10.92" - }, - "dependencies": { - "@aws-sdk/client-dynamodb": "^3.936.0", - "@aws-sdk/lib-dynamodb": "^3.936.0" } } diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json index a2cf77e20fa..17ea25a0a60 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 2be656f7cc6..51ec22deece 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -7,7 +7,7 @@ export type AmplifyDependentResourcesAttributes = { } }, "auth": { - "discussions22367c6822367c68": { + "discussionsc578c16ec578c16e": { "AppClientID": "string", "AppClientIDWeb": "string", "CreatedSNSRole": "string", @@ -44,6 +44,20 @@ export type AmplifyDependentResourcesAttributes = { "SortKeyName": "string", "SortKeyType": "string", "StreamArn": "string" + }, + "avatars": { + "BucketName": "string", + "Region": "string" + }, + "bookmarks": { + "Arn": "string", + "Name": "string", + "PartitionKeyName": "string", + "PartitionKeyType": "string", + "Region": "string", + "SortKeyName": "string", + "SortKeyType": "string", + "StreamArn": "string" } } } \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json index a44c217ba8e..9908807370a 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,36 +1,40 @@ { "main": { "awscloudformation": { - "AuthRoleName": "amplify-discussions-main-d5a80-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-d5a80-authRole", + "AuthRoleName": "amplify-discussions-main-c39a5-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "UnauthRoleName": "amplify-discussions-main-d5a80-unauthRole", - "StackName": "amplify-discussions-main-d5a80", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-d5a80/2bc587e0-1a44-11f1-8b6b-0affd4d11c2d", + "DeploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "UnauthRoleName": "amplify-discussions-main-c39a5-unauthRole", + "StackName": "amplify-discussions-main-c39a5", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-c39a5/0e9a6f60-24a2-11f1-8462-0afffd2fb801", "AmplifyAppId": "discussions" }, "categories": { "auth": { - "discussions22367c6822367c68": {} + "discussionsc578c16ec578c16e": {} }, "function": { "fetchuseractivity": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e6d76524e6255314269-build.zip" + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip" }, "recorduseractivity": { - "deploymentBucketName": "amplify-discussions-main-d5a80-deployment", - "s3Key": "amplify-builds/recorduseractivity-4969755347686f776962-build.zip" - } + "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", + "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip" + }, + "activity": {}, + "discussions": {} }, "api": { "discussions": {} }, "storage": { - "activity": {} + "activity": {}, + "avatars": {}, + "bookmarks": {} } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json index 1f4874f0128..a43104ec77a 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json @@ -20,6 +20,8 @@ "vite": "^7.2.2" }, "dependencies": { + "@aws-sdk/client-dynamodb": "^3.936.0", + "@aws-sdk/lib-dynamodb": "^3.936.0", "aws-amplify": "^6.15.8" } } diff --git a/amplify-migration-apps/discussions/gen1-test-script.ts b/amplify-migration-apps/discussions/gen1-test-script.ts index 9d4c973c019..322b36d468e 100644 --- a/amplify-migration-apps/discussions/gen1-test-script.ts +++ b/amplify-migration-apps/discussions/gen1-test-script.ts @@ -7,7 +7,9 @@ * 3. Post CRUD Operations * 4. Comment CRUD Operations * 5. User Activity Tracking - * 6. Cleanup (Delete Test Data) + * 6. S3 Storage (Avatars) + * 7. Bookmarks DDB + * 8. Cleanup (Delete Test Data) * * Credentials are provisioned automatically via Cognito AdminCreateUser + AdminSetUserPassword. */ @@ -40,7 +42,9 @@ async function runAllTests(): Promise { console.log(' 3. Post CRUD Operations'); console.log(' 4. Comment CRUD Operations'); console.log(' 5. User Activity Tracking'); - console.log(' 6. Cleanup (Delete Test Data)'); + console.log(' 6. S3 Storage (Avatars)'); + console.log(' 7. Bookmarks DDB'); + console.log(' 8. Cleanup (Delete Test Data)'); // Provision user via admin APIs, then sign in here so tokens stay in this module's Amplify scope const { signinValue, testUser } = await provisionTestUser(amplifyconfig); @@ -57,8 +61,16 @@ async function runAllTests(): Promise { const runner = new TestRunner(); const testFunctions = createTestFunctions(); - const { runQueryTests, runTopicMutationTests, runPostMutationTests, runCommentMutationTests, runActivityTests, runCleanupTests } = - createTestOrchestrator(testFunctions, runner); + const { + runQueryTests, + runTopicMutationTests, + runPostMutationTests, + runCommentMutationTests, + runActivityTests, + runStorageTests, + runBookmarksTests, + runCleanupTests, + } = createTestOrchestrator(testFunctions, runner); // Get current user ID for activity tests const currentUser = await getCurrentUser(); @@ -84,7 +96,15 @@ async function runAllTests(): Promise { // Part 5: Activity tests await runActivityTests(currentUser.userId); - // Part 6: Cleanup + // Part 6: S3 Storage (Avatars) + await runStorageTests(); + + // Part 7: Bookmarks DDB (requires a post to bookmark) + if (postId) { + await runBookmarksTests(currentUser.userId, postId); + } + + // Part 8: Cleanup await runCleanupTests(topicId, postId, commentId); // Sign out diff --git a/amplify-migration-apps/discussions/index.html b/amplify-migration-apps/discussions/index.html index 558a994e5b4..e0d813dd9e0 100644 --- a/amplify-migration-apps/discussions/index.html +++ b/amplify-migration-apps/discussions/index.html @@ -489,6 +489,89 @@ /* Utilities */ .hidden { display: none; } + /* Profile Page */ + .profile-section { + display: flex; + align-items: center; + gap: 30px; + padding: 40px; + background: #f7fafc; + border-radius: 16px; + margin-bottom: 30px; + } + .profile-avatar-container { + display: flex; + flex-direction: column; + align-items: center; + gap: 15px; + } + .profile-avatar { + width: 120px; + height: 120px; + font-size: 40px; + border-radius: 50%; + object-fit: cover; + } + .avatar-upload-btn { + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + color: white; + padding: 10px 20px; + border-radius: 25px; + cursor: pointer; + font-size: 14px; + font-weight: 600; + transition: all 0.3s; + } + .avatar-upload-btn:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); + } + .profile-info { + flex: 1; + } + .profile-name { + font-size: 24px; + font-weight: 700; + color: #2d3748; + margin-bottom: 5px; + } + .profile-meta { + color: #718096; + font-size: 16px; + } + .upload-status { + padding: 15px; + border-radius: 12px; + text-align: center; + font-weight: 600; + } + .upload-status.success { + background: #c6f6d5; + color: #276749; + } + .upload-status.error { + background: #fed7d7; + color: #c53030; + } + .upload-status.loading { + background: #e9d8fd; + color: #553c9a; + } + .clickable-avatar { + cursor: pointer; + transition: transform 0.2s, box-shadow 0.2s; + } + .clickable-avatar:hover { + transform: scale(1.1); + box-shadow: 0 4px 12px rgba(0,0,0,0.3); + } + .avatar-img { + width: 100%; + height: 100%; + border-radius: 50%; + object-fit: cover; + } + /* Page Header */ .page-header { margin-bottom: 25px; @@ -565,7 +648,7 @@

Confirm Your Account

-
U
+
U
@@ -624,6 +707,33 @@

+ + +