Terraform Provider v3.0.6: broker pools as code
Terraform Provider v3.0.6: broker pools as code
What’s new
Version 3.0.6 of the Britive Terraform provider lets you manage Access Broker pools and their tokens in code, set default values for permission variables, and read your tenant’s SAML metadata without copying XML by hand. Pin the provider with version = ">= 3.0.6". Resource and data source arguments are in the official provider documentation.
Broker pools
- Create pools and manage tokens.
britive_resource_manager_broker_poolcreates a pool and its tokens. Token values are never stored in state. Thetokensmap is the exact set of tokens: one left out is deleted, and its brokers disconnect. A pool holds at most three tokens, one or two of themACTIVE, and the plan checks this before anything changes. - Label pools.
britive_resource_manager_broker_pool_labelsmanages all labels of a pool. Use one per pool. - Read a token without storing it. The ephemeral
britive_resource_manager_broker_pool_tokenreturns a token value for one run only. Pass it to a write-only argument such assecret_string_wo, so it never reaches state. Ephemeral resources need Terraform 1.10 or later, and write-only arguments need 1.11. - Look up a pool.
data.britive_resource_manager_broker_poolreturns a pool’s settings, brokers, resources, and tokens, without token values.
Permission variables
- Set defaults on the permission. A
variable_defaultsblock onbritive_resource_manager_resource_type_permissionsets default values for variables. Values come from the system-defined list, such asuser.emailorresource.name, not literals. Password variables cannot have defaults. A default set only in the console is removed on the next apply. - Leave variables out of profiles.
britive_resource_manager_profile_permissionnow uses the default for any variable you omit fromvariables. The read-onlyeffective_variablesattribute shows the value in use. A variable with no value, no default, and no prompt at checkout reaches the script empty, and apply warns about it.
Tenant SAML metadata
data.britive_saml_metadata returns the tenant’s SAML metadata and certificates. Pass metadata to aws_iam_saml_provider to onboard an AWS account without downloading the XML.
Fixes
- The
missing required variables for permissionerror is gone, and removing the lastvariablesblock clears all values. - An imported
britive_resource_manager_resource_type_permissionis no longer replaced on the next apply.
Learn more
Last updated on