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

Feature: add region explicitly in aws provider to avoid regressions #15

Merged
merged 6 commits into from
Jan 26, 2024

Conversation

andylamp
Copy link
Contributor

Description

This addresses the regression observed in certain configurations as described in issue #14.

The PR refactors the project to take the region from variables but only if and only if provided explicitly. If not, the current behavior is maintained. This refactor means that all modules within the project take the provider region as a parameter which is used for all non aliased (i.e. non-global) ones.

Context

Resolves regressions observed in #14.

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@andylamp
Copy link
Contributor Author

andylamp commented Nov 7, 2023

is any maintainer around?

@Tomdango
Copy link
Collaborator

Hi @andylamp,

Sorry for the slowness in getting this resolved. There have been other priorities which means this project has slightly slipped - we'll be looking for more maintainers of the project soon.

Could you recreate the branch without the aws_wafv2_web_acl_logging_configuration commented out? The issue with this is being fixed under #17.

@andylamp
Copy link
Contributor Author

hey @Tomdango! thanks for reaching out and sorry for pestering about this but we needed to deploy the module. Due the issues it had we could not.

Firstly, at first apply - at least with the latest providers and terraform versions - the resource aws_wafv2_web_acl_logging_configuration has a count which cannot be inferred at creation and causes issues. It requires to use target to selectively apply them.

Commenting that was the easiest way to get this running as it was not of high priority to us to have this going, but feel this is a significant issue.

Another is that the concurrency for the lambdas is hardcoded and there is no parameter to tweak it, so I made a change to account for that. Please see the branch here in my own fork.

Note: these again used the philosophy of enhance functionality but not introduce breaking changes, so every change is a drop-in replacement without affecting current functionality.

LMK what you think.

@andylamp
Copy link
Contributor Author

andylamp commented Jan 9, 2024

@Tomdango, just asking again about this for the last time... otherwise, I think I'll just fork and publish my own version in TF repositories...

@andylamp
Copy link
Contributor Author

Closing this due to the reasons state above.

@andylamp andylamp closed this Jan 18, 2024
@Tomdango
Copy link
Collaborator

Sorry @andylamp - I'm happy to include these changes. There's not really any active maintainers of this repo outside of myself at the moment, so I'll likely add a note on the main README that we'd be looking for more maintainers on this project.

The count issue was resolved in #17, minus the commented out changes in modules/opennext-cloudfront/waf.tf. I'm happy to make these changes, and apologise again that it has taken a while to get this sorted.

@Tomdango Tomdango reopened this Jan 26, 2024
Copy link
Collaborator

@Tomdango Tomdango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good - just the commented sections need reintroducing and then I'll merge and create a new release.

modules/opennext-cloudfront/waf.tf Outdated Show resolved Hide resolved
Signed-off-by: Thomas Judd-Cooper <[email protected]>
Copy link
Collaborator

@Tomdango Tomdango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as updating from main replaced the changes as part of a merge conflict.

@Tomdango Tomdango added this pull request to the merge queue Jan 26, 2024
Merged via the queue into nhs-england-tools:main with commit f8e81a7 Jan 26, 2024
6 checks passed
@andylamp
Copy link
Contributor Author

@Tomdango thanks a lot for the visibility, sorry was not aware this was not actively maintained... I know the burden open source can bring... Just wanted to have these changes since we are actively using this library in our FE pipelines. BTW, given that we are actively using this perhaps I could chip in to help you maintain this? If that's OK with you as well...

@andylamp
Copy link
Contributor Author

ah, also - the latest version is v1.0.6 which includes a few other fixes as well... I'll merge these changes an open a new PR regarding this.

@Tomdango
Copy link
Collaborator

@andylamp Feel free to send an email over to [email protected] and we'll take it from there 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants