cloudformation-cli icon indicating copy to clipboard operation
cloudformation-cli copied to clipboard

Testing cloudformation resource type requires "cfn submit"

Open tscully49 opened this issue 4 years ago • 1 comments

When trying to run an invoke or test with the cfn cli against a resource type, I'm finding that I need to run a cfn submit --dry-run before I can run any test or else I will get python import issues. The documentation for testing resource types does not seem to indicate that you will need to run a submit before running tests of any sorts. Am I either missing something, or should the documentation be updated to follow this required workflow? I also think it would be helpful to provide some more documentation around requirements for building/testing for the different languages. For example, python requires a requirements.txt file to build the resource type. Things like that would be helpful to have documented. Thanks!

Reference: https://github.com/aws-cloudformation/cloudformation-cli/blob/c542ea93daf4c732f5c5aeef3dcb44e5445dbdd1/doc_source/resource-type-develop.md

tscully49 avatar Mar 02 '21 13:03 tscully49

ran into this in https://github.com/aws-cloudformation/cloudformation-cli/pull/723 as well similar to https://github.com/aws-cloudformation/cloudformation-cli/issues/286

PatMyron avatar Apr 29 '21 00:04 PatMyron