Difference between revisions of "Cidr blocks"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
* <code>[[aws_security_group_rule]]</code> | * <code>[[aws_security_group_rule]]</code> | ||
* <code>[[Terraform resource: aws_security_group|aws_security_group]]</code> | * <code>[[Terraform resource: aws_security_group|aws_security_group]]</code> | ||
− | |||
− | Examples | + | == Examples == |
* <code>cidr_blocks = [for s in [[data.aws_subnet]].your_all_public : s.cidr_block]</code> | * <code>cidr_blocks = [for s in [[data.aws_subnet]].your_all_public : s.cidr_block]</code> | ||
* <code>cidr_blocks = ["0.0.0.0/0"]</code> | * <code>cidr_blocks = ["0.0.0.0/0"]</code> | ||
* <code>cidr_blocks = var.your_ips</code> | * <code>cidr_blocks = var.your_ips</code> | ||
* <code>cidr_blocks = [aws_vpc.example.cidr_block]</code> | * <code>cidr_blocks = [aws_vpc.example.cidr_block]</code> | ||
− | |||
− | |||
− | |||
Latest revision as of 14:15, 29 May 2023
cidr_blocks
in Terraform resources:
Examples[edit]
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[edit]
- Terraform resource:
aws_security_group_rule
- Terraform resource:
aws_security_group
cidr_block
inaws_vpc
for
from_port
inaws_security_group_rule
See also[edit]
Advertising: