Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below.
aws> go run .
2024/02/20 10:07:59 DescribeInstances resp: {
}, err: RequestError: send request failed
caused by: Post "https://ec2.us-east-1.amazonaws.com/": read tcp 192.168.100.18:54712->52.46.147.69:443: wsarecv: An existing connection was forcibly closed by the remote host.
Expected behavior
在本机网络使用 aws 提供的 cli 能正常访问。期望 go:sdk 能像 cli 一样正常工作。
Actual behavior
然后运行时发生了错误
在同一台电脑的 aws 的 cli 能正常工作
Steps to reproduce
Logs / stacktrace (if applicable)
Which SDK were you using?
Go (v2)
Which OS were you using?
Windows
SDK version
1.50.20
OS version
win11