Skip to content

Commit

Permalink
Merge pull request #22877 from hashicorp/f-add-s3-bucket-object-depro
Browse files Browse the repository at this point in the history
Add s3_bucket_object deprecated copies
  • Loading branch information
YakDriver authored Feb 2, 2022
2 parents 02baa59 + 9c40cab commit 3f30734
Show file tree
Hide file tree
Showing 14 changed files with 4,640 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .changelog/22850.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
```release-note:note
data-source/aws_s3_bucket_object: The data source has been renamed. Use `aws_s3_object` instead
```release-note:new-resource
aws_s3_object
```

```release-note:note
data-source/aws_s3_bucket_objects: The data source has been renamed. Use `aws_s3_objects` instead
```release-note:new-data-source
aws_s3_object
```

```release-note:note
resource/aws_s3_bucket_object: The resource has been renamed. Use `aws_s3_object` instead
```
```release-note:new-data-source
aws_s3_objects
```
11 changes: 11 additions & 0 deletions .changelog/22877.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:note
data-source/aws_s3_bucket_object: The data source is deprecated; use `aws_s3_object` instead
```

```release-note:note
data-source/aws_s3_bucket_objects: The data source is deprecated; use `aws_s3_objects` instead
```

```release-note:note
resource/aws_s3_bucket_object: The resource is deprecated; use `aws_s3_object` instead
```
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ NOTES:
* data-source/aws_network_acls: The type of the `ids` attribute has changed from Set to List. If no NACLs match the specified criteria an empty list is returned (previously an error was raised) ([#21219](https://github.com/hashicorp/terraform-provider-aws/issues/21219))
* data-source/aws_network_interfaces: The type of the `ids` attribute has changed from Set to List. If no network interfaces match the specified criteria an empty list is returned (previously an error was raised) ([#21219](https://github.com/hashicorp/terraform-provider-aws/issues/21219))
* data-source/aws_route_tables: The type of the `ids` attribute has changed from Set to List. If no route tables match the specified criteria an empty list is returned (previously an error was raised) ([#21219](https://github.com/hashicorp/terraform-provider-aws/issues/21219))
* data-source/aws_s3_bucket_object: The data source has been renamed. Use `aws_s3_object` instead ([#22850](https://github.com/hashicorp/terraform-provider-aws/issues/22850))
* data-source/aws_s3_bucket_objects: The data source has been renamed. Use `aws_s3_objects` instead ([#22850](https://github.com/hashicorp/terraform-provider-aws/issues/22850))
* data-source/aws_security_groups: If no security groups match the specified criteria an empty list is returned (previously an error was raised) ([#21219](https://github.com/hashicorp/terraform-provider-aws/issues/21219))
* data-source/aws_ssoadmin_instances: The type of the `identity_store_ids` and `arns` attributes has changed from Set to List. If no instances match the specified criteria an empty list is returned (previously an error was raised) ([#21219](https://github.com/hashicorp/terraform-provider-aws/issues/21219))
* 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 ([#22743](https://github.com/hashicorp/terraform-provider-aws/issues/22743))
Expand All @@ -47,14 +45,16 @@ NOTES:
* resource/aws_elasticache_replication_group: The `replication_group_description` argument has been deprecated. All configurations using `replication_group_description` should be updated to use the `description` argument instead ([#22666](https://github.com/hashicorp/terraform-provider-aws/issues/22666))
* resource/aws_route: The `instance_id` argument has been deprecated. All configurations using `instance_id` should be updated to use the `network_interface_id` argument instead ([#22664](https://github.com/hashicorp/terraform-provider-aws/issues/22664))
* resource/aws_route_table: The `instance_id` argument of the `route` configuration block has been deprecated. All configurations using `route` `instance_id` should be updated to use the `route` `network_interface_id` argument instead ([#22664](https://github.com/hashicorp/terraform-provider-aws/issues/22664))
* resource/aws_s3_bucket_object: The resource has been renamed. Use `aws_s3_object` instead ([#22850](https://github.com/hashicorp/terraform-provider-aws/issues/22850))

FEATURES:

* **New Data Source:** `aws_ec2_client_vpn_endpoint` ([#14218](https://github.com/hashicorp/terraform-provider-aws/issues/14218))
* **New Data Source:** `aws_eips` ([#7537](https://github.com/hashicorp/terraform-provider-aws/issues/7537))
* **New Data Source:** `aws_s3_object` ([#22850](https://github.com/hashicorp/terraform-provider-aws/issues/22850))
* **New Data Source:** `aws_s3_objects` ([#22850](https://github.com/hashicorp/terraform-provider-aws/issues/22850))
* **New Resource:** `aws_s3_bucket_cors_configuration` ([#12141](https://github.com/hashicorp/terraform-provider-aws/issues/12141))
* **New Resource:** `aws_s3_bucket_versioning` ([#5132](https://github.com/hashicorp/terraform-provider-aws/issues/5132))
* **New Resource:** `aws_s3_object` ([#22850](https://github.com/hashicorp/terraform-provider-aws/issues/22850))

ENHANCEMENTS:

Expand Down
3 changes: 3 additions & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ func Provider() *schema.Provider {
"aws_s3_bucket": s3.DataSourceBucket(),
"aws_s3_object": s3.DataSourceObject(),
"aws_s3_objects": s3.DataSourceObjects(),
"aws_s3_bucket_object": s3.DataSourceBucketObject(), // DEPRECATED: use aws_s3_object instead
"aws_s3_bucket_objects": s3.DataSourceBucketObjects(), // DEPRECATED: use aws_s3_objects instead

"aws_sagemaker_prebuilt_ecr_image": sagemaker.DataSourcePrebuiltECRImage(),

Expand Down Expand Up @@ -1608,6 +1610,7 @@ func Provider() *schema.Provider {
"aws_s3_bucket_versioning": s3.ResourceBucketVersioning(),
"aws_s3_object": s3.ResourceObject(),
"aws_s3_object_copy": s3.ResourceObjectCopy(),
"aws_s3_bucket_object": s3.ResourceBucketObject(), // DEPRECATED: use aws_s3_object instead

"aws_s3_access_point": s3control.ResourceAccessPoint(),
"aws_s3control_access_point_policy": s3control.ResourceAccessPointPolicy(),
Expand Down
Loading

0 comments on commit 3f30734

Please sign in to comment.