Skip to content
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_pool creates a pool and its tokens. Token values are never stored in state. The tokens map 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 them ACTIVE, and the plan checks this before anything changes.
  • Label pools. britive_resource_manager_broker_pool_labels manages all labels of a pool. Use one per pool.
  • Read a token without storing it. The ephemeral britive_resource_manager_broker_pool_token returns a token value for one run only. Pass it to a write-only argument such as secret_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_pool returns a pool’s settings, brokers, resources, and tokens, without token values.

Permission variables

  • Set defaults on the permission. A variable_defaults block on britive_resource_manager_resource_type_permission sets default values for variables. Values come from the system-defined list, such as user.email or resource.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_permission now uses the default for any variable you omit from variables. The read-only effective_variables attribute 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 permission error is gone, and removing the last variables block clears all values.
  • An imported britive_resource_manager_resource_type_permission is no longer replaced on the next apply.

Learn more

Last updated on