An open API service indexing awesome lists of open source software.

https://github.com/terraform-yacloud-modules/terraform-yandex-security-group

Terraform module to manage VPC Security Group resources within the Yandex.Cloud.
https://github.com/terraform-yacloud-modules/terraform-yandex-security-group

hacktoberfest iac terraform terraform-modules yandex yandex-cloud

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# Yandex Cloud Security Group Terraform module

Terraform module which creates Yandex Cloud security group resources.

## Examples

Examples codified under
the [`examples`](https://github.com/terraform-yacloud-modules/terraform-yandex-security-group/tree/main/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](#requirement\_terraform) | >= 1.3 |
| [yandex](#requirement\_yandex) | >= 0.72.0 |

## Providers

| Name | Version |
|------|---------|
| [yandex](#provider\_yandex) | >= 0.72.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [yandex_vpc_security_group.main](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/vpc_security_group) | resource |
| [yandex_vpc_security_group_rule.egress](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/vpc_security_group_rule) | resource |
| [yandex_vpc_security_group_rule.ingress](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/vpc_security_group_rule) | resource |
| [yandex_vpc_security_group.egress](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/data-sources/vpc_security_group) | data source |
| [yandex_vpc_security_group.ingress](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/data-sources/vpc_security_group) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [blank\_name](#input\_blank\_name) | Blank name which will be used for all resources | `string` | n/a | yes |
| [description](#input\_description) | Description of the security group | `string` | `""` | no |
| [egress\_rules](#input\_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)
security_group_name = optional(string)
security_group_id = optional(string)
predefined_target = optional(string)
v4_cidr_blocks = optional(list(string))
v6_cidr_blocks = optional(list(string))
}))
| `{}` | no |
| [folder\_id](#input\_folder\_id) | Folder ID | `string` | `null` | no |
| [ingress\_rules](#input\_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)
security_group_name = optional(string)
security_group_id = optional(string)
predefined_target = optional(string)
v4_cidr_blocks = optional(list(string))
v6_cidr_blocks = optional(list(string))
}))
| `{}` | no |
| [labels](#input\_labels) | A set of labels | `map(string)` | `{}` | no |
| [vpc\_id](#input\_vpc\_id) | VPC ID | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [id](#output\_id) | Security group ID |
| [name](#output\_name) | Security group name |

## License

Apache-2.0 Licensed.
See [LICENSE](https://github.com/terraform-yacloud-modules/terraform-yandex-security-group/blob/main/LICENSE).