microsoft / cobalt

Infrastructure turn-key solution for app service workloads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert lint-check-terraform.sh to YAML template with inline script

awkwardindustries opened this issue · comments

Description

As an advocated pattern owner, I'd like to perform a Terraform lint check as part of my build/release pipeline without requiring an external script in order to allow application repositories to refer via reference without additional dependencies.

Acceptance Criteria

Reference: [Done-Done Checklist] (https://github.com/Microsoft/code-with-engineering-playbook/blob/master/Engineering/BestPractices/DoneDone.md)

  • Should create devops/providers/azure-devops/templates/infrastructure/scripts/lint-check-terraform.yml with inline version of lint-check-terraform.sh
  • Should update azure-pipeline-initial-artifact.yml to utilize template reference to lint-check-terraform.yml instead of lint-check-terraform.sh

Also, here are a few points that need to be addressed:

  1. Need to address how to either reuse or duplicate the current commons.sh script as it is utilized by the lint-check-terraform.sh script.

Resources

Relates to #298

Tasks

Stories are intended to be completed in a single sprint; if task breakdown creates addition work then team should discuss promoting the Story to an Epic.
Reference: [Minimal Valuable Slices] (https://github.com/Microsoft/code-with-engineering-playbook/blob/master/Engineering/BestPractices/MinimalSlices.md)

Reference: [How to Write Better Tasks] (http://agilebutpragmatic.blogspot.com/2012/04/splitting-story-into-tasks-how-to-write.html)

Assignee should break down work into tasks here