How do I get the CDK generated by "dotnet aws deploy"?

0

I've created a blazorwasm project using the following commands:

dotnet tool install -g aws.deploy.tools
mkdir temp
cd temp
dotnet new blazorwasm
dotnet aws deploy

When I run the final command I can see that it's using CDK to deploy the application but it appears to write this to a temporary directory. Is there a way to save the CDK so I can modify it and extend the project later?

질문됨 2년 전252회 조회
1개 답변
0

You can use dotnet aws deployment-project generate to persist the CDK project from one of the built-in recipes:

dotnet aws deployment-project generate --output ../CustomDeploymentProject --project-display-name "Custom deployment project"

You can then modify the persisted CDK project, perhaps to add new resources and options, or to streamline the built-in recipe. You may want to check it into source control alongside your application code.

Then to deploy an application using the custom CDK project, you can use the --deployment-project switch on dotnet aws deploy:

dotnet aws deploy --deploy-project ../CustomDeploymentProject

Or, if the custom deployment project is located anywhere beneath the solution (.sln) of the project you are deploying, the deployment tool will detect it automatically.

Some more resources:

profile pictureAWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠