Skip to content

Commit

Permalink
Adds the new import syntax
Browse files Browse the repository at this point in the history
For all resources that support imports, add documentation outlining the new import syntax.
  • Loading branch information
gavin-truework committed Dec 17, 2024
1 parent 37c1b58 commit 96a0775
Show file tree
Hide file tree
Showing 132 changed files with 1,067 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/resources/access_application.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,3 +356,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_access_application.example <account_id>/<application_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_application.example
id = "<account_id>/<application_id>"
}
```
13 changes: 13 additions & 0 deletions docs/resources/access_ca_certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,16 @@ $ terraform import cloudflare_access_ca_certificate.example account/<account_id>
# Zone level CA certificate import.
$ terraform import cloudflare_access_ca_certificate.example account/<zone_id>/<application_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_ca_certificate.example
id = "account/<account_id>/<application_id>"
}
import {
to = cloudflare_access_ca_certificate.example
id = "zone/<zone_id>/<application_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/access_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_access_group.example <account_id>/<group_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_group.example
id = "<account_id>/<group_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/access_identity_provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_access_identity_provider.example <account_id>/<identity_provider_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_identity_provider.example
id = "<account_id>/<identity_provider_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/access_mutual_tls_certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,11 @@ $ terraform import cloudflare_access_mutual_tls_certificate.example account/<acc
# Zone level import.
$ terraform import cloudflare_access_mutual_tls_certificate.example zone/<zone_id>/<mutual_tls_certificate_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_mutual_tls_certificate.example
id = "zone/<zone_id>/<mutual_tls_certificate_id>"
}
```
14 changes: 14 additions & 0 deletions docs/resources/access_mutual_tls_hostname_settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,17 @@ $ terraform import cloudflare_access_mutual_tls_hostname_settings.example accoun
# Zone level mTLS hostname settings import.
$ terraform import cloudflare_access_mutual_tls_hostname_settings.example zone/<zone_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):

```terraform
import {
to = cloudflare_access_mutual_tls_hostname_settings.example
id = "account/<account_id>"
}
import {
to = cloudflare_access_mutual_tls_hostname_settings.example
id = "zone/<zone_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/access_organization.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_access_organization.example <account_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_organization.example
id = "<account_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/access_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_access_policy.example account/<account_id>/<application_id>/<policy_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_policy.example
id = "account/<account_id>/<application_id>/<policy_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/access_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,11 @@ $ terraform import cloudflare_access_rule.default zone/<zone_id>/<rule_id>
# Account level access rule import.
$ terraform import cloudflare_access_rule.default account/<account_id>/<rule_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_rule.default
id = "account/<account_id>/<rule_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/access_service_token.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,11 @@ Import is supported using the following syntax:
# resource should you need to reference it in other resources.
$ terraform import cloudflare_access_service_token.example <account_id>/<service_token_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_access_service_token.example
id = "<account_id>/<service_token_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_account.example <account_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_account.example
id = "<account_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/account_member.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_account_member.example <account_id>/<member_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_account_member.example
id = "<account_id>/<member_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/address_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_address_map.example <account_id>/<address_map_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_address_map.example
id = "<account_id>/<address_map_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/argo.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_argo.example <zone_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_argo.example
id = "<zone_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/authenticated_origin_pulls.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,11 @@ $ terraform import cloudflare_authenticated_origin_pulls.example <zone_id>/<cert
# per hostname
$ terraform import cloudflare_authenticated_origin_pulls.example <zone_id>/<certificate_id>/<hostname>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_authenticated_origin_pulls.example
id = "<zone_id>/<certificate_id>/<hostname>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/authenticated_origin_pulls_certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_authenticated_origin_pulls_certificate.example <zone_id>/<certificate_type>/<certificate_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_authenticated_origin_pulls_certificate.example
id = "<zone_id>/<certificate_type>/<certificate_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/bot_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_bot_management.example <zone_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_bot_management.example
id = "<zone_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/byo_ip_prefix.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_byo_ip_prefix.example <account_id>/<prefix_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_byo_ip_prefix.example
id = "<account_id>/<prefix_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/certificate_pack.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,13 @@ Import is supported using the following syntax:
$ terraform import cloudflare_certificate_pack.example <zone_id>/<certificate_pack_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_certificate_pack.example
id = "<zone_id>/<certificate_pack_id>"
}
```

While supported, importing isn't recommended and it is advised to replace the
certificate entirely instead.
8 changes: 8 additions & 0 deletions docs/resources/custom_hostname.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_custom_hostname.example 1d5fdc9e88c8a8c4518b068cd94331fe/0d89c70d-ad9f-4843-b99f-6cc0252067e9
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_custom_hostname.example
id = "1d5fdc9e88c8a8c4518b068cd94331fe/0d89c70d-ad9f-4843-b99f-6cc0252067e9"
}
```
8 changes: 8 additions & 0 deletions docs/resources/custom_hostname_fallback_origin.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_custom_hostname_fallback_origin.example <zone_id>/<fallback_hostname>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_custom_hostname_fallback_origin.example
id = "<zone_id>/<fallback_hostname>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/custom_pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_custom_pages.example <resource_level>/<resource_id>/<custom_page_type>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_custom_pages.example
id = "<resource_level>/<resource_id>/<custom_page_type>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/custom_ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_custom_ssl.example <zone_id>/<certificate_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_custom_ssl.example
id = "<zone_id>/<certificate_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/device_dex_test.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_device_dex_test.example <account_id>/<device_dex_test_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_device_dex_test.example
id = "<account_id>/<device_dex_test_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/device_managed_networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_device_managed_networks.example <account_id>/<device_managed_networks_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_device_managed_networks.example
id = "<account_id>/<device_managed_networks_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/device_policy_certificates.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_device_policy_certificates.example <zone_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_device_policy_certificates.example
id = "<zone_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/device_posture_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_device_posture_integration.example <account_id>/<device_posture_integration_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_device_posture_integration.example
id = "<account_id>/<device_posture_integration_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/device_posture_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_device_posture_rule.example <account_id>/<device_posture_rule_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_device_posture_rule.example
id = "<account_id>/<device_posture_rule_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/device_settings_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,11 @@ Import is supported using the following syntax:
# For default device settings policies you must use "default" as the policy ID.
$ terraform import cloudflare_device_settings_policy.example <account_id>/<device_policy_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_device_settings_policy.example
id = "<account_id>/<device_policy_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/dlp_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_dlp_profile.example <account_id>/<dlp_profile_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_dlp_profile.example
id = "<account_id>/<dlp_profile_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/email_routing_address.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_email_routing_address.example <account_id>/<email_routing_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_email_routing_address.example
id = "<account_id>/<email_routing_id>"
}
```
8 changes: 8 additions & 0 deletions docs/resources/email_routing_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,11 @@ Import is supported using the following syntax:
```shell
$ terraform import cloudflare_email_routing_rule.example <zone_id>/<email_routing_rule_id>
```

For terraform 1.5 and later, you should use an [`import` block](https://developer.hashicorp.com/terraform/language/import):
```terraform
import {
to = cloudflare_email_routing_rule.example
id = "<zone_id>/<email_routing_rule_id>"
}
```
Loading

0 comments on commit 96a0775

Please sign in to comment.