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
Copy file name to clipboardExpand all lines: tutorials/how-to-setup-applesilicon-server-with-terraform/index.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,20 +33,20 @@ Both Terraform and OpenTofu offer the same core functionality for provisioning a
33
33
34
34
1. Download and install [Terraform](https://developer.hashicorp.com/terraform/install).
35
35
36
-
2. Create a directory: First, create a directory for your Terraform project. Open your terminal and run:
36
+
2. Create a directoryfor your Terraform project. Open your terminal and run the following command:
37
37
38
38
```shell
39
39
mkdir apple_silicon_server_terraform
40
40
cd apple_silicon_server_terraform
41
41
```
42
42
43
-
3. Create a Terraform configuration file: Inside this directory, create a file named `resources.tf`:
43
+
3. Create a Terraform configuration file. Inside the directory, create a file named `resources.tf`:
44
44
45
45
```shell
46
46
touch resources.tf
47
47
```
48
48
49
-
4. Define the required providers: Open the `resources.tf` file and add the following configuration to define the Scaleway provider and set the required Terraform version:
49
+
4. Define the required providers. Open the `resources.tf` file and add the following configuration to define the Scaleway provider and set the required Terraform version:
50
50
51
51
```shell
52
52
terraform {
@@ -60,7 +60,7 @@ terraform {
60
60
61
61
```
62
62
63
-
5. Define the Apple silicon server: Add the following code to define your Apple silicon server (M2-M type) in the same `resources.tf` file:
63
+
5. Define the Apple silicon server. Add the following code to define your Apple silicon server (M2-M type) in the same `resources.tf` file:
6.Apply the configuration: To apply this configuration, run the following commands in your terminal:
74
+
6.Run the following commands in your terminal to apply the configuration:
75
75
76
76
```shell
77
77
#Initialize Terraform
@@ -84,7 +84,7 @@ terraform apply
84
84
85
85
When prompted, type **yes** to confirm the creation of the resources.
86
86
87
-
7. Enable Virtual Private Cloud (VPC) and a Private Network: To enhance the network setup, you can update the configuration to enable the VPC option and attach a Private Network to your Apple silicon server. Update your `resources.tf` file with the following:
87
+
7. Enable Virtual Private Cloud (VPC) and a Private Network. To enhance the network setup, you can update the configuration to enable the VPC option and attach a Private Network to your Apple silicon server. Update your `resources.tf` file with the following:
0 commit comments