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

[Feature Request] Install `curl` on images

Open simon-swanson-leapyear opened this issue 3 years ago • 2 comments

Theoretically this is as easy as adding curl to the apk add ... commands in the Dockerfiles.

curl is a super valuable tool to have available for debugging and execution, as certain Terraform modules assume the tool is available on the system. wget is less common on systems and most tools assume the existence of curl before wget.

For example: wait_for_cluster_command in CloudPosse's EKS cluster module uses curl by default. While this can be overridden to use wget, not all the environments we run Terraform in have wget installed and we would prefer to not introduce a bunch of conditional logic.

Attaching a patch file with how this could look: 0001-Add-curl-to-images.patch.tar.gz

simon-swanson-leapyear avatar Aug 25 '21 17:08 simon-swanson-leapyear

SGTM, please open a PR and I'll be happy to approve.

ljfranklin avatar Aug 25 '21 22:08 ljfranklin

Sorry for the wait, I apparently need to update my email filters.

simon-swanson-leapyear avatar Sep 01 '21 17:09 simon-swanson-leapyear