You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Use **.env.template** files as an examples and fill it with actual values (create .env file at repository root level and inside every provider: do, aws, azure, gcp folders)
20
-
* NOTE. Commands below assume that Terraform Cloud is used as a storage for states
21
-
* Commands below will guide you to configure k8s infrastructure usign DO. By replacing <do> with <aws> you can have AWS based infrastructure
19
+
* Use **.env.template** file as an examples and fill it with actual values
20
+
* root .env
21
+
```
22
+
TF_VAR_org_id=project-talan
23
+
TF_VAR_project_id=tln-clouds
24
+
TF_VAR_env_id=dev
25
+
#TF_VAR_tenant_id=
26
+
27
+
TF_TOKEN_app_terraform_io=<your_token>
28
+
```
29
+
* do/.env
30
+
```
31
+
DIGITALOCEAN_TOKEN=<your_token>
32
+
33
+
TF_VAR_do_region=nyc3
34
+
TF_VAR_do_k8s_version=1.27.4-do.0
35
+
TF_VAR_do_k8s_nodes_min=1
36
+
TF_VAR_do_k8s_nodes_max=2
37
+
TF_VAR_do_k8s_nodes_size=s-2vcpu-2gb
38
+
```
39
+
* aws/.env
40
+
```
41
+
AWS_ACCESS_KEY_ID=<your_token>
42
+
AWS_SECRET_ACCESS_KEY=<your_token>
43
+
AWS_SESSION_TOKEN=
22
44
45
+
AWS_DEFAULT_REGION=eu-central-1
46
+
47
+
TF_VAR_aws_k8s_version=1.27
48
+
TF_VAR_aws_k8s_nodes_min=1
49
+
TF_VAR_aws_k8s_nodes_desired=2
50
+
TF_VAR_aws_k8s_nodes_max=3
51
+
TF_VAR_aws_k8s_nodes_size=t3a.medium
52
+
TF_VAR_aws_k8s_nodes_disk=50
53
+
```
54
+
* NOTE. Commands below assume that Terraform Cloud is used as a storage for states
55
+
* Next commands will guide you to configure k8s infrastructure usign DO. By replacing **do** with **aws** you can have AWS based infrastructure
23
56
* Install dependencies
24
57
```
25
58
tln install do --depends
26
59
```
27
-
* Construct DO Dev infrastructure i
60
+
* Construct DO Dev infrastructure instance
28
61
```
29
62
tln construct do -- --backend cloud --init --plan --apply
30
63
```
@@ -49,5 +82,5 @@ Framework:
49
82
```
50
83
* Deconstruct DO Dev infrastructure instance
51
84
```
52
-
tln deconstruct do -- --backend cloud --init --plan --apply
85
+
tln deconstruct do -- --backend cloud --plan --apply
0 commit comments