我对放大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: undefinedamplify 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: undefinedamplify 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)我该如何解决这个问题?
发布于 2021-04-30 07:33:00
好吧,我找到了解决办法。在扩容/..config/local-AWS-info.json更改中
"staging": {
"configLevel": "amplifyAdmin"
}使用
{
"staging": {
"configLevel": "project",
"useProfile": true,
"profileName": "default"
}
}https://stackoverflow.com/questions/67324857
复制相似问题