Module: module
This is an example project to provide all the scaffolding for a typical well-built Cloud Posse Terraform module for AWS resources. It's a template repository you can use when creating new repositories. This is not a useful module by itself.
Quick Start
- Use this repo as a template for a new repo.
- Check out the new repo and create a
git
branch to work on. - Replace the Terraform code at the root of the repo with the code you want to publish.
- Replace the code in
examples/complete
with Terraform code that will make a good automated test. Please keepcontext.tf
andfixtures.us-east-2.tfvars
in place and change onlyname
, leavingregion
,namespace
,environment
, andstage
as is. Provide outputs that will be useful for testing. - Update
test/src/examples_complete_test.go
to verify the outputs of runningterraform apply
onexamples/complete
. - Run
make github/init
to update the repo with the current Cloud Posse framework files (e.g.CODEOWNERS
). - Run
make pr/auto-format
to format the Terraform code and generate documentation. - Commit everything to
git
and open your first PR on the new repo.