terraform-aws-tfstate-backend icon indicating copy to clipboard operation
terraform-aws-tfstate-backend copied to clipboard

Chore/118 fix deprecation warnings

Open vanastassiou opened this issue 2 years ago • 14 comments

what

Partially resolves deprecation warnings during terraform plan and terraform apply. Uses https://github.com/nozaq/terraform-aws-remote-state-s3-backend as a model. Remaining deprecation warnings should probably be corrected in a PR to in https://github.com/cloudposse/terraform-aws-s3-bucket (referenced in the log_storage module code used in this module).

why

  • Avoid functionality loss when deprecated functions are dropped
  • Reduce noise in terraform plan and terraform apply

references

  • Closes https://github.com/cloudposse/terraform-aws-tfstate-backend/issues/118

vanastassiou avatar Aug 03 '22 06:08 vanastassiou

/test all

aknysh avatar Aug 03 '22 13:08 aknysh

HI @aknysh, thanks for the review. I've pushed changes that give me a terraform plan with no errors on Terraform 1.2.6.

vanastassiou avatar Aug 03 '22 17:08 vanastassiou

/test all

aknysh avatar Aug 03 '22 17:08 aknysh

/test all

aknysh avatar Aug 03 '22 19:08 aknysh

~~The warnings that are blocking the terratest job are probably due to the s3-bucket module needing to be updated similarly. I'll submit a PR for that one and then notify here once that's resolved.~~

Never mind that...Not sure what's causing the context deadline exceeded errors here unfortunately. Any thoughts @aknysh ?

vanastassiou avatar Aug 04 '22 16:08 vanastassiou

@joe-niland @RothAndrew any guidance on how I should address the context deadline exceeded error in terratest?

vanastassiou avatar Aug 30 '22 05:08 vanastassiou

Not sure, maybe just a hiccup. will try running the tests again

RothAndrew avatar Aug 30 '22 15:08 RothAndrew

/test all

RothAndrew avatar Aug 30 '22 15:08 RothAndrew

The terratest test passed this time, which means the failure was just AWS having a hiccup.

This looks like more than just a chore/refactor though, as it is making breaking changes to the inputs.

@aknysh, who's the right person to put this in front of to make sure this is a change we want to make? I don't have enough context on this module to give it the review it needs.

RothAndrew avatar Aug 30 '22 15:08 RothAndrew

/test all

aknysh avatar Aug 30 '22 15:08 aknysh

/test test/readme

nitrocode avatar Aug 30 '22 17:08 nitrocode

/rebuild-readme

Nuru avatar Aug 30 '22 19:08 Nuru

/test readme

Nuru avatar Aug 30 '22 19:08 Nuru

/test bats terratest

Nuru avatar Aug 30 '22 19:08 Nuru

Any chance this PR could get a little more attention?

matthewmrichter avatar Dec 27 '22 18:12 matthewmrichter

@matthewmrichter thanks for pinging me -- this had fallen off my radar. I should be able to devote some time to it in the coming week.

vanastassiou avatar Jan 17 '23 19:01 vanastassiou