diff --git a/.changelog/22743.txt b/.changelog/22743.txt new file mode 100644 index 00000000000..78e2435e071 --- /dev/null +++ b/.changelog/22743.txt @@ -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 +``` \ No newline at end of file diff --git a/internal/service/ec2/subnet_ids_data_source.go b/internal/service/ec2/subnet_ids_data_source.go index 995609d39f2..8185b2d40d5 100644 --- a/internal/service/ec2/subnet_ids_data_source.go +++ b/internal/service/ec2/subnet_ids_data_source.go @@ -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.`, } } diff --git a/website/docs/d/subnet_ids.html.markdown b/website/docs/d/subnet_ids.html.markdown index 47d5a7a2540..7aa8fdc1180 100644 --- a/website/docs/d/subnet_ids.html.markdown +++ b/website/docs/d/subnet_ids.html.markdown @@ -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.