Provides the ability to manage IP addresses that can be used by DNS records when they are proxied through Cloudflare.
resource "cloudflare_address_map" "example" {
account_id = "f037e56e89293a057740de681ac9abbe"
description = "My address map"
default_sni = "*.example.com"
enabled = true
ips { ip = "192.0.2.1" }
ips { ip = "203.0.113.1" }
memberships {
identifier = "92f17202ed8bd63d69a66b86a49a8f6b"
kind = "account"
}
memberships {
identifier = "023e105f4ecef8ad9ca31a8372d0c353"
kind = "zone"
}
}
account_id
(String) The account identifier to target for the resource.enabled
(Boolean) Whether the Address Map is enabled or not.default_sni
(String) If you have legacy TLS clients which do not send the TLS server name indicator, then you can specify one default SNI on the map.description
(String) Description of the address map.ips
(Block Set) The set of IPs on the Address Map. (see below for nested schema)memberships
(Block Set) Zones and Accounts which will be assigned IPs on this Address Map. (see below for nested schema)can_delete
(Boolean) If set to false, then the Address Map cannot be deleted via API. This is true for Cloudflare-managed maps.can_modify_ips
(Boolean) If set to false, then the IPs on the Address Map cannot be modified via the API. This is true for Cloudflare-managed maps.id
(String) The ID of this resource.ips
Required:
ip
(String) An IPv4 or IPv6 address.memberships
Required:
identifier
(String) Identifier of the account or zone.kind
(String) The type of the membership.Read-Only:
can_delete
(Boolean) Controls whether the membership can be deleted via the API or not.Import is supported using the following syntax:
$ terraform import cloudflare_address_map.example <account_id>/<address_map_id>