amplify-cli
                                
                                 amplify-cli copied to clipboard
                                
                                    amplify-cli copied to clipboard
                            
                            
                            
                        New Project Creation Fails on macOS Ventura-beta 13.0
Before opening, please confirm:
- [X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
- [X] I have searched for duplicate or closed issues.
- [x] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v15.6.0
Amplify CLI Version
9.0.0
What operating system are you using?
macOS 13 beta 13.0 (22A5266r) [macOS Ventura-beta]
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No manual changes made
Amplify Categories
Not applicable
Amplify Commands
init
Describe the bug
Creating a new project or pulling and existing project while using macOS 13.0 Ventura-beta fails to properly create an Amplify project. When running amplify init, the following snippet is logged to the terminal:
➜  latestr-amp amplify --version
9.0.0
➜  latestr-amp amplify init
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project latestramp
The following configuration will be applied:
Project information
| Name: latestramp
| Environment: dev
| Default editor: Visual Studio Code
| App type: ios
? Initialize the project with the above configuration? Yes
Using default provider  awscloudformation
? Select the authentication method you want to use: AWS profile
For more information on AWS Profiles, see:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
? Please choose the profile you want to use default
Adding backend environment dev to AWS Amplify app: d2wbrgtss8gu8h
⠏ Initializing project in the cloud...
CREATE_IN_PROGRESS amplify-latestramp-dev-85205 AWS::CloudFormation::Stack Wed Jun 22 2022 08:52:07 GMT-0700 (Pacific Daylight Time) User Initiated
CREATE_IN_PROGRESS DeploymentBucket             AWS::S3::Bucket            Wed Jun 22 2022 08:52:11 GMT-0700 (Pacific Daylight Time)
CREATE_IN_PROGRESS AuthRole                     AWS::IAM::Role             Wed Jun 22 2022 08:52:11 GMT-0700 (Pacific Daylight Time)
CREATE_IN_PROGRESS UnauthRole                   AWS::IAM::Role             Wed Jun 22 2022 08:52:11 GMT-0700 (Pacific Daylight Time)
⠙ Initializing project in the cloud...
CREATE_IN_PROGRESS DeploymentBucket AWS::S3::Bucket Wed Jun 22 2022 08:52:12 GMT-0700 (Pacific Daylight Time) Resource creation Initiated
CREATE_IN_PROGRESS AuthRole         AWS::IAM::Role  Wed Jun 22 2022 08:52:12 GMT-0700 (Pacific Daylight Time) Resource creation Initiated
⠙ Initializing project in the cloud...
CREATE_IN_PROGRESS UnauthRole AWS::IAM::Role Wed Jun 22 2022 08:52:12 GMT-0700 (Pacific Daylight Time) Resource creation Initiated
⠧ Initializing project in the cloud...
CREATE_COMPLETE UnauthRole                   AWS::IAM::Role             Wed Jun 22 2022 08:52:32 GMT-0700 (Pacific Daylight Time)
CREATE_COMPLETE AuthRole                     AWS::IAM::Role             Wed Jun 22 2022 08:52:33 GMT-0700 (Pacific Daylight Time)
CREATE_COMPLETE DeploymentBucket             AWS::S3::Bucket            Wed Jun 22 2022 08:52:33 GMT-0700 (Pacific Daylight Time)
CREATE_COMPLETE amplify-latestramp-dev-85205 AWS::CloudFormation::Stack Wed Jun 22 2022 08:52:36 GMT-0700 (Pacific Daylight Time)
✔ Successfully created initial AWS cloud resources for deployments.
✔ Help improve Amplify CLI by sharing non sensitive configurations on failures (y/N) · no
Error: File at path: '/Users/kiloloco/local/tmp/latestr-amp/amplify/cli.json' does not exist
    at Function.readJson (/snapshot/repo/build/node_modules/amplify-cli-core/lib/jsonUtilities.js:40:19)
    at StateManager.getData (/snapshot/repo/build/node_modules/amplify-cli-core/lib/state-manager/stateManager.js:309:56)
    at StateManager.getCLIJSON (/snapshot/repo/build/node_modules/amplify-cli-core/lib/state-manager/stateManager.js:254:25)
    at DebugConfig.getCLIJson (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/app-config/debug-config.js:31:48)
    at DebugConfig.writeShareProjectConfig (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/app-config/debug-config.js:44:30)
    at DebugConfig.setAndWriteShareProject (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/app-config/debug-config.js:66:14)
    at onSuccess (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/init-steps/s9-onSuccess.js:77:45)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/commands/init.js:30:13)
    at async Object.executeAmplifyCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/index.js:292:9)
    at async executePluginModuleCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:142:5)
    at async executeCommand (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:40:9)
    at async Object.run (/snapshot/repo/build/node_modules/@aws-amplify/cli-internal/lib/index.js:165:13)
➜  latestr-amp amplify add auth
Using service: Cognito, provided by: awscloudformation
 The current configured provider is Amazon Cognito.
 Do you want to use the default authentication and security configuration? Default configuration
 Warning: you will not be able to edit these selections.
 How do you want users to be able to sign in? Username
 Do you want to configure advanced settings? No, I am done.
✅ Successfully added auth resource latestramp3d902fb7 locally
✅ Some next steps:
"amplify push" will build all your local backend resources and provision it in the cloud
"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud
➜  latestr-amp amplify push -y
✖ There was an error pulling the backend environment dev.
🛑 An error occurred during the push operation: /
The specified key does not exist.
⚠️ Review the Amplify CLI troubleshooting guide for potential next steps: https://docs.amplify.aws/cli/project/troubleshooting/
This seems to be a Ventura-beta specific issue because tests on Monterey seem to work: Mac mini M1 Ventura-beta: :x: MBP Intel Ventura-beta: :x: MBP Intel Monterey: :white_check_mark:
Expected behavior
Successfully create an Amplify project and push the configuration to the backend.
Reproduction steps
- Install macOS 13.0 beta on your machine
- Create an Xcode project
- Attempt to create a new Amplify project for the new iOS project by running amplify init
GraphQL schema(s)
N/A
Log output
2022-06-22T15:05:40.379Z|info : amplify upgrade core
2022-06-22T15:05:40.424Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:06:23.953Z|info : amplify init core
2022-06-22T15:06:23.990Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:06:37.333Z|info : amplify version core  {"version":true,"yes":false}
2022-06-22T15:06:42.125Z|info : amplify init core
2022-06-22T15:06:42.158Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:06:45.926Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["default"])
2022-06-22T15:06:45.930Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-west-2"}])
2022-06-22T15:06:45.930Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["default"])
2022-06-22T15:06:45.943Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2022-06-22T15:06:46.285Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]ikit","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
2022-06-22T15:06:46.600Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]9cp8um","environmentName":"[***]ev"}])
2022-06-22T15:06:46.705Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]9cp8um","environmentName":"[***]ev"}])
NotFoundException: BackendEnvironment dev does not exist.
2022-06-22T15:06:46.706Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]9cp8um","environmentName":"[***]ev","stackName":"[***]ify-[***]ikit-[***]ev-[***]45","deploymentArtifacts":"amplify-someuikit-dev-80645-deployment"}])
2022-06-22T15:06:46.838Z|info : amplify-provider-awscloudformation.aws-cfn.cfnModel.createStack([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45","Capabilities":["CAPABILITY_NAMED_IAM","CAPABILITY_AUTO_EXPAND"],"TemplateBody":"{\"AWSTemplateFormatVersion\":\"2010-09-09\",\"Description\":\"{\\\"createdOn\\\":\\\"Mac\\\",\\\"createdBy\\\":\\\"Amplify\\\",\\\"createdWith\\\":\\\"9.0.0\\\",\\\"stackType\\\":\\\"root\\\",\\\"metadata\\\":{}}\",\"Parameters\":{\"[***]cketName\":{\"Description\":\"Name of the common deployment bucket provided by the parent stack\",\"Type\":\"String\",\"Default\":\"DeploymentBucket\"},\"[***]eName\":{\"Type\":\"String\",\"Default\":\"AuthRoleName\"},\"[***]leName\":{\"Type\":\"String\",\"Default\":\"UnauthRoleName\"}},\"Resources\":{\"DeploymentBucket\":{\"Type\":\"AWS::S3::Bucket\",\"DeletionPolicy\":\"Retain\",\"Properties\":{\"BucketName\":{\"Ref\":\"DeploymentBucketName\"},\"BucketEncryption\":{\"ServerSideEncryptionConfiguration\":[{\"ServerSideEncryptionByDefault\":{\"SSEAlgorithm\":\"AES256\"}}]}}},\"AuthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"AuthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}},\"UnauthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"UnauthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}}},\"Outputs\":{\"Region\":{\"Description\":\"CloudFormation provider root stack Region\",\"Value\":{\"Ref\":\"AWS::Region\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-Region\"}}},\"StackName\":{\"Description\":\"CloudFormation provider root stack ID\",\"Value\":{\"Ref\":\"AWS::StackName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackName\"}}},\"StackId\":{\"Description\":\"CloudFormation provider root stack name\",\"Value\":{\"Ref\":\"AWS::StackId\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackId\"}}},\"DeploymentBucketName\":{\"Description\":\"CloudFormation provider root stack deployment bucket name\",\"Value\":{\"Ref\":\"DeploymentBucketName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-DeploymentBucketName\"}}},\"AuthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"AuthRole\",\"Arn\"]}},\"UnauthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"UnauthRole\",\"Arn\"]}},\"AuthRoleName\":{\"Value\":{\"Ref\":\"AuthRole\"}},\"UnauthRoleName\":{\"Value\":{\"Ref\":\"UnauthRole\"}}}}","Parameters":[{"ParameterKey":"DeploymentBucketName","ParameterValue":"amplify-someuikit-dev-80645-deployment"},{"ParameterKey":"AuthRoleName","ParameterValue":"amplify-someuikit-dev-80645-authRole"},{"ParameterKey":"UnauthRoleName","ParameterValue":"amplify-someuikit-dev-80645-unauthRole"}],"Tags":[{"Key":"[***]tack","Value":"dev"},{"Key":"[***]ication","Value":"someuikit"}]}])
2022-06-22T15:06:47.264Z|info : amplify-provider-awscloudformation.aws-cfn.cfnModel.createStack([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45","Capabilities":["CAPABILITY_NAMED_IAM","CAPABILITY_AUTO_EXPAND"],"TemplateBody":"{\"AWSTemplateFormatVersion\":\"2010-09-09\",\"Description\":\"{\\\"createdOn\\\":\\\"Mac\\\",\\\"createdBy\\\":\\\"Amplify\\\",\\\"createdWith\\\":\\\"9.0.0\\\",\\\"stackType\\\":\\\"root\\\",\\\"metadata\\\":{}}\",\"Parameters\":{\"[***]cketName\":{\"Description\":\"Name of the common deployment bucket provided by the parent stack\",\"Type\":\"String\",\"Default\":\"DeploymentBucket\"},\"[***]eName\":{\"Type\":\"String\",\"Default\":\"AuthRoleName\"},\"[***]leName\":{\"Type\":\"String\",\"Default\":\"UnauthRoleName\"}},\"Resources\":{\"DeploymentBucket\":{\"Type\":\"AWS::S3::Bucket\",\"DeletionPolicy\":\"Retain\",\"Properties\":{\"BucketName\":{\"Ref\":\"DeploymentBucketName\"},\"BucketEncryption\":{\"ServerSideEncryptionConfiguration\":[{\"ServerSideEncryptionByDefault\":{\"SSEAlgorithm\":\"AES256\"}}]}}},\"AuthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"AuthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}},\"UnauthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"UnauthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}}},\"Outputs\":{\"Region\":{\"Description\":\"CloudFormation provider root stack Region\",\"Value\":{\"Ref\":\"AWS::Region\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-Region\"}}},\"StackName\":{\"Description\":\"CloudFormation provider root stack ID\",\"Value\":{\"Ref\":\"AWS::StackName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackName\"}}},\"StackId\":{\"Description\":\"CloudFormation provider root stack name\",\"Value\":{\"Ref\":\"AWS::StackId\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackId\"}}},\"DeploymentBucketName\":{\"Description\":\"CloudFormation provider root stack deployment bucket name\",\"Value\":{\"Ref\":\"DeploymentBucketName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-DeploymentBucketName\"}}},\"AuthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"AuthRole\",\"Arn\"]}},\"UnauthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"UnauthRole\",\"Arn\"]}},\"AuthRoleName\":{\"Value\":{\"Ref\":\"AuthRole\"}},\"UnauthRoleName\":{\"Value\":{\"Ref\":\"UnauthRole\"}}}}","Parameters":[{"ParameterKey":"DeploymentBucketName","ParameterValue":"amplify-someuikit-dev-80645-deployment"},{"ParameterKey":"AuthRoleName","ParameterValue":"amplify-someuikit-dev-80645-authRole"},{"ParameterKey":"UnauthRoleName","ParameterValue":"amplify-someuikit-dev-80645-unauthRole"}],"Tags":[{"Key":"[***]tack","Value":"dev"},{"Key":"[***]ication","Value":"someuikit"}]}])
2022-06-22T15:06:52.269Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45"}])
2022-06-22T15:06:52.496Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ikit-[***]ev-[***]45/[***]10c0-[***]3c-[***]ec-[***]c4-[***]e5049"}])
2022-06-22T15:06:57.272Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45"}])
2022-06-22T15:06:57.501Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ikit-[***]ev-[***]45/[***]10c0-[***]3c-[***]ec-[***]c4-[***]e5049"}])
2022-06-22T15:07:02.271Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45"}])
2022-06-22T15:07:02.482Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ikit-[***]ev-[***]45/[***]10c0-[***]3c-[***]ec-[***]c4-[***]e5049"}])
2022-06-22T15:07:07.270Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45"}])
2022-06-22T15:07:07.467Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ikit-[***]ev-[***]45/[***]10c0-[***]3c-[***]ec-[***]c4-[***]e5049"}])
2022-06-22T15:07:12.272Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45"}])
2022-06-22T15:07:12.461Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ikit-[***]ev-[***]45/[***]10c0-[***]3c-[***]ec-[***]c4-[***]e5049"}])
2022-06-22T15:07:17.274Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ikit-[***]ev-[***]45"}])
2022-06-22T15:07:17.475Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ikit-[***]ev-[***]45/[***]10c0-[***]3c-[***]ec-[***]c4-[***]e5049"}])
2022-06-22T15:07:31.165Z|info : amplify add auth
2022-06-22T15:07:31.199Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:07:42.523Z|info : amplify push core  {"yes":true}
2022-06-22T15:07:42.559Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:07:43.102Z|info : amplify-provider-awscloudformation.aws-s3.deleteDirectory.s3.getAllObjectVersions([{"BucketName":"[***]ify-[***]ikit-[***]ev-[***]45-[***]ment"}])
2022-06-22T15:07:43.103Z|info : amplify-provider-awscloudformation.aws-s3.getAllObjectKey.s3.listObjectVersions([{"Bucket":"[***]ify-[***]ikit-[***]ev-[***]45-[***]ment","Prefix":"hooks/"}])
2022-06-22T15:07:43.454Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Body":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":1,"path":"/Users/kiloloco/local/tmp/someuikit/amplify/[***]ks/[***]st-[***]sample","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"Key":"hooks/post-push.sh.sample","Bucket":"[***]ify-[***]ikit-[***]ev-[***]45-[***]ment"}])
2022-06-22T15:07:43.681Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Body":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":1,"path":"/Users/kiloloco/local/tmp/someuikit/amplify/[***]ks/[***]re-[***]sample","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"Key":"hooks/pre-push.js.sample","Bucket":"[***]ify-[***]ikit-[***]ev-[***]45-[***]ment"}])
2022-06-22T15:07:43.925Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Body":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":1,"path":"/Users/kiloloco/local/tmp/someuikit/amplify/[***]ks/[***]E.md","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"Key":"hooks/README.md","Bucket":"[***]ify-[***]ikit-[***]ev-[***]45-[***]ment"}])
2022-06-22T15:07:44.211Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2022-06-22T15:07:44.212Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]ikit-[***]ev-[***]45-[***]ment"}])
2022-06-22T15:07:44.386Z|error : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]ikit-[***]ev-[***]45-[***]ment"}])
NoSuchKey: The specified key does not exist.
2022-06-22T15:07:44.386Z|error : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
NoSuchKey: The specified key does not exist.
2022-06-22T15:51:56.595Z|info : amplify version core  {"version":true,"yes":false}
2022-06-22T15:52:01.892Z|info : amplify init core
2022-06-22T15:52:01.932Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:52:05.727Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["default"])
2022-06-22T15:52:05.729Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-west-2"}])
2022-06-22T15:52:05.729Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["default"])
2022-06-22T15:52:05.738Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2022-06-22T15:52:06.091Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]ramp","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
2022-06-22T15:52:06.592Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]s8gu8h","environmentName":"[***]ev"}])
2022-06-22T15:52:06.687Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]s8gu8h","environmentName":"[***]ev"}])
NotFoundException: BackendEnvironment dev does not exist.
2022-06-22T15:52:06.688Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]s8gu8h","environmentName":"[***]ev","stackName":"[***]ify-[***]ramp-[***]ev-[***]05","deploymentArtifacts":"amplify-latestramp-dev-85205-deployment"}])
2022-06-22T15:52:06.873Z|info : amplify-provider-awscloudformation.aws-cfn.cfnModel.createStack([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05","Capabilities":["CAPABILITY_NAMED_IAM","CAPABILITY_AUTO_EXPAND"],"TemplateBody":"{\"AWSTemplateFormatVersion\":\"2010-09-09\",\"Description\":\"{\\\"createdOn\\\":\\\"Mac\\\",\\\"createdBy\\\":\\\"Amplify\\\",\\\"createdWith\\\":\\\"9.0.0\\\",\\\"stackType\\\":\\\"root\\\",\\\"metadata\\\":{}}\",\"Parameters\":{\"[***]cketName\":{\"Description\":\"Name of the common deployment bucket provided by the parent stack\",\"Type\":\"String\",\"Default\":\"DeploymentBucket\"},\"[***]eName\":{\"Type\":\"String\",\"Default\":\"AuthRoleName\"},\"[***]leName\":{\"Type\":\"String\",\"Default\":\"UnauthRoleName\"}},\"Resources\":{\"DeploymentBucket\":{\"Type\":\"AWS::S3::Bucket\",\"DeletionPolicy\":\"Retain\",\"Properties\":{\"BucketName\":{\"Ref\":\"DeploymentBucketName\"},\"BucketEncryption\":{\"ServerSideEncryptionConfiguration\":[{\"ServerSideEncryptionByDefault\":{\"SSEAlgorithm\":\"AES256\"}}]}}},\"AuthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"AuthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}},\"UnauthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"UnauthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}}},\"Outputs\":{\"Region\":{\"Description\":\"CloudFormation provider root stack Region\",\"Value\":{\"Ref\":\"AWS::Region\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-Region\"}}},\"StackName\":{\"Description\":\"CloudFormation provider root stack ID\",\"Value\":{\"Ref\":\"AWS::StackName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackName\"}}},\"StackId\":{\"Description\":\"CloudFormation provider root stack name\",\"Value\":{\"Ref\":\"AWS::StackId\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackId\"}}},\"DeploymentBucketName\":{\"Description\":\"CloudFormation provider root stack deployment bucket name\",\"Value\":{\"Ref\":\"DeploymentBucketName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-DeploymentBucketName\"}}},\"AuthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"AuthRole\",\"Arn\"]}},\"UnauthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"UnauthRole\",\"Arn\"]}},\"AuthRoleName\":{\"Value\":{\"Ref\":\"AuthRole\"}},\"UnauthRoleName\":{\"Value\":{\"Ref\":\"UnauthRole\"}}}}","Parameters":[{"ParameterKey":"DeploymentBucketName","ParameterValue":"amplify-latestramp-dev-85205-deployment"},{"ParameterKey":"AuthRoleName","ParameterValue":"amplify-latestramp-dev-85205-authRole"},{"ParameterKey":"UnauthRoleName","ParameterValue":"amplify-latestramp-dev-85205-unauthRole"}],"Tags":[{"Key":"[***]tack","Value":"dev"},{"Key":"[***]ication","Value":"latestramp"}]}])
2022-06-22T15:52:07.322Z|info : amplify-provider-awscloudformation.aws-cfn.cfnModel.createStack([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05","Capabilities":["CAPABILITY_NAMED_IAM","CAPABILITY_AUTO_EXPAND"],"TemplateBody":"{\"AWSTemplateFormatVersion\":\"2010-09-09\",\"Description\":\"{\\\"createdOn\\\":\\\"Mac\\\",\\\"createdBy\\\":\\\"Amplify\\\",\\\"createdWith\\\":\\\"9.0.0\\\",\\\"stackType\\\":\\\"root\\\",\\\"metadata\\\":{}}\",\"Parameters\":{\"[***]cketName\":{\"Description\":\"Name of the common deployment bucket provided by the parent stack\",\"Type\":\"String\",\"Default\":\"DeploymentBucket\"},\"[***]eName\":{\"Type\":\"String\",\"Default\":\"AuthRoleName\"},\"[***]leName\":{\"Type\":\"String\",\"Default\":\"UnauthRoleName\"}},\"Resources\":{\"DeploymentBucket\":{\"Type\":\"AWS::S3::Bucket\",\"DeletionPolicy\":\"Retain\",\"Properties\":{\"BucketName\":{\"Ref\":\"DeploymentBucketName\"},\"BucketEncryption\":{\"ServerSideEncryptionConfiguration\":[{\"ServerSideEncryptionByDefault\":{\"SSEAlgorithm\":\"AES256\"}}]}}},\"AuthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"AuthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}},\"UnauthRole\":{\"Type\":\"AWS::IAM::Role\",\"Properties\":{\"RoleName\":{\"Ref\":\"UnauthRoleName\"},\"AssumeRolePolicyDocument\":{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"\",\"Effect\":\"Deny\",\"Principal\":{\"Federated\":\"cognito-identity.amazonaws.com\"},\"Action\":\"sts:AssumeRoleWithWebIdentity\"}]}}}},\"Outputs\":{\"Region\":{\"Description\":\"CloudFormation provider root stack Region\",\"Value\":{\"Ref\":\"AWS::Region\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-Region\"}}},\"StackName\":{\"Description\":\"CloudFormation provider root stack ID\",\"Value\":{\"Ref\":\"AWS::StackName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackName\"}}},\"StackId\":{\"Description\":\"CloudFormation provider root stack name\",\"Value\":{\"Ref\":\"AWS::StackId\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-StackId\"}}},\"DeploymentBucketName\":{\"Description\":\"CloudFormation provider root stack deployment bucket name\",\"Value\":{\"Ref\":\"DeploymentBucketName\"},\"Export\":{\"Name\":{\"Fn::Sub\":\"${AWS::StackName}-DeploymentBucketName\"}}},\"AuthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"AuthRole\",\"Arn\"]}},\"UnauthRoleArn\":{\"Value\":{\"Fn::GetAtt\":[\"UnauthRole\",\"Arn\"]}},\"AuthRoleName\":{\"Value\":{\"Ref\":\"AuthRole\"}},\"UnauthRoleName\":{\"Value\":{\"Ref\":\"UnauthRole\"}}}}","Parameters":[{"ParameterKey":"DeploymentBucketName","ParameterValue":"amplify-latestramp-dev-85205-deployment"},{"ParameterKey":"AuthRoleName","ParameterValue":"amplify-latestramp-dev-85205-authRole"},{"ParameterKey":"UnauthRoleName","ParameterValue":"amplify-latestramp-dev-85205-unauthRole"}],"Tags":[{"Key":"[***]tack","Value":"dev"},{"Key":"[***]ication","Value":"latestramp"}]}])
2022-06-22T15:52:12.324Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05"}])
2022-06-22T15:52:12.525Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ramp-[***]ev-[***]05/[***]8050-[***]43-[***]ec-[***]cd-[***]5f72b"}])
2022-06-22T15:52:17.332Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05"}])
2022-06-22T15:52:17.549Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ramp-[***]ev-[***]05/[***]8050-[***]43-[***]ec-[***]cd-[***]5f72b"}])
2022-06-22T15:52:22.331Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05"}])
2022-06-22T15:52:22.502Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ramp-[***]ev-[***]05/[***]8050-[***]43-[***]ec-[***]cd-[***]5f72b"}])
2022-06-22T15:52:27.332Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05"}])
2022-06-22T15:52:27.519Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ramp-[***]ev-[***]05/[***]8050-[***]43-[***]ec-[***]cd-[***]5f72b"}])
2022-06-22T15:52:32.331Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05"}])
2022-06-22T15:52:32.524Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]rmation:us-[***]st-[***]21:stack/[***]ify-[***]ramp-[***]ev-[***]05/[***]8050-[***]43-[***]ec-[***]cd-[***]5f72b"}])
2022-06-22T15:52:37.333Z|info : amplify-provider-awscloudformation.aws-cfn.getStackEvents.cfnModel.describeStackEvents([{"StackName":"[***]ify-[***]ramp-[***]ev-[***]05"}])
2022-06-22T15:52:50.304Z|info : amplify add auth
2022-06-22T15:52:50.343Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:52:58.294Z|info : amplify push core  {"yes":true}
2022-06-22T15:52:58.330Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({}
2022-06-22T15:52:58.908Z|info : amplify-provider-awscloudformation.aws-s3.deleteDirectory.s3.getAllObjectVersions([{"BucketName":"[***]ify-[***]ramp-[***]ev-[***]05-[***]ment"}])
2022-06-22T15:52:58.909Z|info : amplify-provider-awscloudformation.aws-s3.getAllObjectKey.s3.listObjectVersions([{"Bucket":"[***]ify-[***]ramp-[***]ev-[***]05-[***]ment","Prefix":"hooks/"}])
2022-06-22T15:52:59.208Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Body":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":1,"path":"/Users/kiloloco/local/tmp/latestr-amp/amplify/[***]ks/[***]st-[***]sample","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"Key":"hooks/post-push.sh.sample","Bucket":"[***]ify-[***]ramp-[***]ev-[***]05-[***]ment"}])
2022-06-22T15:52:59.438Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Body":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":1,"path":"/Users/kiloloco/local/tmp/latestr-amp/amplify/[***]ks/[***]re-[***]sample","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"Key":"hooks/pre-push.js.sample","Bucket":"[***]ify-[***]ramp-[***]ev-[***]05-[***]ment"}])
2022-06-22T15:52:59.660Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Body":{"_readableState":{"objectMode":false,"highWaterMark":65536,"buffer":{"head":null,"tail":null,"length":0},"length":0,"pipes":[],"flowing":null,"ended":false,"endEmitted":false,"reading":false,"sync":true,"needReadable":false,"emittedReadable":false,"readableListening":false,"resumeScheduled":false,"errorEmitted":false,"emitClose":true,"autoDestroy":false,"destroyed":false,"errored":null,"closed":false,"closeEmitted":false,"defaultEncoding":"utf8","awaitDrainWriters":null,"multiAwaitDrain":false,"readingMore":false,"dataEmitted":false,"decoder":null,"encoding":null},"_events":{},"_eventsCount":1,"path":"/Users/kiloloco/local/tmp/latestr-amp/amplify/[***]ks/[***]E.md","fd":null,"flags":"r","mode":438,"end":null,"autoClose":true,"bytesRead":0,"closed":false},"Key":"hooks/README.md","Bucket":"[***]ify-[***]ramp-[***]ev-[***]05-[***]ment"}])
2022-06-22T15:52:59.929Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2022-06-22T15:52:59.931Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]ramp-[***]ev-[***]05-[***]ment"}])
2022-06-22T15:53:00.099Z|error : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]ramp-[***]ev-[***]05-[***]ment"}])
NoSuchKey: The specified key does not exist.
2022-06-22T15:53:00.099Z|error : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
NoSuchKey: The specified key does not exist.
Additional information
No response
Confirmed that it works on Monteray and other os, just not on Ventura
The issue continues on macOS 13 beta 2 (22A5286j). Best workaround seems to be to use Amplify version 8.0.0 .
Workaround Steps
Uninstall Amplify
~ amplify uninstall
Install Amplify 8.0.0 (npm required)
~ npm i -g @aws-amplify/[email protected]
Hi @Kilo-Loco, can you check if you don't happen to have an amplify project initialized in one of the parent directories? Similar issues: https://github.com/aws-amplify/amplify-cli/issues/10686 and https://github.com/aws-amplify/amplify-cli/issues/10747
@Kilo-Loco  - can you reply to @lazpavel  comment on 7/18?  The symptom "Error: File at path: '/Users/kiloloco/local/tmp/latestr-amp/amplify/cli.json' does not exist" is consistent with the known issue we're fixing for https://github.com/aws-amplify/amplify-cli/issues/10686 and https://github.com/aws-amplify/amplify-cli/issues/10747
When running tests, this was done for new projects. These new projects were not in parent directories with an amplify project initialized
Hi @Kilo-Loco, can you try upgrading to the latest amplify and re-run the amplify init command, if the issue is related to creating nested amplify projects the newest version of amplify should print the directory where it detected the project root. Otherwise, this might be a different issue that we need to investigate more.
@lazpavel facing a similar issue had to roll back to an older version, please check https://github.com/aws-amplify/amplify-cli/issues/11338