scaleway/terraform-scaleway-security_group-1
forked from scaleway-terraform-modules/terraform-scaleway-security_group
Captured source
source ↗scaleway/terraform-scaleway-security_group-1
Description: Manage Scaleway security groups with Terraform.
License: MPL-2.0
Stars: 0
Forks: 0
Open issues: 0
Created: 2023-06-06T14:56:47Z
Pushed: 2023-04-29T15:30:49Z
Default branch: main
Fork: yes
Parent repository: scaleway-terraform-modules/terraform-scaleway-security_group
Archived: no
README:
Terraform / Scaleway
Purpose
This repository is used to create a security group on scaleway using terraform.
Usage
- 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"
}Requirements
| Name | Version | |------|---------| | [terraform](#requirement_terraform) | >= 0.13 | | [scaleway](#requirement_scaleway) | >= 2.3.0 |
Resources
| Name | Type | |------|------| | scaleway_instance_security_group.this | resource | | scaleway_instance_security_group_rules.this | resource |
Inputs
| Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | [enable_default_security](#input_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](#input_inbound_default_policy) | Default policy on incoming traffic. Possible values are: accept or drop. | string | "drop" | no | | [inbound_rules](#input_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](#input_name) | Name of the security group. | string | null | no | | [outbound_default_policy](#input_outbound_default_policy) | Default policy on outgoing traffic. Possible values are: accept or drop. | string | "drop" | no | | [outbound_rules](#input_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 | | [stateful](#input_stateful) | Boolean to specify whether the security group should be stateful or not. | bool | true | no | | [tags](#input_tags) | Tags associated with the security group and its rules. | list(any) | []` | no |
Outputs
| Name | Description | |------|-------------| | [group_id](#output_group_id) | ID of the security group. |
Authors
Module is maintained with help from the community.
License
Mozilla Public License 2.0 Licensed. See LICENSE for full details.
Excerpt shown — open the source for the full document.