我正在尝试创建一个自定义组件文档。虽然我使用各种 yaml linter 测试了 yaml 文件,但 EC2 Image builder 抱怨以下错误
Failed to create component. Fix the error(s) and try again:
The value supplied for parameter 'data' is not valid. Parsing step 'ConfigureMySQL' in phase 'build' failed. Error: line 4: cannot unmarshal map into string.
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚我的 yaml 文件出了什么问题
name: MyJavaAppTestDocument
description: This is JavaApp Document
schemaVersion: 1.0
phases:
- name: build
steps:
- name: InstallSoftware
action: ExecuteBash
inputs:
commands:
- sudo yum update -y
- sudo yum install -y java-1.8.0
- …Run Code Online (Sandbox Code Playgroud)