Skip to content

docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.10#787

Open
nx-plugin-for-aws wants to merge 4 commits into
mainfrom
docs/pdk-migration-rc
Open

docs(pdk-migration): update guide for @aws/nx-plugin 1.0.0-rc.10#787
nx-plugin-for-aws wants to merge 4 commits into
mainfrom
docs/pdk-migration-rc

Conversation

@nx-plugin-for-aws

Copy link
Copy Markdown
Collaborator

Reason for this change

The PDK migration guide was pinned to @aws/nx-plugin@0.50.0 and used an old workspace-creation command and pre-1.0 generator names. This validates and updates the guide against the latest 1.0.0-rc.10 release.

I performed a full real migration of the shopping-list tutorial app end-to-end on 1.0.0-rc.10 — including a live AWS deploy, an authenticated end-to-end API test, and teardown — to confirm every step.

Description of changes

  • Workspace creation: replaced the hand-written create-nx-workspace --preset Tabs with the documented <CreateNxWorkspaceCommand> component, pinned to 1.0.0-rc.10 via the tag prop (removed now-unused Tabs/TabItem import).
  • Version pin updated from 0.50.0 to 1.0.0-rc.10 in the point-in-time callout.
  • API generator: use the documented ts#api entry point with framework: 'smithy' (instead of ts#smithy-api directly), and lowercase auth: 'iam' (the enum is now lowercase).
  • Website generators: use the documented ts#website (framework: 'react') and ts#website#auth entry points (instead of ts#react-website / ts#react-website#auth). Same fix applied to the Type Safe API FAQ snippet.
  • Echo operation: added a step to delete the scaffolded example Echo operation handler (backend/src/operations/echo.ts), which otherwise breaks the build once the operation is removed from the model.
  • @aws-northstar/ui + ace-builds: added a manual step to exclude ace-builds/webpack-resolver from the Vite bundle. Northstar bundles a code editor that uses a webpack-specific import which the current Vite/Rolldown bundler can't resolve; the shopping-list app doesn't use that component, so we externalise it. This is documented as a manual tutorial step under "Add AWS Northstar Dependency" since Northstar isn't part of the website generator.
  • tsx: added a step to install tsx before serve-local, since the Smithy API's local server runs with it. (Also fixed at the source in fix(ts#smithy-api): add tsx as a dev dependency #786 — once that releases this step can be dropped.)

Description of how you validated changes

  • Ran the entire migration on a fresh pnpm create @aws/nx-workspace@1.0.0-rc.10 workspace using the exact documented commands.
  • nx run-many --target build and lint --fix pass for all projects.
  • Verified serve-local runs both the website (4200) and Smithy API (3001).
  • Deployed to AWS, verified the deployed API works with IAM SigV4 auth (GET → POST → GET), then destroyed the stack.
  • Built the docs site (nx build docs) — all pages render without errors.

Issue # (if applicable)

N/A

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions

Copy link
Copy Markdown
Contributor

📚 Documentation translations have been updated and committed (562b566) to this PR.

docs/src/content/docs/es/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/es/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/es/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/es/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/fr/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/fr/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/it/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/it/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/jp/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/jp/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/ko/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/ko/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/pt/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/pt/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/vi/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/vi/snippets/pdk-migration/faq/type-safe-api.mdx
docs/src/content/docs/zh/blog/migrating-from-aws-pdk.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/01-migrate-api.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/zh/snippets/pdk-migration/faq/type-safe-api.mdx

nx-plugin-for-aws and others added 2 commits June 10, 2026 12:36
Use a string module id instead of a regex literal for the ace-builds
external entry. The regex literal inside the diff code block was
mangled by the documentation translation step, producing invalid MDX
in translated files and breaking the docs build.
@github-actions

Copy link
Copy Markdown
Contributor

📚 Documentation translations have been updated and committed (314ee90) to this PR.

docs/src/content/docs/es/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/fr/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/it/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/jp/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/ko/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/pt/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/vi/snippets/pdk-migration/example/02-migrate-website.mdx
docs/src/content/docs/zh/snippets/pdk-migration/example/02-migrate-website.mdx

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.22%. Comparing base (283bb93) to head (314ee90).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #787   +/-   ##
=======================================
  Coverage   87.22%   87.22%           
=======================================
  Files         140      140           
  Lines        4987     4987           
  Branches     1164     1164           
=======================================
  Hits         4350     4350           
  Misses        338      338           
  Partials      299      299           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants