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

d/aws_subnet_ids: Deprecate #22743

Merged
merged 5 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/22743.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
data-source/aws_subnet_ids: The `aws_subnet_ids` data source has been deprecated and will be removed in a future version. Use the `aws_subnets` data source instead
```
2 changes: 2 additions & 0 deletions internal/service/ec2/subnet_ids_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ func DataSourceSubnetIDs() *schema.Resource {
Required: true,
},
},
DeprecationMessage: `The aws_subnet_ids data source has been deprecated and will be removed in a future version. ` +
`Use the aws_subnets data source instead.`,
}
}

Expand Down
2 changes: 2 additions & 0 deletions website/docs/d/subnet_ids.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ description: |-

This resource can be useful for getting back a set of subnet ids for a vpc.

~> **NOTE:** The `aws_subnet_ids` data source has been deprecated and will be removed in a future version. Use the [`aws_subnets`](subnets.html) data source instead.

## Example Usage

The following shows outputing all cidr blocks for every subnet id in a vpc.
Expand Down