Skip to content

Conversation

@kumvprat
Copy link
Contributor

@kumvprat kumvprat commented Jun 12, 2025

Issue # (if applicable)

Closes #29093

Reason for this change

Opensearch access policy defined via OpenSearchAccessPolicy (custom-resource) return failures in case of large policy documents, even if the policy change is successful

Issue comes for the CFN limit of 4k on the response size

Description of changes

Added an optional parameter verboseOutput in OpenSearchAccessPolicyProps to allow users of the custom resource to optionally toggle on/off the verbose option : On turning it false only ["DomainConfig.AccessPolicies.Status.State", "DomainConfig.AccessPolicies.Status.UpdateVersion"] are shown

NOTE : Default behavior of verbose output is retained

Describe any new or updated permissions being added

NONE

Description of how you validated changes

  • Adding unit tests for the changes

Checklist


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

Leon Michalski and others added 14 commits June 11, 2025 15:17
This reverts commit 08ffaa46d93fc896e7293c964b4f7c9381f3d25a.
Adds a clarification note that these properties are not strictly enforced at runtime, but are still required nonetheless.

### Issue #34645 

Fixes #34645.

### Reason for this change

[ECS docs](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#task_size) was recently updated to state that the CPU/Memory property is not enforced on Windows platforms, but are still required nonetheless.

### Description of changes

Add note to the CPU and memory property of Fargate task definitions.

### Describe any new or updated permissions being added

No permissions added or updated.


### Description of how you validated changes

No tests needed as this is a documentation change.

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
### Issue # (if applicable)

Closes #31755.

### Reason for this change

The dev dependency is outdated and creates issue for users wanting to
use some of the aws-sdk packages in custom resources.

### Description of changes

<!--
What code changes did you make? 
Have you made any important design decisions?
What AWS use cases does this change enable? To enable the use cases,
which AWS service features are utilized?
-->
The goal of this change is to update the outdated `aws-sdk-js-codemod`
package to the latest available version (bumping the major version from
0.x.x to 2.x.x).

The following changes have been made:
  1. Updated the `aws-sdk-js-codemod`
  1. Ran scripts/update-sdkv3-parameters-model.sh
1. Fixed incorrect IAM prefix generated for CloudWatch actions, see
#33078 and doc:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/permissions-reference-cw.html
1. Set the feature flag `logApiResponseDataPropertyTrueDefault` to false
(which is the default value) for the tests that needed a snapshot
update, as there is a bug that causes the snapshots to be outdated:
#30583
 1. Ran the tests with `--update-on-failed` to update snasphots
 1. Reverted the feature flag changes.


### Description of how you validated changes


Ran the integration tests and updated the snapshots.
-
`framework-integ/test/aws-elasticloadbalancingv2/test/integ.alb.oidc.ts`:
needs a valid domain so successfully deployed it on my personal account,
then regenerated the snapshots with `--dry-run --force`
-
`packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2-actions/test/integ.cognito.js.snapshot/integ-cognito.template.json`:
needs a valid domain so successfully deployed it on my personal account,
then regenerated the snapshots with `--dry-run --force`

### Checklist
- [X] My code adheres to the [CONTRIBUTING
GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and
[DESIGN
GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*
…eeded for opensearch access policy custom resource
@aws-cdk-automation aws-cdk-automation requested a review from a team June 12, 2025 13:34
@github-actions github-actions bot added the p2 label Jun 12, 2025
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jun 12, 2025
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.

(This review is outdated)

@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p1 and removed p2 labels Jun 12, 2025
@kumvprat kumvprat changed the title feat: Added logic to only log specific field when less verbosity is needed for opensearch access policy custom resource feat(opensearch): Added logic to only log specific field when less verbosity is needed for opensearch access policy custom resource Jun 12, 2025
@kumvprat kumvprat changed the title feat(opensearch): Added logic to only log specific field when less verbosity is needed for opensearch access policy custom resource feat(opensearch): add logic to only log specific field when less verbosity is needed for opensearch access policy custom resource Jun 12, 2025
@kumvprat
Copy link
Contributor Author

Asking for Exemption Request as the OpenSearchAccessPolicy is used in the larger Domain construct and is covered by unit tests

Adding integration test for this stand-alone custom resource without the Domain construct doesn't make sense as this custom resource adds access policies to the created Domain's arn

@aws-cdk-automation aws-cdk-automation added the pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. label Jun 12, 2025
@ozelalisen ozelalisen self-assigned this Jun 13, 2025
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jun 13, 2025
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jun 13, 2025
Copy link
Member

@ozelalisen ozelalisen left a comment

Choose a reason for hiding this comment

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

LGTM!

@ozelalisen ozelalisen added pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-readme The PR linter will not require README changes labels Jun 13, 2025
@aws-cdk-automation aws-cdk-automation dismissed their stale review June 16, 2025 14:24

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

@mergify
Copy link
Contributor

mergify bot commented Jun 16, 2025

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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: db7e688
  • 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 Jun 16, 2025

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 856e3b1 into main Jun 16, 2025
17 checks passed
@mergify mergify bot deleted the opensearch_access_policy_cfn_patch branch June 16, 2025 15:02
@github-actions
Copy link
Contributor

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug This issue is a bug. contribution/core This is a PR that came from AWS. effort/medium Medium work item – several days of effort p1 pr-linter/exempt-integ-test The PR linter will not require integ test changes pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(opensearch): Response object is too long from cloudformation when adding enough access policies despite the update succeeding.

6 participants