This message was deleted.
# atlantis-community
s
This message was deleted.
p
you can run a post_workflow step to push those files to the PR but that will invalidate the reviews depending of your repo rules
a
yes, but does
atlantis apply
generates the file? if yes, where does generates? @PePe Amengual
p
you are doing this in Terraform
terraform is generating the file not atlantis, atlantis just calls the TF binary
and it will put the file in the checkout of the PR
in whatever directory inside you setup in TF to put it
a
I just found this: https://www.runatlantis.io/docs/requirements.html#terraform-state
Atlantis supports all backend types except for local state. We don't support local state because Atlantis does not have permanent storage and it doesn't commit the new statefile back to version control.
so @PePe Amengual you are suggesting something like this:
Copy code
workflows:
  my-workflow:
    plan:
      steps:
        - run: terraform fmt -check=true -diff=true -write=false -recursive
        - init
        - plan
    apply:
      steps:
        - run: git add ./config.yml
        - run: git commit -m "something"
?
p
a
cool, thanks @PePe Amengual I will take a look there, also here do they mean the "local_file" resource? 😄 coz if they do, it seems like only solution for this will be using terraform remote
p
that is remote state
nothing to do with resource
🙌 1