Skip to content

Define projects in atlantis.yaml and allow undefined projects to auto plan #2708

@nitrocode

Description

@nitrocode

Community Note

  • 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.

Describe the user story

If we have 100 projects in a single repo and only need to customize 1, we'll have to define every project or we can no longer auto plan projects.

This is stated in the docs with this warning

Once an atlantis.yaml file exists in a repo, Atlantis won't try to determine where to run plan automatically. Instead it will just follow the project configuration. This means that you'll need to define each project in your repo.

If you have many directories with Terraform configuration, each directory will need to be defined.

According to the code, the warning in the documentation has been there since 2019. I'm not sure if this was an intentional limitation or if it is an issue that never got prioritized. I couldn't find an existing ticket for this either (happy to close if there is one).

https://github.com/runatlantis/atlantis/blame/ada4e53931953ada1afc75faac3ba9ebda126472/runatlantis.io/docs/repo-level-atlantis-yaml.md#L36

Describe the solution you'd like

Describe the drawbacks of your solution

I'd like all projects to have a default, as if there isn't an atlantis.yaml file, and if there is an atlantis.yaml file with defined projects, only override the configurations of specific directories/projects and continue to autoplan the rest.

Describe alternatives you've considered

I currently run the script in the docs to auto generate the projects in the atlantis.yaml file.

There are other projects that also auto generate the atlantis.yaml file such as terragrunt-atlantis-config and atmos

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality/enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions