https://github.com/sky0621/fs-terraform
https://github.com/sky0621/fs-terraform
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sky0621/fs-terraform
- Owner: sky0621
- Created: 2021-03-16T15:54:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-21T09:26:11.000Z (about 5 years ago)
- Last Synced: 2025-01-21T13:29:05.176Z (over 1 year ago)
- Language: HCL
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fs-terraform
## tfenv
```
$ tfenv --version
tfenv 2.0.0-37-g0494129
```
```
$ tfenv install 0.14.8
$ tfenv use 0.14.8
```
```
$ terraform version
Terraform v0.14.8
```
## ref
### command
#### init
https://www.terraform.io/docs/commands/init.html
```
terraform init -reconfigure -backend-config=tf.secret
```
#### plan
https://www.terraform.io/docs/commands/plan.html
#### apply
https://www.terraform.io/docs/commands/apply.html
#### destroy
https://www.terraform.io/docs/commands/destroy.html
#### practice
##### fmt
```
terraform fmt
```
##### validate
```
terraform validate
```
module
```
terraform validate -check-variables=false
```
### lifecycle-hook
https://www.terraform.io/docs/language/meta-arguments/lifecycle.html
### provider
#### Google Cloud Platform Provider
https://registry.terraform.io/providers/hashicorp/google/latest/docs
### function
https://www.terraform.io/docs/language/functions/index.html
### type
https://www.terraform.io/docs/language/expressions/type-constraints.html
### module
https://www.terraform.io/docs/language/modules/syntax.html
#### Standard Module Structure
https://www.terraform.io/docs/language/modules/develop/structure.html
### GCP
#### service enable
```
gcloud services enable storage.googleapis.com
gcloud services enable storage-component.googleapis.com
```
#### google_compute_zones
https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/compute_zones
#### backend
https://www.terraform.io/docs/backends/types/gcs.html