twingate_resource.tf 658 B

12345678910111213141516171819202122232425262728
  1. resource "twingate_resource" "new_resource" {
  2. name = "new_resource"
  3. address = "new_resource.home.arpa"
  4. remote_network_id = data.twingate_remote_network.default_network.id
  5. security_policy_id = data.twingate_security_policy.default_policy.id
  6. protocols = {
  7. allow_icmp = true
  8. tcp = {
  9. policy = "ALLOW_ALL"
  10. }
  11. udp = {
  12. policy = "ALLOW_ALL"
  13. }
  14. }
  15. dynamic "access_group" {
  16. for_each = [
  17. twingate_group.administrators.id
  18. ]
  19. content {
  20. group_id = access_group.value
  21. security_policy_id = data.twingate_security_policy.default_policy.id
  22. }
  23. }
  24. is_active = true
  25. }