Terraform Autoscaling - 默认开启详细监控
Terraform Autoscaling - Detailed monitoring turned on by default
当我在启动配置中使用自动缩放时,详细监控似乎默认启用。
当我直接使用aws_instance
资源创建EC2实例时,详细监控似乎默认禁用。
这种差异有什么原因吗?如果我不需要对我的应用程序进行详细监控(每 1 分钟发送一次数据),我可以在 Autoscaling 使用的启动配置中安全地将其设置为 false 吗?
我已阅读以下链接,但无法找到有关监控级别的任何其他信息。
https://www.terraform.io/docs/providers/aws/r/launch_configuration.html#enable_monitoring
https://www.terraform.io/docs/providers/aws/r/instance.html#monitoring
这只是 AWS API 中提到的东西 AWS User Guide:
By default, basic monitoring is enabled when you create a launch configuration using the AWS Management Console and detailed monitoring is enabled when you create a launch configuration using the AWS CLI or an API.
当我在启动配置中使用自动缩放时,详细监控似乎默认启用。
当我直接使用aws_instance
资源创建EC2实例时,详细监控似乎默认禁用。
这种差异有什么原因吗?如果我不需要对我的应用程序进行详细监控(每 1 分钟发送一次数据),我可以在 Autoscaling 使用的启动配置中安全地将其设置为 false 吗?
我已阅读以下链接,但无法找到有关监控级别的任何其他信息。
https://www.terraform.io/docs/providers/aws/r/launch_configuration.html#enable_monitoring
https://www.terraform.io/docs/providers/aws/r/instance.html#monitoring
这只是 AWS API 中提到的东西 AWS User Guide:
By default, basic monitoring is enabled when you create a launch configuration using the AWS Management Console and detailed monitoring is enabled when you create a launch configuration using the AWS CLI or an API.