使用npm 可以轻松安装 CDK CLI。 npm install -g aws-cdk-lib 安装完成后执行 cdk --version 来验证安装,能看到类似如下输出。 2.18.0 (build 75c90fa) Bootstrap CDK 需要少量的 AWS 资源(例如 S3,ECR)才能运行,创建这些资源的步骤被称作 bootstrap。执行以下命令以进行 bootstrap。 export CDK_NEW_BO...
@aws-cdk/aws-kms=1.63.0,@aws-cdk/aws-sns=1.63.0,@aws-cdk/aws-sns-subscriptions=1.63.0,@aws-cdk/aws-sqs=1.63.0,@aws-cdk/cloud-assembly-schema=1.63.0,@aws-cdk/core=1.63.0,@aws-cdk/cx-api=1.63.0,@aws-cdk/region-info=1.63.0,jsii-runtime=node.js/v12.16.3...
升级npm 到最新版本 npm install -g npm@latest 再次执行cdk --version
[ec2-user@ip-100-92-28-119 aws]$ npm install -g aws-cdk node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node) node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15...
您可以在空目錄cdk init中呼叫來建立新 AWS CDK 專案。使用選--language項並指定typescript:mkdir my-project cd my-project cdk init app --language typescript建立專案也會安裝aws-cdk-lib模組及其相依性。cdk init使用專案資料夾的名稱來命名專案的各種元素,包括類別、子資料夾和檔案。資料夾名稱中的連字號會...
aws-cdk-lib.aws_amplify aws-cdk-lib.aws_amplifyuibuilder aws-cdk-lib.aws_apigateway aws-cdk-lib.aws_apigatewayv2 aws-cdk-lib.aws_apigatewayv2_authorizers aws-cdk-lib.aws_apigatewayv2_integrations aws-cdk-lib.aws_appconfig aws-cdk-lib.aws_appflow ...
Kubectl Version: 1.29.4 Usage: // KubectlLayer bundles the 'kubectl' and 'helm' command linesimport{KubectlV29Layer}from'@aws-cdk/lambda-layer-kubectl-v29';import*aslambdafrom'aws-cdk-lib/aws-lambda';declareconstfn:lambda.Function;constkubectl=newKubectlV29Layer(this,'KubectlLayer');fn.add...
Template for a CDK Construct Library└─ cdk init lib --language=typescript* sample-app: Example CDK Application with some constructs└─ cdk init sample-app --language=[csharp|fsharp|java|javascript|python|typescript]$#Create a new library application in typescript$cdk init lib --language=ty...
version.v2.json yarn.lock AWS Cloud Development Kit (AWS CDK) TheAWS Cloud Development Kit (AWS CDK)is an open-source software development framework to define cloud infrastructure in code and provision it through AWS CloudFormation. It offers a high-level object-oriented abstraction to define AWS...
Version 2 of the AWS Cloud Development Kit library. Latest version: 2.170.0, last published: a day ago. Start using aws-cdk-lib in your project by running `npm i aws-cdk-lib`. There are 774 other projects in the npm registry using aws-cdk-lib.