@@ -57,7 +57,7 @@ Template are available to the link below.
...
@@ -57,7 +57,7 @@ Template are available to the link below.
In this example, you will find how to create a file to a defined path with cloud-init.
In this example, you will find how to create a file to a defined path with cloud-init.
Content inside `%` are meant to be replaced with sed command to be able to use environment variables or user-data.
Content inside `%` are meant to be replaced with sed command to be able to use environment variables or user-data.
**example:**
**Example:**
```yaml
```yaml
write_files:
write_files:
-content:|
-content:|
...
@@ -94,7 +94,7 @@ sed -i "s/%atrium_count_index%/$(scw-userdata atrium_count_index)/g" /root/atriu
...
@@ -94,7 +94,7 @@ sed -i "s/%atrium_count_index%/$(scw-userdata atrium_count_index)/g" /root/atriu
The example show how to curl a configuration file from repository to a defined path with cloud-init.
The example show how to curl a configuration file from repository to a defined path with cloud-init.
**example :**
**Example :**
```yaml
```yaml
runcmd:
runcmd:
#
#
...
@@ -111,11 +111,10 @@ runcmd:
...
@@ -111,11 +111,10 @@ runcmd:
## Use Gitlab variables in instances
## Use Gitlab variables in instances
### Example
From my instances, I should be able to access the variables as user-data using the command `scw-userdata <my-variable>` after declaring them in Terraform.
From my instances, I should be able to access the variables as user-data using the command `scw-userdata <my-variable>` after declaring them in Terraform.