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.
- Host: GitHub
- URL: https://github.com/terraform-yacloud-modules/terraform-yandex-security-group
- Owner: terraform-yacloud-modules
- License: apache-2.0
- Created: 2023-02-16T13:06:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T11:54:52.000Z (12 months ago)
- Last Synced: 2024-10-28T13:52:43.549Z (12 months ago)
- Topics: hacktoberfest, iac, terraform, terraform-modules, yandex, yandex-cloud
- Language: HCL
- Homepage:
- Size: 75.2 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
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({| `{}` | no |
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))
}))
| [folder\_id](#input\_folder\_id) | Folder ID | `string` | `null` | no |
| [ingress\_rules](#input\_ingress\_rules) | Ingress rules |map(object({| `{}` | no |
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))
}))
| [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).