Replies: 3 comments 3 replies
-
Sounds like a bug. Can you provide your yaml file so we can try reproduce and validate it? Also, can you share the full error messages or screenshot of Lambda logs? |
Beta Was this translation helpful? Give feedback.
-
I have noticed something similar. I'm using the manifest found here: The following fails with a template validation error:
If however if I reduce the manifest to a single resource and use yaml.load not yaml.loadAll then the manifest is deployed successfully. |
Beta Was this translation helpful? Give feedback.
-
I found adding three fullstops/dots/periods (...) in front of the manifest parsed to addManifest overcomes the issue:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if this is a bug or user error, but I'm trying to use
addManifest
on an EKS cluster to deploy a manifest YAML file that contains multiple resources. Reading the docs https://docs.aws.amazon.com/cdk/api/v1/docs/@aws-cdk_aws-eks.KubernetesManifest.html suggests that it supports "any number of child resources".I've tried two approaches here. First, was to define, in TypeScript, two objects in an array that is passed to addManifest, like this:
Looking in the logs for the lambda, I get an error with validating the manifest. I can see in the log that that manifest passed to the lambda now has an extra pair of square brackets around it - for some reason it's been inserted the the only element in another array.
The second approach is to load the same manifest example as YAML:
This causes exactly the same problems as the first approach.
Can anyone see if I'm missing something? Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions