Skip to content

Latest commit

 

History

History
89 lines (66 loc) · 2.84 KB

File metadata and controls

89 lines (66 loc) · 2.84 KB

Terraform Module for creating Cloud Firewall resources on Alibaba Cloud.

terraform-alicloud-cloud-firewall

English | 简体中文

Terraform module which creating Cloud Firewall instance and access control on Alibaba Cloud

These types of resources are supported:

Usage

module "example" {
  source = "terraform-alicloud-modules/terraform-alicloud-cloud-firewall/alicloud"
  create_cloud_firewall_instance = false
  create_cloud_firewall_policies = true
  policies = [
    {
      application_name = "ANY"
      acl_action       = "accept"
      description      = "policy_test_1"
      destination_type = "net"
      destination      = "192.1.1.0/24"
      direction        = "out"
      proto            = "ANY"
      source           = "114.2.3.0/24"
      source_type      = "net"
    },
    {
      application_name = "HTTP"
      acl_action       = "drop"
      description      = "policy_test_2"
      destination_type = "net"
      dest_port_type   = "port"
      dest_port        = "22/22"
      destination      = "100.1.1.0/24"
      direction        = "in"
      proto            = "TCP"
      source           = "[\"BJ11\"]"
      source_type      = "location"
    }
  ]
}

Notes

  • This module using AccessKey and SecretKey are from profile and shared_credentials_file. If you have not set them yet, please install aliyun-cli and configure it.

Requirements

Name Version
terraform > = 0.13.0
alicloud > = 1.139.0

Providers

Name Version
alicloud > = 1.139.0

Submit Issues

If you have any problems when using this module, please opening a provider issue and let us know.

Note: There does not recommend opening an issue on this repo.

Authors

Created and maintained by Alibaba Cloud Terraform Team([email protected])

License

MIT Licensed. See LICENSE for full details.

Reference