Zach Sirotto
10/03/2024, 4:33 PM[dumb-init] /bin/sh: No such file or directory
i've tried just about everything I can think of, so figured i'd reach out to the community to see if anyone has any ideas what could be wrong. at the moment, i'm running the container as user 100 which should correspond to the atlantis user.jaden lee
10/03/2024, 5:38 PM--update
flag since they all point to 1 directories for policies. Not sure if there's a way around this?Damian Finol
10/03/2024, 5:48 PMMykhailo Kuzmich
10/07/2024, 11:55 AMLevi Kavadas
10/07/2024, 5:49 PMmultienv
scripts need to live to work? I have it in my atlantis
repo but does it need to be in the target repo?
running "plan-hook.sh" in "/atlantis-data/repos/company/platform-engineering/automation/companycm/650/default/terraform": exit status 127: running "plan-hook.sh" in "/atlantis-data/repos/delta-defense/platform-engineering/automation/companycm/650/default/terraform":
sh: plan-hook.sh: not found
Alagappan Alagappan
10/08/2024, 11:16 PMErnesto Huizar
10/09/2024, 8:16 PMChristian
10/09/2024, 10:37 PMatlantis/apply
as a required status check I am unable to run atlantis apply
and I get the following error despite having all of the approving reviews from valid codeowners that were not the author.
Apply Failed: Pull request must be approved according to the project's approval rules before running apply.
Something that was interesting was when a repo is under just branch protection rules (different than rulesets but do similar things), it does not encounter this error. Also it appears that as long as the atlantis/apply
is not a required status check it can run apply successfully.
Would love to hear some insight that can allow atlantis apply
to be ran while keeping the status check or any extra information that can help give me insight on why this error is happening? Thank you!Elijah Shackelford
10/10/2024, 10:18 PMRB
10/11/2024, 1:45 AMatlantis plan -- -destroy
to destroy resources
In 0.28.5 and later, it returns a regular plan instead of a destroy plan. Is this a known regression ?
Edit: the issue was omitting the $COMMENT_ARGS
in a custom plan
stepoponomarov-tu
10/11/2024, 12:35 PM$REPO_REL_DIR
in the post workflow hook of apply
?
post_workflow_hooks:
- description: example
commands: apply
run: echo $REPO_REL_DIR
My Atlantis uses default apply
workflow.RB
10/11/2024, 3:10 PMDaniel Singletary
10/12/2024, 6:45 PMversion: 3
projects:
- name: prod
dir: terraform
workspace: prod
autoplan:
enabled: true
when_modified:
- '**/*'
apply_requirements:
- mergeable
- approved
workflow: terraform_workflow
workflows:
terraform_workflow:
plan:
steps:
- run: rm -rf .terraform
- init
- plan:
extra_args: ["-var-file=vars/${WORKSPACE}.tfvars", "-lock=false"]
Any guidance would be appreciated 🙂Girdhar Gopal
10/15/2024, 1:38 PMMohit Nagaraj
10/16/2024, 1:26 AMoponomarov-tu
10/17/2024, 3:16 PM*.sh
scripts under stack's nested directory, e.g. app/databricks-e2/databricks-workspace-analytics/scripts/global_init.sh
used to work and resulted in app/databricks-e2/databricks-workspace-analytics
stack being automatically planned. With v0.28.x (I think) it stopped working and instead Atlantis attempts to plan: app/databricks-e2/databricks-workspace-analytics/scripts
.VickyWinner
10/17/2024, 8:05 PMPePe Amengual
10/17/2024, 8:10 PMJon Tally
10/17/2024, 8:47 PM* fork/exec /usr/local/bin/terraform1.7.5: argument list too long
I'm thinking we're running into a plan that is too large, admittedly the ARG_MAX
size on the bottlerocket host is pretty small at 131072
Priyashree Shetty
10/18/2024, 1:26 PMprevent_self_approve: true
to disable the author from approving the policy I get the below error . Where should I add this flag ?
{"level":"info","ts":"2024-10-18T13:15:36.840Z","caller":"server/server.go:184","msg":"Policy Checks are enabled","json":{}}
Error: initializing server: parsing /etc/atlantis/repos.yaml file: yaml: unmarshal errors:
line 20: field prevent_self_approve not found in type raw.PolicySet
RB
10/18/2024, 6:46 PMRB
10/18/2024, 7:17 PMpolicy_checks
to work. I get this error. Has anyone else seen this?
1 error occurred:
* policy_set: policies: conftest: Error: running test: load: loading policies: load: 1 error occurred during loading: stat cd: no such file or directory
Chloe Blain
10/21/2024, 1:23 PMversion: 3
automerge: true
delete_source_branch_on_merge: true
parallel_plan: true
parallel_apply: true
projects:
- &template
name: template
dir: template
terraform_version: v1.7.3
autoplan:
enabled: true
when_modified:
- "**/*.tf"
- "**/*.tfvars"
- <<: *template
name: transit-gateway/us-east-1
dir: terraform/transit-gateway
workflow: us-east-1
- <<: *template
name: transit-gateway/eu-west-1
dir: terraform/transit-gateway
workflow: eu-west-1
workflows:
eu-west-1:
plan:
steps:
- init:
extra_args: ["-backend-config", "env/eu-west-1/backend.tf", "-reconfigure"]
- plan:
extra_args: ["-var-file", "env/eu-west-1/terraform.tfvars"]
us-east-1:
plan:
steps:
- init:
extra_args: ["-backend-config", "env/us-east-1/backend.tf", "-reconfigure"]
- plan:
extra_args: ["-var-file", "env/us-east-1/terraform.tfvars"]
However, this workflow does not allow parallel plan/apply to be enabled as Atlantis throws a state lock error
the default workspace at path terraform/transit-gateway is currently locked by another command that is running for this pull request.
Wait until the previous command is complete and try again
is this caused by the fact that both are using the default workspace?Brady Catherman
10/22/2024, 2:59 AMRB
10/22/2024, 2:57 PMapproved_account_id
rego policy and I’d like to migrate the approved account IDs outside of the rego policy so they can be managed separately and be integrated into other policies.
I’d like to grab the list of approved account ids from a yaml file in an s3 bucket and pass it into my rego policy. Is this possible in native policy_checks
in atlantis ?RB
10/22/2024, 4:31 PMpolicy_checks
and I cannot seem to get the defined list of users or team added to the failing PR.PePe Amengual
10/23/2024, 4:46 PMPePe Amengual
10/23/2024, 6:16 PMPePe Amengual
12/02/2024, 10:49 PMPePe Amengual
12/02/2024, 11:09 PMatlantis-community