crossplane-contrib / provider-upjet-aws

Official AWS Provider for Crossplane by Upbound.
https://marketplace.upbound.io/providers/upbound/provider-aws
Apache License 2.0
137 stars 113 forks source link

feat(bump): 5.42.0 #1240

Closed haarchri closed 2 months ago

haarchri commented 3 months ago

Description of your changes

bump native tf-provider to v5.40.0

https://github.com/crossplane-contrib/provider-upjet-aws/actions/runs/8433252511/job/23093950721?pr=1240

Checking package/crds/cloud9.aws.upbound.io_environmentec2s.yaml for breaking API changes...
Breaking change detected!
Version "v1beta1":
- Schema changed
  - Properties changed
    - Modified property: spec
      - Properties changed
        - Modified property: forProvider
          - Required changed
            - New required property: imageId
Checking package/crds/dms.aws.upbound.io_eventsubscriptions.yaml for breaking API changes...
Breaking change detected!
Version "v1beta1":
- Schema changed
  - Properties changed
    - Modified property: spec
      - Properties changed
        - Modified property: forProvider
          - Required changed
            - Deleted required property: sourceIds
Checking package/crds/fsx.aws.upbound.io_ontapfilesystems.yaml for breaking API changes...
Breaking change detected!
Version "v1beta1":
- Schema changed
  - Properties changed
    - Modified property: spec
      - Properties changed
        - Modified property: forProvider
          - Required changed
            - Deleted required property: throughputCapacity

Fixes #

I have:

How has this code been tested

vibe commented 3 months ago

Any reason why we wouldn't bump to v5.42.0

mbbush commented 3 months ago

Thanks for kicking this off @haarchri!

resource/aws_eks_access_entry: Always send kubernetes_groups and user_name values on update when configured

That fix in particular from the 5.42.0 release notes seems like it would be useful for implementing a new means of authenticating in EKS clusters, which many of our users would appreciate. See #1098

I rebased the upbound/terraform-provider-aws changes on top of v5.42.0 in https://github.com/mbbush/terraform-provider-aws/tree/upjet-v5.42.0. I frankly don't have the time to take the lead on a terraform version upgrade right now, so I'm thrilled to be able to cede it to you. If anything in that branch is helpful, you may use it, although the only meaningful thing was the resolution of two merge conflicts in https://github.com/mbbush/terraform-provider-aws/commit/33f699cac64d04f806bef4b3dbf3f375b18918b5 and https://github.com/mbbush/terraform-provider-aws/commit/9cef9eb5e496dcf158d2e1f0a358ed8817dbef76

haarchri commented 3 months ago

@vibe no i was playing around to get an idea what we need to do for version bump @mbbush thanks will take a look

haarchri commented 3 months ago

okay first we need to rebase the forked tf provider to new version and Cut a new release - then we can go forward here ref: https://github.com/crossplane-contrib/provider-upjet-aws/blob/main/go.mod#L280

haarchri commented 3 months ago

Will we switch https://github.com/upbound/terraform-provider-aws to crossplane-contrib as well ?

mbbush commented 3 months ago

If we can find a way to eliminate or programmatically resolve the conflicts, it would be awesome to have a GitHub action that automatically updates our TF provider fork when upstream has a new release.

This should be done later, but just sharing the idea

jeanduplessis commented 3 months ago

We have a GitHub action that takes care of a lot of the work already: https://github.com/crossplane-contrib/provider-upjet-aws/blob/main/.github/workflows/native-provider-bump.yml

We're planning improvements in Uptest that could automatically pick up changed resources and validate them.

haarchri commented 3 months ago

thats fine - nobody outside the maintainer team can trigger the action ;) basically the Same i did - but first we need to rebase the provider tf fork

haarchri commented 3 months ago

tested https://github.com/upbound/terraform-provider-aws/pull/201 with v5.42.0

for aws vpc it looks good

kubectl get managed
NAME                                SYNCED   READY   EXTERNAL-NAME           AGE
vpc.ec2.aws.upbound.io/sample-vpc   True     True    vpc-0c7e92d4c27a819e4   19s

@mbbush we need to add the following commits in your tag https://github.com/mbbush/terraform-provider-aws/commits/upjet-v5.42.0/

https://github.com/upbound/terraform-provider-aws/commit/4708239d78bc224bb08fbc8dcdcd236d7e6f1226 https://github.com/upbound/terraform-provider-aws/commit/fa992a10276b304275af098703739af230044ad0 https://github.com/upbound/terraform-provider-aws/commit/f2f0fdd63866b583c3b722434ace9b46b95fbe29

mbbush commented 2 months ago

@haarchri Sorry for the late response.

https://github.com/upbound/terraform-provider-aws/commit/4708239d78bc224bb08fbc8dcdcd236d7e6f1226 is a merge commit, and all the changes in the PR it merged are already included in my branch.

I cherry-picked in https://github.com/upbound/terraform-provider-aws/commit/fa992a10276b304275af098703739af230044ad0

https://github.com/upbound/terraform-provider-aws/commit/f2f0fdd63866b583c3b722434ace9b46b95fbe29 is the merge commit for fa992a1, and doesn't need to be included.

mbbush commented 2 months ago

@haarchri In addition to cherry-picking in the one non-merge commit you mentioned, I rebased onto the latest release and pushed as https://github.com/mbbush/terraform-provider-aws/tree/upjet-v5.46.0.

turkenf commented 2 months ago

Closed in favor of https://github.com/crossplane-contrib/provider-upjet-aws/pull/1271