Closed kallu closed 3 years ago
There was a recent update for cfn java plugin, that looks like something that could be related to this issue? https://github.com/aws-cloudformation/cloudformation-cli-java-plugin/pull/316
this should be resolved by #127
snapshotRequested translates if resource level attribute deletion policy has been set to Snapshot
- https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html
Thanks, #127 looks good, but until it is published it is not possible to build new resource types with python. Do think the fixed release could be out soon?
Thanks, #127 looks good, but until it is published it is not possible to build new resource types with python. Do think the fixed release could be out soon?
Barring any late regression test failures, we plan to release it tomorrow (best case) or a few days after (worst case). But the problem/bug has been fixed
@kallu we recently released 2.1.3 version available at https://pypi.org/project/cloudformation-cli-python-lib/2.1.3/
please, confirm that issues is resolved
Hi, I had the same error. With the new version, all worked fine. Thanks
@maintux thanks for the reply. closing the issue
Sorry for the late reply, but cloudformation-cli-python-lib 2.1.3
fixes the issue for me as well.
One thing to note is cfn init
is still generating requirements.txt with cloudformation-cli-python-lib==2.1.1
@kallu we recently released plugin library but not the codegen package. We should release it early next week
Creating a custom resource type fails with the error
__init__() got an unexpected keyword argument 'snapshotRequested' (TypeError)
Here is how my python versions look and how the custom resource type is created.
Then deploying a custom resource as
cfn init
configures itSo far all worked. but when trying to use the resource type in template
Create of
SampleVariable
fails with the error__init__() got an unexpected keyword argument 'snapshotRequested' (TypeError)
Did I forget something? Am I missing something from my
requirements.txt
? Now it has onlycloudformation-cli-python-lib==2.1.2