terraform-cdk icon indicating copy to clipboard operation
terraform-cdk copied to clipboard

Allow to ignore files from TerraformAsset

Open DanielMSchmidt opened this issue 3 years ago • 0 comments
trafficstars

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

Currently a TerraformAsset would copy (& zip) everything in the directory it points to, but sometimes you don't need all the files but a subset. We currently advise users to clean up before running cdktf, but having a glob-syntax list of things to ignore as a configuration to an asset would be a better UX.

References

  • There is a .terraformignore: https://www.terraform.io/language/settings/backends/remote#excluding-files-from-upload-with-terraformignore

DanielMSchmidt avatar Sep 13 '22 15:09 DanielMSchmidt