terraform-provider-stackitp.../stackit/internal/services/serviceaccount/token/const.go
Mauritz Uphoff d443b5416d
Feat: implement sa tokens (#712)
* feat: implement sa access token resource
2025-03-21 09:29:56 +01:00

26 lines
624 B
Go

package token
const markdownDescription = `
## Example Usage` + "\n" + `
### Automatically rotate access tokens` + "\n" +
"```terraform" + `
resource "stackit_service_account" "sa" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "sa01"
}
resource "time_rotating" "rotate" {
rotation_days = 80
}
resource "stackit_service_account_access_token" "sa_token" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
service_account_email = stackit_service_account.sa.email
ttl_days = 180
rotate_when_changed = {
rotation = time_rotating.rotate.id
}
}
` + "\n```"