Jim*_*one 6 amazon-iam aws-amplify aws-amplify-cli
我的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
Run Code Online (Sandbox Code Playgroud)
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.
Run Code Online (Sandbox Code Playgroud)
amplify push
? Select the authentication method you want to use: AWS profile
Failed to get profile: Profile configuration is missing for: undefined
Run Code Online (Sandbox Code Playgroud)
amplify push
? Select the authentication method you want to use: Amplify Admin UI
Run Code Online (Sandbox Code Playgroud)
好的!这次正在工作
UPDATE_IN_PROGRESS ...
UPDATE_FAILED DeploymentBucket
AWS::S3::Bucket Thu API: s3:SetBucketEncryption Access Denied
(as admin)
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
Jim*_*one 17
好的,我找到了解决方案。在 amplify/.config/local-aws-info.json 更改内
"staging": {
"configLevel": "amplifyAdmin"
}
Run Code Online (Sandbox Code Playgroud)
和
{
"staging": {
"configLevel": "project",
"useProfile": true,
"profileName": "default"
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5687 次 |
| 最近记录: |