subcategory |
---|
Resources |
This resource allows you to create/update/delete account.
resource "centrify_account" "unix_account" {
name = "testaccount"
credential_type = "Password"
password = "xxxxxxxxxxxxxx"
host_id = centrify_system.unix1.id
description = "Test Account for Unix"
use_proxy_account = false
checkout_lifetime = 70
managed = false
}
Examples of system account can be found here
Examples of database account can be found here
Examples of domain account can be found here
Examples of cloud provider account can be found here
name
- (String) Name of the account.credential_type
- (String) Credential type of the account. Can be set toPassword
,SshKey
orAwsAccessKey
.
use_proxy_account
- (Boolean) Use proxy account to manage this account. Only applicable ifcredential_type
isPassword
and the system that this account belongs to hasproxyuser
configured.managed
- (Boolean) If this account is managed. By enabling this option the credential will be automatically changed and become unknown to other applications or users.description
- (String) Description of the account.checkout_lifetime
- (Number) Checkout lifetime (minutes). Specifies the number of minutes that a checked out password is valid. Range between15
to2147483647
. Note: Do NOT set this if it is IAM user.challenge_rule
- (Block List) Password checkout challenge rules. Refer to challenge_rule attribute for details.default_profile_id
- (String) Default password checkout profile (used if no conditions matched).access_secret_checkout_default_profile_id
- (String) "Default secret access key checkout challenge rule ID. Only applicable to AWS IAM user.access_secret_checkout_rule
- (Block List) Secret Access Key Checkout Challenge Rules. Only applicable to AWS IAM user. Refer to challenge_rule attribute for details.password
- (String, Sensitive) Password of the account. Only applicable ifcredential_type
isPassword
.sshkey_id
- (String) ID of the SSH key. Only applicable ifcredential_type
isSshKey
.access_key
- (Block Set) AWS Access Keys (see reference foraccess_key
)is_admin_account
- (Boolean) Whether this is an administrative account.is_root_account
- (Boolean) Whether this is an root account for cloud provider. Only applicable ifcredential_type
isAwsAccessKey
.host_id
- (String) ID of the system it belongs to.domain_id
- (String) ID of the domain it belongs to.database_id
- (String) ID of the database it belongs to.cloudprovider_id
- (String) ID of the cloud provider it belongs to.workflow_enabled
- (Boolean) Enable account workflow.workflow_approver
- (Block List) List of approvers. Refer to workflow_approver attribute for details.permission
- (Block Set) Domain permissions. Refer to permission attribute for details.sets
(Set of String) List of Set IDs the account belongs to. Refer to sets attribute for details.
Required:
access_key_id
- (String) AWS access key id.secret_access_key
- (String, Sensitive) AWS secret access key.
Account can be imported using the resource id
, e.g.
terraform import centrify_account.example xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Limitation: permission
and set
aren't supported in import process.