AWS - CDK(C#)
AWS CDK Env .NET(C#)
file:project.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<!-- Roll forward to future major versions of the netcoreapp as needed -->
<RollForward>Major</RollForward>
</PropertyGroup>
<ItemGroup>
<!-- CDK Construct Library dependencies -->
<PackageReference Include="Amazon.CDK.Lib" Version="2.54.0" />
<PackageReference Include="Constructs" Version="[10.0.0,11.0.0)" />
<!-- jsii Roslyn analyzers
(un-comment to obtain compile-time checks for missing required props)
<PackageReference Include="Amazon.Jsii.Analyzers" Version="*" PrivateAssets="all" />
-->
</ItemGroup>
</Project>
add CDK S3 package
$ dotnet add package Amazon.CDK.AWS.S3
cdk bootstrap
need permissions: CloudFormation:*, Ecr:* $ cdk bootstrap after added StackName: "CDKToolkit" and S3 Buckets cdk-*-container-assets-ACCOUNTID-REGION初期設定はここで完了!