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

Merge release/4.x into main #22776

Merged
merged 116 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
0c8f381
Fix data source aws_vpc_peering_connections
Feb 1, 2021
b0b7b7e
Prevent potential panics
borancar Feb 11, 2021
10c02d6
Re-add fmt
borancar Feb 11, 2021
ce2a468
r/route and r/route_table: deprecate 'instance_id'
anGie44 Jan 19, 2022
256b7f5
Update CHANGELOG for #22664
anGie44 Jan 19, 2022
e720762
Update CHANGELOG.md
anGie44 Jan 19, 2022
40333d1
add acceptance test coverage
anGie44 Jan 20, 2022
b68c7a3
Add resource aws_s3_bucket_versioning
devonbleak Jul 9, 2018
dd55a03
CR updates: align with API and update overall provider design patterns
anGie44 Jan 21, 2022
8bfa32e
Update CHANGELOG for #5132
anGie44 Jan 21, 2022
b4243b4
first draft
dirk39 Dec 14, 2021
887a7cf
ok
dirk39 Dec 14, 2021
2765485
test ok. manage destroy
dirk39 Dec 15, 2021
f4b6ecb
test ok. destroy ok
dirk39 Dec 15, 2021
5de2b4c
test ok. destroy ok
dirk39 Dec 15, 2021
59b4246
updated doc
dirk39 Dec 16, 2021
729aaa9
Revert "updated doc"
ewbankkit Jan 18, 2022
190dd9a
Revert "test ok. destroy ok"
ewbankkit Jan 18, 2022
bf165a4
Revert "test ok. destroy ok"
ewbankkit Jan 18, 2022
1cf4151
Revert "test ok. manage destroy"
ewbankkit Jan 18, 2022
149c905
Revert "ok"
ewbankkit Jan 18, 2022
35d8a1c
Revert "first draft"
ewbankkit Jan 18, 2022
dad5ce4
r/aws_default_subnet: Full resource life cycle. First baby steps.
ewbankkit Jan 11, 2022
df1b1d8
r/aws_default_subnet: Full resource life cycle. Playing with some ide…
ewbankkit Jan 11, 2022
9bcb971
r/aws_default_subnet: 'map_public_ip_on_launch' has a Default of true.
ewbankkit Jan 12, 2022
b0a4cff
Additional 'modifySubnetAttriute' functions.
ewbankkit Jan 12, 2022
dac9641
r/aws_default_subnet: Complete 'modifySubnetAttributesOnCreate'.
ewbankkit Jan 12, 2022
e75de89
r/aws_default_subnet: Set tags on resource Create.
ewbankkit Jan 13, 2022
4e8e622
r/aws_default_subnet: Corrections after some testing.
ewbankkit Jan 13, 2022
620561e
'setting' -> 'modifying' in error messages.
ewbankkit Jan 14, 2022
bcc1545
r/aws_default_vpc: Don't reuse ResourceVPC's schema.
ewbankkit Jan 19, 2022
f67f5cf
Tidy up subnet and VPC sweepers.
ewbankkit Jan 19, 2022
3ba4b91
r/aws_default_vpc: IPv6 changes.
ewbankkit Jan 19, 2022
452eeda
r/aws_default_vpc: Test IPv6 changes.
ewbankkit Jan 19, 2022
e59720d
r/aws_default_vpc and r/aws_default_subnet: Serialize tests.
ewbankkit Jan 19, 2022
fea52f3
Store any new IPv6 CIDR block association ID to state.
ewbankkit Jan 19, 2022
cb90c4e
Add 'testAccPreCheckDefaultVPCAvailable'.
ewbankkit Jan 20, 2022
0af65b9
Add 'testAccPreCheckDefaultSubnetAvailable'.
ewbankkit Jan 20, 2022
9581c6c
r/aws_default_vpc and r/aws_default_subnet: Check existence in TestCa…
ewbankkit Jan 20, 2022
aef55cb
Add CHANGELOG entry.
ewbankkit Jan 20, 2022
8be68b0
d/aws_vpcs: Return empty list when no VPCs match.
ewbankkit Jan 20, 2022
44e70ae
EC2: 'testCheckResourceAttrGreaterThanValue' -> 'acctest.CheckResourc…
ewbankkit Jan 20, 2022
810c9f3
EKS: 'testCheckResourceAttrGreaterThanValue' -> 'acctest.CheckResourc…
ewbankkit Jan 20, 2022
6d797fe
r/aws_default_subnet: Add 'testAccEC2DefaultSubnet_privateDnsNameOpti…
ewbankkit Jan 20, 2022
d094e9d
r/aws_default_vpc: Add `force_destroy` and create new tests.
ewbankkit Jan 20, 2022
d16ad13
r/aws_default_subnet: Additional tests.
ewbankkit Jan 20, 2022
b69e4c8
r/aws_default_subnet: Ensure default subnets are recreated.
ewbankkit Jan 21, 2022
de1d44f
r/aws_default_subnet & r/aws_default_vpc: Don't run acceptance tests …
ewbankkit Jan 21, 2022
b602443
Documentation updates.
ewbankkit Jan 21, 2022
cccf81c
aws_vpn_connection resource's customer_gateway_configuration should b…
b-dean Oct 22, 2020
dac0077
Add CHANGELOG entry.
ewbankkit Jan 24, 2022
6f37266
Added data source 'aws_eips'. (#7537)
Dchamard Jan 25, 2022
0f21120
Add default values to aws_vpn_connection (#17031)
shoekstra Jan 26, 2022
ea9c5a1
removed field instance_interruption_behaviour from spot_instance_request
dirk39 Nov 13, 2021
5b547b8
removed unused function
dirk39 Nov 14, 2021
99d0e83
remove :* suffix
maquessime Dec 3, 2021
2de9a9a
add missing import and update data source tests
anGie44 Jan 26, 2022
73acefd
Update CHANGELOG for #22043
anGie44 Jan 26, 2022
33621dd
Return empty list when aws_security_groups doesnt match any SG
jordiprats Oct 20, 2021
a20b0bf
Add option to allow no results when querying for instances data
Jul 2, 2018
2ad066a
Revert "Add option to allow no results when querying for instances data"
ewbankkit Jan 25, 2022
46b20b4
d/aws_security_groups: Alphabetize attributes.
ewbankkit Jan 25, 2022
4f64a37
d/aws_security_groups: Use `FindSecurityGroups`.
ewbankkit Jan 25, 2022
d017930
Add CHANGELOG entry.
ewbankkit Jan 25, 2022
dd301bb
Add and use 'FindInstances'.
ewbankkit Jan 25, 2022
f1e3bc4
d/aws_instances: Use 'FindInstances'.
ewbankkit Jan 25, 2022
3c84e9e
d/aws_route_tables: Call 'FindRouteTables'.
ewbankkit Jan 25, 2022
aef05f9
d/aws_network_interfaces: Allow empty results.
ewbankkit Jan 25, 2022
94079f8
d/aws_network_acls: Use 'FindNetworkACLs'.
ewbankkit Jan 25, 2022
74f416a
d/aws_ec2_transit_gateway_route_tables: Add and use 'FindTransitGatew…
ewbankkit Jan 25, 2022
d238e5f
d/aws_coip_pools: Add and use 'FindCOIPPools'.
ewbankkit Jan 25, 2022
6c25f8d
d/aws_ec2_local_gateway_route_tables: Add and use 'FindLocalGatewayRo…
ewbankkit Jan 25, 2022
284ae31
d/aws_ec2_local_gateway_virtual_interface_groups: Add and use 'FindLo…
ewbankkit Jan 26, 2022
419665a
d/aws_ec2_local_gateways: Add and use 'FindLocalGateways'.
ewbankkit Jan 26, 2022
923ae04
d/aws_ebs_volumes: Add and use 'FindEBSVolumes'.
ewbankkit Jan 26, 2022
7dc7ca9
'CustomFiltersSchema' -> 'DataSourceFiltersSchema'.
ewbankkit Jan 26, 2022
a0c42d7
d/aws_cognito_user_pools: Allow no pools to be selected.
ewbankkit Jan 26, 2022
f145d79
d/aws_ip_ranges: Allow empty results.
ewbankkit Jan 26, 2022
51375d7
d/aws_efs_access_points: Allow empty results.
ewbankkit Jan 26, 2022
b466351
d/aws_emr_release_labels: Allow empty result.
ewbankkit Jan 26, 2022
6d5fbae
d/aws_ssoadmin_instances: Allow empty results.
ewbankkit Jan 26, 2022
a710572
d/aws_instances: Correct argument name.
ewbankkit Jan 26, 2022
4b18551
Add aws_s3_bucket_cors_configuration resource (#12141)
drexler Jan 27, 2022
0e32c10
r/aws_ecs_cluster: deprecate the capacity_providers & default_capacit…
roberth-k Jan 26, 2022
eb47150
add changelog entry for #22783
roberth-k Jan 26, 2022
e1997c6
rebase error: remove pre SP file
anGie44 Jan 28, 2022
7430e73
f/aws_securityhub_member: email is optional variable
nikhil-goenka Apr 22, 2021
1a050ac
f/aws_securityhub_member: email is optional variable
nikhil-goenka Apr 25, 2021
f2efcdb
f/aws_securityhub_member: email is optional variable
nikhil-goenka Apr 22, 2021
3ec20b3
f/aws_securityhub_member: email is optional variable
nikhil-goenka Apr 25, 2021
fc6d374
f/aws_securityhub_member: email is optional variable
nikhil-goenka Apr 22, 2021
7b72b58
f/aws_securityhub_member: email is optional variable
nikhil-goenka Apr 25, 2021
41104eb
resource/aws_elasticache_global_replication_group: Remove deprecated …
nikhil-goenka May 2, 2021
a6ff35b
fix rebase errors
anGie44 Jan 28, 2022
4a38623
Rename s3_bucket_object to s3_object
YakDriver Jan 31, 2022
7e28324
Update examples
YakDriver Jan 31, 2022
885c687
Update s3 package
YakDriver Jan 31, 2022
9730341
tests: Update tests
YakDriver Jan 31, 2022
2b3a615
s3/docs: Update docs
YakDriver Jan 31, 2022
be19818
docs: Update docs
YakDriver Jan 31, 2022
7709325
docs: Rename files
YakDriver Jan 31, 2022
c7f2a8e
Rename files
YakDriver Jan 31, 2022
d6d5afd
Update messages
YakDriver Jan 31, 2022
266219b
Update messages
YakDriver Jan 31, 2022
8c627ef
Change names
YakDriver Jan 31, 2022
1706bbb
Update functions, consts, etc
YakDriver Jan 31, 2022
a41b924
Update data sources
YakDriver Jan 31, 2022
5e95780
Update function names
YakDriver Jan 31, 2022
2033587
Update sweeper
YakDriver Jan 31, 2022
2dad84e
Update miscellaneous
YakDriver Jan 31, 2022
811c0c8
Misc updates
YakDriver Jan 31, 2022
585486e
Update CHANGELOG.md for #22850
Jan 31, 2022
3b93884
run gofmt after rebase
anGie44 Jan 31, 2022
0f8ee56
fix link in changelog entry
anGie44 Jan 31, 2022
36ce5ae
add changelog entry for renamed resource/data-source
anGie44 Jan 31, 2022
b6c3481
remove 3.75.0 section to allow those entries be regenerated into the …
anGie44 Jan 31, 2022
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/12141.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_s3_bucket_cors_configuration
```
3 changes: 3 additions & 0 deletions .changelog/15806.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_vpn_connection: Mark `customer_gateway_configuration` as [`Sensitive`](https://www.terraform.io/plugin/sdkv2/best-practices/sensitive-state#using-the-sensitive-flag)
```
3 changes: 3 additions & 0 deletions .changelog/17031.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_vpn_connection: Add the ability to revert changes to unconfigured tunnel options made outside of Terraform to their [documented default values](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPNTunnels.html)
```
3 changes: 3 additions & 0 deletions .changelog/17382.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
data-source/aws_vpc_peering_connections: Return empty array instead of error when no connections found.
```
67 changes: 67 additions & 0 deletions .changelog/21219.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
```release-note:note
data-source/aws_security_groups: If no security groups match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
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)
```

```release-note:note
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)
```

```release-note:note
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)
```

```release-note:note
data-source/aws_ec2_transit_gateway_route_tables: The type of the `ids` attribute has changed from Set to List. If no transit gateway route tables match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_ec2_coip_pools: The type of the `pool_ids` attribute has changed from Set to List. If no COIP pools match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_ec2_local_gateway_route_tables: The type of the `ids` attribute has changed from Set to List. If no local gateway route tables match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_ec2_local_gateway_virtual_interface_groups: The type of the `ids` and `local_gateway_virtual_interface_ids` attributes has changed from Set to List. If no local gateway virtual interface groups match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_ec2_local_gateways: The type of the `ids` attribute has changed from Set to List. If no local gateways match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_ebs_volumes: The type of the `ids` attribute has changed from Set to List. If no volumes match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_cognito_user_pools: The type of the `ids` and `arns` attributes has changed from Set to List. If no volumes match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_ip_ranges: If no ranges match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_efs_access_points: The type of the `ids` and `arns` attributes has changed from Set to List. If no access points match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_emr_release_labels: The type of the `ids` attribute has changed from Set to List. If no release labels match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_inspector_rules_packages: If no rules packages match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
data-source/aws_db_event_categories: The type of the `ids` attribute has changed from Set to List. If no event categories match the specified criteria an empty list is returned (previously an error was raised)
```

```release-note:note
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)
```
3 changes: 3 additions & 0 deletions .changelog/22043.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
data-source/aws_cloudwatch_log_group: Automatically trim `:*` suffix from `arn` attribute
```
11 changes: 11 additions & 0 deletions .changelog/22253.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:note
resource/aws_default_subnet: If no default subnet exists in the specified Availability Zone one is now created. The `force_destroy` destroy argument has been added (defaults to `false`). Setting this argument to `true` deletes the default subnet on `terraform destroy`
```

```release-note:note
resource/aws_default_vpc: If no default VPC exists in the current AWS Region one is now created. The `force_destroy` destroy argument has been added (defaults to `false`). Setting this argument to `true` deletes the default VPC on `terraform destroy`
```

```release-note:note
data-source/aws_vpcs: The type of the `ids` attributes has changed from Set to List. If no VPCs match the specified criteria an empty list is returned (previously an error was raised)
```
7 changes: 7 additions & 0 deletions .changelog/22664.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:note
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
```

```release-note:note
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
```
3 changes: 3 additions & 0 deletions .changelog/22783.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
resource/aws_ecs_cluster: The `capacity_providers` and `default_capacity_provider_strategy` arguments have been deprecated. Use the `aws_ecs_cluster_capacity_providers` resource instead.
```
11 changes: 11 additions & 0 deletions .changelog/22850.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 has been renamed. Use `aws_s3_object` instead
```

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

```release-note:note
resource/aws_s3_bucket_object: The resource has been renamed. Use `aws_s3_object` instead
```
3 changes: 3 additions & 0 deletions .changelog/5055.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:note
data-source/aws_instances: If no instances match the specified criteria an empty list is returned (previously an error was raised)
```
3 changes: 3 additions & 0 deletions .changelog/5132.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_s3_bucket_versioning
```
3 changes: 3 additions & 0 deletions .changelog/7537.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-data-source
aws_eips
```
2 changes: 1 addition & 1 deletion .semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ rules:
- internal/service/mq/forge_test.go
- internal/service/route53/sweep.go
- internal/service/s3/bucket_test.go
- internal/service/s3/bucket_object_test.go
- internal/service/s3/object_test.go
- internal/service/storagegateway/cached_iscsi_volume.go
- internal/service/storagegateway/cached_iscsi_volume_test.go
- internal/service/storagegateway/stored_iscsi_volume_test.go
Expand Down
45 changes: 41 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,50 @@
## 3.75.0 (Unreleased)
## 4.0.0 (Unreleased)

NOTES:

* data-source/aws_cognito_user_pools: The type of the `ids` and `arns` attributes has changed from Set to List. If no volumes 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_db_event_categories: The type of the `ids` attribute has changed from Set to List. If no event categories 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_ebs_volumes: The type of the `ids` attribute has changed from Set to List. If no volumes 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_ec2_coip_pools: The type of the `pool_ids` attribute has changed from Set to List. If no COIP pools 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_ec2_local_gateway_route_tables: The type of the `ids` attribute has changed from Set to List. If no local gateway 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_ec2_local_gateway_virtual_interface_groups: The type of the `ids` and `local_gateway_virtual_interface_ids` attributes has changed from Set to List. If no local gateway virtual interface 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_ec2_local_gateways: The type of the `ids` attribute has changed from Set to List. If no local gateways 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_ec2_transit_gateway_route_tables: The type of the `ids` attribute has changed from Set to List. If no transit gateway 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_efs_access_points: The type of the `ids` and `arns` attributes has changed from Set to List. If no access points 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_emr_release_labels: The type of the `ids` attribute has changed from Set to List. If no release labels 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_inspector_rules_packages: If no rules packages 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_instances: If no instances match the specified criteria an empty list is returned (previously an error was raised) ([#5055](https://github.com/hashicorp/terraform-provider-aws/issues/5055))
* data-source/aws_ip_ranges: If no ranges 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_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_vpcs: The type of the `ids` attributes has changed from Set to List. If no VPCs match the specified criteria an empty list is returned (previously an error was raised) ([#22253](https://github.com/hashicorp/terraform-provider-aws/issues/22253))
* resource/aws_default_subnet: If no default subnet exists in the specified Availability Zone one is now created. The `force_destroy` destroy argument has been added (defaults to `false`). Setting this argument to `true` deletes the default subnet on `terraform destroy` ([#22253](https://github.com/hashicorp/terraform-provider-aws/issues/22253))
* resource/aws_default_vpc: If no default VPC exists in the current AWS Region one is now created. The `force_destroy` destroy argument has been added (defaults to `false`). Setting this argument to `true` deletes the default VPC on `terraform destroy` ([#22253](https://github.com/hashicorp/terraform-provider-aws/issues/22253))
* resource/aws_ecs_cluster: The `capacity_providers` and `default_capacity_provider_strategy` arguments have been deprecated. Use the `aws_ecs_cluster_capacity_providers` resource instead. ([#22783](https://github.com/hashicorp/terraform-provider-aws/issues/22783))
* 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_eips` ([#7537](https://github.com/hashicorp/terraform-provider-aws/issues/7537))
* **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))

ENHANCEMENTS:

* data-source/aws_imagebuilder_distribution_configuration: Add `container_distribution_configuration` attribute to the `distribution` configuration block ([#22838](https://github.com/hashicorp/terraform-provider-aws/issues/22838))
* resource/aws_imagebuilder_image_recipe: Add `parameter` argument to the `component` configuration block ([#22837](https://github.com/hashicorp/terraform-provider-aws/issues/22837))
* data-source/aws_cloudwatch_log_group: Automatically trim `:*` suffix from `arn` attribute ([#22043](https://github.com/hashicorp/terraform-provider-aws/issues/22043))
* resource/aws_vpn_connection: Add the ability to revert changes to unconfigured tunnel options made outside of Terraform to their [documented default values](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPNTunnels.html) ([#17031](https://github.com/hashicorp/terraform-provider-aws/issues/17031))
* resource/aws_vpn_connection: Mark `customer_gateway_configuration` as [`Sensitive`](https://www.terraform.io/plugin/sdkv2/best-practices/sensitive-state#using-the-sensitive-flag) ([#15806](https://github.com/hashicorp/terraform-provider-aws/issues/15806))

BUG FIXES:

* resource/aws_cloudformation_stack: Retry resource Create and Update for IAM eventual consistency ([#22840](https://github.com/hashicorp/terraform-provider-aws/issues/22840))
* data-source/aws_vpc_peering_connections: Return empty array instead of error when no connections found. ([#17382](https://github.com/hashicorp/terraform-provider-aws/issues/17382))
* resource/aws_route_table_association: Handle nil 'AssociationState' in ISO regions ([#22806](https://github.com/hashicorp/terraform-provider-aws/issues/22806))

## 3.74.0 (January 28, 2022)
Expand Down
4 changes: 2 additions & 2 deletions examples/s3-cross-account-access/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ resource "aws_s3_bucket" "prod" {
POLICY
}

resource "aws_s3_bucket_object" "prod" {
resource "aws_s3_object" "prod" {
provider = aws.prod

bucket = aws_s3_bucket.prod.id
Expand All @@ -50,7 +50,7 @@ provider "aws" {
secret_key = var.test_secret_key
}

resource "aws_s3_bucket_object" "test" {
resource "aws_s3_object" "test" {
provider = aws.test

bucket = aws_s3_bucket.prod.id
Expand Down
2 changes: 1 addition & 1 deletion examples/sagemaker/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ resource "aws_s3_bucket" "foo" {
force_destroy = true
}

resource "aws_s3_bucket_object" "object" {
resource "aws_s3_object" "object" {
bucket = aws_s3_bucket.foo.bucket
key = "model.tar.gz"
source = "model.tar.gz"
Expand Down
29 changes: 29 additions & 0 deletions internal/acctest/acctest.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,15 @@ func PreCheckRegion(t *testing.T, region string) {
}
}

// PreCheckRegionNot checks that the test region is not one of the specified regions.
func PreCheckRegionNot(t *testing.T, regions ...string) {
for _, region := range regions {
if Region() == region {
t.Skipf("skipping tests; %s (%s) not supported", conns.EnvVarDefaultRegion, region)
}
}
}

// PreCheckPartition checks that the test partition is the specified partition.
func PreCheckPartition(partition string, t *testing.T) {
if Partition() != partition {
Expand Down Expand Up @@ -1844,3 +1853,23 @@ func CheckCallerIdentityAccountID(n string) resource.TestCheckFunc {
return nil
}
}

func CheckResourceAttrGreaterThanValue(n, key, value string) resource.TestCheckFunc {
return func(s *terraform.State) error {
rs, ok := s.RootModule().Resources[n]
if !ok {
return fmt.Errorf("Not found: %s", n)
}

if v, ok := rs.Primary.Attributes[key]; !ok || !(v > value) {
if !ok {
return fmt.Errorf("%s: Attribute %q not found", n, key)
}

return fmt.Errorf("%s: Attribute %q is not greater than %q, got %q", n, key, value, v)
}

return nil

}
}
Loading