This repository is used to create a security group on scaleway using terraform.
- Setup the scaleway provider in your tf file.
- Include this module in your tf file. Refer to documentation.
module "my_sg" {
source = "scaleway-terraform-modules/security_group/scaleway"
version = "1.0.2"
}
Name | Version |
---|---|
terraform | >= 0.13 |
scaleway | >= 2.3.0 |
Name | Type |
---|---|
scaleway_instance_security_group.this | resource |
scaleway_instance_security_group_rules.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
create_sg | Whether you choose to create a new security group. Set to false if you want to use already existing group. | bool |
true |
no |
enable_default_security | Whether to block SMTP on IPv4/IPv6 (Port 25, 465, 587). Set to false will unblock SMTP if your account is authorized to. If your organization is not yet authorized to send SMTP traffic, open a support ticket. | bool |
true |
no |
inbound_default_policy | Default policy on incoming traffic. Possible values are: accept or drop. | string |
"drop" |
no |
inbound_rules | List of inbound rule to add to the security group. | list(object({ action = string protocol = string port = optional(number) port_range = optional(string) ip = optional(string) ip_range = optional(string) })) |
[ { "action": null, "ip": null, "ip_range": null, "port": null, "port_range": null, "protocol": null } ] |
no |
name | Name of the security group. | string |
null |
no |
outbound_default_policy | Default policy on outgoing traffic. Possible values are: accept or drop. | string |
"drop" |
no |
outbound_rules | List of outbound rule to add to the security group. | list(object({ action = string protocol = string port = optional(number) port_range = optional(string) ip = optional(string) ip_range = optional(string) })) |
[ { "action": null, "ip": null, "ip_range": null, "port": null, "port_range": null, "protocol": null } ] |
no |
security_group_description | Security Group description | string |
"" |
no |
security_group_id | Whether you choose to use and existing security group. | string |
"" |
no |
sg_tags | Additional tags for the Security Groups | list(string) |
[] |
no |
stateful | Boolean to specify whether the security group should be stateful or not. | bool |
true |
no |
tags | Tags associated with the security group and its rules. | list(any) |
[] |
no |
Name | Description |
---|---|
group_id | ID of the security group. |
security_group_description | The description of the security group |
security_group_id | The ID of the security group |
security_group_name | The name of the security group |
Module is maintained with help from the community.
Mozilla Public License 2.0 Licensed. See LICENSE for full details.