Skip to content

Commit 9e44b12

Browse files
authored
docs(sbd_sql): fix IAM example (#2384)
1 parent bb987fb commit 9e44b12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/resources/sdb_sql_database.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ resource scaleway_sdb_sql_database "database" {
1919
}
2020
```
2121

22-
### With IAM Token
22+
### With IAM Application
2323

2424
This example creates an [IAM application](https://www.scaleway.com/en/docs/identity-and-access-management/iam/concepts/#application) and a secret key used to connect to the DATABASE.
2525
For more information, see [How to connect to a Serverless SQL Database](https://www.scaleway.com/en/docs/serverless/sql-databases/how-to/connect-to-a-database/)
@@ -39,7 +39,7 @@ resource scaleway_iam_policy "db_access" {
3939
application_id = scaleway_iam_application.app.id
4040
rule {
4141
project_ids = [data.scaleway_account_project.default.id]
42-
permission_set_names = ["ServerlessDatabaseFullAccess"]
42+
permission_set_names = ["ServerlessSQLDatabaseReadWrite"]
4343
}
4444
}
4545
@@ -60,6 +60,7 @@ output "database_connection_string" {
6060
scaleway_iam_api_key.api_key.secret_key,
6161
trimprefix(scaleway_sdb_sql_database.database.endpoint, "postgres://"),
6262
)
63+
sensitive = true
6364
}
6465
```
6566

0 commit comments

Comments
 (0)