Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: aws_vpc.<name>.cidr_block is missing in attribute reference #38034

Open
kschoenberger opened this issue Jun 19, 2024 · 3 comments · May be fixed by #38118
Open

[Docs]: aws_vpc.<name>.cidr_block is missing in attribute reference #38034

kschoenberger opened this issue Jun 19, 2024 · 3 comments · May be fixed by #38118
Labels
documentation Introduces or discusses updates to documentation. service/vpc Issues and PRs that pertain to the vpc service.

Comments

@kschoenberger
Copy link

Documentation Link

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc#attribute-reference

Description

In the documentation the attribute reference cidr_block is not mentioned, but it is supported in my TF code.

resource "aws_vpc" "test" {
  cidr_block           = "10.0.0.0/16"
  enable_dns_hostnames = true

  tags = {
    Name = "Test"
  }
}
output "vpc_cidr" {
  value = aws_vpc.test.cidr_block
}

when I apply the config, I get

Changes to Outputs:
  + vpc_cidr                          = "10.0.0.0/16"

AWS provider version 5.51.1
Terraform version v1.5.7

References

No response

Would you like to implement a fix?

None

@kschoenberger kschoenberger added the documentation Introduces or discusses updates to documentation. label Jun 19, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/vpc Issues and PRs that pertain to the vpc service. label Jun 19, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jun 19, 2024
@stefanfreitag
Copy link

Good morning @kschoenberger ,

there is a hint in the documentation on this.
image

I am looking into a similar issue ( #37908 ) and asked for general guidance for handling this.

@stefanfreitag
Copy link

If it's ok I will apply similar approach as I did in #37908 and come up with a PR.

@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Introduces or discusses updates to documentation. service/vpc Issues and PRs that pertain to the vpc service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants