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: stackId not setable during 'cfn invoke' testing of RESOURCE #999

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chamcca
Copy link

@chamcca chamcca commented May 11, 2023

Issue #, if available: Fixes: #998

Description of changes:

  • optionally create a request containing stackId during cfn invoke if it is included in the request JSON

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

@@ -110,6 +110,7 @@ def invoke(args):
request["desiredResourceState"],
request["previousResourceState"],
request.get("typeConfiguration"),
stackId=request.get("stackId")
Copy link
Contributor

Choose a reason for hiding this comment

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

Stack id is not always present, as this is purely CloudFormation concept. Resource Handlers are also used by CloudControl, which does not provide value for this field. I would prefer to left it out of cfn invoke payload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to set stackId when testing with cfn invoke
2 participants