Skip to content

Commit

Permalink
feat(consumption-opensearch): opensearch api as separate construct (#694
Browse files Browse the repository at this point in the history
)

* Add support for opensearch api as a stand alone construct to support bring your own cluster

---------

Co-authored-by: Alex Tarasov <[email protected]>
Co-authored-by: lmouhib <[email protected]>
  • Loading branch information
3 people authored Nov 19, 2024
1 parent 53999f5 commit 2fe228f
Show file tree
Hide file tree
Showing 23 changed files with 1,708 additions and 118 deletions.
28 changes: 28 additions & 0 deletions examples/opensearch-quickstart/tests/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,34 @@ def results():
True,
)

NagSuppressions.add_resource_suppressions_by_path(stack,
"/my-stack-test/OpenSearchApi/Provider/CustomResourceProvider/framework-onEvent/ServiceRole/Resource",
[
{'id':'AwsSolutions-IAM4', 'reason':'The Lambda is part of the CDK custom resource framework for SDK calls and can\'t be changed' },
{'id':'AwsSolutions-L1', 'reason': 'The Lambda is part of the CDK custom resource framework for SDK calls and can\'t be changed'}
],
True,
)

NagSuppressions.add_resource_suppressions_by_path(stack,
"/my-stack-test/OpenSearchApi/Provider/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource",
[
{'id':'AwsSolutions-IAM5', 'reason':'The Lambda is part of the CDK custom resource framework for SDK calls and can\'t be changed' },
{'id':'AwsSolutions-L1', 'reason': 'The Lambda is part of the CDK custom resource framework for SDK calls and can\'t be changed'}
],
True,
)

NagSuppressions.add_resource_suppressions_by_path(stack,
"/my-stack-test/OpenSearchApi/Provider/CustomResourceProvider/framework-onEvent/Resource",
[
{'id':'AwsSolutions-L1', 'reason': 'The Lambda is part of the CDK custom resource framework for SDK calls and can\'t be changed'}
],
True,
)



template = Template.from_stack(stack)
results = (stack, template)
yield results
Expand Down
Loading

0 comments on commit 2fe228f

Please sign in to comment.