-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from aws-ia/ephemeral_project-updates
Updates from project type
- Loading branch information
Showing
22 changed files
with
71 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This file is auto-generated, changes will be overwritten | ||
_commit: v0.0.1 | ||
_src_path: /task/41906a63-e3bb-11ed-90bf-1a813f494731/projecttype | ||
_commit: v0.0.6 | ||
_src_path: /task/04dba63e-eac8-11ed-962f-66a115cc3c0d/projecttype | ||
starting_version: v0.0.0 | ||
version_file: VERSION | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
fail_fast: false | ||
minimum_pre_commit_version: "2.6.0" | ||
repos: | ||
- | ||
repo: https://github.com/terraform-docs/terraform-docs | ||
# To update run: | ||
# pre-commit autoupdate --freeze | ||
rev: 212db41760d7fc45d736d5eb94a483d0d2a12049 # frozen: v0.16.0 | ||
hooks: | ||
- id: terraform-docs-go | ||
args: | ||
- "--config=.terraform-docs.yaml" | ||
- "--lockfile=false" | ||
- "--recursive" | ||
- "--recursive-path=examples/" | ||
- "./" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,55 @@ | ||
#!/bin/bash -ex | ||
#!/bin/bash -e | ||
|
||
## NOTE: paths may differ when running in a managed task. To ensure behavior is consistent between | ||
# managed and local tasks always use these variables for the project and project type path | ||
PROJECT_PATH=${BASE_PATH}/project | ||
PROJECT_TYPE_PATH=${BASE_PATH}/projecttype | ||
|
||
echo "Starting Static Tests" | ||
|
||
cd ${PROJECT_PATH} | ||
terraform init | ||
terraform validate | ||
|
||
#********** tflint ******************** | ||
echo 'Starting tflint' | ||
tflint --init | ||
tflint | ||
|
||
MYLINT=$(tflint --force) | ||
if [ -z "$MYLINT" ] | ||
then | ||
echo "Success - tflint found no linting issues!" | ||
else | ||
echo "Failure - tflint found linting issues!" | ||
echo "$MYLINT" | ||
exit 1 | ||
fi | ||
#********** tfsec ********************* | ||
# tfsec will report to the console with success or Failure | ||
# therefore there is no need to provide such conditional stetements | ||
echo 'Starting tfsec' | ||
tfsec . | ||
|
||
mdl .header.md | ||
#********** Markdown Lint ************** | ||
echo 'Starting markdown lint' | ||
MYMDL=$(mdl .header.md || true) | ||
if [ -z "$MYMDL" ] | ||
then | ||
echo "Success - markdown lint found no linting issues!" | ||
else | ||
echo "Failure - markdown lint found linting issues!" | ||
echo "$MYMDL" | ||
exit 1 | ||
fi | ||
#********** Terraform Docs ************* | ||
echo 'Starting terraform-docs' | ||
TDOCS="$(terraform-docs --lockfile=false ./)" | ||
git add -N README.md | ||
GDIFF="$(git diff --compact-summary)" | ||
if [ -z "$GDIFF" ] | ||
then | ||
echo "Success - Terraform Docs creation verified!" | ||
else | ||
echo "Failure - Terraform Docs creation failed, ensure you have precommit installed and running before submitting the Pull Request" | ||
exit 1 | ||
fi | ||
#*************************************** | ||
echo "End of Static Tests" |
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.