### VNGCloud Provider Configuration Source: https://registry.terraform.io/providers/vngcloud/vngcloud/latest/docs This snippet shows the basic configuration for the VNGCloud provider in Terraform. It includes setting up the required provider and authenticating using client ID, client secret, and specific API endpoints. ```terraform terraform { required_providers { vngcloud = { source = "vngcloud/vngcloud" version = "x.x.x" } } } provider "vngcloud" { token_url = "https://iamapis.vngcloud.vn/accounts-api/v2/auth/token" client_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" vserver_base_url = "https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway" vlb_base_url = "https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway" vdb_base_url = "https://vdb-gateway.vngcloud.vn" } ``` -------------------------------- ### VNGCloud Provider Configuration Source: https://registry.terraform.io/providers/vngcloud/vngcloud/latest/docs This snippet shows the basic configuration for the VNGCloud provider in Terraform, including authentication details and base URLs for different services. ```APIDOC ## Provider Configuration ### Description Configuration block for the VNGCloud provider. ### Arguments * `client_id` - (Required) Your clientID to authenticate with VNG Cloud. Can also be set via `CLIENT_ID` environment variable. * `client_secret` - (Required) Your client secret to authenticate with VNG Cloud. Can also be set via `CLIENT_SECRET` environment variable. * `token_url` - (Optional) Endpoint for authentication with VNG Cloud. Defaults to `https://iamapis.vngcloud.vn/accounts-api/v2/auth/token`. Can also be set via `TOKEN_ADDRESS` environment variable. * `vserver_base_url` - (Optional) Base URL for interacting with VNG Cloud's vServer resources. Defaults to `https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway`. Can also be set via `VSERVER_BASE_URL` environment variable. * `vlb_base_url` - (Optional) Base URL for interacting with VNG Cloud's vLB resources. Defaults to `https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway`. Can also be set via `VLB_BASE_URL` environment variable. * `vdb_base_url` - (Optional) Base URL for interacting with VNG Cloud's vDB resources. Defaults to `https://vdb-gateway.vngcloud.vn`. Can also be set via `VDB_BASE_URL` environment variable. ### Example Usage ```terraform terraform { required_providers { vngcloud = { source = "vngcloud/vngcloud" version = "x.x.x" } } } provider "vngcloud" { token_url = "https://iamapis.vngcloud.vn/accounts-api/v2/auth/token" client_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" vserver_base_url = "https://hcm-3.api.vngcloud.vn/vserver/vserver-gateway" vlb_base_url = "https://hcm-3.api.vngcloud.vn/vserver/vlb-gateway" vdb_base_url = "https://vdb-gateway.vngcloud.vn" } ``` ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.