This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
How to use data-source?
Post Flair (click to view more posts with a particular flair)
Post Body
I have vpc and subnets in aws already created that I want to declare in terraform using data-source.
data "aws_subnets" "private" {
count = 2
vpc_id = data.aws_vpcs.perm_vpc.ids[0]
filter = [
{
name = "tag:Type"
values = ["private"]
},
{
name = "tag:Environment"
values = ["production"]
},
]
}
Using the block above I get an error: Unexpected attribute: An attribute named "vpc_id" is not expected here
How else can I declare vpc?
Author
Account Strength
50%
Account Age
2 years
Verified Email
Yes
Verified Flair
No
Total Karma
463
Link Karma
402
Comment Karma
46
Profile updated: 2 days ago
Posts updated: 1 week ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 11 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/Terraform/c...