Repository: scaleway/scaleway-cli
Pull request #1380 (2020-09-03 09:30:59)

feat(init): save project_id in config
### Community Note

* Please vote on this pull request by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original pull request comment to help the community and maintainers prioritize this request.
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

<!--- Thank you for keeping this note for the community --->

Release note for [CHANGELOG](https://github.com/scaleway/scaleway-cli/blob/v2/CHANGELOG.md):
<!--
If the change is not user facing, just write "NONE" in the release-note block below.
-->

```release-note
Save the `project_id` in the config with the `scw init` command
```


jerome-quere: Do we have test for init ? Should we add a test for this ? 
QuentinBrosse: > Do we have test for init ? Should we add a test for this?

@jerome-quere in this precise use-case it's complex to test as we need to test the behavior where the `scw init` will automatically get the `access_key`, `organization_id`, `project_id`, ... from the account API. It will require to moke the account API but without cassettes to get a consistent result and test this result.
I think that's why [we only check the `secret_key` in the "Override" test](https://github.com/scaleway/scaleway-cli/blob/master/internal/namespaces/init/init_test.go#L144).

Patch:
diff --git a/internal/namespaces/init/init.go b/internal/namespaces/init/init.go
index 2526b9e0..c0fd1c1e 100644
--- a/internal/namespaces/init/init.go
+++ b/internal/namespaces/init/init.go
@@ -273,7 +273,8 @@ func initCommand() *core.Command {
 				SecretKey:             &args.SecretKey,
 				DefaultZone:           scw.StringPtr(args.Zone.String()),
 				DefaultRegion:         scw.StringPtr(args.Region.String()),
-				DefaultOrganizationID: &apiKey.OrganizationID, // An api key is always bound to an organization.
+				DefaultOrganizationID: &apiKey.OrganizationID,
+				DefaultProjectID:      &apiKey.ProjectID, // An API key is always bound to a project.
 			}
 
 			// Save the profile as default or as a named profile


Test patch:
diff --git a/internal/core/testing.go b/internal/core/testing.go
index 0e15dee4..9692fe5d 100644
--- a/internal/core/testing.go
+++ b/internal/core/testing.go
@@ -218,6 +218,7 @@ func createTestClient(t *testing.T, testConfig *TestConfig, httpClient *http.Cli
 		scw.WithDefaultZone(scw.ZoneFrPar1),
 		scw.WithAuth("SCWXXXXXXXXXXXXXXXXX", "11111111-1111-1111-1111-111111111111"),
 		scw.WithDefaultOrganizationID("11111111-1111-1111-1111-111111111111"),
+		scw.WithDefaultProjectID("11111111-1111-1111-1111-111111111111"),
 		scw.WithUserAgent("cli-e2e-test"),
 		scw.WithHTTPClient(&http.Client{
 			Transport: &retryableHTTPTransport{transport: http.DefaultTransport},
diff --git a/internal/namespaces/init/init_test.go b/internal/namespaces/init/init_test.go
index 09230332..f02888b7 100644
--- a/internal/namespaces/init/init_test.go
+++ b/internal/namespaces/init/init_test.go
@@ -54,6 +54,8 @@ func TestInit(t *testing.T) {
 			checkConfig(func(t *testing.T, ctx *core.CheckFuncCtx, config *scw.Config) {
 				secretKey, _ := ctx.Client.GetSecretKey()
 				assert.Equal(t, secretKey, *config.SecretKey)
+				assert.NotEmpty(t, *config.DefaultProjectID)
+				assert.Equal(t, *config.DefaultProjectID, *config.DefaultProjectID)
 			}),
 		),
 	}))
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-bash.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-bash.cassette.yaml
index b53e3d5f..83acd13b 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-bash.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-bash.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-fish.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-fish.cassette.yaml
index b53e3d5f..83acd13b 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-fish.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-fish.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-without.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-without.cassette.yaml
index b53e3d5f..83acd13b 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-without.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-without.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-zsh.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-zsh.cassette.yaml
index b53e3d5f..83acd13b 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-darwin-zsh.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-darwin-zsh.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-linux-bash.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-linux-bash.cassette.yaml
index a4809c5d..0db329d2 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-linux-bash.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-linux-bash.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-linux-fish.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-linux-fish.cassette.yaml
index a4809c5d..0db329d2 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-linux-fish.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-linux-fish.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-linux-without.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-linux-without.cassette.yaml
index a4809c5d..0db329d2 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-linux-without.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-linux-without.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-linux-zsh.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-linux-zsh.cassette.yaml
index a4809c5d..0db329d2 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-linux-zsh.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-linux-zsh.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-windows-bash.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-windows-bash.cassette.yaml
index 2a339c7d..cc07045c 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-windows-bash.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-windows-bash.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-windows-fish.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-windows-fish.cassette.yaml
index 2a339c7d..cc07045c 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-windows-fish.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-windows-fish.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-windows-without.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-windows-without.cassette.yaml
index 2a339c7d..cc07045c 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-windows-without.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-windows-without.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-autocomplete-windows-zsh.cassette.yaml b/internal/namespaces/init/testdata/test-init-autocomplete-windows-zsh.cassette.yaml
index 2a339c7d..cc07045c 100644
--- a/internal/namespaces/init/testdata/test-init-autocomplete-windows-zsh.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-autocomplete-windows-zsh.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-cl-iv2-config-overwrite.cassette.yaml b/internal/namespaces/init/testdata/test-init-cl-iv2-config-overwrite.cassette.yaml
index a5416b77..12d4e840 100644
--- a/internal/namespaces/init/testdata/test-init-cl-iv2-config-overwrite.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-cl-iv2-config-overwrite.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T08:21:54.096455+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-configuration-path.cassette.yaml b/internal/namespaces/init/testdata/test-init-configuration-path.cassette.yaml
index a5416b77..5ccd288e 100644
--- a/internal/namespaces/init/testdata/test-init-configuration-path.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-configuration-path.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T08:21:54.096455+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-profile.cassette.yaml b/internal/namespaces/init/testdata/test-init-profile.cassette.yaml
index a5416b77..5ccd288e 100644
--- a/internal/namespaces/init/testdata/test-init-profile.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-profile.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T08:21:54.096455+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-simple.cassette.yaml b/internal/namespaces/init/testdata/test-init-simple.cassette.yaml
index a5416b77..5ccd288e 100644
--- a/internal/namespaces/init/testdata/test-init-simple.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-simple.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T08:21:54.096455+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-ssh-key-registered.cassette.yaml b/internal/namespaces/init/testdata/test-init-ssh-key-registered.cassette.yaml
index 42bf6317..33164b52 100644
--- a/internal/namespaces/init/testdata/test-init-ssh-key-registered.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-ssh-key-registered.cassette.yaml
@@ -49,7 +49,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-ssh-key-unregistered.cassette.yaml b/internal/namespaces/init/testdata/test-init-ssh-key-unregistered.cassette.yaml
index 82f3aa14..191ba4c6 100644
--- a/internal/namespaces/init/testdata/test-init-ssh-key-unregistered.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-ssh-key-unregistered.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T14:06:56.763352+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive
diff --git a/internal/namespaces/init/testdata/test-init-ssh-no-local-key.cassette.yaml b/internal/namespaces/init/testdata/test-init-ssh-no-local-key.cassette.yaml
index b0742ea1..0755f0e6 100644
--- a/internal/namespaces/init/testdata/test-init-ssh-no-local-key.cassette.yaml
+++ b/internal/namespaces/init/testdata/test-init-ssh-no-local-key.cassette.yaml
@@ -12,7 +12,8 @@ interactions:
       "expires": null, "creation_date": "2020-06-23T08:21:54.096455+00:00", "creation_ip":
       "195.154.229.35", "category": "user_created", "deletion_date": null, "inherits_user_perms":
       true, "roles": {"role": null, "organization": null}, "description": "sieben-macbook",
-      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42", "use_role_key": false}}'
+      "organization_id": "951df375-e094-4d26-97c1-ba548eeb9c42",  "project_id": "951df375-e094-4d26-97c1-ba548eeb9c42",
+      "use_role_key": false}}'
     headers:
       Connection:
       - keep-alive