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

feat(consumption-opensearch): opensearch api as separate construct #694

Merged
merged 18 commits into from
Nov 19, 2024
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
Loading