参考文档
-
AWS官方文档:https://docs.aws.amazon.com/cdk/v2/guide/work-with-cdk-csharp.html
-
dotnet安装文档(注意ubuntu下的路径配置):https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu,https://www.how2shout.com/linux/how-to-install-net-core-dotnet-on-ubuntu-22-04-lts/
具体步骤
-
安装dotnet SDK和asw CDK (dotnet sdk安装成功如下图所示)
-
mkdir my-project && cd my-project
-
创建C#的一个新的cdk项目:
cdk init app --language csharp
-
编译cdk生成cloudformation文件:cdk synth
-
部署项目:
cdk deploy