diff --git a/identity-and-access-management/secret-manager/api-cli/create-secret-path-migrate.mdx b/identity-and-access-management/secret-manager/api-cli/create-secret-path-migrate.mdx deleted file mode 100644 index b39e1d1264..0000000000 --- a/identity-and-access-management/secret-manager/api-cli/create-secret-path-migrate.mdx +++ /dev/null @@ -1,47 +0,0 @@ ---- -meta: - title: Creating and migrating a secret into a specific path using the CLI and Go - description: Discover how to create and migrate your secret with ease using the Scaleway CLI and Go, ensuring efficient management within specified paths. -content: - h1: Creating and migrating a secret into a specific path using the CLI and Go - paragraph: Discover how to create and migrate your secret with ease using the Scaleway CLI and Go, ensuring efficient management within specified paths. -tags: secret-management path migration secret-manager go sdk cli -categories: - - identity-and-access-management -dates: - validation: 2024-09-04 - posted: 2023-10-03 ---- - -This page shows you how to create a secret (`ultra-confidential`) and to migrate it into a path (`/confidential-path`) using the [Scaleway CLI](https://github.com/scaleway/scaleway-cli#installation) and the Go programming language. - - - -- A Scaleway account logged into the [console](https://console.scaleway.com) -- [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization -- Configured the [Scaleway CLI](https://github.com/scaleway/scaleway-cli#installation) -- [Created at least one Scaleway API key](/identity-and-access-management/iam/how-to/create-api-keys/) -- [Downloaded Go](https://go.dev/) - -1. Open a terminal and run the following command to clone the repository containing the code you need to complete the procedure: - - ``` - git clone git@github.com:scaleway/tutorial-sem-folder-migrate.git - ``` - -2. In the same terminal, paste the following commands to export your environment variables. Make sure you add your **own variables**. - - ``` - export SCW_ACCESS_KEY= - export SCW_SECRET_KEY= - export SCW_DEFAULT_ORGANIZATION_ID= - export SCW_DEFAULT_PROJECT_ID= - export SCW_DEFAULT_REGION="fr-par" - export SCW_API_URL="https://api.scaleway.com" - ``` -3. Use the following command to access the `tutorial-sem-folder-migrate` directory: - ``` - cd tutorial-sem-folder-migrate - ``` -4. Run `go run ./main.go` to launch the creation of your secret and the migration process. -5. Access your [Scaleway account](https://console.scaleway.com) and verify that the secret and path display in the intended Project. \ No newline at end of file diff --git a/identity-and-access-management/secret-manager/index.mdx b/identity-and-access-management/secret-manager/index.mdx index 28a91cae09..2ad4e16ab8 100644 --- a/identity-and-access-management/secret-manager/index.mdx +++ b/identity-and-access-management/secret-manager/index.mdx @@ -48,11 +48,6 @@ meta: ## API/CLI -