Skip to content

Terraform module to manage VPC Security Group resources within the Yandex.Cloud.

License

Notifications You must be signed in to change notification settings

terraform-yacloud-modules/terraform-yandex-security-group

Repository files navigation

Yandex Cloud Security Group Terraform module

Terraform module which creates Yandex Cloud security group resources.

Examples

Examples codified under the examples are intended to give users references for how to use the module(s) as well as testing/validating changes to the source code of the module. If contributing to the project, please be sure to make any appropriate updates to the relevant examples to allow maintainers to test your changes and to keep the examples up to date for users. Thank you!

Requirements

Name Version
terraform >= 1.3

Providers

Name Version
yandex n/a

Modules

No modules.

Resources

Name Type
yandex_vpc_security_group.main resource
yandex_vpc_security_group_rule.egress resource
yandex_vpc_security_group_rule.ingress resource

Inputs

Name Description Type Default Required
blank_name Blank name which will be used for all resources string n/a yes
description Description of the security group string "" no
egress_rules Egress rules
map(object({
protocol = string
description = optional(string)
labels = optional(any)
from_port = optional(number)
to_port = optional(number)
port = optional(number)
predefined_target = optional(string)
v4_cidr_blocks = optional(list(string))
v6_cidr_blocks = optional(list(string))
}))
{} no
folder_id Folder ID string null no
ingress_rules Ingress rules
map(object({
protocol = string
description = optional(string)
labels = optional(any)
from_port = optional(number)
to_port = optional(number)
port = optional(number)
predefined_target = optional(string)
v4_cidr_blocks = optional(list(string))
v6_cidr_blocks = optional(list(string))
}))
{} no
labels A set of labels map(string) {} no
vpc_id VPC ID string n/a yes

Outputs

Name Description
id Security group ID
name Security group name

License

Apache-2.0 Licensed. See LICENSE.