【问题标题】:Amplify: Failed to get profile: Profile configuration is missing for: undefined放大:无法获取配置文件:缺少配置文件配置:未定义
【发布时间】:2021-07-23 06:19:39
【问题描述】:

amplify cli 有一些问题: 不知道是不是跟最近的cli更新有关...

amplify init
? Do you want to use an existing environment? Yes
? Choose the environment you would like to use: staging
Using default provider  awscloudformation
? Select the authentication method you want to use: AWS profile
Failed to get profile: Profile configuration is missing for: undefined

amplify configure
Specify the AWS Region xxx
Specify the username of the new IAM user: xxx
Complete the user creation using the AWS console

Enter the access key of the newly created user:
 accessKeyId:  ********************
 secretAccessKey:  ****************************************

This would update/create the AWS Profile in your local machine
? Profile Name: default
Successfully set up the new user.

amplify push
? Select the authentication method you want to use: AWS profile
Failed to get profile: Profile configuration is missing for: undefined

amplify push
? Select the authentication method you want to use: Amplify Admin UI

好的!这段时间有效

UPDATE_IN_PROGRESS ...
UPDATE_FAILED      DeploymentBucket                         
AWS::S3::Bucket            Thu  API: s3:SetBucketEncryption Access Denied
(as admin)

我该如何解决这个问题?

【问题讨论】:

    标签: amazon-iam aws-amplify aws-amplify-cli


    【解决方案1】:

    好的,我找到了解决方案。 在 amplify/.config/local-aws-info.json 里面 改变

      "staging": {
        "configLevel": "amplifyAdmin"
      }
    

    {
      "staging": {
        "configLevel": "project",
        "useProfile": true,
        "profileName": "default"
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-16
      • 2014-11-18
      • 1970-01-01
      • 1970-01-01
      • 2013-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多