Skip to content

lonegunmanb/terraform-verified-module

 
 

Repository files navigation

Microsoft Verified Terraform Module

The Verified Terraform module is a template repository to help developers create their own Terraform Module.

As we've used Microsoft 1ES Runners Pool as our acceptance test runner, only Microsoft members could use this template for now.

Enjoy it by following steps:

  1. Use this template to create your repository.
  2. Read Onboard 1ES hosted Github Runners Pool through Azure Portal, install 1ES Resource Management on your repo.
  3. Add a Github Environment named acctests in your repo, setup Required Reviewers.
  4. Update acc-test.yaml, modify runs-on: [self-hosted, 1ES.Pool=<YOUR_REPO_NAME>] with your 1es runners' pool name (basically it's your repo's name).
  5. Write Terraform code in a new branch.
  6. Run docker run --rm -v ${pwd}:/src -w /src mcr.microsoft.com/azterraform:latest make pre-commit to format the code.
  7. Run docker run --rm -v $(pwd):/src -w /src mcr.microsoft.com/azterraform:latest make pr-check to run the check in local.
  8. Create a pull request for the main branch.
    • CI pr-check will be executed automatically.
    • Once pr-check was passed, with manually approval, the e2e test and version upgrade test would be executed.
  9. Merge pull request.
  10. Enjoy it!

Requirements

Name Version
terraform >= 1.1
null >= 3.1

Providers

Name Version
null >= 3.1

Modules

No modules.

Resources

Name Type
null_resource.nop resource

Inputs

Name Description Type Default Required
echo_text The text to echo string n/a yes

Outputs

Name Description
echo_text The text to echo

About

A template for verified Terraform module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 50.9%
  • HCL 36.6%
  • Makefile 12.5%