Skip to content
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

validate-env command? #297

Closed
stig opened this issue Jan 9, 2018 · 2 comments
Closed

validate-env command? #297

stig opened this issue Jan 9, 2018 · 2 comments

Comments

@stig
Copy link
Contributor

stig commented Jan 9, 2018

We have validate template, but for CI it would be very useful to have a validate-env command. Most of our projects contains a variant of this snippet in their .circleci/config.yaml:

      - run:
          name: Validate templates in dev using Sceptre
          command: |
            for file in $(find config -path '*/dev/*' -type f -name '*.yaml' -not -name config.yaml) ; do
                stack=$(basename $file ".yaml")
                environment=$(dirname $file | sed 's,.*config/,,')
                echo ">>>> sceptre validate-template $environment $stack"
                venv/bin/sceptre validate-template $environment $stack
            done

It would be very nice, IMO, if we could instead do:

    - run: sceptre validate-env dev
@cbosss
Copy link
Contributor

cbosss commented Jan 9, 2018

Similar to #69

@stig
Copy link
Contributor Author

stig commented Jan 9, 2018

@cboss24 Indeed! Mea culpa, I should have searched more carefully before opening this.

@stig stig closed this as completed Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants