Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oscaner/terraform-best-practices
terraform-best-practices
https://github.com/oscaner/terraform-best-practices
Last synced: 6 days ago
JSON representation
terraform-best-practices
- Host: GitHub
- URL: https://github.com/oscaner/terraform-best-practices
- Owner: Oscaner
- License: mit
- Created: 2024-02-28T06:38:02.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-07T02:45:37.000Z (10 months ago)
- Last Synced: 2024-11-10T10:15:32.868Z (2 months ago)
- Language: HCL
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Preparation
1. [nvm](https://github.com/nvm-sh/nvm)
2. [terraform](https://github.com/hashicorp/terraform)## MacOS
```shell
# nvm, terraform
brew install nvm terraform tflint
```## Ubuntu
```shell
# nvm
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.bashrc# terraform: https://askubuntu.com/a/1158357
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt update
sudo apt install terraform# tflint: https://github.com/terraform-linters/tflint
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
```# Init project
```shell
nvm use
npm install
terraform -chdir=src init
tflint -chdir=src --initterraform -chdir=src validate
tflint -chdir=src
```