migrate
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<%- if service_token_enabled %>
|
||||
resource "cloudflare_zero_trust_access_policy" "<< resource_name >>_service_token" {
|
||||
account_id = data.cloudflare_account.main.account_id
|
||||
name = "<< service_token_policy_name >>"
|
||||
decision = "non_identity"
|
||||
include = [{
|
||||
service_token = {
|
||||
token_id = "<< service_token_id >>"
|
||||
}
|
||||
}]
|
||||
session_duration = "<< session_duration >>"
|
||||
}
|
||||
<%- endif %>
|
||||
<%- if ip_policy_enabled %>
|
||||
resource "cloudflare_zero_trust_access_policy" "<< resource_name >>_ip" {
|
||||
account_id = data.cloudflare_account.main.account_id
|
||||
name = "<< ip_policy_name >>"
|
||||
decision = "non_identity"
|
||||
include = [
|
||||
for ip_range in split(",", "<< ip_ranges >>") : {
|
||||
ip = {
|
||||
ip = trimspace(ip_range)
|
||||
}
|
||||
}
|
||||
]
|
||||
session_duration = "<< session_duration >>"
|
||||
}
|
||||
<%- endif %>
|
||||
Reference in New Issue
Block a user