Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amplify Push is trying to use Python 3.9 after creating a Virtual Environment of using 3.8 #7032

Closed
rupe120 opened this issue Apr 7, 2021 · 3 comments
Labels
bug Something isn't working functions Issues tied to the functions category

Comments

@rupe120
Copy link

rupe120 commented Apr 7, 2021

Before opening, please confirm:

I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
I have searched for duplicate or closed issues.
I have read the guide for submitting bug reports.
I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

No response

Amplify CLI Version

4.46.1

What operating system are you using?

Ubuntu

Amplify Categories

auth, api

Amplify Commands

push

Describe the bug

When I run amplify push a virtual environment is created using Python 3.8 and then an exception is thrown trying to access site-packages within a python3.9 folder.

rupe@JRUSSO-831:/c/Temp/Innovative/amplify/pushtest$ amplify push
✔ Successfully pulled backend environment dev from the cloud.

Current Environment: dev

| Category | Resource name    | Operation | Provider plugin   |
| -------- | ---------------- | --------- | ----------------- |
| Auth     | pushteste8db442e | Create    | awscloudformation |
| Function | TestFunction     | Create    | awscloudformation |
| Api      | API              | Create    | awscloudformation |
? Are you sure you want to continue? Yes
Creating a virtualenv for this project...
Pipfile: /c/Temp/Innovative/amplify/pushtest/amplify/backend/function/TestFunction/Pipfile
Using /usr/bin/python3.8 (3.8.5) to create virtualenv...
⠸ Creating virtual environment...created virtual environment CPython3.8.5.final.0-64 in 6983ms
  creator CPython3Posix(dest=/home/rupe/.local/share/virtualenvs/TestFunction-lTrPbPtN, clear=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/rupe/.local/share/virtualenv)
    added seed packages: pip==21.0.1, setuptools==50.3.2, wheel==0.36.2
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

✔ Successfully created virtual environment!
Virtualenv location: /home/rupe/.local/share/virtualenvs/TestFunction-lTrPbPtN
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (e02f68)!
Installing dependencies from Pipfile.lock (e02f68)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 1/1 — 00:00:04
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
2021-04-07T19:10:07.356Z - error: uncaughtException: Could not find a pipenv site-packages directory at /home/rupe/.local/share/virtualenvs/TestFunction-lTrPbPtN/lib/python3.9/site-packages date=Wed Apr 07 2021 15:10:07 GMT-0400 (Eastern Daylight Time), pid=3617, uid=1000, gid=1000, cwd=/c/Temp/Innovative/amplify/pushtest, execPath=/usr/bin/node, version=v10.19.0, argv=[/usr/bin/node, /usr/local/bin/amplify, push], rss=399671296, heapTotal=301740032, heapUsed=270938000, external=1356295, loadavg=[2.09033203125, 1.40673828125, 0.93408203125], uptime=65876, trace=[column=9, file=/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-python-function-runtime-provider/src/util/pyUtils.ts, function=Object.getPipenvDir, line=24, method=getPipenvDir, native=false, column=7, file=internal/process/next_tick.js, function=process._tickCallback, line=68, method=_tickCallback, native=false], stack=[Error: Could not find a pipenv site-packages directory at /home/rupe/.local/share/virtualenvs/TestFunction-lTrPbPtN/lib/python3.9/site-packages,     at Object.getPipenvDir (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/amplify-python-function-runtime-provider/src/util/pyUtils.ts:24:9),     at process._tickCallback (internal/process/next_tick.js:68:7)]

Expected behavior

A successful push

Reproduction steps

  1. Run amplify init
  2. Add an API using Python
  3. Run amplify push

GraphQL schema(s)

# Put schemas below this line

Log output

2021-04-07T15:23:45.183Z|info : amplify delete core  
2021-04-07T15:24:00.317Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T15:24:00.318Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T15:24:00.319Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T15:24:00.354Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T15:24:00.355Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T15:24:00.355Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T15:24:00.410Z|info : amplify-provider-awscloudformation.aws-s3.ifBucketExists.s3.headBucket([{"BucketName":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:00.691Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},"dev"])
2021-04-07T15:24:00.760Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:37.043Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T15:24:37.043Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T15:24:37.043Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T15:24:37.052Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2021-04-07T15:24:37.405Z|info : amplify-provider-awscloudformation.amplify-service-manager.deleteEnv.amplifyClient.deleteBackendEnvironment([{"appId":"[***]houing","environmentName":"[***]ev"}])
2021-04-07T15:24:37.646Z|info : amplify-provider-awscloudformation.aws-s3.deleteS3Bucket.s3.ifBucketExists([{"BucketName":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:37.647Z|info : amplify-provider-awscloudformation.aws-s3.ifBucketExists.s3.headBucket([{"BucketName":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:37.917Z|info : amplify-provider-awscloudformation.aws-s3.deleteS3Bucket.s3.deleteAllObjects([{"BucketName":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:37.920Z|info : amplify-provider-awscloudformation.aws-s3.deleteAllObjects.s3.getAllObjectVersions([{"BucketName":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:37.923Z|info : amplify-provider-awscloudformation.aws-s3.getAllObjectKey.s3.listObjectVersions([{"Bucket":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:38.167Z|info : amplify-provider-awscloudformation.aws-s3.deleteAllObjects.s3.deleteObjects([{"Bucket":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:38.380Z|info : amplify-provider-awscloudformation.aws-s3.deleteS3Bucket.s3.deleteBucket([{"BucketName":"[***]ify-[***]arency-[***]ev-[***]857-[***]ment"}])
2021-04-07T15:24:38.748Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T15:24:38.749Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T15:24:38.749Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T15:44:15.426Z|info : amplify init core  
2021-04-07T15:45:27.361Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss"])
2021-04-07T15:45:27.362Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T15:45:27.363Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss"])
2021-04-07T15:45:27.384Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2021-04-07T15:45:35.882Z|error : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
2021-04-07T15:45:35.886Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]rencyApp","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
2021-04-07T15:45:44.517Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]rencyApp","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1
2021-04-07T15:46:01.936Z|info : amplify init core  
2021-04-07T15:46:53.762Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T15:46:53.764Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T15:46:53.764Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T15:46:53.792Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2021-04-07T15:46:54.374Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]rencyApp","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
2021-04-07T15:46:55.756Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]t853eu","environmentName":"[***]ev"}])
2021-04-07T15:46:55.994Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]t853eu","environmentName":"[***]ev"}])
NotFoundException: BackendEnvironment dev does not exist.
2021-04-07T15:46:55.995Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]t853eu","environmentName":"[***]ev","stackName":"[***]ify-[***]rencyapp-[***]ev-[***]653","deploymentArtifacts":"amplify-feetransparencyapp-dev-114653-deployment"}])
2021-04-07T15:47:28.029Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T15:47:28.030Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T15:47:28.030Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T15:47:28.044Z|info : amplify-provider-awscloudformation.attach-backend.storeCurrentCloudBackend.s3.uploadFile([{"Key":"[***]rent-[***]ud-[***]d.zip"}])
2021-04-07T15:47:28.073Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T15:47:28.344Z|info : amplify-provider-awscloudformation.attach-backend.uploadFile.s3.uploadFile([{"Key":"[***]ify-[***]json"}])
2021-04-07T15:47:28.347Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T17:42:59.899Z|info : amplify push core  
2021-04-07T17:43:09.096Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T17:43:09.097Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T17:43:09.097Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T17:43:09.108Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-04-07T17:43:09.140Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T17:43:09.657Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T17:43:09.657Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T17:43:09.657Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T17:43:09.665Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]rencyapp-[***]ev-[***]653"}])
2021-04-07T17:43:10.153Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T17:43:43.635Z|info : amplify add api  
2021-04-07T17:45:18.338Z|info : amplify add auth  
2021-04-07T17:45:28.038Z|info : amplify update auth  
2021-04-07T17:47:09.470Z|info : amplify update auth  
2021-04-07T17:48:06.719Z|info : amplify update auth  
2021-04-07T17:48:33.835Z|info : amplify update auth  
2021-04-07T17:48:57.161Z|info : amplify update auth  
2021-04-07T17:49:55.449Z|info : amplify update auth  
2021-04-07T17:51:46.324Z|info : amplify update auth  
2021-04-07T17:52:13.311Z|info : amplify push core  
2021-04-07T17:52:20.412Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T17:52:20.413Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T17:52:20.413Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T17:52:20.422Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-04-07T17:52:20.458Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T17:52:21.133Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T17:52:21.134Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T17:52:21.134Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T17:52:21.141Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]rencyapp-[***]ev-[***]653"}])
2021-04-07T17:52:21.584Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T17:53:33.484Z|info : amplify-provider-awscloudformation.push-resources.packageResources.s3.uploadFile([{"Key":"[***]ify-[***]lds/[***]420027ab-[***]766b4372-[***].zip"}])
2021-04-07T17:53:33.520Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.upload([{"Key":"[***]ify-[***]lds/[***]420027ab-[***]766b4372-[***].zip","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T17:55:12.180Z|info : amplify add hosting  
2021-04-07T17:55:25.283Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T17:55:25.284Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T17:55:25.284Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T17:59:07.717Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T17:59:07.718Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T17:59:07.719Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:06:20.950Z|info : amplify help core  
2021-04-07T18:06:28.378Z|info : amplify env core  
2021-04-07T18:06:47.360Z|info : amplify env core add staging 
2021-04-07T18:07:08.316Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:07:08.318Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:07:08.318Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:07:08.330Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-04-07T18:07:08.392Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T18:07:08.824Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:07:08.825Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:07:08.825Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:07:08.833Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]rencyapp-[***]ev-[***]653"}])
2021-04-07T18:08:25.386Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T18:08:41.557Z|info : amplify status core  
2021-04-07T18:08:59.553Z|info : amplify env core list 
2021-04-07T18:09:15.839Z|info : amplify env core add 
2021-04-07T18:09:30.764Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:09:30.765Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:09:30.765Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:09:30.774Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-04-07T18:09:30.814Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T18:09:31.333Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:09:31.334Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:09:31.334Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:09:31.341Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]rencyapp-[***]ev-[***]653"}])
2021-04-07T18:09:31.814Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ev-[***]653-[***]ment"}])
2021-04-07T18:09:39.096Z|info : amplify env core lis 
2021-04-07T18:09:42.307Z|info : amplify env core list 
2021-04-07T18:09:51.195Z|info : amplify help core  
2021-04-07T18:09:57.240Z|info : amplify help core  
2021-04-07T18:10:00.802Z|info : amplify env core add 
2021-04-07T18:10:31.900Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:10:31.901Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:10:31.902Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:10:31.923Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:10:31.923Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:10:31.923Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:10:31.930Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2021-04-07T18:10:32.334Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.listApps([{"maxResults":25}])
2021-04-07T18:10:32.535Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]t853eu","environmentName":"[***]ing"}])
2021-04-07T18:10:32.835Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]t853eu","environmentName":"[***]ing"}])
NotFoundException: BackendEnvironment staging does not exist.
2021-04-07T18:10:32.836Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]t853eu","environmentName":"[***]ing","stackName":"[***]ify-[***]rencyapp-[***]ing-[***]031","deploymentArtifacts":"amplify-feetransparencyapp-staging-141031-deployment"}])
2021-04-07T18:10:33.294Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:10:33.296Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:10:33.296Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:15:06.254Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:15:06.255Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:15:06.255Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:15:06.264Z|info : amplify-provider-awscloudformation.attach-backend.storeCurrentCloudBackend.s3.uploadFile([{"Key":"[***]rent-[***]ud-[***]d.zip"}])
2021-04-07T18:15:06.284Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ing-[***]031-[***]ment"}])
2021-04-07T18:15:06.860Z|info : amplify-provider-awscloudformation.attach-backend.uploadFile.s3.uploadFile([{"Key":"[***]ify-[***]json"}])
2021-04-07T18:15:06.863Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ing-[***]031-[***]ment"}])
2021-04-07T18:16:00.511Z|info : amplify status core  
2021-04-07T18:16:14.308Z|info : amplify push core  
2021-04-07T18:16:21.145Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:16:21.145Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:16:21.145Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:16:21.155Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-04-07T18:16:21.189Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ing-[***]031-[***]ment"}])
2021-04-07T18:16:21.752Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:16:21.752Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:16:21.753Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:16:21.759Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]rencyapp-[***]ing-[***]031"}])
2021-04-07T18:16:22.326Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ing-[***]031-[***]ment"}])
2021-04-07T18:18:17.384Z|info : amplify push core  
2021-04-07T18:18:24.517Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:18:24.518Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:18:24.518Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:18:24.527Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-04-07T18:18:24.564Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]rencyapp-[***]ing-[***]031-[***]ment"}])
2021-04-07T18:18:25.054Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["iryss-amplify"])
2021-04-07T18:18:25.054Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T18:18:25.054Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["iryss-amplify"])
2021-04-07T18:18:25.062Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]rencyapp-[***]ing-[***]031"}])
2021-04-07T18:18:25.604Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]rencyapp-[***]ing-[***]031-[***]ment"}])
2021-04-07T18:53:19.385Z|info : amplify init core  
2021-04-07T19:00:22.719Z|info : amplify init core  
2021-04-07T19:01:04.666Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["sandbox-jrusso-test"])
2021-04-07T19:01:04.668Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T19:01:04.668Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["sandbox-jrusso-test"])
2021-04-07T19:01:04.692Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2021-04-07T19:01:05.037Z|error : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
AccessDeniedException: User: arn:aws:iam::141388277701:user/jrusso-test is not authorized to perform: amplify:ListApps on resource: arn:aws:amplify:us-east-1:141388277701:apps/*
2021-04-07T19:01:05.057Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]test","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
2021-04-07T19:01:05.212Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]test","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
AccessDeniedException: User: arn:aws:iam::141388277701:user/jrusso-test is not authorized to perform: amplify:CreateApp on resource: arn:aws:amplify:us-east-1:141388277701:apps/*
2021-04-07T19:02:53.163Z|info : amplify init core  
2021-04-07T19:03:09.793Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["sandbox-jrusso-test"])
2021-04-07T19:03:09.794Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T19:03:09.794Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["sandbox-jrusso-test"])
2021-04-07T19:03:09.803Z|info : amplify-provider-awscloudformation.amplify-service-permission-check.checkAmplifyServiceIAMPermission.amplifyClient.listApps([])
2021-04-07T19:03:10.215Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.createApp([{"name":"[***]test","environmentVariables":{"_LIVE_PACKAGE_UPDATES":"[{\"pkg\":\"@aws-amplify/cli\",\"type\":\"npm\",\"version\":\"latest\"}]"}}])
2021-04-07T19:03:11.640Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]4f1k15","environmentName":"[***]ev"}])
2021-04-07T19:03:11.809Z|error : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]4f1k15","environmentName":"[***]ev"}])
NotFoundException: BackendEnvironment dev does not exist.
2021-04-07T19:03:11.810Z|info : amplify-provider-awscloudformation.amplify-service-manager.init.amplifyClient.getBackendEnvironment([{"appId":"[***]4f1k15","environmentName":"[***]ev","stackName":"[***]ify-[***]test-[***]ev-[***]309","deploymentArtifacts":"amplify-pushtest-dev-150309-deployment"}])
2021-04-07T19:04:20.803Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["sandbox-jrusso-test"])
2021-04-07T19:04:20.804Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T19:04:20.804Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["sandbox-jrusso-test"])
2021-04-07T19:04:20.817Z|info : amplify-provider-awscloudformation.attach-backend.storeCurrentCloudBackend.s3.uploadFile([{"Key":"[***]rent-[***]ud-[***]d.zip"}])
2021-04-07T19:04:20.834Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]test-[***]ev-[***]309-[***]ment"}])
2021-04-07T19:04:21.170Z|info : amplify-provider-awscloudformation.attach-backend.uploadFile.s3.uploadFile([{"Key":"[***]ify-[***]json"}])
2021-04-07T19:04:21.171Z|info : amplify-provider-awscloudformation.aws-s3.uploadFile.s3.putObject([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]test-[***]ev-[***]309-[***]ment"}])
2021-04-07T19:05:42.477Z|info : amplify add auth  
2021-04-07T19:06:48.726Z|info : amplify add api  
2021-04-07T19:07:39.105Z|info : amplify push core  
2021-04-07T19:08:05.427Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["sandbox-jrusso-test"])
2021-04-07T19:08:05.428Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T19:08:05.428Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["sandbox-jrusso-test"])
2021-04-07T19:08:05.439Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null])
2021-04-07T19:08:05.478Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]test-[***]ev-[***]309-[***]ment"}])
2021-04-07T19:08:05.908Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["sandbox-jrusso-test"])
2021-04-07T19:08:05.908Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}])
2021-04-07T19:08:05.909Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["sandbox-jrusso-test"])
2021-04-07T19:08:05.915Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]test-[***]ev-[***]309"}])
2021-04-07T19:08:06.281Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]test-[***]ev-[***]309-[***]ment"}])
2021-04-07T19:17:17.875Z|info : amplify version core  



@jhockett
Copy link
Contributor

jhockett commented Apr 7, 2021

Hi @rupe120! To get unblocked, check out the comments in this issue: #6159.

Marking this issue as a bug because we should improve the error handling.

@jhockett jhockett added bug Something isn't working functions Issues tied to the functions category labels Apr 7, 2021
@rupe120
Copy link
Author

rupe120 commented Apr 8, 2021

Thanks @jhockett, I actually got around it by updating the Pipfile and recreating the virtual environment manually to explicitly use 3.9. For some reason just updating the Pipfile still tried to create a 3.8 virtual environment. Anyway, I have it working now. Thanks for the quick response

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working functions Issues tied to the functions category
Projects
None yet
Development

No branches or pull requests

3 participants