You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
I would like to be able to call the atlantis /api/plan by specifying the project defined in the repo level yaml, instead of just either one of Directory or Workspace as mentioned at: https://www.runatlantis.io/docs/api-endpoints#post-api-plan
Describe the solution you'd like
Have parity in the plan api with the options provided in the repo atlantis config yaml, which defines the projects and workflows like this:
I've tried running the aforementioned command in the description of the solution section above, but I'm getting:
{
"error": "failed to build command: must specify project name: more than one project defined in 'atlantis.yaml' matched dir: 'coolproject' workspace: 'default'"
}
and if I only specify the Directory using the name of the project, I am getting:
{
"Error": null,
"Failure": "",
"PlansDeleted": false,
"ProjectResults": [
{
"ApplySuccess": "",
"Command": 1,
"Error": {
"RepoRelDir": "coolproject-dev"
},
"Failure": "",
"ImportSuccess": null,
"PlanSuccess": null,
"PolicyCheckResults": null,
"ProjectName": "",
"RepoRelDir": "ilayer-dev",
"SilencePRComments": null,
"StateRmSuccess": null,
"SubCommand": "",
"VersionSuccess": "",
"Workspace": "default"
}
]
}
and in the logs:
"caller":"terraform/terraform_client.go:293","msg":"trying to detect required version: Failed to read module directory: Module directory /root/.atlantis/repos/org/coolrepo/0/default/coolproject-dev does not exist or cannot be read."
I would like to use Atlantis for drift checking, I could use some other mechanism of course, until this is implemented
The text was updated successfully, but these errors were encountered:
The source seems to have an undocumented Projects key in the request body it appears. It is a list of strings of project names to run. Does that solve your problem?
Community Note
Describe the user story
I would like to be able to call the atlantis
/api/plan
by specifying the project defined in the repo level yaml, instead of just either one of Directory or Workspace as mentioned at: https://www.runatlantis.io/docs/api-endpoints#post-api-planDescribe the solution you'd like
Have parity in the plan api with the options provided in the repo atlantis config yaml, which defines the projects and workflows like this:
so that we can then be able to run:
Describe the drawbacks of your solution
Can't think of any
Describe alternatives you've considered
I've tried running the aforementioned command in the description of the solution section above, but I'm getting:
and if I only specify the Directory using the name of the project, I am getting:
I would like to use Atlantis for drift checking, I could use some other mechanism of course, until this is implemented
The text was updated successfully, but these errors were encountered: