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

fix(WAFv2): add patch to revert struct names #24651

Merged
merged 8 commits into from
Mar 17, 2023
Merged

Conversation

vinayak-kukreja
Copy link
Contributor

This PR is reverting the property type names from pattern FooAction to Foo for WAFv2 resource. This change was introduced as part of a CFNSpec merge and would be breaking existing customers if they were using previous property names.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
@github-actions github-actions bot added the p2 label Mar 16, 2023
@aws-cdk-automation aws-cdk-automation requested a review from a team March 16, 2023 15:43
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 16, 2023
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

vinayak-kukreja and others added 2 commits March 16, 2023 11:46
Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
Comment on lines 6 to 12
"op": "remove",
"path": "PropertyTypes/AWS::WAFv2::RuleGroup.AllowAction"
},
{
"op": "add",
"path": "PropertyTypes/AWS::WAFv2::RuleGroup.Allow",
"value": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Ew :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know :(

vinayak-kukreja and others added 2 commits March 16, 2023 10:34
Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
}
]
}
}
Copy link
Contributor Author

@vinayak-kukreja vinayak-kukreja Mar 16, 2023

Choose a reason for hiding this comment

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

We do not need to fix types with this patch since those already get replaced in another patch.

Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
@vinayak-kukreja vinayak-kukreja marked this pull request as ready for review March 16, 2023 19:27
Signed-off-by: Vinayak Kukreja <vinakuk@amazon.com>
@vinayak-kukreja vinayak-kukreja added the pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. label Mar 16, 2023
@vinayak-kukreja
Copy link
Contributor Author

Exemption Request
This PR contains changes to only JSON Patches for WAFv2 resources.

@vinayak-kukreja vinayak-kukreja changed the title fix(WAFv2): add patch to revert property names fix(WAFv2): add patch to revert struct names Mar 17, 2023
@otaviomacedo otaviomacedo added pr-linter/exempt-test The PR linter will not require test changes pr-linter/exempt-integ-test The PR linter will not require integ test changes and removed pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. labels Mar 17, 2023
@aws-cdk-automation aws-cdk-automation dismissed their stale review March 17, 2023 14:07

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

mergify bot pushed a commit to cdklabs/aws-cdk-notices that referenced this pull request Mar 17, 2023
CLI notice for WAFv2 RuleGroup struct name changes. 

Being patched here: aws/aws-cdk#24651
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 5d52646
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Mar 17, 2023

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit dfa09d1 into main Mar 17, 2023
@mergify mergify bot deleted the vkukreja/add-wafv2-patch branch March 17, 2023 14:26
mergify bot pushed a commit that referenced this pull request Mar 21, 2023
This PR is reverting the property type names from pattern `FooAction` to `Foo` for `WAFv2` resource. This change was introduced as part of a [CFNSpec merge](affe040#diff-827a2fd012e049c7ccedffa0360c12e7d967a173f36b8150de73ef6adc42ee4cL175-L357) and would be breaking existing customers if they were using previous property names.

Duplicating from [PR](#24651) for same issue for V2.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
homakk pushed a commit to homakk/aws-cdk that referenced this pull request Mar 28, 2023
This PR is reverting the property type names from pattern `FooAction` to `Foo` for `WAFv2` resource. This change was introduced as part of a [CFNSpec merge](aws@affe040#diff-827a2fd012e049c7ccedffa0360c12e7d967a173f36b8150de73ef6adc42ee4cL175-L357) and would be breaking existing customers if they were using previous property names.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-test The PR linter will not require test changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants