-
Notifications
You must be signed in to change notification settings - Fork 162
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
Added SGR validation to cfn validate
#1070
base: master
Are you sure you want to change the base?
Conversation
Can we remove the |
src/rpdk/core/project.py
Outdated
@@ -275,7 +275,7 @@ def validate_and_load_resource_settings(self, raw_settings): | |||
self.entrypoint = raw_settings["entrypoint"] | |||
self.test_entrypoint = raw_settings["testEntrypoint"] | |||
self.executable_entrypoint = raw_settings.get("executableEntrypoint") | |||
self._plugin = load_plugin(raw_settings["language"]) | |||
# self._plugin = load_plugin(raw_settings["language"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? Whats the impact to this or why do we need to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, this is just for my local setup. I included it by mistake
* Implement canary file generation functionality from contract test inputs files * Implement canary file generation functionality from contract test inputs files * Bump version for release
…chInputs (#1074) * Implement canary file generation functionality from contract test input for Patch Canaries * Add functionality for add/remove operations. Fix dynamic variables * Refactor to use jsonpatch and improve naming.
…1078) * Add logging for canary auto generation * Refactor canarySettings
Issue #, if available:
Description of changes:
This is a draft PR and subject to discussion.
This change enhances
cfn validate
command by invoking https://github.com/aws-cloudformation/resource-schema-guard-rail/ for schema compliance evaluation.It invokes both stateful and stateless assessment.
Stateless
This evaluation runs on the current version of the resource schema
Stateful
This attempts to retrieve original schema from CloudFormation registry by calling
describe_type
.If for whatever reason API call has not succeeded it will be recorded in logs but will not fail the command.
Some CX Considerations
API Call to Retrieve schema from registry is a default behavior for backward compatibility compliance assessment (stateful). Perhaps, it is useful to provide an argument to the user to specify static file of the original schema (without making an api call)
Example Output:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.