Provides a DMS Enterprise Proxy Access resource.
For information about DMS Enterprise Proxy Access and how to use it, see What is Proxy Access.
Basic Usage
data "alicloud_dms_enterprise_users" "dms_enterprise_users_ds" {
role = "USER"
status = "NORMAL"
}
data "alicloud_dms_enterprise_proxies" "ids" {}
resource "alicloud_dms_enterprise_proxy_access" "default" {
proxy_id = data.alicloud_dms_enterprise_proxies.ids.proxies.0.id
user_id = data.alicloud_dms_enterprise_users.dms_enterprise_users_ds.users.0.user_id
}
The following arguments are supported:
indep_account
- (ForceNew, Optional) Database account.indep_password
- (ForceNew, Optional) Database password.proxy_id
- (Required, ForceNew) The ID of the security agent. user_id
- (Required, ForceNew) The user ID.The following attributes are exported:
id
- The key
of the proxy access resource.access_id
- The authorized account of the security agent.access_secret
- Secure access agent authorization password.gmt_create
- The authorization time of the security access agent permission.instance_id
- The ID of the instance.origin_info
- The source information of the security access agent permission is enabled, and the return value is as follows:
proxy_access_id
- Security Protection authorization ID. After the target user is authorized by the security protection agent, the system automatically generates a security protection authorization ID, which is globally unique.user_name
- User nickname.user_uid
- User UID.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Proxy Access.delete
- (Defaults to 5 mins) Used when delete the Proxy Access.DMS Enterprise Proxy Access can be imported using the id, e.g.
$terraform import alicloud_dms_enterprise_proxy_access.example <id>