-
Notifications
You must be signed in to change notification settings - Fork 1k
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
CDK tutorial does not work [Value of property Types must be of type List of String] #1764
Comments
I am having the same issue. I filed a ticket with AWS yesterday. |
The solution for now is to downgrade all cdk packages to |
OK, finally I found workaround.
to |
H/t @skinny85 for the below information. There was a change in the AWS SAM specification that AWS CDK uses for automatically generating classes in the @aws-cdk/aws-sam module. In this PR, the
to:
AWS Chalice still generates the AWS SAM template using the older AWS CloudFormation specification that uses
It seems to break when AWS CDK Perhaps AWS Chalice should be updated to produce the new AWS CloudFormation specification to avoid the need in the escape hatch. |
This is a little worrying. The CDK takes the SAM spec from the GoFormation project. Apparently this change to the SAM spec was done in awslabs/goformation#376. However, this would imply that the SAM folks made breaking change in their spec, which I hope is unlikely. Perhaps the correct type for that property should be a union between a string, and the |
Hmm, the public SAM docs state:
So maybe this really was a breaking change in SAM....? |
Confirmed with the SAM folks that this is actually incorrect in the docs, and that string is still allowed there. I will patch this in the CDK. |
I followed the steps in official CDK tutorials but couldn't make it work.
Cloudformation detected some type errors, but according to AWS documents,
AWS::ApiGateway::RestApi
doesn't have propertyTypes
.I don't know if this is because of my setups. I suspect some Cloudformation APIs have changed.
Are there any workaround for this?
Steps to reproduce
Version information:
The text was updated successfully, but these errors were encountered: