use*_*403 5 amazon-web-services aws-cloudformation amazon-cloudwatch
我有一个cloudformation模板来使用API网关构建我的api.
我不知道如何:
在cloudformation模板中为舞台启用cloudwatch日志
将阶段分配给cloudformation模板中的自定义域名.
在json cloudformation模板中是否可以使用其中任何一个?
是的,您可以在 cloudformation 中启用 cloudwatch 日志:
cloudwatch 条目应该与此类似:
"SecurityGroupChangesAlarm": {
"Type": "AWS::CloudWatch::Alarm",
"Properties": {
"AlarmName" : "CloudTrailSecurityGroupChanges",
"AlarmDescription" : "Alarms when an API call is made to create, update or delete a Security Group.",
"AlarmActions" : [{ "Ref" : "AlarmNotificationTopic" }],
"MetricName" : "SecurityGroupEventCount",
"Namespace" : "CloudTrailMetrics",
"ComparisonOperator" : "GreaterThanOrEqualToThreshold",
"EvaluationPeriods" : "1",
"Period" : "300",
"Statistic" : "Sum",
"Threshold" : "1"
}
},
Run Code Online (Sandbox Code Playgroud)
检查 aws官方文档,那里有详细的说明。
cloudformation 模板中未定义自定义域名。它应该按照aws doc中的指定单独创建:
| 归档时间: |
|
| 查看次数: |
1417 次 |
| 最近记录: |