Skip to content

Commit 11c9425

Browse files
committed
Create Cloud Firewall access control policy
1 parent cb41495 commit 11c9425

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Providers
3+
4+
| Name | Version |
5+
|------|---------|
6+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
7+
8+
## Modules
9+
10+
No modules.
11+
12+
## Resources
13+
14+
| Name | Type |
15+
|------|------|
16+
| [alicloud_cloud_firewall_control_policy.example](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cloud_firewall_control_policy) | resource |
17+
18+
## Inputs
19+
20+
No inputs.
21+
<!-- END_TF_DOCS -->
22+
23+
## Documentation
24+
<!-- docs-link -->
25+
26+
The template is based on Aliyun document: [Create Cloud Firewall access control policy](http://help.aliyun.com/document_detail/2245584.htm)
27+
28+
<!-- docs-link -->
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
resource "alicloud_cloud_firewall_control_policy" "example" {
2+
# 访问控制策略支持的应用类型。有效值:ANY, HTTP, HTTPS, MQTT, Memcache, MongoDB, MySQL, RDP, Redis, SMTP, SMTPS, SSH, SSL, VNC。
3+
application_name = "ANY"
4+
# 云防火墙对流量执行的操作。有效值:accept, drop, log。
5+
acl_action = "accept"
6+
# 描述
7+
description = "Created_by_terraform"
8+
# 访问控制策略中的目标地址类型。有效值:net, group, domain, location。
9+
destination_type = "net"
10+
# 访问控制策略中的目标地址。
11+
destination = "100.X.X.0/24"
12+
# 访问控制策略适用的流量方向。有效值:in, out。
13+
direction = "out"
14+
# 访问控制策略支持的协议类型。有效值:ANY, TCP, UDP, ICMP。
15+
proto = "ANY"
16+
# 访问控制策略中的源地址。
17+
source = "1.X.X.0/24"
18+
# 访问控制策略中的源地址类型。有效值:net, group, location。
19+
source_type = "net"
20+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)