Skip to content

Commit 59ac56e

Browse files
bene2k1Laure-di
authored andcommitted
fix(gen): add opentofu as terraform alternative (scaleway#4421)
1 parent 6f2c1e3 commit 59ac56e

File tree

66 files changed

+327
-326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+327
-326
lines changed

faq/iam.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ IAM enables you to manage access control to all Scaleway products.
2727
You may decide yourself whether to leave these automatically-created IAM applications and policies in place, [edit the policies](/iam/how-to/manage-policies/) to change permissions as required, or [generate new API keys for individual users](/iam/how-to/create-api-keys/) to define rights per-user via the creation of [new policies](/iam/how-to/create-policy/) for those users.
2828

2929
## What are applications, and why do I need them?
30-
Applications represent the identity of non-human users (such as a CI pipeline, a custom script, or a Terraform provider). They are used to attach permissions and API keys to these operations - without being linked to specific users and their own rights.
30+
Applications represent the identity of non-human users (such as a CI pipeline, a custom script, or a Terraform/OpenTofu provider). They are used to attach permissions and API keys to these operations - without being linked to specific users and their own rights.
3131

3232
## Why do I have to select a preferred Project for Object Storage when I create an API key?
3333
Due to limitations on the Object Storage API, API keys cannot perform Object Storage actions on several projects at the same time. Whenever you generate an API key that will be used on Object Storage, you must specify a preferred project where the API key will be able to perform actions. For more information, refer to the [Using IAM API keys with Object Storage](/iam/api-cli/using-api-key-object-storage/) documentation page.

faq/messaging-and-queuing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ The following subscriber types are supported:
3131

3232
For more details on supported and unsupported Topics and Events features, see our [dedicated page](/messaging/reference-content/sns-support/).
3333

34-
## Can I configure Scaleway NATS via Terraform?
34+
## Can I configure Scaleway NATS via Terraform/OpenTofu?
3535

36-
Yes, check out our [tutorial](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/guides/mnq_with_nats_terraform_provider) on how to configure Scaleway NATS with the Terraform [NATS Jetstream provider](https://registry.terraform.io/providers/nats-io/jetstream/latest/docs).
36+
Yes, check out our [tutorial](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/guides/mnq_with_nats_terraform_provider) on how to configure Scaleway NATS with the Terraform/OpenTofu [NATS Jetstream provider](https://registry.terraform.io/providers/nats-io/jetstream/latest/docs).
3737

3838
## How are NATS, Queues, and Topics and Events billed?
3939

macros/developer-tools/scaleway-environment-variables.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ The following standardized Scaleway environment variables are used for the CLI a
88

99
| Variable | Description | Legacy variables |
1010
| :----------------------------- | :----------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------ |
11-
| `$SCW_ACCESS_KEY` | The [access key](/iam/how-to/create-api-keys/) of a token | `$SCALEWAY_ACCESS_KEY` (used by Terraform) |
12-
| `$SCW_SECRET_KEY` | The [secret key](/iam/how-to/create-api-keys/) of a token | `$SCW_TOKEN` (used by the CLI), `$SCALEWAY_TOKEN` (used by Terraform), `$SCALEWAY_ACCESS_KEY` (used by Terraform) | |
13-
| `$SCW_DEFAULT_REGION` | Your default [region](https://www.scaleway.com/en/developers/api/#regions-and-zones) | `$SCW_REGION` (used by the CLI),`$SCALEWAY_REGION` (used by Terraform) |
14-
| `$SCW_DEFAULT_ZONE` | Your default [Availability Zone](https://www.scaleway.com/en/developers/api/#regions-and-zones) | `$SCW_ZONE` (used by the CLI),`$SCALEWAY_ZONE` (used by Terraform) |
11+
| `$SCW_ACCESS_KEY` | The [access key](/iam/how-to/create-api-keys/) of a token | `$SCALEWAY_ACCESS_KEY` (used by Terraform/OpenTofu) |
12+
| `$SCW_SECRET_KEY` | The [secret key](/iam/how-to/create-api-keys/) of a token | `$SCW_TOKEN` (used by the CLI), `$SCALEWAY_TOKEN` (used by Terraform/OpenTofu), `$SCALEWAY_ACCESS_KEY` (used by Terraform/OpenTofu) | |
13+
| `$SCW_DEFAULT_REGION` | Your default [region](https://www.scaleway.com/en/developers/api/#regions-and-zones) | `$SCW_REGION` (used by the CLI),`$SCALEWAY_REGION` (used by Terraform/OpenTofu) |
14+
| `$SCW_DEFAULT_ZONE` | Your default [Availability Zone](https://www.scaleway.com/en/developers/api/#regions-and-zones) | `$SCW_ZONE` (used by the CLI),`$SCALEWAY_ZONE` (used by Terraform/OpenTofu) |
1515
| `$SCW_API_URL` | URL of the API | - |
1616
| `$SCW_INSECURE` | Set this variable to `true` to enable the [insecure mode](/iot-hub/concepts/#insecure-connection) | `$SCW_TLSVERIFY` (inverse flag used by the CLI) |
1717
| `$SCW_PROFILE` | Set the configuration profile to use | - |
1818
| `$SCW_PROJECT_ID` | Your [Project ID](https://console.scaleway.com/project/settings) | `$SCW_DEFAULT_PROJECT_ID` |
19-
| `$SCW_ORGANIZATION_ID` | Your [Organization ID](https://console.scaleway.com/organization/settings) | `$SCW_DEFAULT_ORGANIZATION_ID`, `$SCW_ORGANIZATION` (used by the CLI),`$SCALEWAY_ORGANIZATION` (used by Terraform) |
19+
| `$SCW_ORGANIZATION_ID` | Your [Organization ID](https://console.scaleway.com/organization/settings) | `$SCW_DEFAULT_ORGANIZATION_ID`, `$SCW_ORGANIZATION` (used by the CLI),`$SCALEWAY_ORGANIZATION` (used by Terraform/OpenTofu) |
2020

2121
## Environment variables priority
2222

@@ -26,6 +26,6 @@ The order of precedence, from highest to lowest is the following.
2626

2727
1. Environment variables defined in your command-line environment.
2828

29-
2. Static variables (i.e. variables set in a Terraform configuration file).
29+
2. Static variables (i.e. variables set in a Terraform/OpenTofu configuration file).
3030

3131
3. Variables defined in the [Scaleway configuration file](/scaleway-sdk/reference-content/scaleway-configuration-file/)

pages/cockpit/how-to/send-logs-from-k8s-to-cockpit.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dates:
1313
posted: 2025-01-20
1414
---
1515

16-
In this page, we will show you how to send application logs from your Kubernetes cluster to your Cockpit using either a Helm chart or deploying a Helm chart with [Terraform](https://www.terraform.io/).
16+
In this page, we will show you how to send application logs from your Kubernetes cluster to your Cockpit using either a Helm chart or deploying a Helm chart with [Terraform](https://www.terraform.io/) or [OpenTofu](https://opentofu.org/).
1717

1818
We will use the [k8s-monitoring](https://artifacthub.io/packages/helm/grafana/k8s-monitoring/1.6.16) Helm Chart, which installs an Alloy Daemon set to export your Kubernetes cluster's logs to your Cockpit.
1919

@@ -100,11 +100,11 @@ Once you have configured your `values.yml` file, you can use Helm to deploy the
100100
helm list
101101
```
102102

103-
## Send Kubernetes logs using Helm chart with Terraform
103+
## Send Kubernetes logs using Helm chart with Terraform/OpenTofu
104104

105-
You can also use Terraform to manage and deploy Helm charts, providing you with more automation and consistency to manage your Kubernetes resources.
105+
You can also use Terraform/OpenTofu to manage and deploy Helm charts, providing you with more automation and consistency to manage your Kubernetes resources.
106106

107-
1. Create a `provider.tf` file and paste the following template to set up the Helm Terraform provider:
107+
1. Create a `provider.tf` file and paste the following template to set up the Helm Terraform/OpenTofu provider:
108108
```terraform
109109
provider "helm" {
110110
kubernetes {
@@ -130,7 +130,7 @@ You can also use Terraform to manage and deploy Helm charts, providing you with
130130
}
131131
```
132132
3. Save your changes.
133-
4. Run `terraform init` to initialize your Terraform configuration and download any necessary providers.
133+
4. Run `terraform init` to initialize your Terraform/OpenTofu configuration and download any necessary providers.
134134
5. Run `terraform apply` to apply your configuration.
135135
6. Type `yes` when prompted to confirm the actions.
136136

pages/cockpit/how-to/send-metrics-from-k8s-to-cockpit.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dates:
1414
---
1515

1616

17-
In this page we will show you how to send application metrics from your Kubernetes cluster to your Cockpit, either by using a Helm chart or deploying a Helm chart with [Terraform](https://www.terraform.io/).
17+
On this page, we will show you how to send application metrics from your Kubernetes cluster to your Cockpit, either by using a Helm chart or deploying a Helm chart with [Terraform](https://www.terraform.io/) or [OpenTofu](https://opentofu.org/).
1818

1919
We will use the [k8s-monitoring](https://artifacthub.io/packages/helm/grafana/k8s-monitoring/1.6.16) Helm Chart, which installs an Alloy Daemon set to export your Kubernetes cluster's metrics to your Cockpit.
2020

@@ -88,7 +88,7 @@ spec:
8888
...
8989
```
9090

91-
### Terraform deployment template
91+
### Terraform/OpenTofu deployment template
9292

9393
```terraform
9494
resource "kubernetes_deployment_v1" "your_application_deployment" {
@@ -109,9 +109,9 @@ resource "kubernetes_deployment_v1" "your_application_deployment" {
109109
}
110110
```
111111

112-
## Send Kubernetes metrics using Helm chart with Terraform
112+
## Send Kubernetes metrics using Helm chart with Terraform/OpenTofu
113113

114-
1. Create a `provider.tf` file and paste the following template to set up the Helm Terraform provider:
114+
1. Create a `provider.tf` file and paste the following template to set up the Helm Terraform/OpenTofu provider:
115115
```terraform
116116
provider "helm" {
117117
kubernetes {
@@ -137,7 +137,7 @@ resource "kubernetes_deployment_v1" "your_application_deployment" {
137137
}
138138
```
139139
3. Save your changes.
140-
4. Run `terraform init` to initialize your Terraform configuration and download any necessary providers.
140+
4. Run `terraform init` to initialize your Terraform/OpenTofu configuration and download any necessary providers.
141141
5. Run `terraform apply` to apply your configuration.
142142
6. Type `yes` when prompted to confirm the actions.
143143

pages/cockpit/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ meta:
5252
<Grid>
5353

5454
<DefaultCard
55-
title="Using Cockpit with Terraform"
55+
title="Using Cockpit with Terraform/OpenTofu"
5656
url="/tutorials/use-cockpit-with-terraform/"
5757
label="Read more"
5858
/>

pages/elastic-metal/api-cli/elastic-metal-with-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ categories:
1616

1717
Scaleway's [Elastic Metal servers](https://www.scaleway.com/en/elastic-metal/) provide 100% dedicated resources while offering the flexibility and scalability of the cloud, including hourly billing and full customization. The hardware is entirely dedicated to you — free from virtualization, overallocation, or neighboring tenants.
1818

19-
Elastic Metal servers also feature a robust [REST API](https://www.scaleway.com/en/developers/api/elastic-metal/) that enables seamless automation of tasks and deployments. Integration with tools like [Terraform](https://www.terraform.io/) further streamlines infrastructure management.
19+
Elastic Metal servers also feature a robust [REST API](https://www.scaleway.com/en/developers/api/elastic-metal/) that enables seamless automation of tasks and deployments. Integration with tools like [Terraform](https://www.terraform.io/) or [OpenTofu](https://opentofu.org/) further streamlines infrastructure management.
2020

2121
The **one-command deployment feature** accelerates server provisioning by combining delivery and setup into a single API call. This simplifies server provisioning, ensuring your machine is fully operational in less than 15 minutes.
2222

pages/gpu/how-to/use-scratch-storage-h100-instances.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You need to add an extra volume, for example:
5252
"volumes":{"1":{"name":"scratch-volume","volume_type":"scratch","size":3000000000000}}
5353
```
5454

55-
## How can I add scratch storage to my GPU Instance using Terraform?
55+
## How can I add scratch storage to my GPU Instance using Terraform/OpenTofu?
5656
```
5757
resource “scaleway_instance_volume” “scratch_volume” {
5858
size_in_gb = 3000

pages/guidelines.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ All documentation pages must fall into one of the following categories:
6262
| Quickstart | Shows how to do the main series of actions necessary to start using a Scaleway product via the console, e.g. [Instances Quickstart](/instances/quickstart/) |
6363
| Concepts | Defines and briefly explains the main terminology associated with a Scaleway product, e.g. [Kubernetes Concepts](/kubernetes/concepts/) |
6464
| Troubleshooting | Gives solutions to help resolve a common issue with a Scaleway product, e.g. [VPC auto-config is not working](/vpc/troubleshooting/autoconfig-not-working/) |
65-
| API/CLI | Presents information and tips for creating and configuring a Scaleway product via both official and third-party APIs, CLIs, SDKs and other developer tools, e.g. Terraform, e.g. [Using Object Storage with the AWS-CLI](/object-storage/api-cli/object-storage-aws-cli/). These pages complement the [main developer reference documentation](https://www.scaleway.com/en/developers/). |
65+
| API/CLI | Presents information and tips for creating and configuring a Scaleway product via both official and third-party APIs, CLIs, SDKs and other developer tools, e.g. Terraform/OpenTofu, e.g. [Using Object Storage with the AWS-CLI](/object-storage/api-cli/object-storage-aws-cli/). These pages complement the [main developer reference documentation](https://www.scaleway.com/en/developers/). |
6666
| Additional Content | Provides detailed information on specific subjects and features associated with a Scaleway product, e.g. [Optimize your Object Storage performance](/object-storage/reference-content/optimize-object-storage-performance/) |
6767
| Tutorial | Explains how to use a Scaleway product with a third-party tool, or how to use multiple Scaleway products together for a specific use-case, e.g. [Deploying Strapi on an Instance](/tutorials/strapi/) |
6868
| FAQ | Gives answers to the most frequently asked questions about Scaleway products, e.g. [Cockpit FAQ](/faq/cockpit/) |

pages/iam/api-cli/using-api-key-object-storage.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ When you create new Projects, you can choose the Project in which you want to ad
2929

3030
## API keys
3131

32-
You need an API key if you want to carry out actions on Scaleway products and resources via the Scaleway [API](https://www.scaleway.com/en/developers/api/) or other Scaleway developer tools like the [CLI](https://github.com/scaleway/scaleway-cli) and [Terraform](https://github.com/scaleway/terraform-provider-scaleway), or any third-party API/CLI compatible with Scaleway products. An API key is not necessary if you only use the [console](https://console.scaleway.com/) to create and manage your Scaleway resources.
32+
You need an API key if you want to carry out actions on Scaleway products and resources via the Scaleway [API](https://www.scaleway.com/en/developers/api/) or other Scaleway developer tools like the [CLI](https://github.com/scaleway/scaleway-cli) and [Terraform/OpenTofu](https://github.com/scaleway/terraform-provider-scaleway), or any third-party API/CLI compatible with Scaleway products. An API key is not necessary if you only use the [console](https://console.scaleway.com/) to create and manage your Scaleway resources.
3333

3434
When you generate an API key with IAM, the key is associated with a specific [IAM user](/iam/concepts/#user) or [IAM application](/iam/concepts/#application). The API key inherits the permissions of its bearer (the user or application it is associated with). The user/application may have permissions on one or several Scaleway Projects, accorded to them via [policies](/iam/concepts/#policy).
3535

0 commit comments

Comments
 (0)