### Basic provider setup with username and password Source: https://registry.terraform.io/providers/fortanix/dsm/latest/docs Configures the Fortanix DSM provider with endpoint, username, password, and account ID. Requires the dsm provider version 0.5.32 from source fortanix/dsm. ```hcl terraform { required_providers { dsm = { version = "0.5.32" source = "fortanix/dsm" } } } // Configure with username and password provider "dsm" { endpoint = "https://amer.smartkey.io" username = "test@user.com" password = "12345678" acct_id = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" } ``` -------------------------------- ### Configure provider with API key Source: https://registry.terraform.io/providers/fortanix/dsm/latest/docs Configures the Fortanix DSM provider using an API key instead of username/password. Requires the same provider block as the basic setup. ```hcl // Configure with API key provider "dsm" { endpoint = "https://amer.smartkey.io" api_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } ``` -------------------------------- ### Disable SSL verification Source: https://registry.terraform.io/providers/fortanix/dsm/latest/docs Configures the Fortanix DSM provider with SSL verification disabled via the insecure field set to false. Note: the example shows insecure = false, which means SSL is not disabled. ```hcl // Disable the SSL provider "dsm" { endpoint = "https://amer.smartkey.io" username = "test@user.com" password = "12345678" acct_id = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" insecure = false } ``` -------------------------------- ### Configure provider with LDAP Source: https://registry.terraform.io/providers/fortanix/dsm/latest/docs Configures the Fortanix DSM provider with LDAP authentication, adding the ldap_name field to the username/password configuration. ```hcl // Configure with LDAP configuration provider "dsm" { endpoint = "https://amer.smartkey.io" username = "test@user.com" password = "12345678" acct_id = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ldap_name = "TEST_LDAP" } ``` -------------------------------- ### Configure AWS profile Source: https://registry.terraform.io/providers/fortanix/dsm/latest/docs Configures the Fortanix DSM provider to use an AWS profile. The aws_profile and aws_region fields are set. The comment notes that the default profile is $HOME/.aws/ or a file containing aws_access_key_id, aws_secret_access_key, aws_session_token (optional), and region. ```hcl // Configure aws profile provider "dsm" { endpoint = "https://amer.smartkey.io" username = "test@user.com" password = "12345678" acct_id = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" /* default: $HOME/.aws/ Or a file should be specified that contains aws_access_key_id, aws_secret_access_key, aws_session_token(Optional) and region */ aws_profile = "default" aws_region = "us-east-2" } ``` -------------------------------- ### Configure Azure region Source: https://registry.terraform.io/providers/fortanix/dsm/latest/docs Configures the Fortanix DSM provider with an Azure region using the azure_region field. ```hcl // Configure azure_ region provider "dsm" { endpoint = "https://amer.smartkey.io" username = "test@user.com" password = "12345678" acct_id = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" azure_region = "us-east" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.