aws-ia / terraform-repo-template Goto Github PK
View Code? Open in Web Editor NEWTerraform Module Template
License: Apache License 2.0
Terraform Module Template
License: Apache License 2.0
allow using netmask
to generate subnet size instead of bit
count.
since we embed awscc, we should pin the required minimum version here
terraform-repo-template/.header.md
Line 13 in 8c746d0
should be -configs
In order to avoid issues from post-publish manipulation of tagged artifacts, pre-commit supports "freezing" hooks to a particular version, but pinning to a "frozen" SHA. This ensures if the sha disappears or changes, the precommit hook doesn't install unsavory payloads.
Automatic updating can be performed via: pre-commit autoupdate --freeze
More info at: https://pre-commit.com/#pre-commit-autoupdate
include comamnds to run
mod init ...
go mod tidy...
go test, examples of -run TestName
__GIT_WORKING_DIR__/
- id: terraform_tflint
args:
- "--args=--config=__GIT_WORKING_DIR__/.tflint.hcl"
- id: terraform_tfsec
args:
- "--args=--custom-check-dir=__GIT_WORKING_DIR__/.tfsec"
should use resource aws_route
instead
brew install bash
README content should be updated and moved to .header.md
for terraform-docs
to manage
Following the README.md instructions, faced an issue on steps 4 and 5, while trying to install tidy
and terratest
via go.
Run tidy
go mod tidy
Install Terratest
go get github.com/gruntwork-io/terratest/modules/terraform
The error is related to a timeout connecting to proxy.golang.org
.
Error message:
# go mod tidy
go: finding module for package github.com/gruntwork-io/terratest/modules/terraform
github.com/aws-ia/terraform-aws-eks-blueprints-addons tested by
github.com/aws-ia/terraform-aws-eks-blueprints-addons.test imports
github.com/gruntwork-io/terratest/modules/terraform: module github.com/gruntwork-io/terratest/modules/terraform: Get "https://proxy.golang.org/github.com/gruntwork-io/terratest/modules/terraform/@v/list": dial tcp: lookup proxy.golang.org: i/o timeout
# go get github.com/gruntwork-io/terratest/tree/master/modules/terraform
go: module github.com/gruntwork-io/terratest/tree/master/modules/terraform: Get "https://proxy.golang.org/github.com/gruntwork-io/terratest/tree/master/modules/terraform/@v/list": dial tcp: lookup proxy.golang.org: i/o timeout
Error investigation:
curl https://proxy.golang.org
curl: (6) Could not resolve host: proxy.golang.org
Applied workaround:
export GOPROXY=direct
After exporting the environment variable, the setup worked properly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.