Skip to content

Commit

Permalink
Update the name of the resource to be more accurate.
Browse files Browse the repository at this point in the history
The resource name `subnet` is misleading in this example, because it's returning a security group, not the subnet. It makes more sense to call this `subnet_security_group` to indicate that this is the security group attached to the subnet.
  • Loading branch information
thoward authored Oct 17, 2024
1 parent af64d96 commit b66748f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/d/subnet.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data "aws_subnet" "selected" {
id = var.subnet_id
}
resource "aws_security_group" "subnet" {
resource "aws_security_group" "subnet_security_group" {
vpc_id = data.aws_subnet.selected.vpc_id
ingress {
Expand Down

0 comments on commit b66748f

Please sign in to comment.