terraform-cdk
terraform-cdk copied to clipboard
Add `cdktf provider update` command
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
This was initially part of #877 but got pulled into a separate issue.
Ideally, I would also like to be able to help me upgrade providers, e.g.
$> cdktf provider update hashicorp/kubernetes@latest
This project currently uses hashicorp/kubernetes 2.1.1. 2.3.2 is the latest available version. Upgrade? (yes)
// cdktf updates cdktf.json, gets it, gets the schema
Warning: the cron-job resources in hashicorp/kubernetes is in use in ./foo/bar/cron-job.ts, and the schema has changed between 2.1.1 and 2.3.2. You may need to modify this resource. Continue? (yes)