-
Notifications
You must be signed in to change notification settings - Fork 628
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
fix: Replace deprecate aws_cloudwatch_event_rule.is_enabled, requires provide upgrade #3655
fix: Replace deprecate aws_cloudwatch_event_rule.is_enabled, requires provide upgrade #3655
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@officel thx, change looks good. Need to run a quick test asap.
Just ran a deployment got the following error
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The state property should be an enum, see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule#state
see https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_event_rule#state At first we forced enable. but now that `ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS` can be specified. we can change it with a variable. Please let me know if you have a better naming scheme.
Once you have decided on the naming and code direction, decide how to fix ssm_houcekeeper. |
@npalm how about this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@officel thx, the variable enable_event_rule_binaries_syncer
used on the top-level module and multi-runner. Can you update those as well. See also CI errors
I'm sorry I didn't check it out better. - Written similar to `variables.deprecated.tf` - top-level `versions.tf` did not know if it should be corrected...
@officel can you also update this file? |
@npalm maybe green? terraform-aws-github-runner $ gg enable_event_rule_binaries_syncer
README.md:524:| <a name="input_enable_event_rule_binaries_syncer"></a> [enable\_event\_rule\_binaries\_syncer](#input\_enable\_event\_rule\_binaries\_syncer) | DEPRECATED: Replaced by `state_event_rule_binaries_syncer`. | `bool` | `null` | no |
variables.deprecated.tf:12:variable "enable_event_rule_binaries_syncer" {
variables.deprecated.tf:17: condition = var.enable_event_rule_binaries_syncer == null |
We almost there, you need to run a |
Do we need a setup-iam-permissions directory? terraform-aws-github-runner $ gg -A 1 'hashicorp/aws' -- '**/versions.tf'
examples/arm64/versions.tf:4: source = "hashicorp/aws"
examples/arm64/versions.tf-5- version = "~> 5.27.0"
--
examples/base/versions.tf:4: source = "hashicorp/aws"
examples/base/versions.tf-5- version = "~> 5.27.0"
--
examples/default/versions.tf:4: source = "hashicorp/aws"
examples/default/versions.tf-5- version = "~> 5.27.0"
--
examples/ephemeral/versions.tf:4: source = "hashicorp/aws"
examples/ephemeral/versions.tf-5- version = "~> 5.27.0"
--
examples/multi-runner/versions.tf:4: source = "hashicorp/aws"
examples/multi-runner/versions.tf-5- version = "~> 5.27.0"
--
examples/permissions-boundary/setup/versions.tf:4: source = "hashicorp/aws"
examples/permissions-boundary/setup/versions.tf-5- version = "~> 5.27.0"
--
examples/permissions-boundary/versions.tf:4: source = "hashicorp/aws"
examples/permissions-boundary/versions.tf-5- version = "~> 5.27.0"
--
examples/prebuilt/versions.tf:4: source = "hashicorp/aws"
examples/prebuilt/versions.tf-5- version = "~> 5.27.0"
--
examples/ubuntu/versions.tf:4: source = "hashicorp/aws"
examples/ubuntu/versions.tf-5- version = "~> 5.27.0"
--
examples/windows/versions.tf:4: source = "hashicorp/aws"
examples/windows/versions.tf-5- version = "~> 5.27.0"
--
modules/ami-housekeeper/versions.tf:6: source = "hashicorp/aws"
modules/ami-housekeeper/versions.tf-7- version = "~> 5.27.0"
--
modules/download-lambda/versions.tf:6: source = "hashicorp/aws"
modules/download-lambda/versions.tf-7- version = "~> 5.27.0"
--
modules/multi-runner/versions.tf:6: source = "hashicorp/aws"
modules/multi-runner/versions.tf-7- version = "~> 5.27.0"
--
modules/runner-binaries-syncer/versions.tf:6: source = "hashicorp/aws"
modules/runner-binaries-syncer/versions.tf-7- version = "~> 5.27.0"
--
modules/runners/pool/versions.tf:6: source = "hashicorp/aws"
modules/runners/pool/versions.tf-7- version = "~> 5.27.0"
--
modules/runners/versions.tf:6: source = "hashicorp/aws"
modules/runners/versions.tf-7- version = "~> 5.27.0"
--
modules/setup-iam-permissions/versions.tf:6: source = "hashicorp/aws"
modules/setup-iam-permissions/versions.tf-7- version = "~> 5.27.0"
--
modules/ssm/versions.tf:6: source = "hashicorp/aws"
modules/ssm/versions.tf-7- version = "~> 5.27.0"
--
modules/webhook/versions.tf:6: source = "hashicorp/aws"
modules/webhook/versions.tf-7- version = "~> 5.27.0" |
iam premission module is only an example if you would like to setup permission budnaries |
Can you run this script in the root of the repo will will fix all the lock files
|
Sorry. |
CI is 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@officel thx for your effort
@npalm |
🤖 I have created a release *beep* *boop* --- ## [5.6.0](v5.5.2...v5.6.0) (2023-12-20) > Release can require upgrade your AWS Terraform provider ### Features * upgrade lambda runtime from 18x to 20x ([#3682](#3682)) ([02dd3e6](02dd3e6)) ### Bug Fixes * **lambda:** bump @aws-lambda-powertools/tracer from 1.16.0 to 1.17.0 in /lambdas ([#3675](#3675)) ([b3536f7](b3536f7)) * **lambda:** bump the aws group in /lambdas with 5 updates ([#3671](#3671)) ([677965d](677965d)) * **lambda:** bump the octokit group in /lambdas with 1 update ([#3672](#3672)) ([67facac](67facac)) * Replace deprecate aws_cloudwatch_event_rule.is_enabled, requires provide upgrade ([#3655](#3655)) ([3c78f65](3c78f65)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
@@ -4,7 +4,7 @@ terraform { | |||
required_providers { | |||
aws = { | |||
source = "hashicorp/aws" | |||
version = "~> 5.2" | |||
version = "~> 5.27.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@npalm Was this really required? Didn't you actually mean ~> 5.27
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or actually @officel ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jizi maybe yes?
This PR was satisfied where at a minimum the state property indicated a valid version.
You may be right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, but upgrading to the latest github-runner module version actually downgraded the aws
module which is probably not what you wanted
see #3652