Doesn't generate a CDK project? #748
-
I just deployed via the VS2022 extension ( The FAQ says a .Net CDK project is generated and can be extended, but where is it? During the process it shows: But no project or files have been created in the project folder. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The tool does generate a CDK project for most of the deployment recipes, but deletes it once the deployment succeeds. To persist it using the CLI, you can use
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 persisted CDK project, you can use the
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. This applies to Visual Studio too. Some more resources:
We don't support the persistence flag via the Visual Studio, but if you're interested you can open a feature request on https://github.com/aws/aws-toolkit-visual-studio. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
The tool does generate a CDK project for most of the deployment recipes, but deletes it once the deployment succeeds.
To persist it using the CLI, you can use
dotnet aws deployment-project generate
to generate the CDK project from one of the built-in recipes: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 persisted CDK project, you can use the
--deployment-project
switc…