Skip to content

Exclude directory without defining all directories in atlantis.yaml #859

@jseiser

Description

@jseiser

I found an old github entry, that made this seem possible, but it appears its changed.

Is there a way to exclude a directory, that doesn't require listing every directory in atlantis.yml?

We are wanting non-engineers to be able to easily create their new environments via a pull request. So we will not know ahead of time, what 'projects' would exist at any given time.

Folder structure is like the below. _modules folder, example folder inside which is a almost 99% complete deployment, user just needs to create a folder at the root level, copy those files in and change the backed settings. I never need to plan or run on this folder.

Even the option to exclude this directory, but include all other directories based on some sort of regex would be great. like ignore _module, but include any project starting with deploy_ etc.

 └── _modules
    └── app_tenant
        ├── credentials.tf
        ├── data.tf
        ├── examples
        │   ├── data.tf
        │   ├── main.tf
        │   └── setup.tf
        ├── iam.tf
        ├── kms-key.tf
        ├── mysql.tf
        ├── outputs.tf
        ├── s3.tf
        ├── templates
        │   ├── policy-kms.tpl
        │   ├── policy-s3.tpl
        │   └── policy-tenant-kms.tpl
        └── variables.tf

Metadata

Metadata

Assignees

No one assigned

    Labels

    StalefeatureNew functionality/enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions