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

Update Terraform cloudposse/ecs-codepipeline/aws to v0.33.0 #225

Merged

Conversation

adamantike
Copy link
Contributor

@adamantike adamantike commented Mar 23, 2023

Breaking changes

This release introduces a breaking change that affects projects using the github_webhooks_token variable.

Since Terraform 1.2.0, modules to be used with the for_each, count, and depends_on arguments must not contain their own provider configurations. The github_webhooks_token variable was being used to instantiate a github provider, which must now be instantiated and provided separately.

If your project is affected by this change, the following steps will allow you to upgrade to this version:

  1. Add the GitHub provider to your project:

    terraform {
      required_providers {
        github = {
          source  = "integrations/github"
          version = ">= 4.2.0"
        }
      }
    }
  2. Instantiate the provider (feel free to use any other supported Authentication mechanism):

    provider "github" {
      owner = var.repo_owner
      token = "{your_github_token}"
    }
  3. Stop providing the github_webhooks_token variable to this module.

what

why

  • Version 0.32.0 upgrades the cloudposse/repository-webhooks/github module, which removed the hardcoded github provider, so some variables have been removed in favor of instantiating the provider separately.

references

@getglad
Copy link

getglad commented Apr 6, 2023

@Gowiem @korenyoni - is it possible to get this reviewed or landed? Would be helpful to have this in main

@Gowiem Gowiem requested a review from joe-niland April 6, 2023 21:01
@Gowiem
Copy link
Member

Gowiem commented Apr 6, 2023

Pulling in @joe-niland since he's an expert on this module. Joe, figured you may have an opinion here.

@Gowiem
Copy link
Member

Gowiem commented Apr 6, 2023

/test all

@Gowiem
Copy link
Member

Gowiem commented Apr 6, 2023

@adamantike @getglad -- This looks like a solid contribution, thanks! I'm checking with the rest of the maintainer team on if this should be a major version rev or not. I believe it should, but semver is followed differently everywhere and it's we've just started rev'ing past v0.x.y, so it's good to check. Will follow up when we can move this forward 👍

@Nuru Nuru added the minor New features that do not break anything label Apr 7, 2023
@joe-niland
Copy link
Member

Pulling in @joe-niland since he's an expert on this module. Joe, figured you may have an opinion here.

Thanks for the ping @Gowiem.
I don't use this module that much anymore, but I did test this branch and it was fine after I made the adjustments below.

Since this introduces a breaking change, I think we need to include information about how to change a consuming module in the PR description (example). As far as I can see, it's just:

  • unsetting the github_webhooks_token variable
  • adding a github provider block
  • updating the github provider source and version

@Gowiem
Copy link
Member

Gowiem commented Apr 9, 2023

@joe-niland good call on the breaking changes info and including that in the PR description. @adamantike do you mind providing that info into your description and then we'll get this merged and cut a release? Here is a great PR example of what that should look like: cloudposse/terraform-aws-s3-bucket#158

@mihaiplesa
Copy link
Contributor

mihaiplesa commented Apr 11, 2023

Looking forward to get this in which would fix the below on Terraform 1.4.x on arm64 macOS.

│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/github v3.0.0 does not have a
│ package available for your current platform, darwin_arm64.

@getglad
Copy link

getglad commented May 25, 2023

@max-lobur @Gowiem @joe-niland friendly re-bump on this.

It sounds like this was down to documentation on the PR description, but now seeing some failures around a pinning to https://github.com/cloudposse/terraform-null-label.git?ref=tags/0.19.2 in a subnet module.

Any ideas on how we can get it unblocked and merged?

@Gowiem
Copy link
Member

Gowiem commented May 25, 2023

@getglad we (@max-lobur specifically) just did a sweeping change to our automation to add tflint, so things like that are sadly a necessary evil that we need to deal with on open PRs. We'll need @adamantike to provide the PR description updates that are discussed above and fix the tflint issues you mentioned.

@adamantike friendly ping on this. Mind updating the above?

Alternatively if you're looking to get this merged @getglad, feel free to fork this PR's branch, make the necessary updates, put up another PR, and request me as a reviewer. We'll get this moved along quickly in that case.

@adamantike adamantike force-pushed the misc/bump-ecs_codepipeline-v0.32.0 branch from d1467e4 to 2eec517 Compare May 27, 2023 01:48
@adamantike adamantike changed the title Update Terraform cloudposse/ecs-codepipeline/aws to v0.32.0 Update Terraform cloudposse/ecs-codepipeline/aws to v0.33.0 May 27, 2023
@adamantike
Copy link
Contributor Author

Sorry for not tackling this before. I have rebased my changes, and updated the PR description to include the information about the breaking change and how to upgrade to the new minor version!

@Gowiem
Copy link
Member

Gowiem commented May 27, 2023

/terratest

@Gowiem Gowiem added major Breaking changes (or first stable release) and removed minor New features that do not break anything labels May 27, 2023
@Gowiem
Copy link
Member

Gowiem commented May 27, 2023

@adamantike sorry to continue to drag this out, but we've got some lint issues and terraform failures due to the moved block somewhere in the chain. The moved block means we need to update the required terraform version in either the module itself or in the examples directories. Mind checking into those and we'll see if we can get this PR green and shipped?

@adamantike
Copy link
Contributor Author

It's probably the same issue I needed to fix in the complete example, because of very old versions of dynamic-subnets and vpc modules being used. Let me try to fix those ASAP.

@adamantike adamantike force-pushed the misc/bump-ecs_codepipeline-v0.32.0 branch from 2eec517 to 9298902 Compare May 27, 2023 04:38
@Gowiem
Copy link
Member

Gowiem commented May 27, 2023

/terratest

Gowiem
Gowiem previously approved these changes May 27, 2023
@Gowiem
Copy link
Member

Gowiem commented May 27, 2023

@mschfh
Copy link
Contributor

mschfh commented Nov 11, 2023

That error will require more coordination with other modules. The issue is that cloudposse/terraform-aws-codebuild uses source.auth dynamic blocks (reference), which were removed from the AWS provider version 5 (notes from the upgrade guide).

The AWS provider v5 PR was merged and released as v2.0.0.

@hans-d
Copy link

hans-d commented Mar 2, 2024

/terratest

@hans-d hans-d added stale This PR has gone stale terratest-failing labels Mar 2, 2024
@hans-d hans-d requested a review from Gowiem March 3, 2024 12:43
@hans-d
Copy link

hans-d commented Mar 3, 2024

@adamantike hi, can you update this pr so that all tests pass? otherwise this PR will be closed due to staleness. thanks!

@kevcube
Copy link
Contributor

kevcube commented Mar 28, 2024

/terratest

@mergify mergify bot removed the stale This PR has gone stale label Mar 28, 2024
@kevcube
Copy link
Contributor

kevcube commented Mar 28, 2024

@hans-d this is a quite important PR as its the only blocker for M1 compatibility of this module. I’m taking it over to see if I can get tests passing

@kevcube
Copy link
Contributor

kevcube commented Mar 29, 2024

/terratest

@kevcube
Copy link
Contributor

kevcube commented Apr 2, 2024

/terratest

@kevcube
Copy link
Contributor

kevcube commented Apr 2, 2024

/terratest

@kevcube kevcube enabled auto-merge (squash) April 2, 2024 11:57
@kevcube kevcube merged commit e2a7cd5 into cloudposse:main Apr 2, 2024
14 checks passed
@adamantike adamantike deleted the misc/bump-ecs_codepipeline-v0.32.0 branch August 30, 2024 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Breaking changes (or first stable release)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump terraform-aws-ecs-codepipeline to v0.32.0
10 participants