【发布时间】:2019-04-07 17:34:22
【问题描述】:
buildspec.yml:
version: 0.2
phases:
build:
commands:
- echo Build started on `date`
- echo Compiling the Python code...
- python HelloWorld_tst.py
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- HelloWorld.py
- appspec.yml
discard-paths: yes
appspec.yml
version: 0.0
Resources:
- autovisionfunction:
Type: AWS::Lambda::Function
Properties:
Name: "autovisionfunction"
Alias: "staging"
CurrentVersion: "1"
TargetVersion: "2"
似乎在 CodePipeline 中找不到 appspec.yml
我从 S3 存储桶下载了 artefact zip,里面有 appspec.yml。
我错过了什么?
谢谢
奥利亚
【问题讨论】:
-
你确定文件扩展名必须是
.yml吗? 12 年来,YAML 文件的 officially recommended extension 一直是.yaml -
我尝试了所有可能的格式和扩展,问题仍然存在
appspec.json appspec.yaml appspec.yml buildspec.yml HelloWorld_tst.py HelloWorld.py
标签: amazon-web-services aws-lambda aws-code-deploy aws-codepipeline