Open c0debreaker opened 2 days ago
After upgrading to 0.31.0, autoplan is working again. However, the IaC we use to deploy Atlantis to ECS got affected. Our Atlantis git project is using atlantis to do the terraform plan and apply
. I'm aware this is a weird setup. I have no clue as to why our previous devops team did it this way when in Atlantis installation documents, several approaches were described. Anyways, when we submit a merge request, a webhook in Gitlab gets sent to our atlantis server in ECS. With version 0.31.0, we are now getting this error message pasted or display in the merge request:
Error: failed to get shared config profile, build
I did some googling and most of them said to remove proflie in provider aws
. I tried it but I still got the same message.
When I reverted back to Atlantis v0.17.4 in ECS, the plan
worked again.
What could I be missing?
Community Note
Overview of the Issue
We recently upgraded GitLab to version 15.11.13 and have encountered an issue where autoplan functionality for projects using Atlantis is failing. The GitLab webhook to /events is still being triggered, as confirmed by the Atlantis logs in AWS ECS.
Previously, when creating a merge request, autoplan would automatically trigger, and the Terraform plan output would display within the merge request.
However, after upgrading GitLab to version 15.11.13 last week, we've noticed that autoplan no longer functions as expected. I contacted GitLab support to determine if there were any updates to their webhook functionality. Their response was: "We didn't update the payload of our webhooks. Please reach out to the Atlantis community for assistance."
Interestingly, if I manually type atlantis plan in the merge request comments, it works correctly, and the output is displayed as expected. Additionally, if I update the merge request and push changes with git push, the autoplan also functions properly. The issue only occurs when the merge request is first created—this behavior was not present before the upgrade.
Today, I continued debugging. Our Atlantis instance runs in a container on AWS ECS. Please see below for the relevant Atlantis logs for further analysis as well as the attached log.
Logs
I've also attached more complete logs from Cloudwatch. log-events-viewer-result.csv
Environment details
Atlantis server-side config file: I couldn't find the server side config file
Repo
atlantis.yaml
file:Additional Context