diff --git a/csharp/package.json b/csharp/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/csharp/package.json +++ b/csharp/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/go/package.json b/go/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/go/package.json +++ b/go/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/java/package.json b/java/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/java/package.json +++ b/java/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/python/package.json b/python/package.json index a05bad9b93..e8f87b0bc4 100644 --- a/python/package.json +++ b/python/package.json @@ -1,5 +1,5 @@ { "devDependencies": { - "aws-cdk": "^2.0.0" + "aws-cdk": "2.1006.0" } } diff --git a/scripts/build-all-typescript.js b/scripts/build-all-typescript.js new file mode 100755 index 0000000000..cdd5621512 --- /dev/null +++ b/scripts/build-all-typescript.js @@ -0,0 +1,461 @@ +#!/usr/bin/env node +/** + * Script to build all TypeScript CDK projects in parallel + * Using worker threads for maximum performance + */ +const fs = require('node:fs'); +const fsPromises = require('node:fs/promises'); +const path = require('node:path'); +const os = require('node:os'); +const { execSync, spawn } = require('node:child_process'); +const { performance } = require('node:perf_hooks'); +const { Worker, isMainThread, parentPort, workerData } = require('node:worker_threads'); +const { createReadStream, createWriteStream } = require('node:fs'); +const readline = require('node:readline'); + +// Configuration +const SCRIPT_DIR = __dirname; +const REPO_ROOT = path.dirname(SCRIPT_DIR); +const TYPESCRIPT_DIR = path.join(REPO_ROOT, 'typescript'); +const BUILD_SCRIPT = path.join(SCRIPT_DIR, 'build-typescript.sh'); +const TEMP_DIR = fs.mkdtempSync(path.join(os.tmpdir(), 'build-ts-')); + +// Use 75% of available cores by default, configurable via env var +const MAX_PARALLEL = Math.max(1, Math.floor(os.cpus().length * + (process.env.BUILD_CONCURRENCY ? parseFloat(process.env.BUILD_CONCURRENCY) : 0.75))); + +/** + * Find all TypeScript CDK projects using Node.js file system APIs + */ +async function findProjects() { + console.log('Finding all TypeScript CDK projects...'); + + const projects = []; + + // Recursive function to find cdk.json files + async function findCdkJsonFiles(dir) { + const entries = await fsPromises.readdir(dir, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + + // Skip node_modules and cdk.out directories + if (entry.isDirectory() && + entry.name !== 'node_modules' && + entry.name !== 'cdk.out') { + await findCdkJsonFiles(fullPath); + } else if (entry.isFile() && entry.name === 'cdk.json') { + projects.push(fullPath); + } + } + } + + try { + await findCdkJsonFiles(TYPESCRIPT_DIR); + projects.sort(); // Sort for consistent order + + console.log(`Found ${projects.length} TypeScript CDK projects to build`); + console.log(`Using concurrency: ${MAX_PARALLEL} parallel workers`); + console.log('=============================='); + + return projects; + } catch (error) { + console.error(`Error finding projects: ${error}`); + return []; + } +} + +/** + * Worker thread function to build a project + */ +async function workerBuildProject(data) { + if (!parentPort) return; + + const { projectPath, buildScript, repoRoot, tempDir } = data; + const projectDir = path.dirname(projectPath); + const relPath = path.relative(repoRoot, projectDir); + const safeFileName = relPath.replace(/\//g, '_'); + const logFile = path.join(tempDir, `${safeFileName}.log`); + + const startTime = performance.now(); + + try { + // Check for DO_NOT_AUTOTEST flag + if (fs.existsSync(path.join(projectDir, 'DO_NOT_AUTOTEST'))) { + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: 'SKIPPED', + duration: performance.now() - startTime, + logFile + } + }); + return; + } + + // Check for package.json + const packageJsonPath = path.join(projectDir, 'package.json'); + if (!fs.existsSync(packageJsonPath)) { + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: 'SKIPPED', + duration: performance.now() - startTime, + logFile + } + }); + return; + } + + // Get relative path to package.json + const packageJsonRelPath = path.relative(repoRoot, packageJsonPath); + + // Create a write stream for the log file + const logStream = createWriteStream(logFile); + + // Run the build script and capture output + const command = `${buildScript} "${packageJsonRelPath}"`; + const proc = spawn(command, [], { shell: true }); + + // Pipe output to both the log file and capture it + proc.stdout.pipe(logStream); + proc.stderr.pipe(logStream); + + let output = ''; + proc.stdout.on('data', (data) => { + output += data.toString(); + }); + + proc.stderr.on('data', (data) => { + output += data.toString(); + }); + + // Wait for the process to complete + const exitCode = await new Promise((resolve) => { + proc.on('close', (code) => resolve(code || 0)); + }); + + // Close the log stream + logStream.end(); + + // Send result back to main thread + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: exitCode === 0 ? 'SUCCESS' : 'FAILED', + duration: performance.now() - startTime, + logFile + } + }); + } catch (error) { + // If the command fails, write the error to the log file and report failure + try { + fs.writeFileSync(logFile, `Error: ${error}`); + } catch (e) { + // Ignore error writing to log file + } + + parentPort.postMessage({ + type: 'result', + result: { + path: relPath, + status: 'FAILED', + duration: performance.now() - startTime, + logFile + } + }); + } +} + +/** + * Process warnings from logs using pure Node.js + */ +async function processWarnings(results) { + const warnings = []; + + for (const result of results) { + try { + if (fs.existsSync(result.logFile)) { + // Use readline to process the file line by line + const fileStream = createReadStream(result.logFile); + const rl = readline.createInterface({ + input: fileStream, + crlfDelay: Infinity + }); + + for await (const line of rl) { + if (line.toLowerCase().includes('[warning]')) { + warnings.push(`[${result.path}] ${line.trim()}`); + } + } + } + } catch (error) { + // Ignore file reading errors + } + } + + return [...new Set(warnings)]; // Remove duplicates +} + +/** + * Run builds using worker threads + */ +async function runBuildsWithWorkers(projects) { + return new Promise((resolve) => { + const results = []; + let activeWorkers = 0; + let projectIndex = 0; + + const startNextWorker = () => { + if (projectIndex >= projects.length) { + if (activeWorkers === 0) { + resolve(results); + } + return; + } + + const projectPath = projects[projectIndex++]; + activeWorkers++; + + const worker = new Worker(__filename, { + workerData: { + projectPath, + buildScript: BUILD_SCRIPT, + repoRoot: REPO_ROOT, + tempDir: TEMP_DIR + } + }); + + worker.on('message', (message) => { + if (message.type === 'result') { + const { result } = message; + results.push(result); + + // Log the result + let icon = '❓'; + if (result.status === 'SUCCESS') icon = '✅'; + if (result.status === 'FAILED') icon = '❌'; + if (result.status === 'SKIPPED') icon = '⏭️'; + + const duration = result.status !== 'SKIPPED' ? + ` (${(result.duration / 1000).toFixed(2)}s)` : ''; + console.log(`${icon} ${result.path}${duration}`); + } + }); + + worker.on('error', (error) => { + console.error(`Worker error for ${path.relative(REPO_ROOT, projectPath)}: ${error}`); + results.push({ + path: path.relative(REPO_ROOT, projectPath), + status: 'FAILED', + duration: 0, + logFile: '' + }); + + activeWorkers--; + startNextWorker(); + }); + + worker.on('exit', () => { + activeWorkers--; + startNextWorker(); + }); + }; + + // Start initial batch of workers + for (let i = 0; i < Math.min(MAX_PARALLEL, projects.length); i++) { + startNextWorker(); + } + }); +} + +/** + * Read a file using pure Node.js + */ +async function readFile(filePath) { + try { + return await fsPromises.readFile(filePath, 'utf8'); + } catch (error) { + return ''; + } +} + +/** + * Print build summary + */ +async function printSummary(results) { + // Count results by status + const counts = { + SUCCESS: results.filter(r => r.status === 'SUCCESS').length, + FAILED: results.filter(r => r.status === 'FAILED').length, + SKIPPED: results.filter(r => r.status === 'SKIPPED').length + }; + + // Calculate total duration + const totalDuration = results.reduce((sum, result) => sum + result.duration, 0) / 1000; + + // Sort projects by path + const sortedResults = [...results].sort((a, b) => a.path.localeCompare(b.path)); + + console.log(''); + console.log('=============================='); + console.log('BUILD SUMMARY'); + console.log('=============================='); + console.log(`Total: ${results.length} projects in ${totalDuration.toFixed(2)}s`); + console.log(`✅ ${counts.SUCCESS} succeeded`); + console.log(`❌ ${counts.FAILED} failed`); + console.log(`⏭️ ${counts.SKIPPED} skipped`); + + console.log(''); + console.log('Project Status:'); + console.log('-----------------------------'); + + // Group by status for better readability + if (counts.SUCCESS > 0) { + console.log('\nSuccessful builds:'); + for (const result of sortedResults.filter(r => r.status === 'SUCCESS')) { + console.log(`✅ ${result.path} (${(result.duration / 1000).toFixed(2)}s)`); + } + } + + if (counts.SKIPPED > 0) { + console.log('\nSkipped builds:'); + for (const result of sortedResults.filter(r => r.status === 'SKIPPED')) { + console.log(`⏭️ ${result.path}`); + } + } + + if (counts.FAILED > 0) { + console.log('\nFailed builds:'); + for (const result of sortedResults.filter(r => r.status === 'FAILED')) { + console.log(`❌ ${result.path} (${(result.duration / 1000).toFixed(2)}s)`); + } + } + + // Process and display warnings + const warnings = await processWarnings(results); + if (warnings.length > 0) { + console.log(''); + console.log('=============================='); + console.log('DEPRECATION WARNINGS'); + console.log('=============================='); + warnings.forEach(warning => console.log(warning)); + } + + // Print logs for failed builds + const failedResults = results.filter(r => r.status === 'FAILED'); + if (failedResults.length > 0) { + console.log(''); + console.log('Build logs for failed projects:'); + console.log('=============================='); + + for (const result of failedResults) { + console.log(''); + console.log(`Log for ${result.path}:`); + console.log('-------------------------------------------'); + try { + if (fs.existsSync(result.logFile)) { + const logContent = await readFile(result.logFile); + console.log(logContent); + } else { + console.log('Log file not found'); + } + } catch (error) { + console.log(`Error reading log file: ${error}`); + } + console.log('-------------------------------------------'); + } + } +} + +/** + * Clean up temporary files + */ +async function cleanup() { + try { + await fsPromises.rm(TEMP_DIR, { recursive: true, force: true }); + } catch (error) { + console.error(`Error cleaning up temporary directory: ${error}`); + } +} + +/** + * Main function + */ +async function main() { + const startTime = performance.now(); + + try { + // Register cleanup handler + process.on('exit', () => { + try { + fs.rmSync(TEMP_DIR, { recursive: true, force: true }); + } catch (error) { + // Ignore cleanup errors on exit + } + }); + + process.on('SIGINT', () => { + console.log('\nBuild process interrupted'); + process.exit(1); + }); + + // Check if build script exists and is executable + if (!fs.existsSync(BUILD_SCRIPT)) { + console.error(`Error: Build script not found at ${BUILD_SCRIPT}`); + process.exit(1); + } + + // Make build script executable if it's not + try { + fs.chmodSync(BUILD_SCRIPT, 0o755); + } catch (error) { + console.error(`Warning: Could not make build script executable: ${error}`); + } + + // Find projects + const projects = await findProjects(); + if (projects.length === 0) { + console.log('No TypeScript CDK projects found.'); + return; + } + + // Run builds + const results = await runBuildsWithWorkers(projects); + + // Print summary + await printSummary(results); + + // Log total execution time + const totalTime = (performance.now() - startTime) / 1000; + console.log(`\nTotal execution time: ${totalTime.toFixed(2)}s`); + + // Exit with error if any builds failed + if (results.some(r => r.status === 'FAILED')) { + process.exit(1); + } + } catch (error) { + console.error(`Error: ${error}`); + process.exit(1); + } finally { + await cleanup(); + } +} + +// Worker thread entry point +if (!isMainThread) { + workerBuildProject(workerData).catch(error => { + console.error(`Worker error: ${error}`); + process.exit(1); + }); +} +// Main thread entry point +else { + main().catch(error => { + console.error(`Unhandled error: ${error}`); + process.exit(1); + }); +} diff --git a/scripts/update-cdk-packages.ts b/scripts/update-cdk-packages.ts new file mode 100644 index 0000000000..cb32b33c16 --- /dev/null +++ b/scripts/update-cdk-packages.ts @@ -0,0 +1,248 @@ +#!/usr/bin/env tsx + +import { readFile, writeFile } from 'node:fs/promises'; +import { opendir } from 'node:fs/promises'; +import { resolve, join } from 'node:path'; +import { setTimeout as sleep } from 'node:timers/promises'; + +interface PackageJson { + dependencies?: Record; + devDependencies?: Record; + [key: string]: unknown; +} + +interface CdkVersion { + version: string; +} + +type DependencyUpdates = { + dependencies: Record; + devDependencies: Record; +}; + +class PackageUpdateError extends Error { + override cause?: Error; + constructor(message: string, options?: { cause: Error }) { + super(message); + this.name = 'PackageUpdateError'; + this.cause = options?.cause; + } +} + +// Constants for URLs +const URLS = { + templatePackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/lib/init-templates/app/typescript/package.json', + cdkVersion: 'https://raw.githubusercontent.com/aws/aws-cdk/main/version.v2.json', + constructsPackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/package.json' +} as const; + +// Utility function to get CDK CLI version +async function getCdkCliVersion(): Promise { + try { + const { exec } = require('child_process'); + return new Promise((resolve, reject) => { + exec('npx cdk --version', (error: Error | null, stdout: string) => { + if (error) { + reject(new PackageUpdateError('Failed to get CDK version', { cause: error })); + return; + } + // Extract just the version number from the output (e.g., "2.1004.0" from "2.1004.0 (build f0ad96e)") + const version = stdout.trim().split(' ')[0]; + resolve(version); + }); + }); + } catch (error) { + throw new PackageUpdateError( + 'Failed to get CDK CLI version', + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Utility function to fetch and parse JSON with retries +async function fetchJson(url: string, retries = 3): Promise { + for (let attempt = 1; attempt <= retries; attempt++) { + try { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 5000); // 5 second timeout + + const response = await fetch(url, { + signal: controller.signal, + headers: { + 'Accept': 'application/json', + 'User-Agent': 'CDK-Package-Updater' + } + }); + clearTimeout(timeoutId); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + return await response.json() as T; + } catch (error) { + if (attempt === retries) { + throw new PackageUpdateError( + `Failed to fetch from ${url} after ${retries} attempts`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + console.warn(`Attempt ${attempt} failed, retrying after ${attempt * 1000}ms...`); + await sleep(attempt * 1000); // Exponential backoff + } + } + throw new PackageUpdateError('Unreachable code path'); +} + +// Utility function to find all package.json files using async iterator +async function findPackageJsonFiles(startPath: string): Promise { + const results: string[] = []; + + async function* walk(dir: string): AsyncGenerator { + try { + for await (const entry of await opendir(dir)) { + const fullPath = join(dir, entry.name); + if (entry.isDirectory() && entry.name !== 'node_modules') { + yield* walk(fullPath); + } else if (entry.isFile() && entry.name === 'package.json') { + yield fullPath; + } + } + } catch (error) { + throw new PackageUpdateError( + `Error walking directory ${dir}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + } + + for await (const file of walk(startPath)) { + results.push(file); + } + + return results; +} + +// Function to update a single package.json file +async function updatePackageJson( + filePath: string, + updates: DependencyUpdates +): Promise { + try { + const fileContent = await readFile(filePath, { encoding: 'utf8' }); + const content = JSON.parse(fileContent) as PackageJson; + let updated = false; + + // Helper function to update dependencies + const updateDeps = ( + depType: 'dependencies' | 'devDependencies', + updates: Record + ) => { + if (!content[depType]) return; + + for (const [pkg, version] of Object.entries(updates)) { + if (content[depType]![pkg] && content[depType]![pkg] !== version) { + content[depType]![pkg] = version; + console.log(`Updated ${pkg} to ${version} in ${filePath}`); + updated = true; + } + } + }; + + // Update both types of dependencies + updateDeps('dependencies', updates.dependencies); + updateDeps('devDependencies', updates.devDependencies); + + if (updated) { + await writeFile(filePath, JSON.stringify(content, null, 2) + '\n'); + } + } catch (error) { + throw new PackageUpdateError( + `Error updating ${filePath}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Main function +async function updatePackages(): Promise { + console.log('Fetching latest versions from AWS CDK repositories...'); + + try { + // Fetch all required data in parallel with AbortController + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 15000); // 15 second timeout + + const [templatePackage, cdkVersion, constructsPackage] = await Promise.all([ + fetchJson(URLS.templatePackage), + fetchJson(URLS.cdkVersion), + fetchJson(URLS.constructsPackage) + ]); + + clearTimeout(timeoutId); + + // Get the CDK version by running the CLI command + const cdkCliVersion = await getCdkCliVersion(); + console.log(`Detected CDK CLI version: ${cdkCliVersion}`); + + // Define the dependencies to update + const updates: DependencyUpdates = { + devDependencies: { + '@types/jest': templatePackage.devDependencies?.['@types/jest'] ?? '', + '@types/node': templatePackage.devDependencies?.['@types/node'] ?? '', + 'jest': templatePackage.devDependencies?.jest ?? '', + 'ts-jest': templatePackage.devDependencies?.['ts-jest'] ?? '', + 'ts-node': templatePackage.devDependencies?.['ts-node'] ?? '', + 'typescript': templatePackage.devDependencies?.typescript ?? '', + 'aws-cdk': cdkCliVersion + }, + dependencies: { + 'aws-cdk-lib': cdkVersion.version, + 'constructs': constructsPackage.devDependencies?.constructs ?? '' + } + }; + + // Validate that we got all the versions we need + const missingVersions = [ + ...Object.entries(updates.dependencies), + ...Object.entries(updates.devDependencies) + ].filter(([, version]) => !version); + + if (missingVersions.length > 0) { + throw new PackageUpdateError( + `Missing versions for: ${missingVersions.map(([pkg]) => pkg).join(', ')}` + ); + } + + // Find all package.json files + const typescriptDir = resolve(__dirname, '../typescript'); + console.log(`Searching for package.json files in ${typescriptDir}...`); + const packageFiles = await findPackageJsonFiles(typescriptDir); + + console.log(`Found ${packageFiles.length} package.json files to update.`); + + // Update all package.json files in parallel with concurrency limit + const concurrencyLimit = 5; + for (let i = 0; i < packageFiles.length; i += concurrencyLimit) { + const batch = packageFiles.slice(i, i + concurrencyLimit); + await Promise.all( + batch.map(filePath => updatePackageJson(filePath, updates)) + ); + } + + console.log('Package updates completed successfully! 🎉'); + } catch (error) { + if (error instanceof PackageUpdateError) { + console.error('Error updating packages:', error.message); + if (error.cause) { + console.error('Caused by:', error.cause); + } + } else { + console.error('Unexpected error:', error); + } + process.exit(1); + } +} + +// Run the update +updatePackages(); diff --git a/scripts/update-packagejson/.eslintrc.json b/scripts/update-packagejson/.eslintrc.json new file mode 100644 index 0000000000..b14b7f2a68 --- /dev/null +++ b/scripts/update-packagejson/.eslintrc.json @@ -0,0 +1,22 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2022, + "sourceType": "module", + "project": "./tsconfig.json" + }, + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended" + ], + "rules": { + "@typescript-eslint/explicit-function-return-type": "warn", + "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }] + }, + "env": { + "node": true, + "es2022": true + } +} diff --git a/scripts/update-packagejson/.gitignore b/scripts/update-packagejson/.gitignore new file mode 100644 index 0000000000..0ba9c7d6f8 --- /dev/null +++ b/scripts/update-packagejson/.gitignore @@ -0,0 +1,33 @@ +# Dependency directories +node_modules/ + +# Build output +dist/ +build/ + +# Coverage directory +coverage/ + +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Environment variables +.env +.env.local +.env.development.local +.env.test.local +.env.production.local + +# IDE files +.idea/ +.vscode/ +*.swp +*.swo + +# OS files +.DS_Store +Thumbs.db diff --git a/scripts/update-packagejson/README.md b/scripts/update-packagejson/README.md new file mode 100644 index 0000000000..a2a74cbf20 --- /dev/null +++ b/scripts/update-packagejson/README.md @@ -0,0 +1,51 @@ +# update-packagejson + +A utility for updating package.json files in AWS CDK projects to keep dependencies in sync with the latest versions. + +## Prerequisites + +- Node.js (LTS version, 18.x or later) +- npm or yarn + +## Installation + +```bash +npm install +``` + +## Usage + +1. Build the project: + +```bash +npm run build +``` + +2. Run the utility with the repository root path: + +```bash +node dist/index.js /path/to/repository +``` + +For example: + +```bash +node dist/index.js ../my-cdk-project +``` + +The utility will: +- Fetch the latest versions of AWS CDK dependencies from official sources +- Find all package.json files in the specified directory +- Update the dependencies to match the latest versions +- Only update files that need changes + +## Development + +- `npm run build` - Transpile TypeScript to JavaScript +- `npm run clean` - Remove build artifacts +- `npm run lint` - Run ESLint +- `npm test` - Run tests + +## License + +ISC diff --git a/scripts/update-packagejson/jest.config.js b/scripts/update-packagejson/jest.config.js new file mode 100644 index 0000000000..5bb3c7f4f2 --- /dev/null +++ b/scripts/update-packagejson/jest.config.js @@ -0,0 +1,10 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + collectCoverage: true, + coverageDirectory: 'coverage', + coveragePathIgnorePatterns: ['/node_modules/', '/dist/'], + testMatch: ['**/*.test.ts'], + verbose: true +}; diff --git a/scripts/update-packagejson/package.json b/scripts/update-packagejson/package.json new file mode 100644 index 0000000000..44e532cab1 --- /dev/null +++ b/scripts/update-packagejson/package.json @@ -0,0 +1,43 @@ +{ + "name": "update-packagejson", + "version": "1.0.0", + "description": "Package.json update utility", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "bin": { + "update-packagejson": "./dist/index.js" + }, + "scripts": { + "build": "tsc", + "clean": "rimraf dist", + "lint": "eslint . --ext .ts", + "test": "jest", + "prebuild": "npm run clean", + "prepare": "npm run build" + }, + "keywords": [ + "aws", + "cdk", + "package", + "update" + ], + "author": "", + "license": "ISC", + "engines": { + "node": ">=18.0.0" + }, + "devDependencies": { + "@types/jest": "^29.5.14", + "@types/node": "22.7.9", + "@typescript-eslint/eslint-plugin": "^7.1.0", + "@typescript-eslint/parser": "^7.1.0", + "eslint": "^8.57.0", + "jest": "^29.7.0", + "rimraf": "^5.0.5", + "ts-jest": "^29.2.5", + "typescript": "~5.6.3" + }, + "dependencies": { + "tsx": "^4.7.1" + } +} diff --git a/scripts/update-packagejson/src/index.ts b/scripts/update-packagejson/src/index.ts new file mode 100644 index 0000000000..c42333ab45 --- /dev/null +++ b/scripts/update-packagejson/src/index.ts @@ -0,0 +1,41 @@ +#!/usr/bin/env node + +/** + * update-packagejson + * A utility for updating package.json files + */ + +import { updatePackages } from './update-cdk-packages'; + +/** + * Main function to update package.json files + */ +async function main(): Promise { + try { + // Get the repository root path from command line arguments + const repoRoot = process.argv[2]; + + if (!repoRoot) { + console.error('Error: Repository root path is required'); + console.error('Usage: update-packagejson '); + process.exit(1); + } + + console.log('Package.json update utility'); + await updatePackages(repoRoot); + } catch (error) { + console.error('Error:', error); + process.exit(1); + } +} + +// Run the main function +if (require.main === module) { + main().catch((error) => { + console.error('Unhandled error:', error); + process.exit(1); + }); +} + +// Export functions for testing or importing +export { main }; diff --git a/scripts/update-packagejson/src/update-cdk-packages.ts b/scripts/update-packagejson/src/update-cdk-packages.ts new file mode 100644 index 0000000000..90393bb7cb --- /dev/null +++ b/scripts/update-packagejson/src/update-cdk-packages.ts @@ -0,0 +1,255 @@ +#!/usr/bin/env tsx + +import { readFile, writeFile } from 'node:fs/promises'; +import { opendir } from 'node:fs/promises'; +import { resolve, join } from 'node:path'; +import { setTimeout as sleep } from 'node:timers/promises'; + +interface PackageJson { + dependencies?: Record; + devDependencies?: Record; + [key: string]: unknown; +} + +interface CdkVersion { + version: string; +} + +type DependencyUpdates = { + dependencies: Record; + devDependencies: Record; +}; + +class PackageUpdateError extends Error { + override cause?: Error; + constructor(message: string, options?: { cause: Error }) { + super(message); + this.name = 'PackageUpdateError'; + this.cause = options?.cause; + } +} + +// Constants for URLs +const URLS = { + templatePackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/lib/init-templates/app/typescript/package.json', + cdkVersion: 'https://raw.githubusercontent.com/aws/aws-cdk/main/version.v2.json', + constructsPackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/package.json' +} as const; + +// Utility function to get CDK CLI version +async function getCdkCliVersion(): Promise { + try { + const { exec } = require('child_process'); + return new Promise((resolve, reject) => { + exec('cdk --version', (error: Error | null, stdout: string) => { + if (error) { + reject(new PackageUpdateError('Failed to get CDK version', { cause: error })); + return; + } + // Extract just the version number from the output (e.g., "2.1004.0" from "2.1004.0 (build f0ad96e)") + const version = stdout.trim().split(' ')[0]; + resolve(version); + }); + }); + } catch (error) { + throw new PackageUpdateError( + 'Failed to get CDK CLI version', + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Utility function to fetch and parse JSON with retries +async function fetchJson(url: string, retries = 3): Promise { + for (let attempt = 1; attempt <= retries; attempt++) { + try { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 5000); // 5 second timeout + + const response = await fetch(url, { + signal: controller.signal, + headers: { + 'Accept': 'application/json', + 'User-Agent': 'CDK-Package-Updater' + } + }); + clearTimeout(timeoutId); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + return await response.json() as T; + } catch (error) { + if (attempt === retries) { + throw new PackageUpdateError( + `Failed to fetch from ${url} after ${retries} attempts`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + console.warn(`Attempt ${attempt} failed, retrying after ${attempt * 1000}ms...`); + await sleep(attempt * 1000); // Exponential backoff + } + } + throw new PackageUpdateError('Unreachable code path'); +} + +// Utility function to find all package.json files using async iterator +async function findPackageJsonFiles(startPath: string): Promise { + const results: string[] = []; + + async function* walk(dir: string): AsyncGenerator { + try { + for await (const entry of await opendir(dir)) { + const fullPath = join(dir, entry.name); + if (entry.isDirectory() && entry.name !== 'node_modules') { + yield* walk(fullPath); + } else if (entry.isFile() && entry.name === 'package.json') { + yield fullPath; + } + } + } catch (error) { + throw new PackageUpdateError( + `Error walking directory ${dir}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + } + + for await (const file of walk(startPath)) { + results.push(file); + } + + return results; +} + +// Function to update a single package.json file +async function updatePackageJson( + filePath: string, + updates: DependencyUpdates +): Promise { + try { + const fileContent = await readFile(filePath, { encoding: 'utf8' }); + const content = JSON.parse(fileContent) as PackageJson; + let updated = false; + + // Helper function to update dependencies + const updateDeps = ( + depType: 'dependencies' | 'devDependencies', + updates: Record + ) => { + if (!content[depType]) return; + + for (const [pkg, version] of Object.entries(updates)) { + if (content[depType]![pkg] && content[depType]![pkg] !== version) { + content[depType]![pkg] = version; + console.log(`Updated ${pkg} to ${version} in ${filePath}`); + updated = true; + } + } + }; + + // Update both types of dependencies + updateDeps('dependencies', updates.dependencies); + updateDeps('devDependencies', updates.devDependencies); + + if (updated) { + await writeFile(filePath, JSON.stringify(content, null, 2) + '\n'); + } + } catch (error) { + throw new PackageUpdateError( + `Error updating ${filePath}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Main function +async function updatePackages(repoRoot: string): Promise { + console.log('Fetching latest versions from AWS CDK repositories...'); + + try { + // Fetch all required data in parallel with AbortController + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 15000); // 15 second timeout + + const [templatePackage, cdkVersion, constructsPackage] = await Promise.all([ + fetchJson(URLS.templatePackage), + fetchJson(URLS.cdkVersion), + fetchJson(URLS.constructsPackage) + ]); + + clearTimeout(timeoutId); + + // Get the CDK version by running the CLI command + const cdkCliVersion = await getCdkCliVersion(); + console.log(`Detected CDK CLI version: ${cdkCliVersion}`); + + // Define the dependencies to update + const updates: DependencyUpdates = { + devDependencies: { + '@types/jest': templatePackage.devDependencies?.['@types/jest'] ?? '', + '@types/node': templatePackage.devDependencies?.['@types/node'] ?? '', + 'jest': templatePackage.devDependencies?.jest ?? '', + 'ts-jest': templatePackage.devDependencies?.['ts-jest'] ?? '', + 'ts-node': templatePackage.devDependencies?.['ts-node'] ?? '', + 'typescript': templatePackage.devDependencies?.typescript ?? '', + 'aws-cdk': cdkCliVersion + }, + dependencies: { + 'aws-cdk-lib': cdkVersion.version, + 'constructs': constructsPackage.devDependencies?.constructs ?? '' + } + }; + + // Validate that we got all the versions we need + const missingVersions = [ + ...Object.entries(updates.dependencies), + ...Object.entries(updates.devDependencies) + ].filter(([, version]) => !version); + + if (missingVersions.length > 0) { + throw new PackageUpdateError( + `Missing versions for: ${missingVersions.map(([pkg]) => pkg).join(', ')}` + ); + } + + // Find all package.json files + const searchPath = resolve(repoRoot); + console.log(`Searching for package.json files in ${searchPath}...`); + const packageFiles = await findPackageJsonFiles(searchPath); + + console.log(`Found ${packageFiles.length} package.json files to update.`); + + // Update all package.json files in parallel with concurrency limit + const concurrencyLimit = 5; + for (let i = 0; i < packageFiles.length; i += concurrencyLimit) { + const batch = packageFiles.slice(i, i + concurrencyLimit); + await Promise.all( + batch.map(filePath => updatePackageJson(filePath, updates)) + ); + } + + console.log('Package updates completed successfully! 🎉'); + } catch (error) { + if (error instanceof PackageUpdateError) { + console.error('Error updating packages:', error.message); + if (error.cause) { + console.error('Caused by:', error.cause); + } + } else { + console.error('Unexpected error:', error); + } + process.exit(1); + } +} + +// Export functions for testing or importing +export { + updatePackages, + updatePackageJson, + findPackageJsonFiles, + fetchJson, + getCdkCliVersion, + PackageUpdateError +}; diff --git a/scripts/update-packagejson/tsconfig.json b/scripts/update-packagejson/tsconfig.json new file mode 100644 index 0000000000..4698b38c96 --- /dev/null +++ b/scripts/update-packagejson/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "commonjs", + "lib": ["ES2022"], + "declaration": true, + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "sourceMap": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts"] +} diff --git a/scripts/update-packagejson/update-cdk-packages.ts b/scripts/update-packagejson/update-cdk-packages.ts new file mode 100644 index 0000000000..cb32b33c16 --- /dev/null +++ b/scripts/update-packagejson/update-cdk-packages.ts @@ -0,0 +1,248 @@ +#!/usr/bin/env tsx + +import { readFile, writeFile } from 'node:fs/promises'; +import { opendir } from 'node:fs/promises'; +import { resolve, join } from 'node:path'; +import { setTimeout as sleep } from 'node:timers/promises'; + +interface PackageJson { + dependencies?: Record; + devDependencies?: Record; + [key: string]: unknown; +} + +interface CdkVersion { + version: string; +} + +type DependencyUpdates = { + dependencies: Record; + devDependencies: Record; +}; + +class PackageUpdateError extends Error { + override cause?: Error; + constructor(message: string, options?: { cause: Error }) { + super(message); + this.name = 'PackageUpdateError'; + this.cause = options?.cause; + } +} + +// Constants for URLs +const URLS = { + templatePackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/lib/init-templates/app/typescript/package.json', + cdkVersion: 'https://raw.githubusercontent.com/aws/aws-cdk/main/version.v2.json', + constructsPackage: 'https://raw.githubusercontent.com/aws/aws-cdk-cli/refs/heads/main/packages/aws-cdk/package.json' +} as const; + +// Utility function to get CDK CLI version +async function getCdkCliVersion(): Promise { + try { + const { exec } = require('child_process'); + return new Promise((resolve, reject) => { + exec('npx cdk --version', (error: Error | null, stdout: string) => { + if (error) { + reject(new PackageUpdateError('Failed to get CDK version', { cause: error })); + return; + } + // Extract just the version number from the output (e.g., "2.1004.0" from "2.1004.0 (build f0ad96e)") + const version = stdout.trim().split(' ')[0]; + resolve(version); + }); + }); + } catch (error) { + throw new PackageUpdateError( + 'Failed to get CDK CLI version', + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Utility function to fetch and parse JSON with retries +async function fetchJson(url: string, retries = 3): Promise { + for (let attempt = 1; attempt <= retries; attempt++) { + try { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 5000); // 5 second timeout + + const response = await fetch(url, { + signal: controller.signal, + headers: { + 'Accept': 'application/json', + 'User-Agent': 'CDK-Package-Updater' + } + }); + clearTimeout(timeoutId); + + if (!response.ok) { + throw new Error(`HTTP error! status: ${response.status}`); + } + + return await response.json() as T; + } catch (error) { + if (attempt === retries) { + throw new PackageUpdateError( + `Failed to fetch from ${url} after ${retries} attempts`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + console.warn(`Attempt ${attempt} failed, retrying after ${attempt * 1000}ms...`); + await sleep(attempt * 1000); // Exponential backoff + } + } + throw new PackageUpdateError('Unreachable code path'); +} + +// Utility function to find all package.json files using async iterator +async function findPackageJsonFiles(startPath: string): Promise { + const results: string[] = []; + + async function* walk(dir: string): AsyncGenerator { + try { + for await (const entry of await opendir(dir)) { + const fullPath = join(dir, entry.name); + if (entry.isDirectory() && entry.name !== 'node_modules') { + yield* walk(fullPath); + } else if (entry.isFile() && entry.name === 'package.json') { + yield fullPath; + } + } + } catch (error) { + throw new PackageUpdateError( + `Error walking directory ${dir}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } + } + + for await (const file of walk(startPath)) { + results.push(file); + } + + return results; +} + +// Function to update a single package.json file +async function updatePackageJson( + filePath: string, + updates: DependencyUpdates +): Promise { + try { + const fileContent = await readFile(filePath, { encoding: 'utf8' }); + const content = JSON.parse(fileContent) as PackageJson; + let updated = false; + + // Helper function to update dependencies + const updateDeps = ( + depType: 'dependencies' | 'devDependencies', + updates: Record + ) => { + if (!content[depType]) return; + + for (const [pkg, version] of Object.entries(updates)) { + if (content[depType]![pkg] && content[depType]![pkg] !== version) { + content[depType]![pkg] = version; + console.log(`Updated ${pkg} to ${version} in ${filePath}`); + updated = true; + } + } + }; + + // Update both types of dependencies + updateDeps('dependencies', updates.dependencies); + updateDeps('devDependencies', updates.devDependencies); + + if (updated) { + await writeFile(filePath, JSON.stringify(content, null, 2) + '\n'); + } + } catch (error) { + throw new PackageUpdateError( + `Error updating ${filePath}`, + { cause: error instanceof Error ? error : new Error(String(error)) } + ); + } +} + +// Main function +async function updatePackages(): Promise { + console.log('Fetching latest versions from AWS CDK repositories...'); + + try { + // Fetch all required data in parallel with AbortController + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), 15000); // 15 second timeout + + const [templatePackage, cdkVersion, constructsPackage] = await Promise.all([ + fetchJson(URLS.templatePackage), + fetchJson(URLS.cdkVersion), + fetchJson(URLS.constructsPackage) + ]); + + clearTimeout(timeoutId); + + // Get the CDK version by running the CLI command + const cdkCliVersion = await getCdkCliVersion(); + console.log(`Detected CDK CLI version: ${cdkCliVersion}`); + + // Define the dependencies to update + const updates: DependencyUpdates = { + devDependencies: { + '@types/jest': templatePackage.devDependencies?.['@types/jest'] ?? '', + '@types/node': templatePackage.devDependencies?.['@types/node'] ?? '', + 'jest': templatePackage.devDependencies?.jest ?? '', + 'ts-jest': templatePackage.devDependencies?.['ts-jest'] ?? '', + 'ts-node': templatePackage.devDependencies?.['ts-node'] ?? '', + 'typescript': templatePackage.devDependencies?.typescript ?? '', + 'aws-cdk': cdkCliVersion + }, + dependencies: { + 'aws-cdk-lib': cdkVersion.version, + 'constructs': constructsPackage.devDependencies?.constructs ?? '' + } + }; + + // Validate that we got all the versions we need + const missingVersions = [ + ...Object.entries(updates.dependencies), + ...Object.entries(updates.devDependencies) + ].filter(([, version]) => !version); + + if (missingVersions.length > 0) { + throw new PackageUpdateError( + `Missing versions for: ${missingVersions.map(([pkg]) => pkg).join(', ')}` + ); + } + + // Find all package.json files + const typescriptDir = resolve(__dirname, '../typescript'); + console.log(`Searching for package.json files in ${typescriptDir}...`); + const packageFiles = await findPackageJsonFiles(typescriptDir); + + console.log(`Found ${packageFiles.length} package.json files to update.`); + + // Update all package.json files in parallel with concurrency limit + const concurrencyLimit = 5; + for (let i = 0; i < packageFiles.length; i += concurrencyLimit) { + const batch = packageFiles.slice(i, i + concurrencyLimit); + await Promise.all( + batch.map(filePath => updatePackageJson(filePath, updates)) + ); + } + + console.log('Package updates completed successfully! 🎉'); + } catch (error) { + if (error instanceof PackageUpdateError) { + console.error('Error updating packages:', error.message); + if (error.cause) { + console.error('Caused by:', error.cause); + } + } else { + console.error('Unexpected error:', error); + } + process.exit(1); + } +} + +// Run the update +updatePackages(); diff --git a/typescript/amazon-mq-rabbitmq-lambda/package.json b/typescript/amazon-mq-rabbitmq-lambda/package.json index d9b7741a6b..c30688cc52 100644 --- a/typescript/amazon-mq-rabbitmq-lambda/package.json +++ b/typescript/amazon-mq-rabbitmq-lambda/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@cdklabs/cdk-amazonmq": "^0.0.1", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/amplify-console-app/package.json b/typescript/amplify-console-app/package.json index 11203c0b86..c5992db6a9 100644 --- a/typescript/amplify-console-app/package.json +++ b/typescript/amplify-console-app/package.json @@ -15,11 +15,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/api-cors-lambda-crud-dynamodb/package.json b/typescript/api-cors-lambda-crud-dynamodb/package.json index 9a21e6edda..4fa19468fb 100644 --- a/typescript/api-cors-lambda-crud-dynamodb/package.json +++ b/typescript/api-cors-lambda-crud-dynamodb/package.json @@ -16,12 +16,12 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "esbuild": "*", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/api-gateway-async-lambda-invocation/package.json b/typescript/api-gateway-async-lambda-invocation/package.json index 93fe31608d..40dc40962d 100644 --- a/typescript/api-gateway-async-lambda-invocation/package.json +++ b/typescript/api-gateway-async-lambda-invocation/package.json @@ -11,12 +11,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/api-gateway-lambda-token-authorizer/package.json b/typescript/api-gateway-lambda-token-authorizer/package.json index 1674e6e5ef..199f71ebb5 100644 --- a/typescript/api-gateway-lambda-token-authorizer/package.json +++ b/typescript/api-gateway-lambda-token-authorizer/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -24,7 +24,7 @@ }, "dependencies": { "@types/aws-lambda": "^8.10.121", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" }, diff --git a/typescript/api-gateway-parallel-step-functions/package.json b/typescript/api-gateway-parallel-step-functions/package.json index 660fe08d47..be1ecd688e 100644 --- a/typescript/api-gateway-parallel-step-functions/package.json +++ b/typescript/api-gateway-parallel-step-functions/package.json @@ -19,12 +19,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/api-websocket-lambda-dynamodb/package.json b/typescript/api-websocket-lambda-dynamodb/package.json index 54033a7c27..55f19ce9d9 100644 --- a/typescript/api-websocket-lambda-dynamodb/package.json +++ b/typescript/api-websocket-lambda-dynamodb/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/application-load-balancer/package.json b/typescript/application-load-balancer/package.json index a2e717adbb..360727646c 100644 --- a/typescript/application-load-balancer/package.json +++ b/typescript/application-load-balancer/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/appsync-graphql-dynamodb/package.json b/typescript/appsync-graphql-dynamodb/package.json index 34494a7e88..93f47d2a38 100644 --- a/typescript/appsync-graphql-dynamodb/package.json +++ b/typescript/appsync-graphql-dynamodb/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@aws-sdk/client-dynamodb": "^3.535.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/appsync-graphql-eventbridge/package.json b/typescript/appsync-graphql-eventbridge/package.json index 766dc439ab..265bcb571b 100644 --- a/typescript/appsync-graphql-eventbridge/package.json +++ b/typescript/appsync-graphql-eventbridge/package.json @@ -14,12 +14,12 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3", "ts-node": "^10.9.2" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/appsync-graphql-http/package.json b/typescript/appsync-graphql-http/package.json index fd574aae4c..1c5cb115a7 100644 --- a/typescript/appsync-graphql-http/package.json +++ b/typescript/appsync-graphql-http/package.json @@ -17,11 +17,11 @@ "devDependencies": { "@aws-appsync/utils": "^1.5.0", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/appsync-graphql-typescript-resolver/package.json b/typescript/appsync-graphql-typescript-resolver/package.json index ef4ca29035..7af30b5725 100644 --- a/typescript/appsync-graphql-typescript-resolver/package.json +++ b/typescript/appsync-graphql-typescript-resolver/package.json @@ -14,16 +14,16 @@ }, "devDependencies": { "@aws-appsync/utils": "^1.2.5", - "@types/jest": "^29.5.12", - "@types/node": "20.11.19", + "@types/jest": "^29.5.14", + "@types/node": "22.7.9", "jest": "^29.7.0", - "ts-jest": "^29.1.2", - "aws-cdk": "2.133.0", + "ts-jest": "^29.2.5", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", - "typescript": "~5.3.3" + "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.184.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/aspects/package.json b/typescript/aspects/package.json index e08bf72808..739ae31b73 100644 --- a/typescript/aspects/package.json +++ b/typescript/aspects/package.json @@ -15,7 +15,7 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "@typescript-eslint/eslint-plugin": "^6.11.0", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "eslint": "^8.54.0", "eslint-config-standard-with-typescript": "^40.0.0", "eslint-plugin-import": "^2.29.0", @@ -27,7 +27,7 @@ "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/aws-codepipeline-ecs-lambda/package.json b/typescript/aws-codepipeline-ecs-lambda/package.json index 02255cd3a7..4c0325be1e 100644 --- a/typescript/aws-codepipeline-ecs-lambda/package.json +++ b/typescript/aws-codepipeline-ecs-lambda/package.json @@ -12,12 +12,12 @@ "devDependencies": { "@types/aws-lambda": "^8.10.140", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "@types/aws-lambda": "^8.10.140", "constructs": "^10.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/aws-transfer-sftp-server/package.json b/typescript/aws-transfer-sftp-server/package.json index 94c4a3ee79..4a0fa43e80 100644 --- a/typescript/aws-transfer-sftp-server/package.json +++ b/typescript/aws-transfer-sftp-server/package.json @@ -21,14 +21,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/backup-s3/package.json b/typescript/backup-s3/package.json index 74caa81be5..c41f254e2c 100644 --- a/typescript/backup-s3/package.json +++ b/typescript/backup-s3/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/cdkpipeline-ecs/package.json b/typescript/cdkpipeline-ecs/package.json index 5ac127f793..0134b18f83 100644 --- a/typescript/cdkpipeline-ecs/package.json +++ b/typescript/cdkpipeline-ecs/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/classic-load-balancer/package.json b/typescript/classic-load-balancer/package.json index a31a32f065..917b30aff8 100644 --- a/typescript/classic-load-balancer/package.json +++ b/typescript/classic-load-balancer/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/cloudfront-functions/package.json b/typescript/cloudfront-functions/package.json index 306f0023d3..de7f5c6e06 100644 --- a/typescript/cloudfront-functions/package.json +++ b/typescript/cloudfront-functions/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json b/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json index a7e98f5585..c9aa1e339c 100644 --- a/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json +++ b/typescript/cloudwatch/evidently-client-side-evaluation-ecs/package.json @@ -13,12 +13,12 @@ "devDependencies": { "@types/express": "^4.17.15", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-evidently": "^3.245.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "express": "^4.17.1" } diff --git a/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json b/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json index b4eba4a708..bda397f79a 100644 --- a/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json +++ b/typescript/cloudwatch/evidently-client-side-evaluation-lambda/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/codepipeline-build-deploy/package.json b/typescript/codepipeline-build-deploy/package.json index 9793f5c335..1cddeeffe8 100644 --- a/typescript/codepipeline-build-deploy/package.json +++ b/typescript/codepipeline-build-deploy/package.json @@ -13,14 +13,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "jest-junit": "^16.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/codepipeline-glue-deploy/package.json b/typescript/codepipeline-glue-deploy/package.json index 25b1182516..345767b533 100644 --- a/typescript/codepipeline-glue-deploy/package.json +++ b/typescript/codepipeline-glue-deploy/package.json @@ -11,12 +11,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "cdk": "^2.130.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/codewhisperer-cloudwatch/package.json b/typescript/codewhisperer-cloudwatch/package.json index ad1604a320..619ee2eff8 100644 --- a/typescript/codewhisperer-cloudwatch/package.json +++ b/typescript/codewhisperer-cloudwatch/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/cognito-api-lambda/package.json b/typescript/cognito-api-lambda/package.json index 07628b8692..26058b9483 100644 --- a/typescript/cognito-api-lambda/package.json +++ b/typescript/cognito-api-lambda/package.json @@ -14,11 +14,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/connect-cdk/package.json b/typescript/connect-cdk/package.json index fa495b0705..93290855c4 100644 --- a/typescript/connect-cdk/package.json +++ b/typescript/connect-cdk/package.json @@ -13,14 +13,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "cdk-nag": "^2.30.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" diff --git a/typescript/custom-logical-names/package.json b/typescript/custom-logical-names/package.json index 188945ff57..cf4868dfed 100644 --- a/typescript/custom-logical-names/package.json +++ b/typescript/custom-logical-names/package.json @@ -10,12 +10,12 @@ "cdk": "cdk" }, "devDependencies": { - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/custom-resource-provider/package.json b/typescript/custom-resource-provider/package.json index 39adb022a8..a84d876cea 100644 --- a/typescript/custom-resource-provider/package.json +++ b/typescript/custom-resource-provider/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/custom-resource/package.json b/typescript/custom-resource/package.json index 2d2804f725..4a8e3a8123 100644 --- a/typescript/custom-resource/package.json +++ b/typescript/custom-resource/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ddb-stream-lambda-sns/package.json b/typescript/ddb-stream-lambda-sns/package.json index 5594f7dc0f..bbc4a22faf 100644 --- a/typescript/ddb-stream-lambda-sns/package.json +++ b/typescript/ddb-stream-lambda-sns/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@aws-solutions-constructs/aws-dynamodbstreams-lambda": "^2.74.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ddb/global-table-with-cmk/package.json b/typescript/ddb/global-table-with-cmk/package.json index e71e23611d..4b7ebf57a0 100644 --- a/typescript/ddb/global-table-with-cmk/package.json +++ b/typescript/ddb/global-table-with-cmk/package.json @@ -12,14 +12,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/ec2-instance-connect-endpoint/package.json b/typescript/ec2-instance-connect-endpoint/package.json index 373cdab559..e790bb54c7 100644 --- a/typescript/ec2-instance-connect-endpoint/package.json +++ b/typescript/ec2-instance-connect-endpoint/package.json @@ -16,15 +16,24 @@ }, "devDependencies": { "@types/jest": "^29.5.14", - "@types/node": "^16", - "aws-cdk": "2.1007.0", - "jest": "^29.5.0", - "ts-jest": "^29.1.1", - "ts-node": "^10.9.1", - "typescript": "^5.1.6" + "@types/node": "22.7.9", + "@typescript-eslint/eslint-plugin": "^5", + "@typescript-eslint/parser": "^5", + "aws-cdk": "2.1010.0", + "aws-cdk-lib": "2.85.0", + "constructs": "10.0.5", + "eslint": "^8", + "jest": "^29.7.0", + "ts-jest": "^29.2.5", + "ts-node": "^10.9.2", + "typescript": "~5.6.3" + }, + "peerDependencies": { + "aws-cdk-lib": "^2.85.0", + "constructs": "^10.0.5" }, "dependencies": { - "aws-cdk-lib": "2.189.1", - "constructs": "10.0.5" + "aws-cdk-lib": "2.190.0", + "constructs": "^10.0.0" } } diff --git a/typescript/ec2-instance/tsconfig.dev.json b/typescript/ec2-instance/tsconfig.dev.json deleted file mode 100644 index f560eba0bd..0000000000 --- a/typescript/ec2-instance/tsconfig.dev.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "rootDir": "../..", - "baseUrl": ".", - "paths": { - "../../../test-utils/*": ["../../../test-utils/*"] - } - }, - "include": [ - "**/*.ts", - "../../../test-utils/**/*.ts" - ] -} diff --git a/typescript/ec2-ssm-local-zone/package.json b/typescript/ec2-ssm-local-zone/package.json index 9e121714ce..ffaeda8cbe 100644 --- a/typescript/ec2-ssm-local-zone/package.json +++ b/typescript/ec2-ssm-local-zone/package.json @@ -13,14 +13,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/cluster/package.json b/typescript/ecs/cluster/package.json index 2c3ab0c0e4..8c03d3583d 100644 --- a/typescript/ecs/cluster/package.json +++ b/typescript/ecs/cluster/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/cross-stack-load-balancer/package.json b/typescript/ecs/cross-stack-load-balancer/package.json index 6df0150d81..09be4d004c 100644 --- a/typescript/ecs/cross-stack-load-balancer/package.json +++ b/typescript/ecs/cross-stack-load-balancer/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-network-load-balanced-service/package.json b/typescript/ecs/ecs-network-load-balanced-service/package.json index cb20b543ae..3dd23be791 100644 --- a/typescript/ecs/ecs-network-load-balanced-service/package.json +++ b/typescript/ecs/ecs-network-load-balanced-service/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json index c3ca3dcd14..7fc0d1e6cb 100644 --- a/typescript/ecs/ecs-service-with-advanced-alb-config/package.json +++ b/typescript/ecs/ecs-service-with-advanced-alb-config/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-logging/package.json b/typescript/ecs/ecs-service-with-logging/package.json index b14d076d6b..d212809ec8 100644 --- a/typescript/ecs/ecs-service-with-logging/package.json +++ b/typescript/ecs/ecs-service-with-logging/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-task-networking/package.json b/typescript/ecs/ecs-service-with-task-networking/package.json index 20896e5402..a7b2be4170 100644 --- a/typescript/ecs/ecs-service-with-task-networking/package.json +++ b/typescript/ecs/ecs-service-with-task-networking/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/ecs-service-with-task-placement/package.json b/typescript/ecs/ecs-service-with-task-placement/package.json index c3ca3dcd14..7fc0d1e6cb 100644 --- a/typescript/ecs/ecs-service-with-task-placement/package.json +++ b/typescript/ecs/ecs-service-with-task-placement/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-application-load-balanced-service/package.json b/typescript/ecs/fargate-application-load-balanced-service/package.json index da722fd43f..c32d958c0e 100644 --- a/typescript/ecs/fargate-application-load-balanced-service/package.json +++ b/typescript/ecs/fargate-application-load-balanced-service/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-auto-scaling/package.json b/typescript/ecs/fargate-service-with-auto-scaling/package.json index 4cbb2aa423..e937734d9f 100644 --- a/typescript/ecs/fargate-service-with-auto-scaling/package.json +++ b/typescript/ecs/fargate-service-with-auto-scaling/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-efs/package.json b/typescript/ecs/fargate-service-with-efs/package.json index 15f625e3e2..323a0963ed 100644 --- a/typescript/ecs/fargate-service-with-efs/package.json +++ b/typescript/ecs/fargate-service-with-efs/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-local-image/package.json b/typescript/ecs/fargate-service-with-local-image/package.json index 73cc130109..72fc1aac31 100644 --- a/typescript/ecs/fargate-service-with-local-image/package.json +++ b/typescript/ecs/fargate-service-with-local-image/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ecs/fargate-service-with-logging/package.json b/typescript/ecs/fargate-service-with-logging/package.json index 32f2bc842f..9e68fd00cc 100644 --- a/typescript/ecs/fargate-service-with-logging/package.json +++ b/typescript/ecs/fargate-service-with-logging/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/eks/cluster/package.json b/typescript/eks/cluster/package.json index 3766439c9d..9d94429781 100644 --- a/typescript/eks/cluster/package.json +++ b/typescript/eks/cluster/package.json @@ -17,7 +17,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -25,7 +25,7 @@ }, "dependencies": { "@aws-cdk/lambda-layer-kubectl-v31": "^2.0.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json index 0ac767f4c0..a9a2f657bf 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json +++ b/typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/package.json @@ -17,10 +17,10 @@ "devDependencies": { "@types/node": "22.7.9", "typescript": "~5.6.3", - "aws-cdk": "2.1004.0" + "aws-cdk": "2.1010.0" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json b/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json index f7dc5feedf..ce5fa60fd8 100644 --- a/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json +++ b/typescript/elasticbeanstalk/elasticbeanstalk-environment/package.json @@ -17,10 +17,10 @@ "devDependencies": { "@types/node": "22.7.9", "typescript": "~5.6.3", - "aws-cdk": "2.1004.0" + "aws-cdk": "2.1010.0" }, "dependencies": { - "aws-cdk-lib": "2.188.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.9" } diff --git a/typescript/eventbridge-lambda/package.json b/typescript/eventbridge-lambda/package.json index 6734506dd8..7c77721083 100644 --- a/typescript/eventbridge-lambda/package.json +++ b/typescript/eventbridge-lambda/package.json @@ -17,12 +17,12 @@ "devDependencies": { "@types/node": "22.7.9", "@types/jest": "^29.5.14", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/eventbridge-mesh/multiple-consumers/package.json b/typescript/eventbridge-mesh/multiple-consumers/package.json index b7a30b82c1..a14640f75b 100644 --- a/typescript/eventbridge-mesh/multiple-consumers/package.json +++ b/typescript/eventbridge-mesh/multiple-consumers/package.json @@ -11,12 +11,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1007.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/eventbridge-mesh/single-consumer/package.json b/typescript/eventbridge-mesh/single-consumer/package.json index b7a30b82c1..a14640f75b 100644 --- a/typescript/eventbridge-mesh/single-consumer/package.json +++ b/typescript/eventbridge-mesh/single-consumer/package.json @@ -11,12 +11,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1007.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/fsx-ad/package.json b/typescript/fsx-ad/package.json index e5bb693a07..3dbe4b8ce5 100644 --- a/typescript/fsx-ad/package.json +++ b/typescript/fsx-ad/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/http-proxy-apigateway/package.json b/typescript/http-proxy-apigateway/package.json index c0ba73dcc5..a0b5262f01 100644 --- a/typescript/http-proxy-apigateway/package.json +++ b/typescript/http-proxy-apigateway/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/imagebuilder/package.json b/typescript/imagebuilder/package.json index 0d47b02139..dde84b8399 100644 --- a/typescript/imagebuilder/package.json +++ b/typescript/imagebuilder/package.json @@ -12,12 +12,12 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "cdk-nag": "2.28.27", "constructs": "^10.0.0", "source-map-support": "0.5.21" diff --git a/typescript/inspector2/package.json b/typescript/inspector2/package.json index 4368906448..88f832653c 100644 --- a/typescript/inspector2/package.json +++ b/typescript/inspector2/package.json @@ -22,7 +22,7 @@ "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/lambda-api-ci/package.json b/typescript/lambda-api-ci/package.json index c686434fc4..b3f9fb20ae 100644 --- a/typescript/lambda-api-ci/package.json +++ b/typescript/lambda-api-ci/package.json @@ -12,14 +12,14 @@ "prettier": "prettier --write '**/{bin,lib,src,tst}/*.ts'" }, "devDependencies": { - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "@types/node": "22.7.9", "ts-node": "^10.9.2", "typescript": "~5.6.3", "prettier": "^3.2.5" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "@aws-sdk/client-s3": "^3.525.0", "source-map-support": "^0.5.21" diff --git a/typescript/lambda-cloudwatch-dashboard/package.json b/typescript/lambda-cloudwatch-dashboard/package.json index 3688c2987d..d38c901eb3 100644 --- a/typescript/lambda-cloudwatch-dashboard/package.json +++ b/typescript/lambda-cloudwatch-dashboard/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/lambda-cron/package.json b/typescript/lambda-cron/package.json index f4407313b2..03866404ae 100644 --- a/typescript/lambda-cron/package.json +++ b/typescript/lambda-cron/package.json @@ -18,12 +18,12 @@ "devDependencies": { "@types/node": "22.7.9", "@types/jest": "^29.5.14", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/lambda-layer/package.json b/typescript/lambda-layer/package.json index b755432d40..93e528171c 100644 --- a/typescript/lambda-layer/package.json +++ b/typescript/lambda-layer/package.json @@ -12,12 +12,12 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/lambda-manage-s3-event-notification/package.json b/typescript/lambda-manage-s3-event-notification/package.json index 54b22abfde..68278902b9 100644 --- a/typescript/lambda-manage-s3-event-notification/package.json +++ b/typescript/lambda-manage-s3-event-notification/package.json @@ -12,13 +12,13 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-s3": "^3.427.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/lambda-provisioned-concurrency-autoscaling/package.json b/typescript/lambda-provisioned-concurrency-autoscaling/package.json index 02984c58a9..242ccfe24e 100644 --- a/typescript/lambda-provisioned-concurrency-autoscaling/package.json +++ b/typescript/lambda-provisioned-concurrency-autoscaling/package.json @@ -18,14 +18,14 @@ "devDependencies": { "@aws-cdk/assert": "*", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "@types/jest": "^29.5.14", "jest": "^29.7.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/lexbot/package.json b/typescript/lexbot/package.json index 52864a787e..df820fce15 100644 --- a/typescript/lexbot/package.json +++ b/typescript/lexbot/package.json @@ -15,12 +15,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/my-widget-service/package.json b/typescript/my-widget-service/package.json index d7976c6e0b..048df96a22 100644 --- a/typescript/my-widget-service/package.json +++ b/typescript/my-widget-service/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "*" } diff --git a/typescript/neptune-with-vpc/package.json b/typescript/neptune-with-vpc/package.json index ae59b67146..422f0380c1 100644 --- a/typescript/neptune-with-vpc/package.json +++ b/typescript/neptune-with-vpc/package.json @@ -10,7 +10,7 @@ "cdk": "cdk" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "@aws-cdk/aws-neptune-alpha": "^2.0.0-alpha.10", "@types/jest": "^26.0.10", diff --git a/typescript/opensearch/cwlogs_ingestion/package.json b/typescript/opensearch/cwlogs_ingestion/package.json index 856a4fd5f9..6f997993fd 100644 --- a/typescript/opensearch/cwlogs_ingestion/package.json +++ b/typescript/opensearch/cwlogs_ingestion/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "aws-cdk-lib": "^2.165.0", "constructs": "^10.2.43", "globals": "^15.6.0", @@ -25,7 +25,7 @@ "dependencies": { "@aws-cdk/aws-lambda-python-alpha": "2.165.0-alpha.0", "aws-cdk": "^2.165.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/opensearch/os_vpc_provision/package.json b/typescript/opensearch/os_vpc_provision/package.json index 66c218d4c8..32a3722dc2 100644 --- a/typescript/opensearch/os_vpc_provision/package.json +++ b/typescript/opensearch/os_vpc_provision/package.json @@ -14,14 +14,14 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3", "constructs": "^10.2.43" }, "dependencies": { "aws-cdk": "^2.102.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/quicksight/package.json b/typescript/quicksight/package.json index 9060d31678..27f51dcf32 100644 --- a/typescript/quicksight/package.json +++ b/typescript/quicksight/package.json @@ -12,14 +12,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/r53-resolver/package.json b/typescript/r53-resolver/package.json index dc7a76c8e4..1c6f4abcca 100644 --- a/typescript/r53-resolver/package.json +++ b/typescript/r53-resolver/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", @@ -21,7 +21,7 @@ }, "dependencies": { "@aws-cdk/aws-route53resolver-alpha": "^2.133.0-alpha.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rds/aurora/package.json b/typescript/rds/aurora/package.json index 629998b523..4f7466fe05 100644 --- a/typescript/rds/aurora/package.json +++ b/typescript/rds/aurora/package.json @@ -13,13 +13,13 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "jest": "^29.7.0", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rds/mysql/package.json b/typescript/rds/mysql/package.json index 03c4a245ce..1810636462 100644 --- a/typescript/rds/mysql/package.json +++ b/typescript/rds/mysql/package.json @@ -15,12 +15,12 @@ "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "esModuleInterop": true, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rds/oracle/package.json b/typescript/rds/oracle/package.json index a5cef61ba8..0b69403600 100644 --- a/typescript/rds/oracle/package.json +++ b/typescript/rds/oracle/package.json @@ -13,13 +13,13 @@ "@types/jest": "^29.5.14", "@types/node": "22.7.9", "jest": "^29.7.0", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/rekognition-lambda-s3-trigger/package.json b/typescript/rekognition-lambda-s3-trigger/package.json index 8acceb2e56..22fe89ae38 100644 --- a/typescript/rekognition-lambda-s3-trigger/package.json +++ b/typescript/rekognition-lambda-s3-trigger/package.json @@ -11,14 +11,14 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-dynamodb": "^3.538.0", "@aws-sdk/client-rekognition": "^3.535.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/resource-overrides/package.json b/typescript/resource-overrides/package.json index ec5f6d8a6f..6127e72f7b 100644 --- a/typescript/resource-overrides/package.json +++ b/typescript/resource-overrides/package.json @@ -15,12 +15,12 @@ }, "license": "Apache-2.0", "devDependencies": { - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "@types/node": "22.7.9", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/route53-resolver-dns-firewall/package.json b/typescript/route53-resolver-dns-firewall/package.json index a3ea5e85c6..02a1dcee5b 100644 --- a/typescript/route53-resolver-dns-firewall/package.json +++ b/typescript/route53-resolver-dns-firewall/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/s3-kms-cross-account-replication/package.json b/typescript/s3-kms-cross-account-replication/package.json index b0680e9e65..8f357dc411 100644 --- a/typescript/s3-kms-cross-account-replication/package.json +++ b/typescript/s3-kms-cross-account-replication/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "cdk-nag": "^2.0.0", "jest": "^29.7.0", "prettier": "2.6.2", @@ -22,7 +22,7 @@ "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.16" } diff --git a/typescript/s3-object-lambda/package.json b/typescript/s3-object-lambda/package.json index d4dd3496be..dddd05be89 100644 --- a/typescript/s3-object-lambda/package.json +++ b/typescript/s3-object-lambda/package.json @@ -11,13 +11,13 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { "@aws-sdk/client-s3": "^3.537.0", - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/s3-sns-lambda-chain/package.json b/typescript/s3-sns-lambda-chain/package.json index 026089cc3f..7bad11500a 100644 --- a/typescript/s3-sns-lambda-chain/package.json +++ b/typescript/s3-sns-lambda-chain/package.json @@ -14,14 +14,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" }, "jest": { diff --git a/typescript/secrets-manager-rotation/package.json b/typescript/secrets-manager-rotation/package.json index 2dce21919f..b682cab2f0 100644 --- a/typescript/secrets-manager-rotation/package.json +++ b/typescript/secrets-manager-rotation/package.json @@ -17,14 +17,14 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "jest": "^29.7.0", "ts-jest": "^29.2.5", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "@aws-cdk/aws-lambda-python-alpha": "*", "constructs": "^10.0.0" } diff --git a/typescript/servicecatalog/portfolio-with-ec2-product/package.json b/typescript/servicecatalog/portfolio-with-ec2-product/package.json index 51e3fc2438..40e701a9c3 100644 --- a/typescript/servicecatalog/portfolio-with-ec2-product/package.json +++ b/typescript/servicecatalog/portfolio-with-ec2-product/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/ssm-document-association/package.json b/typescript/ssm-document-association/package.json index 7bf28e07f9..af01880151 100644 --- a/typescript/ssm-document-association/package.json +++ b/typescript/ssm-document-association/package.json @@ -14,12 +14,12 @@ "@types/node": "22.7.9", "jest": "^29.7.0", "ts-jest": "^29.2.5", - "aws-cdk": "2.1007.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.189.1", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/static-site-basic/package.json b/typescript/static-site-basic/package.json index 8c8cf37368..1c2060e82f 100644 --- a/typescript/static-site-basic/package.json +++ b/typescript/static-site-basic/package.json @@ -15,11 +15,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "ts-node": "^10.9.2" } diff --git a/typescript/static-site/package.json b/typescript/static-site/package.json index 8ceb6c6ed7..e06f615a77 100644 --- a/typescript/static-site/package.json +++ b/typescript/static-site/package.json @@ -15,11 +15,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/stepfunction-external-definition/package.json b/typescript/stepfunction-external-definition/package.json index e4a021602e..a0f7bdcc25 100644 --- a/typescript/stepfunction-external-definition/package.json +++ b/typescript/stepfunction-external-definition/package.json @@ -11,12 +11,12 @@ }, "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "ts-node": "^10.9.2", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "source-map-support": "^0.5.21" } diff --git a/typescript/stepfunctions-job-poller/package.json b/typescript/stepfunctions-job-poller/package.json index 4899fff8a8..50cc11f99f 100644 --- a/typescript/stepfunctions-job-poller/package.json +++ b/typescript/stepfunctions-job-poller/package.json @@ -16,11 +16,11 @@ "license": "Apache-2.0", "devDependencies": { "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0" } } diff --git a/typescript/waf/package.json b/typescript/waf/package.json index 41f456408b..ffabdf62fa 100644 --- a/typescript/waf/package.json +++ b/typescript/waf/package.json @@ -12,11 +12,11 @@ "devDependencies": { "@types/jest": "^29.5.14", "@types/node": "22.7.9", - "aws-cdk": "2.1004.0", + "aws-cdk": "2.1010.0", "typescript": "~5.6.3" }, "dependencies": { - "aws-cdk-lib": "2.185.0", + "aws-cdk-lib": "2.190.0", "constructs": "^10.0.0", "jest": "^26.4.2", "ts-jest": "^26.2.0",