1 Star 0 Fork 0

float996/aws-iot-fleetwise-edge

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fwremoteprofiler.yml 4.41 KB
一键复制 编辑 原始数据 按行查看 历史
Geoff Phillips 提交于 2023-08-02 19:41 +08:00 . Release v1.0.7
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
AWSTemplateFormatVersion: "2010-09-09"
Resources:
RemoteProfilerCloudwatchRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Principal:
Service: iot.amazonaws.com
Action: sts:AssumeRole
Policies:
- PolicyName: !Sub ${AWS::StackName}-RemoteProfilerCloudwatchRole
PolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Action:
- "cloudwatch:PutMetricData"
- "logs:CreateLogStream"
- "logs:DescribeLogStreams"
- "logs:PutLogEvents"
Resource:
- "*"
RemoteProfilerMetricsRule:
Type: AWS::IoT::TopicRule
Properties:
RuleName: AwsIotFleetwiseMetricsUpload
TopicRulePayload:
Actions:
- CloudwatchMetric:
MetricName: "${metric1.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric1.unit}"
MetricValue: "${metric1.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric2.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric2.unit}"
MetricValue: "${metric2.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric3.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric3.unit}"
MetricValue: "${metric3.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric4.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric4.unit}"
MetricValue: "${metric4.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric5.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric5.unit}"
MetricValue: "${metric5.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric6.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric6.unit}"
MetricValue: "${metric6.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric7.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric7.unit}"
MetricValue: "${metric7.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric8.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric8.unit}"
MetricValue: "${metric8.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric9.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric9.unit}"
MetricValue: "${metric9.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
- CloudwatchMetric:
MetricName: "${metric10.name}"
MetricNamespace: AWSIotFleetWiseEdge
MetricUnit: "${metric10.unit}"
MetricValue: "${metric10.value}"
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
Description: Used by the Remote Profiler of FWE, see METRICS.md
Sql: SELECT * FROM 'aws-iot-fleetwise-metrics-upload'
RemoteProfilerLogRule:
Type: AWS::IoT::TopicRule
Properties:
RuleName: AwsIotFleetwiseLogsUpload
TopicRulePayload:
Actions:
- CloudwatchLogs:
LogGroupName: AWSIotFleetWiseEdge
RoleArn: !GetAtt RemoteProfilerCloudwatchRole.Arn
Description: Used by the Remote Profiler of FWE, see METRICS.md
Sql: SELECT * FROM 'aws-iot-fleetwise-logging-upload'
RemoteProfilerLogGroup:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: AWSIotFleetWiseEdge
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/float996/aws-iot-fleetwise-edge.git
git@gitee.com:float996/aws-iot-fleetwise-edge.git
float996
aws-iot-fleetwise-edge
aws-iot-fleetwise-edge
main

搜索帮助