小编Fer*_*ona的帖子

无法在 AWS Cloud Shell 上安装 postgresql-client 客户端

我正在尝试从 AWS Cloud shell 安装 postgresql 客户端,但是出现以下错误:

Preparing your terminal...
Failed to open session : Timed out while opening the session
Trying to open session (Retrying. Attempt #1)
Connection is lost. Please refresh the browser to re-establish the connection.
[cloudshell-user@ip$ Try these commands to get started:
aws help  or  aws <command> help  or  aws <command> --cli-auto-prompt
[cloudshell-user@ip$ sudo apt install postgresql-client
sudo: apt: command not found
[cloudshell-user@ip$ 
Run Code Online (Sandbox Code Playgroud)

我使用下面的命令来安装 postgresql 客户端。

sudo apt install postgresql-client。

我们有什么方法可以从 AWS Cloud Shell 连接 AWS …

postgresql amazon-web-services amazon-rds aws-cloudshell

4
推荐指数
1
解决办法
3387
查看次数

在云运行上部署时,服务帐户的权限“iam.serviceaccounts.actAs”被拒绝

当我尝试使用以下命令在云上部署我的 docker 映像时:

gcloud run deploy --image $MULTI_REGION/$PROJECT/$IMAGE --memory $MEMORY --region $REGION --env-vars-file .env.yaml

我收到错误消息:

Deploying container to Cloud Run service [image-name] in project [wagon-bootcamp-352706] region [europe-west1]
X Deploying new service...                                                                                                                                                                                 
  . Creating Revision...                                                                                                                                                                                   
  . Routing traffic...                                                                                                                                                                                     
  . Setting IAM Policy...                                                                                                                                                                                  
Deployment failed                                                                                                                                                                                          
ERROR: (gcloud.run.deploy) User [demange.louis@hotmail.fr] does not have permission to access namespaces instance [wagon-bootcamp-352706] (or it may not exist): Permission 'iam.serviceaccounts.actAs' denied on service account 942802053669-compute@developer.gserviceaccount.com (or it may not exist).
Run Code Online (Sandbox Code Playgroud)

要检查项目的权限,我使用gcloud projects get-iam-policy wagon-bootcamp-352706

bindings: …
Run Code Online (Sandbox Code Playgroud)

deployment permissions user-accounts google-cloud-platform google-cloud-iam

2
推荐指数
1
解决办法
2957
查看次数