@aws/nx-plugin 1.0.0-rc.87 → 1.0.0-rc.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-THIRD-PARTY +9977 -16000
- package/migrations.json +124 -76
- package/package.json +7 -7
- package/src/agentcore-gateway/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/infra/app/__snapshots__/generator.spec.ts.snap +7 -7
- package/src/migrations/latest/nx-parallel-default/metadata.json +3 -0
- package/src/migrations/latest/nx-parallel-default/migration.d.ts +14 -0
- package/src/migrations/latest/nx-parallel-default/migration.js +29 -0
- package/src/migrations/latest/nx-parallel-default/migration.js.map +1 -0
- package/src/migrations/latest/python-version-drop-exact-patch/metadata.json +3 -0
- package/src/migrations/latest/python-version-drop-exact-patch/migration.js +43 -0
- package/src/migrations/latest/python-version-drop-exact-patch/migration.js.map +1 -0
- package/src/migrations/latest/react-website-nx-react-express-override/metadata.json +3 -0
- package/src/migrations/latest/react-website-nx-react-express-override/migration.d.ts +31 -0
- package/src/migrations/latest/react-website-nx-react-express-override/migration.js +74 -0
- package/src/migrations/latest/react-website-nx-react-express-override/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.77/0001-dynamodb-configurable-encryption/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.77/0002-user-identity-configurable-mfa/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.78/0001-static-website-configurable-waf-encryption/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.79/0001-py-agent-ag-ui-hooks/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.82/0001-terraform-load-runtime-config-src-path/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.82/0002-runtime-config-namespace-defaults/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.83/0001-dynamodb-terraform-app-module-outputs/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.83/0002-terraform-data-resource-destroy-protection/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.83/0003-terraform-gateway-cedar-render-root-ejs/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.84/0001-rdb-terraform-aurora-app-module-defaults/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.84/0002-agentcore-harness-no-tools-by-default/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.84/0003-terraform-declare-used-providers/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.84/0004-waf-log-group-cmk-encryption/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.84/0005-terraform-harness-vpc-role-and-memory-grant/migration.js.map +1 -0
- package/src/migrations/v1.0.0-rc.85/0001-terraform-project-checkov-target-and-bootstrap-destroy/migration.d.ts +6 -0
- package/src/migrations/v1.0.0-rc.85/0001-terraform-project-checkov-target-and-bootstrap-destroy/migration.js.map +1 -0
- package/src/preset/__snapshots__/generator.spec.ts.snap +5 -4
- package/src/py/agent/__snapshots__/generator.constructs.spec.ts.snap +2 -2
- package/src/py/agent/__snapshots__/generator.frameworks.spec.ts.snap +5 -5
- package/src/py/agent/__snapshots__/generator.protocols.spec.ts.snap +4 -4
- package/src/py/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/fast-api/__snapshots__/generator.terraform.spec.ts.snap +12 -12
- package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/py/mcp-server/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/py/rdb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/smithy/project/__snapshots__/generator.spec.ts.snap +7 -7
- package/src/smithy/ts/api/__snapshots__/generator.spec.ts.snap +8 -8
- package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +12 -12
- package/src/ts/agent/__snapshots__/generator.spec.ts.snap +3 -3
- package/src/ts/dcr-proxy/__snapshots__/generator.spec.ts.snap +1 -1
- package/src/ts/dynamodb/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/mcp-server/__snapshots__/generator.spec.ts.snap +2 -2
- package/src/ts/rdb/__snapshots__/generator.spec.ts.snap +5 -5
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +59 -49
- package/src/ts/react-website/app/generator.d.ts +3 -0
- package/src/ts/react-website/app/generator.js +25 -1
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/ts/react-website/cognito-auth/__snapshots__/generator.terraform.spec.ts.snap +2 -2
- package/src/utils/init.d.ts +1 -0
- package/src/utils/init.js +2 -0
- package/src/utils/init.js.map +1 -1
- package/src/utils/lambda-runtime-resolution.d.ts +0 -21
- package/src/utils/lambda-runtime-resolution.js +0 -14
- package/src/utils/lambda-runtime-resolution.js.map +1 -1
- package/src/utils/version-upgrade-migration/sync-python-language-version.d.ts +2 -2
- package/src/utils/version-upgrade-migration/sync-python-language-version.js +2 -2
- package/src/utils/version-upgrade-migration/sync-python-language-version.js.map +1 -1
- package/src/utils/versions.d.ts +58 -62
- package/src/utils/versions.js +57 -60
- package/src/utils/versions.js.map +1 -1
- package/src/migrations/latest/agentcore-harness-no-tools-by-default/migration.js.map +0 -1
- package/src/migrations/latest/dynamodb-configurable-encryption/migration.js.map +0 -1
- package/src/migrations/latest/dynamodb-terraform-app-module-outputs/migration.js.map +0 -1
- package/src/migrations/latest/py-agent-ag-ui-hooks/migration.js.map +0 -1
- package/src/migrations/latest/rdb-terraform-aurora-app-module-defaults/migration.js.map +0 -1
- package/src/migrations/latest/runtime-config-namespace-defaults/migration.js.map +0 -1
- package/src/migrations/latest/static-website-configurable-waf-encryption/migration.js.map +0 -1
- package/src/migrations/latest/terraform-data-resource-destroy-protection/migration.js.map +0 -1
- package/src/migrations/latest/terraform-declare-used-providers/migration.js.map +0 -1
- package/src/migrations/latest/terraform-gateway-cedar-render-root-ejs/migration.js.map +0 -1
- package/src/migrations/latest/terraform-harness-vpc-role-and-memory-grant/migration.js.map +0 -1
- package/src/migrations/latest/terraform-load-runtime-config-src-path/migration.js.map +0 -1
- package/src/migrations/latest/terraform-project-checkov-target-and-bootstrap-destroy/migration.js.map +0 -1
- package/src/migrations/latest/user-identity-configurable-mfa/migration.js.map +0 -1
- package/src/migrations/latest/waf-log-group-cmk-encryption/migration.js.map +0 -1
- /package/src/migrations/latest/{agentcore-harness-no-tools-by-default → python-version-drop-exact-patch}/migration.d.ts +0 -0
- /package/src/migrations/{latest/dynamodb-configurable-encryption → v1.0.0-rc.77/0001-dynamodb-configurable-encryption}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/dynamodb-configurable-encryption → v1.0.0-rc.77/0001-dynamodb-configurable-encryption}/metadata.json +0 -0
- /package/src/migrations/{latest/dynamodb-configurable-encryption → v1.0.0-rc.77/0001-dynamodb-configurable-encryption}/migration.d.ts +0 -0
- /package/src/migrations/{latest/dynamodb-configurable-encryption → v1.0.0-rc.77/0001-dynamodb-configurable-encryption}/migration.js +0 -0
- /package/src/migrations/{latest/user-identity-configurable-mfa → v1.0.0-rc.77/0002-user-identity-configurable-mfa}/metadata.json +0 -0
- /package/src/migrations/{latest/terraform-data-resource-destroy-protection → v1.0.0-rc.77/0002-user-identity-configurable-mfa}/migration.d.ts +0 -0
- /package/src/migrations/{latest/user-identity-configurable-mfa → v1.0.0-rc.77/0002-user-identity-configurable-mfa}/migration.js +0 -0
- /package/src/migrations/{latest/static-website-configurable-waf-encryption → v1.0.0-rc.78/0001-static-website-configurable-waf-encryption}/metadata.json +0 -0
- /package/src/migrations/{latest/dynamodb-terraform-app-module-outputs → v1.0.0-rc.78/0001-static-website-configurable-waf-encryption}/migration.d.ts +0 -0
- /package/src/migrations/{latest/static-website-configurable-waf-encryption → v1.0.0-rc.78/0001-static-website-configurable-waf-encryption}/migration.js +0 -0
- /package/src/migrations/{latest/py-agent-ag-ui-hooks → v1.0.0-rc.79/0001-py-agent-ag-ui-hooks}/metadata.json +0 -0
- /package/src/migrations/{latest/py-agent-ag-ui-hooks → v1.0.0-rc.79/0001-py-agent-ag-ui-hooks}/migration.d.ts +0 -0
- /package/src/migrations/{latest/py-agent-ag-ui-hooks → v1.0.0-rc.79/0001-py-agent-ag-ui-hooks}/migration.js +0 -0
- /package/src/migrations/{latest/terraform-load-runtime-config-src-path → v1.0.0-rc.82/0001-terraform-load-runtime-config-src-path}/metadata.json +0 -0
- /package/src/migrations/{latest/rdb-terraform-aurora-app-module-defaults → v1.0.0-rc.82/0001-terraform-load-runtime-config-src-path}/migration.d.ts +0 -0
- /package/src/migrations/{latest/terraform-load-runtime-config-src-path → v1.0.0-rc.82/0001-terraform-load-runtime-config-src-path}/migration.js +0 -0
- /package/src/migrations/{latest/runtime-config-namespace-defaults → v1.0.0-rc.82/0002-runtime-config-namespace-defaults}/metadata.json +0 -0
- /package/src/migrations/{latest/runtime-config-namespace-defaults → v1.0.0-rc.82/0002-runtime-config-namespace-defaults}/migration.d.ts +0 -0
- /package/src/migrations/{latest/runtime-config-namespace-defaults → v1.0.0-rc.82/0002-runtime-config-namespace-defaults}/migration.js +0 -0
- /package/src/migrations/{latest/dynamodb-terraform-app-module-outputs → v1.0.0-rc.83/0001-dynamodb-terraform-app-module-outputs}/metadata.json +0 -0
- /package/src/migrations/{latest/static-website-configurable-waf-encryption → v1.0.0-rc.83/0001-dynamodb-terraform-app-module-outputs}/migration.d.ts +0 -0
- /package/src/migrations/{latest/dynamodb-terraform-app-module-outputs → v1.0.0-rc.83/0001-dynamodb-terraform-app-module-outputs}/migration.js +0 -0
- /package/src/migrations/{latest/terraform-data-resource-destroy-protection → v1.0.0-rc.83/0002-terraform-data-resource-destroy-protection}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/terraform-data-resource-destroy-protection → v1.0.0-rc.83/0002-terraform-data-resource-destroy-protection}/metadata.json +0 -0
- /package/src/migrations/{latest/user-identity-configurable-mfa → v1.0.0-rc.83/0002-terraform-data-resource-destroy-protection}/migration.d.ts +0 -0
- /package/src/migrations/{latest/terraform-data-resource-destroy-protection → v1.0.0-rc.83/0002-terraform-data-resource-destroy-protection}/migration.js +0 -0
- /package/src/migrations/{latest/terraform-gateway-cedar-render-root-ejs → v1.0.0-rc.83/0003-terraform-gateway-cedar-render-root-ejs}/metadata.json +0 -0
- /package/src/migrations/{latest/terraform-declare-used-providers → v1.0.0-rc.83/0003-terraform-gateway-cedar-render-root-ejs}/migration.d.ts +0 -0
- /package/src/migrations/{latest/terraform-gateway-cedar-render-root-ejs → v1.0.0-rc.83/0003-terraform-gateway-cedar-render-root-ejs}/migration.js +0 -0
- /package/src/migrations/{latest/rdb-terraform-aurora-app-module-defaults → v1.0.0-rc.84/0001-rdb-terraform-aurora-app-module-defaults}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/rdb-terraform-aurora-app-module-defaults → v1.0.0-rc.84/0001-rdb-terraform-aurora-app-module-defaults}/metadata.json +0 -0
- /package/src/migrations/{latest/terraform-gateway-cedar-render-root-ejs → v1.0.0-rc.84/0001-rdb-terraform-aurora-app-module-defaults}/migration.d.ts +0 -0
- /package/src/migrations/{latest/rdb-terraform-aurora-app-module-defaults → v1.0.0-rc.84/0001-rdb-terraform-aurora-app-module-defaults}/migration.js +0 -0
- /package/src/migrations/{latest/agentcore-harness-no-tools-by-default → v1.0.0-rc.84/0002-agentcore-harness-no-tools-by-default}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/agentcore-harness-no-tools-by-default → v1.0.0-rc.84/0002-agentcore-harness-no-tools-by-default}/metadata.json +0 -0
- /package/src/migrations/{latest/terraform-harness-vpc-role-and-memory-grant → v1.0.0-rc.84/0002-agentcore-harness-no-tools-by-default}/migration.d.ts +0 -0
- /package/src/migrations/{latest/agentcore-harness-no-tools-by-default → v1.0.0-rc.84/0002-agentcore-harness-no-tools-by-default}/migration.js +0 -0
- /package/src/migrations/{latest/terraform-declare-used-providers → v1.0.0-rc.84/0003-terraform-declare-used-providers}/metadata.json +0 -0
- /package/src/migrations/{latest/terraform-load-runtime-config-src-path → v1.0.0-rc.84/0003-terraform-declare-used-providers}/migration.d.ts +0 -0
- /package/src/migrations/{latest/terraform-declare-used-providers → v1.0.0-rc.84/0003-terraform-declare-used-providers}/migration.js +0 -0
- /package/src/migrations/{latest/waf-log-group-cmk-encryption → v1.0.0-rc.84/0004-waf-log-group-cmk-encryption}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/waf-log-group-cmk-encryption → v1.0.0-rc.84/0004-waf-log-group-cmk-encryption}/metadata.json +0 -0
- /package/src/migrations/{latest/terraform-project-checkov-target-and-bootstrap-destroy → v1.0.0-rc.84/0004-waf-log-group-cmk-encryption}/migration.d.ts +0 -0
- /package/src/migrations/{latest/waf-log-group-cmk-encryption → v1.0.0-rc.84/0004-waf-log-group-cmk-encryption}/migration.js +0 -0
- /package/src/migrations/{latest/terraform-harness-vpc-role-and-memory-grant → v1.0.0-rc.84/0005-terraform-harness-vpc-role-and-memory-grant}/__snapshots__/migration.spec.ts.snap +0 -0
- /package/src/migrations/{latest/terraform-harness-vpc-role-and-memory-grant → v1.0.0-rc.84/0005-terraform-harness-vpc-role-and-memory-grant}/metadata.json +0 -0
- /package/src/migrations/{latest/waf-log-group-cmk-encryption → v1.0.0-rc.84/0005-terraform-harness-vpc-role-and-memory-grant}/migration.d.ts +0 -0
- /package/src/migrations/{latest/terraform-harness-vpc-role-and-memory-grant → v1.0.0-rc.84/0005-terraform-harness-vpc-role-and-memory-grant}/migration.js +0 -0
- /package/src/migrations/{latest/terraform-project-checkov-target-and-bootstrap-destroy → v1.0.0-rc.85/0001-terraform-project-checkov-target-and-bootstrap-destroy}/metadata.json +0 -0
- /package/src/migrations/{latest/terraform-project-checkov-target-and-bootstrap-destroy → v1.0.0-rc.85/0001-terraform-project-checkov-target-and-bootstrap-destroy}/migration.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../packages/nx-plugin/src/migrations/v1.0.0-rc.85/0001-terraform-project-checkov-target-and-bootstrap-destroy/migration.ts"],"sourcesContent":["/**\n * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n * SPDX-License-Identifier: Apache-2.0\n */\nimport {\n generateFiles,\n getProjects,\n joinPathFragments,\n type MigrationReturnObject,\n OverwriteStrategy,\n type Tree,\n updateProjectConfiguration,\n} from '@nx/devkit';\nimport { TERRAFORM_PROJECT_GENERATOR_INFO } from '../../../terraform/project/generator.js';\nimport { applyGritQL, matchGritQL } from '../../../utils/ast.js';\nimport { formatFilesInSubtree } from '../../../utils/format.js';\nimport { kebabCase } from '../../../utils/names.js';\nimport { normalizeTargetKeyOrder } from '../../../utils/nx.js';\nimport { sortObjectKeys } from '../../../utils/object.js';\n\n/**\n * Terraform projects gained three fixes:\n *\n * - A `checkov` target carries the security scan, matching the name CDK\n * infrastructure projects already use, so `nx run-many --target checkov` no\n * longer skips Terraform projects. An existing `test` target is the user's,\n * so it is left exactly as it is.\n * - A `checkov.yml` gives Terraform users the same central place to configure\n * skips that the CDK app has, wired in via `--config-file`.\n * - `bootstrap-destroy` runs a script that resolves the region from the AWS SDK\n * credential chain and passes it as `-var=aws_region`. The vended\n * `aws_region` variable has no default, so the previous bare\n * `terraform destroy` blocked forever on an input prompt in any non-TTY\n * context.\n * - Both vended `providers.tf` declare `required_version = \">= 1.0\"`, matching\n * every other `.tf` file the plugin vends, and the bootstrap one pins the AWS\n * provider.\n *\n * How to write a migration:\n * - https://nx.dev/docs/kb/migration-generators\n * - What `nextSteps` means: https://nx.dev/docs/reference/devkit/MigrationReturnObject\n */\n\nconst hcl = (pattern: string) => `language hcl\\n${pattern}`;\n\n/** The scan command, as the pre-fix generator vended it on `test`. */\nconst CHECKOV_COMMAND_PATTERN = /uvx --from checkov==/;\n\nconst divergedTargetsStep = (projectName: string) =>\n `${projectName}: no 'test' target carrying the checkov scan was found, so no 'checkov' target was added - add one running checkov over the project so 'nx run-many --target checkov' includes this project.`;\n\nconst divergedProvidersStep = (filePath: string) =>\n `${filePath}: has diverged from the generated shape - left untouched. Add \\`required_version = \">= 1.0\"\\` to its \\`terraform\\` block to pin the minimum Terraform version.`;\n\nconst divergedBootstrapDestroyStep = (projectName: string) =>\n `${projectName}: its 'bootstrap-destroy' target no longer matches the shape the generator produced - left untouched. Pass \\`-var=aws_region=<region>\\` to \\`terraform destroy\\`, otherwise it blocks on an input prompt when run without a TTY.`;\n\n/**\n * Add `required_version` to a `providers.tf` that omits it.\n *\n * The bootstrap copy has no `terraform` block at all, so it is created;\n * the src copy has one holding `required_providers`, so it is added to.\n */\nconst migrateRequiredVersion = async (\n tree: Tree,\n filePath: string,\n nextSteps: string[],\n): Promise<void> => {\n if (!tree.exists(filePath)) return;\n\n // Already declared - nothing to do, whatever constraint the user chose.\n if (await matchGritQL(tree, filePath, hcl('`required_version = $_`'))) {\n return;\n }\n\n const hasRequiredProviders = await matchGritQL(\n tree,\n filePath,\n hcl(\n '`terraform { $body }` where { $body <: contains `required_providers` }',\n ),\n );\n\n if (hasRequiredProviders) {\n await applyGritQL(\n tree,\n filePath,\n hcl(\n '`terraform { $body }` => `terraform {\\n required_version = \">= 1.0\"\\n\\n $body\\n}`',\n ),\n );\n return;\n }\n\n // No `terraform` block: prepend one ahead of the aws provider block.\n const providerBlock = hcl('`provider \"aws\" { $body }`');\n if (!(await matchGritQL(tree, filePath, providerBlock))) {\n nextSteps.push(divergedProvidersStep(filePath));\n return;\n }\n\n await applyGritQL(\n tree,\n filePath,\n hcl(\n '`provider \"aws\" { $body }` => `terraform {\\n required_version = \">= 1.0\"\\n}\\n\\nprovider \"aws\" {\\n $body\\n}`',\n ),\n );\n};\n\nexport default async function migration(\n tree: Tree,\n): Promise<MigrationReturnObject> {\n const nextSteps: string[] = [];\n\n for (const [projectName, project] of getProjects(tree)) {\n const generator = (project.metadata as { generator?: string } | undefined)\n ?.generator;\n if (generator !== TERRAFORM_PROJECT_GENERATOR_INFO.id) continue;\n\n const targets = project.targets ?? {};\n let changed = false;\n\n // Add `checkov`, copying the scan from the `test` target the pre-fix\n // generator put it on. `test` itself belongs to the user and is left as it\n // is. Guarded on `checkov` being absent so a re-run is a no-op.\n if (!targets.checkov) {\n const command = targets.test?.options?.command;\n\n if (\n typeof command !== 'string' ||\n !CHECKOV_COMMAND_PATTERN.test(command)\n ) {\n nextSteps.push(divergedTargetsStep(projectName));\n } else {\n // The config file is vended below, so wire it in at the same time.\n const withConfigFile = command.includes('--config-file')\n ? command\n : command.replace(\n 'checkov --directory',\n 'checkov --config-file ../checkov.yml --directory',\n );\n\n targets.checkov = normalizeTargetKeyOrder({\n ...targets.test,\n options: { ...targets.test.options, command: withConfigFile },\n });\n changed = true;\n }\n }\n\n // Point `bootstrap-destroy` at the vended script, which resolves the\n // region rather than leaving terraform to prompt for it.\n const bootstrapDestroy = targets['bootstrap-destroy'];\n if (bootstrapDestroy) {\n const scriptCommand = `tsx {projectRoot}/scripts/bootstrap-destroy.ts {projectRoot}`;\n const alreadyMigrated =\n bootstrapDestroy.options?.commands?.[0] === scriptCommand;\n\n if (!alreadyMigrated) {\n const command = bootstrapDestroy.options?.command;\n // Only rewrite the exact shape the generator produced.\n const isVendedShape =\n typeof command === 'string' &&\n /^terraform destroy -state=\\S+bootstrap\\.tfstate$/.test(\n command.trim(),\n );\n\n if (!isVendedShape) {\n nextSteps.push(divergedBootstrapDestroyStep(projectName));\n } else {\n targets['bootstrap-destroy'] = normalizeTargetKeyOrder({\n executor: bootstrapDestroy.executor,\n options: {\n forwardAllArgs: true,\n commands: [scriptCommand],\n cwd: '{workspaceRoot}',\n },\n });\n changed = true;\n }\n }\n }\n\n if (changed) {\n updateProjectConfiguration(tree, projectName, {\n ...project,\n targets: sortObjectKeys(targets),\n });\n }\n\n // Vend the checkov config and the bootstrap-destroy script. KeepExisting\n // leaves a user's own copy alone and makes a re-run a no-op.\n generateFiles(\n tree,\n joinPathFragments(\n import.meta.dirname,\n '../../../terraform/project/files/checkov',\n ),\n project.root,\n {},\n { overwriteStrategy: OverwriteStrategy.KeepExisting },\n );\n\n // Only application projects have a bootstrap dir to destroy. The scripts\n // dir is shared with the generator's templates, so `stateKeyPrefix` is\n // resolved the same way it computes it; KeepExisting leaves the scripts\n // that already exist untouched regardless.\n if (tree.exists(joinPathFragments(project.root, 'bootstrap'))) {\n generateFiles(\n tree,\n joinPathFragments(\n import.meta.dirname,\n '../../../terraform/project/files/application/scripts',\n ),\n joinPathFragments(project.root, 'scripts'),\n { stateKeyPrefix: kebabCase(projectName) },\n { overwriteStrategy: OverwriteStrategy.KeepExisting },\n );\n }\n\n await migrateRequiredVersion(\n tree,\n joinPathFragments(project.root, 'src/providers.tf'),\n nextSteps,\n );\n await migrateRequiredVersion(\n tree,\n joinPathFragments(project.root, 'bootstrap/providers.tf'),\n nextSteps,\n );\n }\n\n await formatFilesInSubtree(tree);\n\n return { nextSteps };\n}\n"],"names":["generateFiles","getProjects","joinPathFragments","OverwriteStrategy","updateProjectConfiguration","TERRAFORM_PROJECT_GENERATOR_INFO","applyGritQL","matchGritQL","formatFilesInSubtree","kebabCase","normalizeTargetKeyOrder","sortObjectKeys","hcl","pattern","CHECKOV_COMMAND_PATTERN","divergedTargetsStep","projectName","divergedProvidersStep","filePath","divergedBootstrapDestroyStep","migrateRequiredVersion","tree","nextSteps","exists","hasRequiredProviders","providerBlock","push","migration","project","generator","metadata","id","targets","changed","checkov","command","test","options","withConfigFile","includes","replace","bootstrapDestroy","scriptCommand","alreadyMigrated","commands","isVendedShape","trim","executor","forwardAllArgs","cwd","dirname","root","overwriteStrategy","KeepExisting","stateKeyPrefix"],"mappings":"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"}
|
|
@@ -360,7 +360,8 @@ exports[`preset generator > should run successfully > nx.json 1`] = `
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
],
|
|
363
|
-
"analytics": false
|
|
363
|
+
"analytics": false,
|
|
364
|
+
"parallel": 8
|
|
364
365
|
}
|
|
365
366
|
"
|
|
366
367
|
`;
|
|
@@ -414,9 +415,9 @@ onlyBuiltDependencies:
|
|
|
414
415
|
- sharp
|
|
415
416
|
catalogMode: strict
|
|
416
417
|
catalog:
|
|
417
|
-
nx: 23.1.
|
|
418
|
-
'@nx/js': 23.1.
|
|
419
|
-
'@nx/workspace': 23.1.
|
|
418
|
+
nx: 23.1.2
|
|
419
|
+
'@nx/js': 23.1.2
|
|
420
|
+
'@nx/workspace': 23.1.2
|
|
420
421
|
typescript: ~6.0.3
|
|
421
422
|
'@biomejs/biome': 2.5.10
|
|
422
423
|
'@aws/nx-plugin': ^0.0.0
|
|
@@ -766,10 +766,10 @@ dependencies = [
|
|
|
766
766
|
"aws-lambda-powertools==3.34.0",
|
|
767
767
|
"aws-opentelemetry-distro==0.19.0",
|
|
768
768
|
"bedrock-agentcore==1.22.0",
|
|
769
|
-
"boto3==1.43.
|
|
769
|
+
"boto3==1.43.82",
|
|
770
770
|
"fastapi==0.141.1",
|
|
771
771
|
"mcp==1.28.1",
|
|
772
|
-
"strands-agents==1.
|
|
772
|
+
"strands-agents==1.54.0",
|
|
773
773
|
"strands-agents-tools==0.8.6",
|
|
774
774
|
"uvicorn==0.52.4"
|
|
775
775
|
]
|
|
@@ -704,16 +704,16 @@ dependencies = [
|
|
|
704
704
|
"aws-lambda-powertools==3.34.0",
|
|
705
705
|
"aws-opentelemetry-distro==0.19.0",
|
|
706
706
|
"bedrock-agentcore==1.22.0",
|
|
707
|
-
"boto3==1.43.
|
|
707
|
+
"boto3==1.43.82",
|
|
708
708
|
"fastapi==0.141.1",
|
|
709
709
|
"mcp==1.28.1",
|
|
710
|
-
"langchain==1.3.
|
|
711
|
-
"langchain-aws==1.7.
|
|
710
|
+
"langchain==1.3.18",
|
|
711
|
+
"langchain-aws==1.7.4",
|
|
712
712
|
"langgraph==1.2.11",
|
|
713
713
|
"langgraph-checkpoint-sqlite==3.1.1",
|
|
714
714
|
"aiosqlite==0.22.1",
|
|
715
|
-
"ag-ui-protocol==0.1.
|
|
716
|
-
"ag-ui-langgraph==0.0.
|
|
715
|
+
"ag-ui-protocol==0.1.21",
|
|
716
|
+
"ag-ui-langgraph==0.0.44",
|
|
717
717
|
"uvicorn==0.52.4"
|
|
718
718
|
]
|
|
719
719
|
|
|
@@ -5,7 +5,7 @@ exports[`py#agent generator > should create DynamoDB checkpoint table and S3 off
|
|
|
5
5
|
required_providers {
|
|
6
6
|
aws = {
|
|
7
7
|
source = "hashicorp/aws"
|
|
8
|
-
version = "6.
|
|
8
|
+
version = "6.62.0"
|
|
9
9
|
}
|
|
10
10
|
random = {
|
|
11
11
|
source = "hashicorp/random"
|
|
@@ -369,7 +369,7 @@ exports[`py#agent generator > should match snapshot for Terraform generated file
|
|
|
369
369
|
required_providers {
|
|
370
370
|
aws = {
|
|
371
371
|
source = "hashicorp/aws"
|
|
372
|
-
version = "6.
|
|
372
|
+
version = "6.62.0"
|
|
373
373
|
}
|
|
374
374
|
random = {
|
|
375
375
|
source = "hashicorp/random"
|
|
@@ -680,7 +680,7 @@ exports[`py#agent generator > should match snapshot for Terraform generated file
|
|
|
680
680
|
required_providers {
|
|
681
681
|
aws = {
|
|
682
682
|
source = "hashicorp/aws"
|
|
683
|
-
version = "6.
|
|
683
|
+
version = "6.62.0"
|
|
684
684
|
}
|
|
685
685
|
external = {
|
|
686
686
|
source = "hashicorp/external"
|
|
@@ -1100,7 +1100,7 @@ resource "null_resource" "runtime_ready" {
|
|
|
1100
1100
|
|
|
1101
1101
|
provisioner "local-exec" {
|
|
1102
1102
|
command = <<-EOT
|
|
1103
|
-
uv run --with boto3==1.43.
|
|
1103
|
+
uv run --with boto3==1.43.82 python -c "
|
|
1104
1104
|
import boto3
|
|
1105
1105
|
import json
|
|
1106
1106
|
import os
|
|
@@ -35,7 +35,7 @@ exports[`py#dynamodb generator > should generate terraform modules when iac is t
|
|
|
35
35
|
required_providers {
|
|
36
36
|
aws = {
|
|
37
37
|
source = "hashicorp/aws"
|
|
38
|
-
version = "6.
|
|
38
|
+
version = "6.62.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -232,7 +232,7 @@ exports[`py#dynamodb generator > should generate terraform modules when iac is t
|
|
|
232
232
|
required_providers {
|
|
233
233
|
aws = {
|
|
234
234
|
source = "hashicorp/aws"
|
|
235
|
-
version = "6.
|
|
235
|
+
version = "6.62.0"
|
|
236
236
|
}
|
|
237
237
|
random = {
|
|
238
238
|
source = "hashicorp/random"
|
|
@@ -11,7 +11,7 @@ terraform {
|
|
|
11
11
|
required_providers {
|
|
12
12
|
aws = {
|
|
13
13
|
source = "hashicorp/aws"
|
|
14
|
-
version = "6.
|
|
14
|
+
version = "6.62.0"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -262,7 +262,7 @@ output "api_log_group_arn" {
|
|
|
262
262
|
}
|
|
263
263
|
aws = {
|
|
264
264
|
source = "hashicorp/aws"
|
|
265
|
-
version = "6.
|
|
265
|
+
version = "6.62.0"
|
|
266
266
|
}
|
|
267
267
|
random = {
|
|
268
268
|
source = "hashicorp/random"
|
|
@@ -846,7 +846,7 @@ terraform {
|
|
|
846
846
|
required_providers {
|
|
847
847
|
aws = {
|
|
848
848
|
source = "hashicorp/aws"
|
|
849
|
-
version = "6.
|
|
849
|
+
version = "6.62.0"
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
}
|
|
@@ -1097,7 +1097,7 @@ output "api_log_group_arn" {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
aws = {
|
|
1099
1099
|
source = "hashicorp/aws"
|
|
1100
|
-
version = "6.
|
|
1100
|
+
version = "6.62.0"
|
|
1101
1101
|
}
|
|
1102
1102
|
random = {
|
|
1103
1103
|
source = "hashicorp/random"
|
|
@@ -1754,7 +1754,7 @@ terraform {
|
|
|
1754
1754
|
required_providers {
|
|
1755
1755
|
aws = {
|
|
1756
1756
|
source = "hashicorp/aws"
|
|
1757
|
-
version = "6.
|
|
1757
|
+
version = "6.62.0"
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
@@ -2005,7 +2005,7 @@ output "api_log_group_arn" {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
aws = {
|
|
2007
2007
|
source = "hashicorp/aws"
|
|
2008
|
-
version = "6.
|
|
2008
|
+
version = "6.62.0"
|
|
2009
2009
|
}
|
|
2010
2010
|
random = {
|
|
2011
2011
|
source = "hashicorp/random"
|
|
@@ -2566,7 +2566,7 @@ terraform {
|
|
|
2566
2566
|
required_providers {
|
|
2567
2567
|
aws = {
|
|
2568
2568
|
source = "hashicorp/aws"
|
|
2569
|
-
version = "6.
|
|
2569
|
+
version = "6.62.0"
|
|
2570
2570
|
}
|
|
2571
2571
|
random = {
|
|
2572
2572
|
source = "hashicorp/random"
|
|
@@ -2879,7 +2879,7 @@ output "waf_web_acl_arn" {
|
|
|
2879
2879
|
}
|
|
2880
2880
|
aws = {
|
|
2881
2881
|
source = "hashicorp/aws"
|
|
2882
|
-
version = "6.
|
|
2882
|
+
version = "6.62.0"
|
|
2883
2883
|
}
|
|
2884
2884
|
random = {
|
|
2885
2885
|
source = "hashicorp/random"
|
|
@@ -3914,7 +3914,7 @@ terraform {
|
|
|
3914
3914
|
required_providers {
|
|
3915
3915
|
aws = {
|
|
3916
3916
|
source = "hashicorp/aws"
|
|
3917
|
-
version = "6.
|
|
3917
|
+
version = "6.62.0"
|
|
3918
3918
|
}
|
|
3919
3919
|
random = {
|
|
3920
3920
|
source = "hashicorp/random"
|
|
@@ -4227,7 +4227,7 @@ output "waf_web_acl_arn" {
|
|
|
4227
4227
|
}
|
|
4228
4228
|
aws = {
|
|
4229
4229
|
source = "hashicorp/aws"
|
|
4230
|
-
version = "6.
|
|
4230
|
+
version = "6.62.0"
|
|
4231
4231
|
}
|
|
4232
4232
|
random = {
|
|
4233
4233
|
source = "hashicorp/random"
|
|
@@ -5251,7 +5251,7 @@ terraform {
|
|
|
5251
5251
|
required_providers {
|
|
5252
5252
|
aws = {
|
|
5253
5253
|
source = "hashicorp/aws"
|
|
5254
|
-
version = "6.
|
|
5254
|
+
version = "6.62.0"
|
|
5255
5255
|
}
|
|
5256
5256
|
random = {
|
|
5257
5257
|
source = "hashicorp/random"
|
|
@@ -5564,7 +5564,7 @@ output "waf_web_acl_arn" {
|
|
|
5564
5564
|
}
|
|
5565
5565
|
aws = {
|
|
5566
5566
|
source = "hashicorp/aws"
|
|
5567
|
-
version = "6.
|
|
5567
|
+
version = "6.62.0"
|
|
5568
5568
|
}
|
|
5569
5569
|
random = {
|
|
5570
5570
|
source = "hashicorp/random"
|
|
@@ -70,7 +70,7 @@ exports[`lambda-handler project generator > terraform iac > should generate terr
|
|
|
70
70
|
required_providers {
|
|
71
71
|
aws = {
|
|
72
72
|
source = "hashicorp/aws"
|
|
73
|
-
version = "6.
|
|
73
|
+
version = "6.62.0"
|
|
74
74
|
}
|
|
75
75
|
archive = {
|
|
76
76
|
source = "hashicorp/archive"
|
|
@@ -255,7 +255,7 @@ exports[`lambda-handler project generator > terraform iac > should match snapsho
|
|
|
255
255
|
required_providers {
|
|
256
256
|
aws = {
|
|
257
257
|
source = "hashicorp/aws"
|
|
258
|
-
version = "6.
|
|
258
|
+
version = "6.62.0"
|
|
259
259
|
}
|
|
260
260
|
archive = {
|
|
261
261
|
source = "hashicorp/archive"
|
|
@@ -155,7 +155,7 @@ exports[`py#mcp-server generator > should match snapshot for Terraform generated
|
|
|
155
155
|
required_providers {
|
|
156
156
|
aws = {
|
|
157
157
|
source = "hashicorp/aws"
|
|
158
|
-
version = "6.
|
|
158
|
+
version = "6.62.0"
|
|
159
159
|
}
|
|
160
160
|
external = {
|
|
161
161
|
source = "hashicorp/external"
|
|
@@ -575,7 +575,7 @@ resource "null_resource" "runtime_ready" {
|
|
|
575
575
|
|
|
576
576
|
provisioner "local-exec" {
|
|
577
577
|
command = <<-EOT
|
|
578
|
-
uv run --with boto3==1.43.
|
|
578
|
+
uv run --with boto3==1.43.82 python -c "
|
|
579
579
|
import boto3
|
|
580
580
|
import json
|
|
581
581
|
import os
|
|
@@ -853,7 +853,7 @@ dependencies = [
|
|
|
853
853
|
"aws-lambda-powertools==3.34.0",
|
|
854
854
|
"mcp==1.28.1",
|
|
855
855
|
"uvicorn==0.52.4",
|
|
856
|
-
"boto3==1.43.
|
|
856
|
+
"boto3==1.43.82",
|
|
857
857
|
"aws-opentelemetry-distro==0.19.0"
|
|
858
858
|
]
|
|
859
859
|
|
|
@@ -214,7 +214,7 @@ exports[`py#rdb generator > should generate Terraform modules 1`] = `
|
|
|
214
214
|
}
|
|
215
215
|
aws = {
|
|
216
216
|
source = "hashicorp/aws"
|
|
217
|
-
version = "6.
|
|
217
|
+
version = "6.62.0"
|
|
218
218
|
}
|
|
219
219
|
external = {
|
|
220
220
|
source = "hashicorp/external"
|
|
@@ -1526,7 +1526,7 @@ dependencies = [
|
|
|
1526
1526
|
"alembic==1.19.1",
|
|
1527
1527
|
"greenlet==3.5.5",
|
|
1528
1528
|
"asyncpg==0.31.0",
|
|
1529
|
-
"boto3==1.43.
|
|
1529
|
+
"boto3==1.43.82",
|
|
1530
1530
|
"aws-lambda-powertools==3.34.0"
|
|
1531
1531
|
]
|
|
1532
1532
|
|
|
@@ -42,7 +42,7 @@ exports[`smithyProjectGenerator > shape libraries > should generate a shape libr
|
|
|
42
42
|
"rimraf dist/{projectRoot}/build",
|
|
43
43
|
"rimraf dist/{projectRoot}/smithy",
|
|
44
44
|
"make-dir dist/{projectRoot}/build",
|
|
45
|
-
"npx -y mise@2026.8.
|
|
45
|
+
"npx -y mise@2026.8.14 exec smithy@1.73.0 -- smithy build -c {projectRoot}/smithy-build.json --output dist/{projectRoot}/smithy",
|
|
46
46
|
"ncp dist/{projectRoot}/smithy/source/model/model.json dist/{projectRoot}/build/model.json"
|
|
47
47
|
],
|
|
48
48
|
"parallel": false,
|
|
@@ -116,7 +116,7 @@ exports[`smithyProjectGenerator > should generate smithy project with all custom
|
|
|
116
116
|
"rimraf dist/{projectRoot}/build",
|
|
117
117
|
"rimraf dist/{projectRoot}/smithy",
|
|
118
118
|
"make-dir dist/{projectRoot}/build",
|
|
119
|
-
"npx -y mise@2026.8.
|
|
119
|
+
"npx -y mise@2026.8.14 exec smithy@1.73.0 -- smithy build -c {projectRoot}/smithy-build.json --output dist/{projectRoot}/smithy",
|
|
120
120
|
"cpy \\"dist/{projectRoot}/smithy/source/openapi/*.openapi.json\\" dist/{projectRoot}/build/openapi --flat --rename=openapi.json"
|
|
121
121
|
],
|
|
122
122
|
"parallel": false,
|
|
@@ -170,7 +170,7 @@ exports[`smithyProjectGenerator > should generate smithy project with custom dir
|
|
|
170
170
|
"rimraf dist/{projectRoot}/build",
|
|
171
171
|
"rimraf dist/{projectRoot}/smithy",
|
|
172
172
|
"make-dir dist/{projectRoot}/build",
|
|
173
|
-
"npx -y mise@2026.8.
|
|
173
|
+
"npx -y mise@2026.8.14 exec smithy@1.73.0 -- smithy build -c {projectRoot}/smithy-build.json --output dist/{projectRoot}/smithy",
|
|
174
174
|
"cpy \\"dist/{projectRoot}/smithy/source/openapi/*.openapi.json\\" dist/{projectRoot}/build/openapi --flat --rename=openapi.json"
|
|
175
175
|
],
|
|
176
176
|
"parallel": false,
|
|
@@ -316,7 +316,7 @@ exports[`smithyProjectGenerator > should generate smithy project with default op
|
|
|
316
316
|
"rimraf dist/{projectRoot}/build",
|
|
317
317
|
"rimraf dist/{projectRoot}/smithy",
|
|
318
318
|
"make-dir dist/{projectRoot}/build",
|
|
319
|
-
"npx -y mise@2026.8.
|
|
319
|
+
"npx -y mise@2026.8.14 exec smithy@1.73.0 -- smithy build -c {projectRoot}/smithy-build.json --output dist/{projectRoot}/smithy",
|
|
320
320
|
"cpy \\"dist/{projectRoot}/smithy/source/openapi/*.openapi.json\\" dist/{projectRoot}/build/openapi --flat --rename=openapi.json"
|
|
321
321
|
],
|
|
322
322
|
"parallel": false,
|
|
@@ -364,7 +364,7 @@ exports[`smithyProjectGenerator > should generate smithy project with default op
|
|
|
364
364
|
"software.amazon.smithy:smithy-aws-traits:1.73.0",
|
|
365
365
|
"software.amazon.smithy:smithy-validation-model:1.73.0",
|
|
366
366
|
"software.amazon.smithy:smithy-openapi:1.73.0",
|
|
367
|
-
"software.amazon.smithy.typescript:smithy-aws-typescript-codegen:0.
|
|
367
|
+
"software.amazon.smithy.typescript:smithy-aws-typescript-codegen:0.53.0"
|
|
368
368
|
]
|
|
369
369
|
}
|
|
370
370
|
}
|
|
@@ -456,7 +456,7 @@ exports[`smithyProjectGenerator > should generate smithy project with subdirecto
|
|
|
456
456
|
"rimraf dist/{projectRoot}/build",
|
|
457
457
|
"rimraf dist/{projectRoot}/smithy",
|
|
458
458
|
"make-dir dist/{projectRoot}/build",
|
|
459
|
-
"npx -y mise@2026.8.
|
|
459
|
+
"npx -y mise@2026.8.14 exec smithy@1.73.0 -- smithy build -c {projectRoot}/smithy-build.json --output dist/{projectRoot}/smithy",
|
|
460
460
|
"cpy \\"dist/{projectRoot}/smithy/source/openapi/*.openapi.json\\" dist/{projectRoot}/build/openapi --flat --rename=openapi.json"
|
|
461
461
|
],
|
|
462
462
|
"parallel": false,
|
|
@@ -550,7 +550,7 @@ exports[`smithyProjectGenerator > should handle kebab-case conversion for servic
|
|
|
550
550
|
"software.amazon.smithy:smithy-aws-traits:1.73.0",
|
|
551
551
|
"software.amazon.smithy:smithy-validation-model:1.73.0",
|
|
552
552
|
"software.amazon.smithy:smithy-openapi:1.73.0",
|
|
553
|
-
"software.amazon.smithy.typescript:smithy-aws-typescript-codegen:0.
|
|
553
|
+
"software.amazon.smithy.typescript:smithy-aws-typescript-codegen:0.53.0"
|
|
554
554
|
]
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -413,7 +413,7 @@ terraform {
|
|
|
413
413
|
required_providers {
|
|
414
414
|
aws = {
|
|
415
415
|
source = "hashicorp/aws"
|
|
416
|
-
version = "6.
|
|
416
|
+
version = "6.62.0"
|
|
417
417
|
}
|
|
418
418
|
random = {
|
|
419
419
|
source = "hashicorp/random"
|
|
@@ -729,7 +729,7 @@ exports[`tsSmithyApiGenerator > should generate smithy ts api with Terraform pro
|
|
|
729
729
|
}
|
|
730
730
|
aws = {
|
|
731
731
|
source = "hashicorp/aws"
|
|
732
|
-
version = "6.
|
|
732
|
+
version = "6.62.0"
|
|
733
733
|
}
|
|
734
734
|
random = {
|
|
735
735
|
source = "hashicorp/random"
|
|
@@ -2103,7 +2103,7 @@ exports[`tsSmithyApiGenerator > should generate smithy ts api with default optio
|
|
|
2103
2103
|
"rimraf dist/{projectRoot}/build",
|
|
2104
2104
|
"rimraf dist/{projectRoot}/smithy",
|
|
2105
2105
|
"make-dir dist/{projectRoot}/build",
|
|
2106
|
-
"npx -y mise@2026.8.
|
|
2106
|
+
"npx -y mise@2026.8.14 exec smithy@1.73.0 -- smithy build -c {projectRoot}/smithy-build.json --output dist/{projectRoot}/smithy",
|
|
2107
2107
|
"cpy \\"dist/{projectRoot}/smithy/source/openapi/*.openapi.json\\" dist/{projectRoot}/build/openapi --flat --rename=openapi.json"
|
|
2108
2108
|
],
|
|
2109
2109
|
"parallel": false,
|
|
@@ -2242,7 +2242,7 @@ terraform {
|
|
|
2242
2242
|
required_providers {
|
|
2243
2243
|
aws = {
|
|
2244
2244
|
source = "hashicorp/aws"
|
|
2245
|
-
version = "6.
|
|
2245
|
+
version = "6.62.0"
|
|
2246
2246
|
}
|
|
2247
2247
|
random = {
|
|
2248
2248
|
source = "hashicorp/random"
|
|
@@ -2555,7 +2555,7 @@ output "waf_web_acl_arn" {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
aws = {
|
|
2557
2557
|
source = "hashicorp/aws"
|
|
2558
|
-
version = "6.
|
|
2558
|
+
version = "6.62.0"
|
|
2559
2559
|
}
|
|
2560
2560
|
random = {
|
|
2561
2561
|
source = "hashicorp/random"
|
|
@@ -3555,7 +3555,7 @@ terraform {
|
|
|
3555
3555
|
required_providers {
|
|
3556
3556
|
aws = {
|
|
3557
3557
|
source = "hashicorp/aws"
|
|
3558
|
-
version = "6.
|
|
3558
|
+
version = "6.62.0"
|
|
3559
3559
|
}
|
|
3560
3560
|
random = {
|
|
3561
3561
|
source = "hashicorp/random"
|
|
@@ -3868,7 +3868,7 @@ output "waf_web_acl_arn" {
|
|
|
3868
3868
|
}
|
|
3869
3869
|
aws = {
|
|
3870
3870
|
source = "hashicorp/aws"
|
|
3871
|
-
version = "6.
|
|
3871
|
+
version = "6.62.0"
|
|
3872
3872
|
}
|
|
3873
3873
|
random = {
|
|
3874
3874
|
source = "hashicorp/random"
|
|
@@ -4857,7 +4857,7 @@ exports[`tsSmithyApiGenerator > terraform iac > should generate terraform with c
|
|
|
4857
4857
|
}
|
|
4858
4858
|
aws = {
|
|
4859
4859
|
source = "hashicorp/aws"
|
|
4860
|
-
version = "6.
|
|
4860
|
+
version = "6.62.0"
|
|
4861
4861
|
}
|
|
4862
4862
|
random = {
|
|
4863
4863
|
source = "hashicorp/random"
|
|
@@ -3175,7 +3175,7 @@ terraform {
|
|
|
3175
3175
|
required_providers {
|
|
3176
3176
|
aws = {
|
|
3177
3177
|
source = "hashicorp/aws"
|
|
3178
|
-
version = "6.
|
|
3178
|
+
version = "6.62.0"
|
|
3179
3179
|
}
|
|
3180
3180
|
}
|
|
3181
3181
|
}
|
|
@@ -3426,7 +3426,7 @@ output "api_log_group_arn" {
|
|
|
3426
3426
|
}
|
|
3427
3427
|
aws = {
|
|
3428
3428
|
source = "hashicorp/aws"
|
|
3429
|
-
version = "6.
|
|
3429
|
+
version = "6.62.0"
|
|
3430
3430
|
}
|
|
3431
3431
|
random = {
|
|
3432
3432
|
source = "hashicorp/random"
|
|
@@ -3990,7 +3990,7 @@ terraform {
|
|
|
3990
3990
|
required_providers {
|
|
3991
3991
|
aws = {
|
|
3992
3992
|
source = "hashicorp/aws"
|
|
3993
|
-
version = "6.
|
|
3993
|
+
version = "6.62.0"
|
|
3994
3994
|
}
|
|
3995
3995
|
}
|
|
3996
3996
|
}
|
|
@@ -4241,7 +4241,7 @@ output "api_log_group_arn" {
|
|
|
4241
4241
|
}
|
|
4242
4242
|
aws = {
|
|
4243
4243
|
source = "hashicorp/aws"
|
|
4244
|
-
version = "6.
|
|
4244
|
+
version = "6.62.0"
|
|
4245
4245
|
}
|
|
4246
4246
|
random = {
|
|
4247
4247
|
source = "hashicorp/random"
|
|
@@ -4878,7 +4878,7 @@ terraform {
|
|
|
4878
4878
|
required_providers {
|
|
4879
4879
|
aws = {
|
|
4880
4880
|
source = "hashicorp/aws"
|
|
4881
|
-
version = "6.
|
|
4881
|
+
version = "6.62.0"
|
|
4882
4882
|
}
|
|
4883
4883
|
}
|
|
4884
4884
|
}
|
|
@@ -5129,7 +5129,7 @@ output "api_log_group_arn" {
|
|
|
5129
5129
|
}
|
|
5130
5130
|
aws = {
|
|
5131
5131
|
source = "hashicorp/aws"
|
|
5132
|
-
version = "6.
|
|
5132
|
+
version = "6.62.0"
|
|
5133
5133
|
}
|
|
5134
5134
|
random = {
|
|
5135
5135
|
source = "hashicorp/random"
|
|
@@ -5670,7 +5670,7 @@ terraform {
|
|
|
5670
5670
|
required_providers {
|
|
5671
5671
|
aws = {
|
|
5672
5672
|
source = "hashicorp/aws"
|
|
5673
|
-
version = "6.
|
|
5673
|
+
version = "6.62.0"
|
|
5674
5674
|
}
|
|
5675
5675
|
random = {
|
|
5676
5676
|
source = "hashicorp/random"
|
|
@@ -5983,7 +5983,7 @@ output "waf_web_acl_arn" {
|
|
|
5983
5983
|
}
|
|
5984
5984
|
aws = {
|
|
5985
5985
|
source = "hashicorp/aws"
|
|
5986
|
-
version = "6.
|
|
5986
|
+
version = "6.62.0"
|
|
5987
5987
|
}
|
|
5988
5988
|
random = {
|
|
5989
5989
|
source = "hashicorp/random"
|
|
@@ -6984,7 +6984,7 @@ terraform {
|
|
|
6984
6984
|
required_providers {
|
|
6985
6985
|
aws = {
|
|
6986
6986
|
source = "hashicorp/aws"
|
|
6987
|
-
version = "6.
|
|
6987
|
+
version = "6.62.0"
|
|
6988
6988
|
}
|
|
6989
6989
|
random = {
|
|
6990
6990
|
source = "hashicorp/random"
|
|
@@ -7297,7 +7297,7 @@ output "waf_web_acl_arn" {
|
|
|
7297
7297
|
}
|
|
7298
7298
|
aws = {
|
|
7299
7299
|
source = "hashicorp/aws"
|
|
7300
|
-
version = "6.
|
|
7300
|
+
version = "6.62.0"
|
|
7301
7301
|
}
|
|
7302
7302
|
random = {
|
|
7303
7303
|
source = "hashicorp/random"
|
|
@@ -8287,7 +8287,7 @@ terraform {
|
|
|
8287
8287
|
required_providers {
|
|
8288
8288
|
aws = {
|
|
8289
8289
|
source = "hashicorp/aws"
|
|
8290
|
-
version = "6.
|
|
8290
|
+
version = "6.62.0"
|
|
8291
8291
|
}
|
|
8292
8292
|
random = {
|
|
8293
8293
|
source = "hashicorp/random"
|
|
@@ -8600,7 +8600,7 @@ output "waf_web_acl_arn" {
|
|
|
8600
8600
|
}
|
|
8601
8601
|
aws = {
|
|
8602
8602
|
source = "hashicorp/aws"
|
|
8603
|
-
version = "6.
|
|
8603
|
+
version = "6.62.0"
|
|
8604
8604
|
}
|
|
8605
8605
|
random = {
|
|
8606
8606
|
source = "hashicorp/random"
|
|
@@ -984,7 +984,7 @@ exports[`ts#agent generator > should match snapshot for Terraform generated file
|
|
|
984
984
|
required_providers {
|
|
985
985
|
aws = {
|
|
986
986
|
source = "hashicorp/aws"
|
|
987
|
-
version = "6.
|
|
987
|
+
version = "6.62.0"
|
|
988
988
|
}
|
|
989
989
|
random = {
|
|
990
990
|
source = "hashicorp/random"
|
|
@@ -1295,7 +1295,7 @@ exports[`ts#agent generator > should match snapshot for Terraform generated file
|
|
|
1295
1295
|
required_providers {
|
|
1296
1296
|
aws = {
|
|
1297
1297
|
source = "hashicorp/aws"
|
|
1298
|
-
version = "6.
|
|
1298
|
+
version = "6.62.0"
|
|
1299
1299
|
}
|
|
1300
1300
|
external = {
|
|
1301
1301
|
source = "hashicorp/external"
|
|
@@ -1715,7 +1715,7 @@ resource "null_resource" "runtime_ready" {
|
|
|
1715
1715
|
|
|
1716
1716
|
provisioner "local-exec" {
|
|
1717
1717
|
command = <<-EOT
|
|
1718
|
-
uv run --with boto3==1.43.
|
|
1718
|
+
uv run --with boto3==1.43.82 python -c "
|
|
1719
1719
|
import boto3
|
|
1720
1720
|
import json
|
|
1721
1721
|
import os
|
|
@@ -35,7 +35,7 @@ exports[`ts#dynamodb generator > should generate terraform modules when iac is t
|
|
|
35
35
|
required_providers {
|
|
36
36
|
aws = {
|
|
37
37
|
source = "hashicorp/aws"
|
|
38
|
-
version = "6.
|
|
38
|
+
version = "6.62.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -232,7 +232,7 @@ exports[`ts#dynamodb generator > should generate terraform modules when iac is t
|
|
|
232
232
|
required_providers {
|
|
233
233
|
aws = {
|
|
234
234
|
source = "hashicorp/aws"
|
|
235
|
-
version = "6.
|
|
235
|
+
version = "6.62.0"
|
|
236
236
|
}
|
|
237
237
|
random = {
|
|
238
238
|
source = "hashicorp/random"
|
|
@@ -141,7 +141,7 @@ exports[`ts-lambda-function generator > terraform iac > should generate terrafor
|
|
|
141
141
|
required_providers {
|
|
142
142
|
aws = {
|
|
143
143
|
source = "hashicorp/aws"
|
|
144
|
-
version = "6.
|
|
144
|
+
version = "6.62.0"
|
|
145
145
|
}
|
|
146
146
|
archive = {
|
|
147
147
|
source = "hashicorp/archive"
|
|
@@ -326,7 +326,7 @@ exports[`ts-lambda-function generator > terraform iac > should match snapshot fo
|
|
|
326
326
|
required_providers {
|
|
327
327
|
aws = {
|
|
328
328
|
source = "hashicorp/aws"
|
|
329
|
-
version = "6.
|
|
329
|
+
version = "6.62.0"
|
|
330
330
|
}
|
|
331
331
|
archive = {
|
|
332
332
|
source = "hashicorp/archive"
|
|
@@ -155,7 +155,7 @@ exports[`ts#mcp-server generator > should match snapshot for Terraform generated
|
|
|
155
155
|
required_providers {
|
|
156
156
|
aws = {
|
|
157
157
|
source = "hashicorp/aws"
|
|
158
|
-
version = "6.
|
|
158
|
+
version = "6.62.0"
|
|
159
159
|
}
|
|
160
160
|
external = {
|
|
161
161
|
source = "hashicorp/external"
|
|
@@ -575,7 +575,7 @@ resource "null_resource" "runtime_ready" {
|
|
|
575
575
|
|
|
576
576
|
provisioner "local-exec" {
|
|
577
577
|
command = <<-EOT
|
|
578
|
-
uv run --with boto3==1.43.
|
|
578
|
+
uv run --with boto3==1.43.82 python -c "
|
|
579
579
|
import boto3
|
|
580
580
|
import json
|
|
581
581
|
import os
|