CDKTF: Support -refresh=false
on plan/diff and apply
#3539
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
priority/awaiting-more-evidence
Lowest priority. Unlikely to be worked on unless/until it gets a lot more upvotes.
Description
The cdktf-cli and components have no support for the
-refresh=false
option of terraform but we want to use it.Background is that some providers like the one for GitHub are very slow and spend minutes over minutes in refreshing the state. We want to introduce a workflow where we regularly update our state to have it up-to-date (also via
cdktf-cli apply
) but do not do any refresh on incremental changes done as part of PRs and PR merges.We are aware of any risks this implies.
As an alternative we could also allow users to specify any plain parameters which should be forwarded to terraform. A typical pattern I've seen for this (dotnet, npm) would be a syntax where any arguments after a
--
are forwarded directly to the underlying executable:npx cdktf-cli@latest apply Stack --auto-approve -- -refresh=false
References
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: