Skip to content

Commit

Permalink
Merge pull request #22743 from hashicorp/d/aws_subnet_ids-deprecated
Browse files Browse the repository at this point in the history
d/aws_subnet_ids: Deprecate
  • Loading branch information
ewbankkit authored Feb 1, 2022
2 parents 257b8b9 + 913722f commit b066229
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
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

0 comments on commit b066229

Please sign in to comment.