This module is used to create and manage IBM Cloud Internet Services (CIS) DNS records. For more information, see the main readme file for this module.
provider "ibm" {
ibmcloud_api_key = ""
}
module "cis_dns_records" {
source = "terraform-ibm-modules/cis/ibm/dns"
cis_instance_id = "crn:v1:bluemix:public:internet-svcs:global:a/xxXXxxXXxXxXXXXxxXxxxXXXXxXXXXX:xxxxxxxx-XXXX-xxxx-XXXX-xxxxxXXXXxxxx::"
domain_id = "xxxxXXXXxxxxXXXXxxxxxxxxXXXXxxxx"
dns_record_set = [
{
type = "A"
name = "test-example"
content = "1.2.3.4"
ttl = 900
}
]
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
ibm | >= 1.63.0 |
local | >= 2.4.0 |
No modules.
Name | Type |
---|---|
ibm_cis_dns_record.dns_records | resource |
ibm_cis_dns_records_import.import_dns_records | resource |
local_file.dns_record_file | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
base64_encoded_dns_records_file | The base64-encoded DNS zone file in BIND format that contains the details of the DNS records Learn more. Required if dns_records_file is not specified. |
string |
null |
no |
cis_instance_id | CRN of the existing CIS instance. | string |
n/a | yes |
dns_record_set | List of DNS records to be added for the CIS Instance. | list(object({ |
[] |
no |
dns_records_file | The DNS file in text format that contains the details of the DNS records. Required if base64_encoded_dns_records_file is not specified. |
string |
null |
no |
domain_id | ID of the existing domain to add a DNS record to the CIS instance. | string |
n/a | yes |
Name | Description |
---|---|
cis_dns_records | DNS records of CIS instance |
cis_imported_dns_records | Imported DNS records from a file. |