Skip to content

Commit 966fd21

Browse files
authored
docs(iam): add docs on using expires_at with time_rotating (#2677)
1 parent 72a97b7 commit 966fd21

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/resources/iam_api_key.md

+13
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@ resource "scaleway_iam_api_key" "main" {
3535
}
3636
```
3737

38+
### With expiration
39+
40+
```terraform
41+
resource "time_rotating" "rotate_after_a_year" {
42+
rotation_years = 1
43+
}
44+
45+
resource "scaleway_iam_api_key" "main" {
46+
application_id = scaleway_iam_application.main.id
47+
expires_at = time_rotating.rotate_after_a_year.rotation_rfc3339
48+
}
49+
```
50+
3851
## Argument Reference
3952

4053
The following arguments are supported:

0 commit comments

Comments
 (0)