You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create of custom resource fails with "__init__() got an unexpected keyword argument 'snapshotRequested' (TypeError)" #130
Then deploying a custom resource as cfn init configures it
% cfn init
Initializing new project
What's the name of your resource type?
(Organization::Service::Resource)
>> MyOrg::Dataprovider::Variable
Select a language for code generation:
[1] go
[2] java
[3] python36
[4] python37
(enter an integer):
>> 3
Use docker for platform-independent packaging (Y/n)?
This is highly recommended unless you are experienced
with cross-platform Python packaging.
>> Y
Initialized a new project in /Users/.../cfn-resource
% cfn generate
Generated files for MyOrg::Dataprovider::Variable
% cfn submit --set-default
Starting Docker build. This may take several minutes if the image 'lambci/lambda:build-python3.6' needs to be pulled first.
Successfully submitted type. Waiting for registration with token '7c37bc66-65a7-41db-b4c6-444c9758c3ce' to complete.
Registration complete.
{'ProgressStatus': 'COMPLETE', 'Description': 'Deployment is currently in DEPLOY_STAGE of status COMPLETED; ', 'TypeArn': 'arn:aws:cloudformation:eu-central-1:112233445566:type/resource/MyOrg-Dataprovider-Variable', 'TypeVersionArn': 'arn:aws:cloudformation:eu-central-1:112233445566:type/resource/MyOrg-Dataprovider-Variable/00000006', 'ResponseMetadata': {'RequestId': '1171feb8-fc07-421b-ac6d-ed8ee361d15c', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amzn-requestid': '1171feb8-fc07-421b-ac6d-ed8ee361d15c', 'content-type': 'text/xml', 'content-length': '707', 'date': 'Sun, 01 Nov 2020 13:33:04 GMT'}, 'RetryAttempts': 0}}
Set default version to 'arn:aws:cloudformation:eu-central-1:112233445566:type/resource/MyOrg-Dataprovider-Variable/00000006
So far all worked. but when trying to use the resource type in template
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
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
Activity
kallu commentedon Nov 1, 2020
There was a recent update for cfn java plugin, that looks like something that could be related to this issue?
aws-cloudformation/cloudformation-cli-java-plugin#316
ammokhov commentedon Nov 2, 2020
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.htmlkallu commentedon Nov 2, 2020
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?
ammokhov commentedon Nov 3, 2020
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
ammokhov commentedon Nov 5, 2020
@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
maintux commentedon Nov 5, 2020
Hi, I had the same error. With the new version, all worked fine. Thanks
ammokhov commentedon Nov 5, 2020
@maintux thanks for the reply. closing the issue
kallu commentedon Nov 7, 2020
Sorry for the late reply, but
cloudformation-cli-python-lib 2.1.3fixes the issue for me as well.One thing to note is
cfn initis still generating requirements.txt withcloudformation-cli-python-lib==2.1.1ammokhov commentedon Nov 7, 2020
@kallu we recently released plugin library but not the codegen package. We should release it early next week