Feature #1 - Easier and Faster Create Reusable Terraform Configurations

Easier and Faster Create Reusable Terraform Configurations

1
$ mkdir ./thub-demo/ && cd ./thub-demo/
2
3
$ terrahub project -n "thub-demo"
4
✅ Project successfully initialized
5
6
$ ls -alR
7
total 8
8
drwxr-xr-x 4 eugene staff 136 Apr 07 16:38 .
9
drwxr-xr-x 83 eugene staff 2822 Apr 07 16:37 ..
10
-rw-r--r-- 1 eugene staff 112 Apr 07 16:37 .terrahub.yml
11
12
$ terrahub component -n "s3-bucket" -t "aws_s3_bucket"
13
✅ Done
14
15
$ ls -alR
16
total 8
17
drwxr-xr-x 4 eugene staff 136 Apr 07 16:38 .
18
drwxr-xr-x 83 eugene staff 2822 Apr 07 16:37 ..
19
-rw-r--r-- 1 eugene staff 112 Apr 07 16:37 .terrahub.yml
20
drwxr-xr-x 9 eugene staff 306 Apr 07 16:38 s3-bucket
21
22
./s3-bucket:
23
total 56
24
drwxr-xr-x 9 eugene staff 306 Apr 07 16:38 .
25
drwxr-xr-x 3 eugene staff 102 Apr 07 16:38 ..
26
-rw-r--r-- 1 eugene staff 18 Apr 07 16:38 .terrahub.yml
27
-rw-r--r-- 1 eugene staff 2195 Apr 07 16:38 README.md
28
-rw-r--r-- 1 eugene staff 998 Apr 07 16:38 default.tfvars
29
-rw-r--r-- 1 eugene staff 761 Apr 07 16:38 main.tf
30
-rw-r--r-- 1 eugene staff 422 Apr 07 16:38 output.tf
31
-rw-r--r-- 1 eugene staff 115 Apr 07 16:38 provider.tf
32
-rw-r--r-- 1 eugene staff 2318 Apr 07 16:38 variables.tf
Copied!
Copy link