aws-azure-login不要重新识别我的默认区域

gt0wga4j  于 2023-10-22  发布在  其他
关注(0)|答案(1)|浏览(113)

当我尝试连接aws-azure-login时,我得到了这个错误:

UnknownEndpoint: Inaccessible host: `sts.amazonaws.com' at port `undefined'. This service may not be available in the `us-east-1' region.
    at Request.ENOTFOUND_ERROR (C:\Users\500000198\AppData\Roaming\npm\node_modules\aws-azure-login\node_modules\aws-sdk\lib\event_listeners.js:529:46)
    at Request.callListeners (C:\Users\500000198\AppData\Roaming\npm\node_modules\aws-azure-login\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
    at Request.emit (C:\Users\500000198\AppData\Roaming\npm\node_modules\aws-azure-login\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
    at Request.emit (C:\Users\500000198\AppData\Roaming\npm\node_modules\aws-azure-login\node_modules\aws-sdk\lib\request.js:686:14)
    at error (C:\Users\500000198\AppData\Roaming\npm\node_modules\aws-azure-login\node_modules\aws-sdk\lib\event_listeners.js:361:22)
    at ClientRequest.<anonymous> (C:\Users\500000198\AppData\Roaming\npm\node_modules\aws-azure-login\node_modules\aws-sdk\lib\http\node.js:99:9)
    at ClientRequest.emit (node:events:390:28)
    at ClientRequest.emit (node:domain:475:12)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at TLSSocket.emit (node:domain:475:12)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'UnknownEndpoint',
  region: 'us-east-1',

但是我想连接到eu-west-3而不是us-east-1,它接缝我配置的区域从未被拾取。

> aws configure list

      Name                    Value             Type    Location
      ----                    -----             ----    --------
   profile                <not set>             None    None
access_key                <not set>             None    None
secret_key                <not set>             None    None
    region                eu-west-3      config-file    ~/.aws/config

我的~/.aws/config文件:

[default]
azure_tenant_id=d8f7***-**-**-9561de6
azure_app_id_uri=https://signin.aws.amazon.com/saml
azure_default_username=[my compagnie mail]
azure_default_role_arn=
azure_default_duration_hours=12
azure_default_remember_me=false
region=eu-west-3
    
[profile dev_dom_role]
role_arn=[ my arn role: arn:aws:iam::****:role/dev_dom_role]
source_profile=default
azure_tenant_id=d8f7***-**-**-9561de6
azure_app_id_uri=https://signin.aws.amazon.com/saml
azure_default_username=[my compagnie mail]
azure_default_role_arn=[ my arn role: arn:aws:iam::****:role/dev_dom_role]
azure_default_duration_hours=12
azure_default_remember_me=false

当我尝试配置我的配置文件与aws-azure-login --configure -p default的每一个信息是很好的reconize,但不幸的是,它没有要求地区。
如何连接?我尝试使用两个角色:dev_dom_role和default role:

aws-azure-login --mode=gui --profile dev_dom_role
aws-azure-login --mode=gui
9wbgstp7

9wbgstp71#

sts.amazonaws.com无法识别:

nslookup.exe sts.amazonaws.com

Serveur :   ad.intranet.mycompany.fr
Address:  10.10.9.9         

*** ad.intranet.mycompany.com dont find sts.amazonaws.com : Non-existent domain

我设置了代理,终于可以连接了:

PROXY=http://proxy.net:10684
  echo "SET PROXY : " $PROXY
  export http_proxy=$PROXY
  export HTTP_PROXY=$PROXY
  export https_proxy=$PROXY
  export HTTPS_PROXY=$PROXY
  npm config set proxy $PROXY
  npm config set https-proxy $PROXY
  yarn config set proxy $PROXY
  yarn config set https-proxy $PROXY

相关问题