AWS Image Builder Component

Hello, I am trying to create a aws_imagebuilder_component but I am stuck. There is always an error for “parameters” in the data argument.


As you can see, the KernelVersion is required in the ExecuteBash. No error is thrown when I try “terraform plan” but when I do “terraform apply”, this error is thrown: error creating Image Builder Component: InvalidParameterValueException: The value supplied for parameter ‘data’ is not valid. Failed to parse document. Error: line 1: field parameter not found in type Document.

Any fix pls?