-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Upcoming Changes in Version 4.0 of the AWS Provider #20433
Comments
a suggestion for upcoming |
@anGie44 one more suggestion for IPv4 Prefixes and IPv6 Prefixes support for |
All items complete and will release this afternoon (EST) with v4.0 of the provider. |
This functionality has been released in v4.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
For upgrading to Version 4 do we really need to do this below on the impacted resources? If we are running a automated deployment this is not possible to run as we are IaC on our deployment with no user execution with terraform commands. |
Depends on the resource. |
Hey all, please note that the changes in the description related to the S3 bucket ( v4.0.0 through v4.8.0 contain the refactored v4.9.0 and thereafter reverts those changes (per #23106)such that the |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
In the time since the last major provider release in July of 2020, we have been listening closely to the community's feedback. This major release primarily brings more flexibility and control over configuration settings for an S3 bucket resource (
aws_s3_bucket
) while standardizing practitioner expectations when using existing resources in the provider with Terraform 0.12+.Summary
A major release is our opportunity to make breaking changes in a scheduled and publicized manner in an attempt to avoid unnecessary churn for our users. We attempt to limit major releases to a once-yearly schedule. Version
v3.0
of the AWS provider was released in July of 2020.Along with larger changes in behavior detailed below this release will also remove attributes that have been marked as deprecated. Typically these have been marked as such due to changes in the upstream API, or in some cases that the use of the attribute causes confusion.
Refactor the
aws_s3_bucket
resourceTo help distribute management of S3 bucket settings as originally presented in #4418, the focus of this major milestone will be to deprecate (for the purpose of this release, this equates to marking previously configurable arguments as read-only /Computed and with a Deprecated message ) at least the following arguments (subject to change):
lifecycle_rule
,logging
,versioning
,replication_configuration
,server_side_encryption_configuration
. Independent resources for these arguments will include:Data retention and security considerations are paramount when considering any form of alterations to the
aws_s3_bucket
resource, therefore upgrade documentation will be made readily available with the appropriate path to adoption ofv4.0.0
of the provider.Adoption of AWS Go SDK V2
While the AWS SDK for Go v2 does not enable additional functionality for managing AWS resources, it does enable support for authenticating with AWS Single Sign-On (AWS SSO) credentials. Since we prefer to make changes to authentication at major version releases, at a minimum, the version of aws-sdk-go-base used in the AWS Provider will be updated to use AWS SDK for Go v2.
Implement Full Resource Lifecycle for Default resources
Default resources, namely
aws_default_subnet
andaws_default_vpc
, previously could only be read and updated. However, recent service changes now enable users to create and delete these resources such that within the provider, corresponding API methods can be utilized to fully implement the Create and Delete resource CRUD operations.Remove Zero Values from Attribute Validations
As the provider only supports Terraform 0.12 and above, this workaround previously used by 0.11 users should be removed as supported terraform versions include the concept of
null
in place of zero-values forTypeString
andTypeInt
values.Ensure All Plural Data Sources Return Zero Results
For consistency, all Terraform AWS Provider plural data sources that are expected to return an array of results should return an empty list if zero results are found, enabling practitioners to create dynamic implementations based on these results without encountering an error in their workflows.
Follow our Progress
The full contents of the major release and progress towards it can be viewed in the
v4.0.0
milestoneUpgrading
As a major version contains breaking changes, it is considered best practice to pin a provider version to avoid bringing in potentially breaking changes automatically. To remain on
v3.*
versions of the provider until such time that you are able to accommodate those changes, either pin to anyv3.*
version:Or a specific version:
Full documentation on how to manage versions of a provider can be found on the Terraform Website.
Your usage patterns will dictate how much effort upgrading to
v4.0
will take. We document each breaking change in our upgrade guide which will describe what changes are necessary to existing resources to preserve behavior. The upgrade guide will be available on the day of the release on the Terraform Website.The text was updated successfully, but these errors were encountered: