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:
답변함 2년 전