我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

从API获取AWS上的默认区域

Is there a way to fetch the default region your on aws using the aws api? Im currently using the golang aws sdk

Not sure about golang but in the CLI:

aws configure list

Your account doesn't have a default region per se. The default region is particular to a client (such as your browser; when you select a region it's saved to a cookie or maybe local storage).

近期文章

  • golang gorm选择所有不在相关表中的内容
  • 如何设置golang集成测试的环境要求?
  • 筛选集合,但按内部属性排序
  • Golang XML Unmarshal仅返回子节点的最后一个值
  • 如何在Go中确定与流的连接是否断开?
  • 步数未知的并行循环
  • 如何正确防止数据争用?
  • 使用Google Sheets API V4 / REST / Go进行身份验证
  • PostForm之后的301状态代码
  • Golang DRY用于嵌套结构
  • 如何在同一台服务器上休息api和websocket?
  • 检索确切的连接-TCP套接字-通道-goroutine
  • 如何从提取到Go API发出PUT请求?
  • AppEngine:使用内存缓存时出现“调用错误3:无效的安全票”
  • Golang Logrus日志可在控制台中使用,但不会发送到Loggly
  • 在GO中使用transaction.Stmt(sqlstatement).Exec(parameter)时是否可以记录最终查询?
  • 无法使用msg:=范围msgs阻止Rabbitmq msg(msgs是一个通道)
  • Golang中的Windows Service比普通exe花费更多时间
  • Thrift编译器(0.9.3)生成Thrift包中未定义的函数thrift.PrependError
  • 高朗断管

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华