-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow reapply default branch without PR #3626
Comments
This would be great and ver useful, but seems technically difficult since it seems like anyone could apply the Terraform at any time on any closed PR. |
yes, this could be pretty dangerous, so I'm wondering what is the usecase here? drift detection? |
@jamengual yes the ideal would be to have drift detection. But actually am really just trying to re-apply the main. The Atlantis API seems to be a secured and reasonable approach(since it authenticates requests using the api-secret), the only issue am having with that is Seems like it's not able to create a workspace for the main branch ("PR":0). As soon as i passed a valid PR, it works fine but that's not the goal and it also does not make any sense in my case to use the API for the PRs. Here's my request: curl --request POST ''"$the_url"'/api/plan' \
--header 'X-Atlantis-Token: '"$the_sec"'' \
--header 'Content-Type: application/json' \
--data-raw '{
"Repository": "'"$the_repo"'",
"Ref": "main",
"Type": "Github",
"Paths": [{
"Directory": ".",
"Workspace": "default"
}],
"PR": 0
}' |
@jamengual seems like you had a similar issue(#2949) and it seems like the proposed solution (#3584) has not been merged yet |
we need to review that PR, we will get to it. |
i think that will fix my issue. |
Community Note
Overview of the Issue
I manage my infrastructure with Atlantis, and it works well. The only drawback is that if the infrastructure changes and I want to re-apply the default branch, I'll need create a dummy PR.
It would be useful to be able to re-apply the configuration on the default branch without PR, as it has already been merged using the Atlantis workflow.
Atlantis, according to the documentation, does not support this. Is there an effective method to archive that?
Environment details
Atlantis on Cloud Run
GitHub as VCS
Atlantis image: runatlantis/atlantis:v0.23.3
The text was updated successfully, but these errors were encountered: