我想开始使用 AWS SAM,但在尝试部署到 AWS 时遇到了这个问题。
我正在尝试部署一个可以在此处找到的“Hello World!”应用程序。
这是我遇到的错误:
$ sam package --s3-bucket dolphin-code --s3-prefix prod --output-template-file packaged.yaml --region eu-central-1上传到 prod/de65208b144ad296cfdc39666a47ad1c 34671 / 34671.0 (100.00%) 成功打包工件并将输出模板写入文件 packaged.yaml。 执行以下命令部署打包好的模板 sam deploy --template-file /builds/gitlab/dophin/apis/hello-world/packaged.yaml --stack-name
$ sam deploy --template-file ./packaged.yaml --stack-name prod --capabilities CAPABILITY_IAM --region eu-central-1
Deploying with following values =============================== Stack name : prod Region : eu-central-1 Confirm changeset : False Deployment s3 bucket : None Capabilities : ["CAPABILITY_IAM"] Parameter overrides : {} Initiating deployment ===================== Error: Failed to create changeset for the stack: prod, An error occurred (ValidationError) when calling the CreateChangeSet operation: Parameters: [IdentityNameParameter] must have values ERROR: Job failed: exit code 1
对我来说,这似乎是 AWS CLI 中的错误,而不是直接在 SAM 中的错误,对吧?
谁能帮我?提前致谢!