654 B
654 B
Terraform module to create STACKIT Service Account
Example for main.tf
Service Account Terraform Module
This module creates a STACKIT service account, optionally creates a key, and optionally attaches it to a server.
Usage
module "service_account" {
source = "git::https://commerce-platform.git.onstackit.cloud/commerce-platform-public//terraform-modules/service-account"
name = "my-service-account"
project_id = "your-project-id"
create_key = true
ttl_days = 90
rotate_when_changed = {
rotated_at = timestamp()
}
attach_to_server = true
server_id = "your-server-id"
}