【发布时间】:2020-12-09 14:11:33
【问题描述】:
我正在尝试使用无服务器框架创建 AWS IoT 事物。以下是我的 YAML 文件。
我收到“操作‘无效的证书资源配置’时发生错误..”。
任何线索可能是什么问题?
service: winds-delivery-infra
provider:
name: aws
runtime: nodejs12.x
stage: dev
region: ap-south-1
functions:
hello:
handler: handler.hello
resources:
Resources:
IoTThing:
Type: AWS::IoT::Thing
IoTPolicy:
Type: AWS::IoT::Policy
Properties:
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action: ["iot:Connect"]
Resource: "*"
- Effect: "Allow"
Action: ["iot:Publish","iot:Subscribe","iot:Receive"]
Resource: "*"
IoTCertificate:
Type: AWS::IoT::Certificate
Properties:
Status: "ACTIVE"
PolicyPrincipalAttachmentCert:
Type: AWS::IoT::PolicyPrincipalAttachment
Properties:
PolicyName:
Ref: IoTPolicy
Principal: { Fn::GetAtt: [IoTCertificate, Arn] }
【问题讨论】:
-
该错误消息中是否还有更多字词?如果是这样,他们可能会很有帮助
-
没有有用的错误信息。这就是我被卡住的原因。
标签: amazon-cloudformation serverless-framework aws-iot