Difference between revisions of "Cidr blocks"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
* [[Terraform resource]]: <code>[[aws_security_group_rule]]</code> | * [[Terraform resource]]: <code>[[aws_security_group_rule]]</code> | ||
* [[Terraform resource]]: <code>[[Terraform resource: aws_security_group|aws_security_group]]</code> | * [[Terraform resource]]: <code>[[Terraform resource: aws_security_group|aws_security_group]]</code> | ||
− | * <code>[[aws_vpc]]</code> | + | * <code>[[cidr_block]]</code> in <code>[[aws_vpc]]</code> |
* <code>[[for]]</code> | * <code>[[for]]</code> | ||
* <code>[[from_port]]</code> | * <code>[[from_port]]</code> |
Revision as of 14:13, 29 May 2023
cidr_blocks
in Teraform resources: aws_security_group_rule
and aws_security_group
Examples:
cidr_blocks = [for s in data.aws_subnet.your_all_public : s.cidr_block]
cidr_blocks = ["0.0.0.0/0"]
cidr_blocks = var.your_ips
cidr_blocks = [aws_vpc.example.cidr_block]
Related
- Terraform resource:
aws_security_group_rule
- Terraform resource:
aws_security_group
cidr_block
inaws_vpc
for
from_port
See also
Advertising: