我刚按照这些说明(Link)在我的EC2实例上安装了AWS CloudWatch。
我检查了/var/log/awslogs.log文件,并重复显示错误: EndpointConnectionError:无法连接到端点URL:" https://logs.us-west-2b.amazonaws.com/"
我应该指向除https://logs.us-west-2b.amazonaws.com/以外的其他一些端点吗?如果是,那么配置在哪里?
提前致谢,
格雷厄姆
答案 0 :(得分:8)
awscli.conf需要区域而不是AZ。
将区域指定为us-west-2。
以下是参考页面的文档
Edit the /etc/awslogs/awscli.conf file and in the [default] section, specify the region where you want to view log data and add your credentials.
region = us-east-1
aws_access_key_id = <YOUR ACCESS KEY>
aws_secret_access_key = <YOUR SECRET KEY>
错误
EndpointConnectionError: Could not connect to the endpoint URL: "https://logs.us-west-2b.amazonaws.com/"
可归因于错误的区域规范。
US-WEST-2中cloudwatch日志服务的正确端点是
logs.us-west-2.amazonaws.com
。
请参阅以下文档了解aws服务端点 http://docs.aws.amazon.com/general/latest/gr/rande.html#cwl_region