From cb253785dd762612b19aea9f8a7ec0f2154efe10 Mon Sep 17 00:00:00 2001 From: IA Automator Date: Tue, 8 Jul 2025 16:16:08 +0000 Subject: [PATCH 1/3] (automated) Updates from project type --- .../launch_configuration_imdsv2_tfchecks.json | 0 .../launch_template_imdsv2_tfchecks.json | 0 .../.tfsec}/no_launch_config_tfchecks.json | 0 .../sg_no_embedded_egress_rules_tfchecks.json | 0 ...sg_no_embedded_ingress_rules_tfchecks.json | 0 .../post-entrypoint-helpers.sh | 6 ++ .../pre-entrypoint-helpers.sh | 6 ++ .../static_tests/post-entrypoint-helpers.sh | 6 ++ .../static_tests/pre-entrypoint-helpers.sh | 6 ++ .copier-answers.yml | 4 +- .../functional_tests/Dockerfile | 9 +- .../functional_tests/entrypoint.sh | 50 +++++++++- .../functional_tests/functional_tests.sh | 32 +++++++ .project_automation/static_tests/Dockerfile | 2 +- .../static_tests/entrypoint.sh | 91 ++++++++----------- .../static_tests/static_tests.sh | 86 ++++++++++++++++++ examples/basic/.header.md | 0 examples/basic/README.md | 29 ++++++ examples/basic/main.tf | 5 + examples/basic/outputs.tf | 0 examples/basic/providers.tf | 21 +++++ examples/basic/variables.tf | 0 tests/01_mandatory.tftest.hcl | 18 ++++ 23 files changed, 310 insertions(+), 61 deletions(-) rename {.tfsec => .config/.tfsec}/launch_configuration_imdsv2_tfchecks.json (100%) rename {.tfsec => .config/.tfsec}/launch_template_imdsv2_tfchecks.json (100%) rename {.tfsec => .config/.tfsec}/no_launch_config_tfchecks.json (100%) rename {.tfsec => .config/.tfsec}/sg_no_embedded_egress_rules_tfchecks.json (100%) rename {.tfsec => .config/.tfsec}/sg_no_embedded_ingress_rules_tfchecks.json (100%) create mode 100644 .config/functional_tests/post-entrypoint-helpers.sh create mode 100644 .config/functional_tests/pre-entrypoint-helpers.sh create mode 100644 .config/static_tests/post-entrypoint-helpers.sh create mode 100644 .config/static_tests/pre-entrypoint-helpers.sh create mode 100644 .project_automation/functional_tests/functional_tests.sh create mode 100644 .project_automation/static_tests/static_tests.sh create mode 100644 examples/basic/.header.md create mode 100644 examples/basic/README.md create mode 100644 examples/basic/main.tf create mode 100644 examples/basic/outputs.tf create mode 100644 examples/basic/providers.tf create mode 100644 examples/basic/variables.tf create mode 100644 tests/01_mandatory.tftest.hcl diff --git a/.tfsec/launch_configuration_imdsv2_tfchecks.json b/.config/.tfsec/launch_configuration_imdsv2_tfchecks.json similarity index 100% rename from .tfsec/launch_configuration_imdsv2_tfchecks.json rename to .config/.tfsec/launch_configuration_imdsv2_tfchecks.json diff --git a/.tfsec/launch_template_imdsv2_tfchecks.json b/.config/.tfsec/launch_template_imdsv2_tfchecks.json similarity index 100% rename from .tfsec/launch_template_imdsv2_tfchecks.json rename to .config/.tfsec/launch_template_imdsv2_tfchecks.json diff --git a/.tfsec/no_launch_config_tfchecks.json b/.config/.tfsec/no_launch_config_tfchecks.json similarity index 100% rename from .tfsec/no_launch_config_tfchecks.json rename to .config/.tfsec/no_launch_config_tfchecks.json diff --git a/.tfsec/sg_no_embedded_egress_rules_tfchecks.json b/.config/.tfsec/sg_no_embedded_egress_rules_tfchecks.json similarity index 100% rename from .tfsec/sg_no_embedded_egress_rules_tfchecks.json rename to .config/.tfsec/sg_no_embedded_egress_rules_tfchecks.json diff --git a/.tfsec/sg_no_embedded_ingress_rules_tfchecks.json b/.config/.tfsec/sg_no_embedded_ingress_rules_tfchecks.json similarity index 100% rename from .tfsec/sg_no_embedded_ingress_rules_tfchecks.json rename to .config/.tfsec/sg_no_embedded_ingress_rules_tfchecks.json diff --git a/.config/functional_tests/post-entrypoint-helpers.sh b/.config/functional_tests/post-entrypoint-helpers.sh new file mode 100644 index 0000000..9ed42cd --- /dev/null +++ b/.config/functional_tests/post-entrypoint-helpers.sh @@ -0,0 +1,6 @@ +#!/bin/bash +## NOTE: this script runs at the end of functional test +## Use this to load any configurations after the functional test +## TIPS: avoid modifying the .project_automation/functional_test/entrypoint.sh +## migrate any customization you did on entrypoint.sh to this helper script +echo "Executing Post-Entrypoint Helpers" \ No newline at end of file diff --git a/.config/functional_tests/pre-entrypoint-helpers.sh b/.config/functional_tests/pre-entrypoint-helpers.sh new file mode 100644 index 0000000..a1bc78c --- /dev/null +++ b/.config/functional_tests/pre-entrypoint-helpers.sh @@ -0,0 +1,6 @@ +#!/bin/bash +## NOTE: this script runs at the start of functional test +## use this to load any configuration before the functional test +## TIPS: avoid modifying the .project_automation/functional_test/entrypoint.sh +## migrate any customization you did on entrypoint.sh to this helper script +echo "Executing Pre-Entrypoint Helpers" \ No newline at end of file diff --git a/.config/static_tests/post-entrypoint-helpers.sh b/.config/static_tests/post-entrypoint-helpers.sh new file mode 100644 index 0000000..25fbae1 --- /dev/null +++ b/.config/static_tests/post-entrypoint-helpers.sh @@ -0,0 +1,6 @@ +#!/bin/bash +## NOTE: this script runs at the end of static test +## Use this to load any configurations after the static test +## TIPS: avoid modifying the .project_automation/static_test/entrypoint.sh +## migrate any customization you did on entrypoint.sh to this helper script +echo "Executing Post-Entrypoint Helpers" \ No newline at end of file diff --git a/.config/static_tests/pre-entrypoint-helpers.sh b/.config/static_tests/pre-entrypoint-helpers.sh new file mode 100644 index 0000000..d24d7a6 --- /dev/null +++ b/.config/static_tests/pre-entrypoint-helpers.sh @@ -0,0 +1,6 @@ +#!/bin/bash +## NOTE: this script runs at the start of static test +## use this to load any configuration before the static test +## TIPS: avoid modifying the .project_automation/static_test/entrypoint.sh +## migrate any customization you did on entrypoint.sh to this helper script +echo "Executing Pre-Entrypoint Helpers" \ No newline at end of file diff --git a/.copier-answers.yml b/.copier-answers.yml index 90a8117..0ce081a 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,6 +1,6 @@ # This file is auto-generated, changes will be overwritten -_commit: v0.1.2 -_src_path: /task/ce524240-d748-11ee-a77c-fafd94ad0946/projecttype +_commit: v0.1.4 +_src_path: /task/cf7c2d2f-5c16-11f0-b3bd-8641080bf2f9/projecttype starting_version: v0.0.0 version_file: VERSION diff --git a/.project_automation/functional_tests/Dockerfile b/.project_automation/functional_tests/Dockerfile index 80ce848..35c44e4 100644 --- a/.project_automation/functional_tests/Dockerfile +++ b/.project_automation/functional_tests/Dockerfile @@ -1,8 +1,8 @@ FROM public.ecr.aws/codebuild/amazonlinux2-x86_64-standard:4.0 -ENV TERRAFORM_VERSION=1.4.2 -ENV GO_VERSION=1.20.2 +ENV TERRAFORM_VERSION=1.7.4 RUN cd /tmp && \ wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ +<<<<<<< before updating unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin && chmod 755 /usr/local/bin/terraform RUN curl -s https://raw.githubusercontent.com/aquasecurity/tfsec/master/scripts/install_linux.sh | bash @@ -12,4 +12,7 @@ RUN curl -s https://raw.githubusercontent.com/aquasecurity/tfsec/master/scripts/ # tar -C /usr/local/bin -xzf go${GO_VERSION}.linux-amd64.tar.gz && chmod 755 /usr/local/bin/go && \ # export PATH=$PATH:/usr/local/bin/go -RUN goenv install 1.20.3 && goenv global 1.20.3 \ No newline at end of file +RUN goenv install 1.20.3 && goenv global 1.20.3 +======= + unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin && chmod 755 /usr/local/bin/terraform +>>>>>>> after updating diff --git a/.project_automation/functional_tests/entrypoint.sh b/.project_automation/functional_tests/entrypoint.sh index f04c601..0ebd122 100755 --- a/.project_automation/functional_tests/entrypoint.sh +++ b/.project_automation/functional_tests/entrypoint.sh @@ -1,4 +1,8 @@ -#!/bin/bash -e +#!/bin/bash + +## WARNING: DO NOT modify the content of entrypoint.sh +# Use ./config/functional_tests/pre-entrypoint-helpers.sh or ./config/functional_tests/post-entrypoint-helpers.sh +# to load any customizations or additional configurations ## 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 @@ -6,10 +10,41 @@ PROJECT_PATH=${BASE_PATH}/project PROJECT_TYPE_PATH=${BASE_PATH}/projecttype export GOPROXY=direct -echo "Starting Functional Tests" +#********** helper functions ************* +pre_entrypoint() { + if [ -f ${PROJECT_PATH}/.config/functional_tests/pre-entrypoint-helpers.sh ]; then + echo "Pre-entrypoint helper found" + source ${PROJECT_PATH}/.config/functional_tests/pre-entrypoint-helpers.sh + echo "Pre-entrypoint helper loaded" + else + echo "Pre-entrypoint helper not found - skipped" + fi +} +post_entrypoint() { + if [ -f ${PROJECT_PATH}/.config/functional_tests/post-entrypoint-helpers.sh ]; then + echo "Post-entrypoint helper found" + source ${PROJECT_PATH}/.config/functional_tests/post-entrypoint-helpers.sh + echo "Post-entrypoint helper loaded" + else + echo "Post-entrypoint helper not found - skipped" + fi +} + +#********** Pre-entrypoint helper ************* +pre_entrypoint -cd ${PROJECT_PATH} +#********** Functional Test ************* +/bin/bash ${PROJECT_PATH}/.project_automation/functional_tests/functional_tests.sh +if [ $? -eq 0 ] +then + echo "Functional test completed" + EXIT_CODE=0 +else + echo "Functional test failed" + EXIT_CODE=1 +fi +<<<<<<< before updating #********** Terratest execution ********** echo "INFO: [Terratest] Running Terratest" echo "INFO: [Terratest] Output of environment: $(env)" @@ -29,4 +64,11 @@ go test -timeout 45m yum list installed -echo "End of Functional Tests" \ No newline at end of file +echo "End of Functional Tests" +======= +#********** Post-entrypoint helper ************* +post_entrypoint + +#********** Exit Code ************* +exit $EXIT_CODE +>>>>>>> after updating diff --git a/.project_automation/functional_tests/functional_tests.sh b/.project_automation/functional_tests/functional_tests.sh new file mode 100644 index 0000000..f18c8ac --- /dev/null +++ b/.project_automation/functional_tests/functional_tests.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +## 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 Functional Tests" +cd ${PROJECT_PATH} + +#********** Terraform Test ********** + +# Look up the mandatory test file +MANDATORY_TEST_PATH="./tests/01_mandatory.tftest.hcl" +if test -f ${MANDATORY_TEST_PATH}; then + echo "File ${MANDATORY_TEST_PATH} is found, resuming test" + # Run Terraform test + terraform init + terraform test +else + echo "File ${MANDATORY_TEST_PATH} not found. You must include at least one test run in file ${MANDATORY_TEST_PATH}" + (exit 1) +fi + +if [ $? -eq 0 ]; then + echo "Terraform Test Successfull" +else + echo "Terraform Test Failed" + exit 1 +fi + +echo "End of Functional Tests" \ No newline at end of file diff --git a/.project_automation/static_tests/Dockerfile b/.project_automation/static_tests/Dockerfile index ac13377..11e2da9 100644 --- a/.project_automation/static_tests/Dockerfile +++ b/.project_automation/static_tests/Dockerfile @@ -1,5 +1,5 @@ FROM public.ecr.aws/codebuild/amazonlinux2-x86_64-standard:4.0 -ENV TERRAFORM_VERSION=1.4.2 +ENV TERRAFORM_VERSION=1.7.4 RUN cd /tmp && \ wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \ unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin && chmod 755 /usr/local/bin/terraform diff --git a/.project_automation/static_tests/entrypoint.sh b/.project_automation/static_tests/entrypoint.sh index c1103e0..653b5f6 100755 --- a/.project_automation/static_tests/entrypoint.sh +++ b/.project_automation/static_tests/entrypoint.sh @@ -1,41 +1,49 @@ -#!/bin/bash -e +#!/bin/bash + +## WARNING: DO NOT modify the content of entrypoint.sh +# Use ./config/static_tests/pre-entrypoint-helpers.sh or ./config/static_tests/post-entrypoint-helpers.sh +# to load any customizations or additional configurations ## 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" +#********** helper functions ************* +pre_entrypoint() { + if [ -f ${PROJECT_PATH}/.config/static_tests/pre-entrypoint-helpers.sh ]; then + echo "Pre-entrypoint helper found" + source ${PROJECT_PATH}/.config/static_tests/pre-entrypoint-helpers.sh + echo "Pre-entrypoint helper loaded" + else + echo "Pre-entrypoint helper not found - skipped" + fi +} +post_entrypoint() { + if [ -f ${PROJECT_PATH}/.config/static_tests/post-entrypoint-helpers.sh ]; then + echo "Post-entrypoint helper found" + source ${PROJECT_PATH}/.config/static_tests/post-entrypoint-helpers.sh + echo "Post-entrypoint helper loaded" + else + echo "Post-entrypoint helper not found - skipped" + fi +} -cd ${PROJECT_PATH} -terraform init -terraform validate +#********** Pre-entrypoint helper ************* +pre_entrypoint -#********** tflint ******************** -echo 'Starting tflint' -tflint --init --config ${PROJECT_PATH}/.config/.tflint.hcl -MYLINT=$(tflint --force --config ${PROJECT_PATH}/.config/.tflint.hcl) -if [ -z "$MYLINT" ] -then - echo "Success - tflint found no linting issues!" -else - echo "Failure - tflint found linting issues!" - echo "$MYLINT" - exit 1 -fi -#********** tfsec ********************* -echo 'Starting tfsec' -MYTFSEC=$(tfsec . --config-file ${PROJECT_PATH}/.config/.tfsec.yml || true) -if [[ $MYTFSEC == *"No problems detected!"* ]]; +#********** Static Test ************* +/bin/bash ${PROJECT_PATH}/.project_automation/static_tests/static_tests.sh +if [ $? -eq 0 ] then - echo "Success - tfsec found no security issues!" - echo "$MYTFSEC" + echo "Static test completed" + EXIT_CODE=0 else - echo "Failure - tfsec found security issues!" - echo "$MYTFSEC" - exit 1 + echo "Static test failed" + EXIT_CODE=1 fi +<<<<<<< before updating #********** Checkov Analysis ************* echo "Running Checkov Analysis" checkov --config-file ${PROJECT_PATH}/.config/.checkov.yml @@ -48,29 +56,10 @@ else echo "$MYCHECKOV" exit 1 fi +======= +#********** Post-entrypoint helper ************* +post_entrypoint +>>>>>>> after updating -#********** Markdown Lint ************** -echo 'Starting markdown lint' -MYMDL=$(mdl --config ${PROJECT_PATH}/.config/.mdlrc .header.md examples/*/.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 --config ${PROJECT_PATH}/.config/.terraform-docs.yaml --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" +#********** Exit Code ************* +exit $EXIT_CODE \ No newline at end of file diff --git a/.project_automation/static_tests/static_tests.sh b/.project_automation/static_tests/static_tests.sh new file mode 100644 index 0000000..fe41048 --- /dev/null +++ b/.project_automation/static_tests/static_tests.sh @@ -0,0 +1,86 @@ +#!/bin/bash + +## 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" + +#********** Terraform Validate ************* +cd ${PROJECT_PATH} +terraform init +terraform validate +if [ $? -eq 0 ] +then + echo "Success - Terraform validate" +else + echo "Failure - Terraform validate" + exit 1 +fi + +#********** tflint ******************** +echo 'Starting tflint' +tflint --init --config ${PROJECT_PATH}/.config/.tflint.hcl +MYLINT=$(tflint --force --config ${PROJECT_PATH}/.config/.tflint.hcl) +if [ -z "$MYLINT" ] +then + echo "Success - tflint found no linting issues!" +else + echo "Failure - tflint found linting issues!" + echo "$MYLINT" + exit 1 +fi + +#********** tfsec ********************* +echo 'Starting tfsec' +MYTFSEC=$(tfsec . --config-file ${PROJECT_PATH}/.config/.tfsec.yml --custom-check-dir ${PROJECT_PATH}/.config/.tfsec) +if [[ $MYTFSEC == *"No problems detected!"* ]]; +then + echo "Success - tfsec found no security issues!" + echo "$MYTFSEC" +else + echo "Failure - tfsec found security issues!" + echo "$MYTFSEC" + exit 1 +fi + +#********** Checkov Analysis ************* +echo "Running Checkov Analysis" +checkov --config-file ${PROJECT_PATH}/.config/.checkov.yml +if [ $? -eq 0 ] +then + echo "Success - Checkov found no issues!" +else + echo "Failure - Checkov found issues!" + exit 1 +fi + +#********** Markdown Lint ************** +echo 'Starting markdown lint' +MYMDL=$(mdl --config ${PROJECT_PATH}/.config/.mdlrc .header.md examples/*/.header.md) +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 --config ${PROJECT_PATH}/.config/.terraform-docs.yaml --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. TIPS: false error may occur if you have unstaged files in your repo" + echo "$GDIFF" + exit 1 +fi + +#*************************************** +echo "End of Static Tests" \ No newline at end of file diff --git a/examples/basic/.header.md b/examples/basic/.header.md new file mode 100644 index 0000000..e69de29 diff --git a/examples/basic/README.md b/examples/basic/README.md new file mode 100644 index 0000000..f53c234 --- /dev/null +++ b/examples/basic/README.md @@ -0,0 +1,29 @@ + +## Requirements + +| Name | Version | +|------|---------| +| [terraform](#requirement\_terraform) | >= 0.14.0 | +| [aws](#requirement\_aws) | >= 3.72.0 | +| [awscc](#requirement\_awscc) | >= 0.11.0 | + +## Providers + +No providers. + +## Modules + +No modules. + +## Resources + +No resources. + +## Inputs + +No inputs. + +## Outputs + +No outputs. + \ No newline at end of file diff --git a/examples/basic/main.tf b/examples/basic/main.tf new file mode 100644 index 0000000..b2619ce --- /dev/null +++ b/examples/basic/main.tf @@ -0,0 +1,5 @@ +##################################################################################### +# Terraform module examples are meant to show an _example_ on how to use a module +# per use-case. The code below should not be copied directly but referenced in order +# to build your own root module that invokes this module +##################################################################################### diff --git a/examples/basic/outputs.tf b/examples/basic/outputs.tf new file mode 100644 index 0000000..e69de29 diff --git a/examples/basic/providers.tf b/examples/basic/providers.tf new file mode 100644 index 0000000..0f413cb --- /dev/null +++ b/examples/basic/providers.tf @@ -0,0 +1,21 @@ +terraform { + required_version = ">= 0.14.0" + required_providers { + aws = { + source = "hashicorp/aws" + version = ">= 3.72.0" + } + awscc = { + source = "hashicorp/awscc" + version = ">= 0.11.0" + } + } +} + +provider "awscc" { + user_agent = [{ + product_name = "terraform-awscc-" + product_version = "0.0.1" + comment = "V1/AWS-D69B4015/" + }] +} diff --git a/examples/basic/variables.tf b/examples/basic/variables.tf new file mode 100644 index 0000000..e69de29 diff --git a/tests/01_mandatory.tftest.hcl b/tests/01_mandatory.tftest.hcl new file mode 100644 index 0000000..efbda7b --- /dev/null +++ b/tests/01_mandatory.tftest.hcl @@ -0,0 +1,18 @@ +## NOTE: This is the minimum mandatory test +# run at least one test using the ./examples directory as your module source +# create additional *.tftest.hcl for your own unit / integration tests +# use tests/*.auto.tfvars to add non-default variables + +run "mandatory_plan_basic" { + command = plan + module { + source = "./examples/basic" + } +} + +run "mandatory_apply_basic" { + command = apply + module { + source = "./examples/basic" + } +} From 170b00ad65efc278162af8a8eccf8aad8cb65c56 Mon Sep 17 00:00:00 2001 From: tmalali-coder Date: Tue, 18 Nov 2025 15:10:29 -0500 Subject: [PATCH 2/3] fix: removing example folder --- examples/basic/.header.md | 0 examples/basic/README.md | 29 ----------------------------- examples/basic/main.tf | 5 ----- examples/basic/outputs.tf | 0 examples/basic/providers.tf | 21 --------------------- examples/basic/variables.tf | 0 6 files changed, 55 deletions(-) delete mode 100644 examples/basic/.header.md delete mode 100644 examples/basic/README.md delete mode 100644 examples/basic/main.tf delete mode 100644 examples/basic/outputs.tf delete mode 100644 examples/basic/providers.tf delete mode 100644 examples/basic/variables.tf diff --git a/examples/basic/.header.md b/examples/basic/.header.md deleted file mode 100644 index e69de29..0000000 diff --git a/examples/basic/README.md b/examples/basic/README.md deleted file mode 100644 index f53c234..0000000 --- a/examples/basic/README.md +++ /dev/null @@ -1,29 +0,0 @@ - -## Requirements - -| Name | Version | -|------|---------| -| [terraform](#requirement\_terraform) | >= 0.14.0 | -| [aws](#requirement\_aws) | >= 3.72.0 | -| [awscc](#requirement\_awscc) | >= 0.11.0 | - -## Providers - -No providers. - -## Modules - -No modules. - -## Resources - -No resources. - -## Inputs - -No inputs. - -## Outputs - -No outputs. - \ No newline at end of file diff --git a/examples/basic/main.tf b/examples/basic/main.tf deleted file mode 100644 index b2619ce..0000000 --- a/examples/basic/main.tf +++ /dev/null @@ -1,5 +0,0 @@ -##################################################################################### -# Terraform module examples are meant to show an _example_ on how to use a module -# per use-case. The code below should not be copied directly but referenced in order -# to build your own root module that invokes this module -##################################################################################### diff --git a/examples/basic/outputs.tf b/examples/basic/outputs.tf deleted file mode 100644 index e69de29..0000000 diff --git a/examples/basic/providers.tf b/examples/basic/providers.tf deleted file mode 100644 index 0f413cb..0000000 --- a/examples/basic/providers.tf +++ /dev/null @@ -1,21 +0,0 @@ -terraform { - required_version = ">= 0.14.0" - required_providers { - aws = { - source = "hashicorp/aws" - version = ">= 3.72.0" - } - awscc = { - source = "hashicorp/awscc" - version = ">= 0.11.0" - } - } -} - -provider "awscc" { - user_agent = [{ - product_name = "terraform-awscc-" - product_version = "0.0.1" - comment = "V1/AWS-D69B4015/" - }] -} diff --git a/examples/basic/variables.tf b/examples/basic/variables.tf deleted file mode 100644 index e69de29..0000000 From 31ceb07326c8ee9e2addd5ddce6ccf7b41d49f46 Mon Sep 17 00:00:00 2001 From: tmalali-coder Date: Wed, 19 Nov 2025 10:46:04 -0500 Subject: [PATCH 3/3] fix: removing test --- tests/01_mandatory.tftest.hcl | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 tests/01_mandatory.tftest.hcl diff --git a/tests/01_mandatory.tftest.hcl b/tests/01_mandatory.tftest.hcl deleted file mode 100644 index efbda7b..0000000 --- a/tests/01_mandatory.tftest.hcl +++ /dev/null @@ -1,18 +0,0 @@ -## NOTE: This is the minimum mandatory test -# run at least one test using the ./examples directory as your module source -# create additional *.tftest.hcl for your own unit / integration tests -# use tests/*.auto.tfvars to add non-default variables - -run "mandatory_plan_basic" { - command = plan - module { - source = "./examples/basic" - } -} - -run "mandatory_apply_basic" { - command = apply - module { - source = "./examples/basic" - } -}