【发布时间】:2018-08-07 04:03:34
【问题描述】:
我创建了一个 bitbucket-pipelines.yml 文件来测试可以在远程 AWS 实例上运行的 powershell 脚本。
image: python:3.5.1
pipelines:
custom:
default:
- step:
caches:
- pip
script:
- pip install awscli
- aws ssm send-command --document-name "AWS-RunRemoteScript" --instance-ids "i-xxxxx" --parameters '{"sourceType":["S3"],"sourceInfo":["{\"path\": \"https://s3.us-east-2.amazonaws.com/my-bucket-name/test.ps1\"}"],"executionTimeout":["3600"]}' --timeout-seconds 600 --region us-east-2
当我尝试运行它时,我在最后一行收到以下错误消息:
bitbucket-pipelines.yml 文件中的“脚本”部分必须是字符串列表
我用其他在线 YAML 验证器检查了语法,它显示正常。不知道为什么 BitBucket 有问题。有什么指点吗?
【问题讨论】:
标签: amazon-web-services yaml bitbucket ssm amazon-ssm-agent