首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >放大:无法获得配置文件:配置文件配置文件缺少:未定义

放大:无法获得配置文件:配置文件配置文件缺少:未定义
EN

Stack Overflow用户
提问于 2021-04-29 20:48:00
回答 1查看 4.5K关注 0票数 6

我对放大cli 有一些问题:我不知道它是否与最近的cli更新有关.

代码语言:javascript
复制
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

代码语言:javascript
复制
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.

代码语言:javascript
复制
amplify push
? Select the authentication method you want to use: AWS profile
Failed to get profile: Profile configuration is missing for: undefined

代码语言:javascript
复制
amplify push
? Select the authentication method you want to use: Amplify Admin UI

好的!这一次起作用了

代码语言:javascript
复制
UPDATE_IN_PROGRESS ...
UPDATE_FAILED      DeploymentBucket                         
AWS::S3::Bucket            Thu  API: s3:SetBucketEncryption Access Denied
(as admin)

我该如何解决这个问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-30 07:33:00

好吧,我找到了解决办法。在扩容/..config/local-AWS-info.json更改中

代码语言:javascript
复制
  "staging": {
    "configLevel": "amplifyAdmin"
  }

使用

代码语言:javascript
复制
{
  "staging": {
    "configLevel": "project",
    "useProfile": true,
    "profileName": "default"
  }
}
票数 16
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67324857

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档