【问题标题】:AWS EB & Python, How to reset the Elastic Beanstalk accesskey and secretaccesskey?AWS EB & Python,如何重置 Elastic Beanstalk 访问密钥和秘密访问密钥?
【发布时间】:2020-11-28 14:31:16
【问题描述】:

我已经为EB配置了一个Python应用程序,安装awsebcli后,我输入了错误的用户名和访问密钥,现在我无法更改它,

当我尝试eb init -p python=3.6 env 时,出现以下错误,

   ERROR: NotAuthorizedError - Operation Denied. User: arn:aws:iam::xxxxxxx:user/test is not authorized to perform: elasticbeanstalk:CreateApplication on resource: arn:aws:elasticbeanstalk:us-west-2:2391:application/tryaws

我尝试执行以下命令, eb init , eb config 但仍然导致相同的错误。

我正在关注本指南 > https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html

【问题讨论】:

    标签: amazon-web-services amazon-elastic-beanstalk


    【解决方案1】:

    EB CLI 在您的 ~/.aws/config 文件中创建一个配置文件。

    例如

    [profile eb-cli]
    aws_access_key_id = AKxxxxxxxxxxxxDKIX
    aws_secret_access_key = y0uY3xxxxxxxxxxxxxxxxxxxDd
    

    因此,您可以在此文件中将密钥更改为正确的密钥。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-03-23
      • 2021-12-25
      • 1970-01-01
      • 1970-01-01
      • 2017-10-02
      • 2020-03-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多