cloudbees-oss / terraform-aws-cloudbees-ci-eks-addon

CloudBees CI Add-on for AWS EKS
https://registry.terraform.io/modules/cloudbees/cloudbees-ci-eks-addon/aws
MIT License
10 stars 12 forks source link

[ci, all] Adding retry mechanism when terraform command fails #57

Closed carlosrodlop closed 9 months ago

carlosrodlop commented 9 months ago

Ideas

1/ Terragrunt comes with extra features that helps to solve transient errors during the pipeline execution like:

It requires to aadd the tool in Docker like

ENV TG_VERSION=0.55.1 \
    ARCH=amd64

RUN curl -sLO https://github.com/gruntwork-io/terragrunt/releases/download/v${TG_VERSION}/terragrunt_linux_${ARCH} && \
    mv terragrunt_linux_${ARCH} /usr/bin/terragrunt && \
    chmod +x /usr/bin/terragrunt

And also restructure the code using terragrunt.hcl (see QuickStart) ==> It seems very time costly

2/ Bash approach like explained in this article but it seems not compatible with terraform

carlosrodlop commented 9 months ago

Already implemented as shell retry