pactflow / terraform-provider-pact

Terraform provider for Pact Broker (and Pactflow)
https://pactflow.io
MIT License
24 stars 4 forks source link

Feature: Extract System Account tokens into the pact_user resource #29

Open mefellows opened 1 year ago

mefellows commented 1 year ago

Currently, there is no way to extract the API tokens for System Accounts. Tokens can be extracted via the following undocumented API: <base url>/admin/system-accounts/<uuid>/tokens.

One way to achieve this is to detect in the pact_user resource the type == "system", and if it is a system account additionally fetch and store the tokens.

This way, the value could be extracted from the terraform state file.