1 Answer
- Newest
- Most votes
- Most comments
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:
answered a year ago
Relevant content
- asked 4 years ago
- asked 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 10 months ago