Code Monkey home page Code Monkey logo

Comments (5)

gonzaclavell avatar gonzaclavell commented on June 27, 2024

Hi, we are experimenting the same issue.
Is there any workaround like cleaning all plans which applies were just executed ?
Thx,

from terraform-aws-atlantis.

alemairebe avatar alemairebe commented on June 27, 2024

I believe this is more an atlantis question rather than linked to this terraform module.
The way we work around it is to define a custom workflow in your atlantis.yaml or repos_config.yaml.
We do this before any plan :
'find $(git rev-parse --show-toplevel) -type d -name '.terragrunt-cache' | xargs rm -rf'
It needs to be adapted to your use case as we use terragrunt.
see https://www.runatlantis.io/docs/custom-workflows.html#usage

from terraform-aws-atlantis.

dmattia avatar dmattia commented on June 27, 2024

I solved this by adding the following to my Dockerfile:

ENV HOME "/home/atlantis"
ENV TF_PLUGIN_CACHE "$HOME/.terraform.d/plugins/linux_amd64"

# The providers/plugins you need may be different
RUN mkdir -p ${TF_PLUGIN_CACHE}
RUN curl https://releases.hashicorp.com/terraform-provider-local/1.4.0/terraform-provider-local_1.4.0_linux_amd64.zip \
  --output local.zip && \
  unzip local.zip -d ${TF_PLUGIN_CACHE}
RUN curl https://releases.hashicorp.com/terraform-provider-null/2.1.2/terraform-provider-null_2.1.2_linux_amd64.zip \
  --output null-provider.zip && \
  unzip null-provider.zip -d ${TF_PLUGIN_CACHE} 
RUN curl https://releases.hashicorp.com/terraform-provider-template/2.1.2/terraform-provider-template_2.1.2_linux_amd64.zip \
  --output template.zip && \
  unzip template.zip -d ${TF_PLUGIN_CACHE} 
RUN curl https://releases.hashicorp.com/terraform-provider-vault/2.9.0/terraform-provider-vault_2.9.0_linux_amd64.zip \
  --output vault.zip && \
  unzip vault.zip -d ${TF_PLUGIN_CACHE} 
RUN curl https://releases.hashicorp.com/terraform-provider-aws/2.53.0/terraform-provider-aws_2.53.0_linux_amd64.zip \
  --output aws.zip && \
  unzip aws.zip -d ${TF_PLUGIN_CACHE}

This solves the problem by making the .terragrunt-cache directories significantly smaller since they do not need to re-download providers all over the place

from terraform-aws-atlantis.

bryantbiggs avatar bryantbiggs commented on June 27, 2024

FYI - you can kill the Fargate task and that frees up the local 20gb that Fargate provisions. otherwise, this isn't something we are able to solve here in this module unfortunately

from terraform-aws-atlantis.

github-actions avatar github-actions commented on June 27, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

from terraform-aws-atlantis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.