gpt4 book ai didi

amazon-web-services - zip 不支持 1980 aws 之前的时间戳

转载 作者:行者123 更新时间:2023-12-04 08:16:00 24 4
gpt4 key购买 nike

我们正在使用 aws codestar 创建项目。这些工作正常。但从今天开始,我们面临以下问题:

Unable to upload artifact None referenced by CodeUri parameter of GetCompanyRecords resource.

zip does not support timestamps before 1980


现在,当我再次删除 aws-sdk 模块时,它工作正常。但是当我再次添加它时,构建失败。我很担心这个。这是我的 lambda 函数。
GetCompanyRecords:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs6.10
Role:
Fn::ImportValue:
!Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]
Timeout: 10
Events:
PostEvent:
Type: Api
Properties:
Path: /getCompanyRecords
Method: post
提前致谢

最佳答案

你忘记了用 git 初始化代码库:)。这意味着它正在尝试从 git 的头部创建一个 zip 但失败了

rm -rf .git
git init
git add .
git commit -am 'First commit'

关于amazon-web-services - zip 不支持 1980 aws 之前的时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49341263/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com