小编Aas*_*lly的帖子

EC2 Image Builder 的 yaml 中的多行 bash 脚本

我正在尝试创建一个自定义组件文档。虽然我使用各种 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)

yaml amazon-ec2

5
推荐指数
1
解决办法
4099
查看次数

标签 统计

amazon-ec2 ×1

yaml ×1