aws-amplify / amplify-cli

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
Apache License 2.0
2.83k stars 823 forks source link

CLI 5.0.1. Push Failed. An error occurred during the push operation: Invalid or unexpected token #7560

Closed matansagee closed 3 years ago

matansagee commented 3 years ago

Before opening, please confirm:

How did you install the Amplify CLI?

sudo npm install -g @aws-amplify/cli

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

v12.20.0

Amplify CLI Version

5.0.1

What operating system are you using?

Mac

Amplify Categories

Not applicable

Amplify Commands

push

Describe the bug

amplify push --force from my mac is failing on An error occurred during the push operation: Invalid or unexpected token. Build with 'amplifyPush --simple' ends successfully. ![Uploading image.png…]()

Expected behavior

Push successfully

Reproduction steps

Installed the latest CLI. Amplify push has stopped working.

GraphQL schema(s)

```graphql # Put schemas below this line ```

Log output

``` # Put your logs below this line 2021-06-21T03:16:24.504Z|info : amplify push core {"force":true,"yes":false} 2021-06-21T03:16:24.561Z|info : amplify-cli-core.banner-message/index.ts.fetch banner messages from https://aws-amplify.github.io/amplify-cli/banner-message.json({} 2021-06-21T03:16:35.486Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["default"]) 2021-06-21T03:16:35.488Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}]) 2021-06-21T03:16:35.488Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["default"]) 2021-06-21T03:16:35.501Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["default"]) 2021-06-21T03:16:35.501Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}]) 2021-06-21T03:16:35.501Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["default"]) 2021-06-21T03:16:35.508Z|info : amplify-provider-awscloudformation.zip-util.downloadZip.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip"},null]) 2021-06-21T03:16:35.517Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]rent-[***]ud-[***]d.zip","Bucket":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment"}]) 2021-06-21T03:16:38.576Z|info : amplify-provider-awscloudformation.initialize-env.run.cfn.updateamplifyMetaFileWithStackOutputs([{"StackName":"[***]ify-[***]webapp-[***]ev-[***]316"}]) 2021-06-21T03:16:38.580Z|info : amplify-provider-awscloudformation.aws-cfn.updateamplifyMetaFileWithStackOutputs.cfn.describeStackResources([{"StackName":"[***]ify-[***]webapp-[***]ev-[***]316"}]) 2021-06-21T03:16:39.016Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]uthStack-[***]T7X3P8/[***]0c20-[***]14-[***]eb-[***]d8-[***]79a85"}]) 2021-06-21T03:16:39.018Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ueries-[***]GU3L5/[***]b550-[***]74-[***]ea-[***]41-[***]8cb21"}]) 2021-06-21T03:16:39.020Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]nOrder-[***]CL9NLC/[***]efc0-[***]c5-[***]eb-[***]e1-[***]784f7"}]) 2021-06-21T03:16:39.021Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]lOrder-[***]FXXBG/[***]f290-[***]7e-[***]eb-[***]e8-[***]1752f"}]) 2021-06-21T03:16:39.023Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]atient-[***]LJL1PQ/[***]82c0-[***]d9-[***]eb-[***]fb-[***]56cf7"}]) 2021-06-21T03:16:39.024Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]vent-[***]8VL50C/[***]fdc0-[***]7b-[***]eb-[***]3c-[***]ebc39"}]) 2021-06-21T03:16:39.050Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ksight-[***]0MSMCG/[***]ae00-[***]e6-[***]eb-[***]2c-[***]da693"}]) 2021-06-21T03:16:39.054Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]erStatus-[***]DT52A/[***]8120-[***]85-[***]eb-[***]44-[***]04572"}]) 2021-06-21T03:16:39.056Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]orterStatus-[***]W6SO7/[***]2a30-[***]23-[***]eb-[***]f8-[***]f10fb"}]) 2021-06-21T03:16:39.059Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]pp5d9977ce-[***]JMSWJS/[***]f350-[***]67-[***]ea-[***]d7-[***]8c117"}]) 2021-06-21T03:16:39.062Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]olGroups-[***]0T03GP/[***]bd90-[***]68-[***]ea-[***]7f-[***]ddeaf"}]) 2021-06-21T03:16:39.069Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ries95b0fd50-[***]X41D5/[***]bde0-[***]74-[***]ea-[***]1e-[***]f3ad1"}]) 2021-06-21T03:16:39.071Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ignOrder-[***]2RR845/[***]6b70-[***]c5-[***]eb-[***]ab-[***]bde53"}]) 2021-06-21T03:16:39.073Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]celOrder-[***]YYARI/[***]df30-[***]7e-[***]eb-[***]2e-[***]c5ee7"}]) 2021-06-21T03:16:39.074Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]omMessage-[***]K5TH0/[***]cba0-[***]01-[***]eb-[***]d3-[***]7a1a5"}]) 2021-06-21T03:16:39.076Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]partments-[***]VXVTL/[***]a130-[***]a2-[***]eb-[***]29-[***]7dd7d"}]) 2021-06-21T03:16:39.077Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]rderTypes-[***]MM6ZCI/[***]5f80-[***]eb-[***]eb-[***]0a-[***]a077b"}]) 2021-06-21T03:16:39.079Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]tOrders-[***]BNHLEA/[***]f920-[***]23-[***]eb-[***]5c-[***]9270b"}]) 2021-06-21T03:16:39.080Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]tPatient-[***]5K31UN/[***]1370-[***]d9-[***]eb-[***]b3-[***]db6f3"}]) 2021-06-21T03:16:39.082Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ansporters-[***]0J72W/[***]5570-[***]f8-[***]eb-[***]45-[***]565d9"}]) 2021-06-21T03:16:39.084Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]partments-[***]7DTWR/[***]1340-[***]8f-[***]eb-[***]8e-[***]04572"}]) 2021-06-21T03:16:39.085Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]pOrders-[***]FHTMQ/[***]7130-[***]e3-[***]eb-[***]41-[***]72c1d"}]) 2021-06-21T03:16:39.097Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ansporters-[***]HQFY9W/[***]f2d0-[***]e3-[***]eb-[***]03-[***]46503"}]) 2021-06-21T03:16:39.102Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]epartments-[***]B58MP8/[***]9040-[***]05-[***]eb-[***]5a-[***]7967b"}]) 2021-06-21T03:16:39.105Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ncOrders-[***]2G9SE/[***]fd70-[***]26-[***]eb-[***]f0-[***]6e987"}]) 2021-06-21T03:16:39.115Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ansporters-[***]BG1VXF/[***]84e0-[***]7b-[***]eb-[***]ed-[***]06afb"}]) 2021-06-21T03:16:39.119Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]rderStatus-[***]G2XKH/[***]bc10-[***]85-[***]eb-[***]bd-[***]6865b"}]) 2021-06-21T03:16:39.129Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]Operations-[***]1512H/[***]efa0-[***]e3-[***]eb-[***]83-[***]d9039"}]) 2021-06-21T03:16:39.130Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]ashboardEmbedURL-[***]HJDEA/[***]2150-[***]e6-[***]eb-[***]c9-[***]e8545"}]) 2021-06-21T03:16:39.131Z|info : amplify-provider-awscloudformation.aws-cfn.describeStack.cfn.describeStacks([{"StackName":"[***]rmation:us-[***]st-[***]31:stack/[***]ify-[***]webapp-[***]ev-[***]316-[***]sporterStatus-[***]HKCR5/[***]c080-[***]23-[***]eb-[***]df-[***]eb989"}]) 2021-06-21T03:16:40.429Z|info : amplify-provider-awscloudformation.aws-s3.s3.getFile([{"Key":"[***]ify-[***]json","Bucket":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment"}]) 2021-06-21T03:17:40.716Z|error : amplify-provider-awscloudformation.push-resources.run([{"resourcesToBeCreated":[],"resourcesToBeUpdated":[],"resourcesToBeSynced":[],"resourcesToBeDeleted":[],"tagsUpdated":false,"allResources":[{"service":"Cognito","providerPlugin":"[***]rmation","dependsOn":[],"customAuth":false,"output":{"AppClientSecret":"[***]pudinbuqid7upbj4gdo8e","UserPoolId":"[***]s-[***]st-[***]SMwof","AppClientIDWeb":"[***]h8b2o1u86ci","AppClientID":"[***]itqh0laj716","IdentityPoolId":"[***]s-[***]st-[***]afba-[***]48-[***]ba-[***]40-[***]a9e30","IdentityPoolName":"[***]typool_5d9977ce__dev","UserPoolName":"[***]serpool_5d9977ce","UserPoolArn":"[***]ognito-[***]:us-[***]st-[***]1:userpool/[***]s-[***]st-[***]SMwof"},"lastPushTimeStamp":"2021-06-21T03:16:40.276Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/auth/[***]p5d9977ce-cloudformation-template.yml","logicalId":"[***]pp5d9977ce"},"lastPushDirHash":"2DZCHwtrKgutXvh36iyLOJUf4v8=","resourceName":"[***]p5d9977ce","category":"auth"},{"service":"Cognito-UserPool-Groups","providerPlugin":"[***]rmation","dependsOn":[{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId","AppClientIDWeb","AppClientID","IdentityPoolId"]}],"output":{"adminGroupRole":"arn:aws:iam::376183573331:role/us-east-1_QsKzSMwof-adminGroupRole"},"lastPushTimeStamp":"2021-06-21T03:16:40.281Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/auth/template.json","logicalId":"[***]olGroups"},"lastPushDirHash":"HgmiShTpZmUAFvdqG+oFoPziIZg=","resourceName":"[***]Groups","category":"auth"},{"service":"Lambda","providerPlugin":"[***]rmation","build":true,"dependsOn":[{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]minQueries95b0fd50-[***]ev","Name":"[***]95b0fd50-[***]ev","LambdaExecutionRole":"[***]95b0fd50LambdaRole-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.284Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/[***]95b0fd50-cloudformation-template.json","logicalId":"[***]ries95b0fd50"},"lastBuildTimeStamp":"2021-06-21T03:17:40.585Z","lastPackageTimeStamp":"2021-06-21T02:55:13.200Z","distZipFilename":"[***]95b0fd50-[***]5151534c-[***].zip","s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]95b0fd50-[***]5151534c-[***].zip"},"lastPushDirHash":"7cMHRYetlwr6JVIyV4BvHfXhQow=","resourceName":"[***]eries95b0fd50","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]},{"category":"function","resourceName":"[***]rations","attributes":["Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***][***]porters-[***]ev","Name":"[***]porters-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole73c6ab80-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.289Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/SyncTransporters-cloudformation-template.json","logicalId":"[***]ansporters"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]porters-[***]63593751-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.588Z","lastPackageTimeStamp":"2021-06-21T02:55:12.626Z","distZipFilename":"[***]porters-[***]63593751-[***].zip","lastPushDirHash":"YGmw9BUcdZk50zLxAle/wdDJoks=","resourceName":"SyncTransporters","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]},{"category":"function","resourceName":"[***]rations","attributes":["Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]ion:[***]ders-[***]ev","Name":"[***]ders-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole479a2aaa-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.297Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/SyncOrders-cloudformation-template.json","logicalId":"[***]ncOrders"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]ders-[***]456b7461-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.591Z","lastPackageTimeStamp":"2021-06-21T02:55:14.896Z","distZipFilename":"[***]ders-[***]456b7461-[***].zip","lastPushDirHash":"z0lwLhGtbYWiokNdcYrKi4ttLp8=","resourceName":"SyncOrders","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]},{"category":"function","resourceName":"[***]rations","attributes":["Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]n:[***]rTypes-[***]ev","Name":"[***]rTypes-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole7c323bd4-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.300Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/GetOrderTypes-cloudformation-template.json","logicalId":"[***]rderTypes"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]rTypes-[***]767a4433-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.596Z","lastPackageTimeStamp":"2021-06-21T02:55:07.092Z","distZipFilename":"[***]rTypes-[***]767a4433-[***].zip","lastPushDirHash":"bL9w2C8JGJmE5mDcFWPWCw0Hsjc=","resourceName":"GetOrderTypes","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]n:[***]essage-[***]ev","Name":"[***]essage-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRoled866bc41-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.304Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/CustomMessage-cloudformation-template.json","logicalId":"[***]omMessage"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]essage-[***]34514531-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.600Z","lastPackageTimeStamp":"2021-06-21T02:54:56.626Z","distZipFilename":"[***]essage-[***]34514531-[***].zip","lastPushDirHash":"Hwq9Cw87QGDDnE4roh/OAV85B8o=","resourceName":"CustomMessage","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]:[***]orters-[***]ev","Name":"[***]orters-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRolee98403be-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.315Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/MapTransporters-cloudformation-template.json","logicalId":"[***]ansporters"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]orters-[***]50734930-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.604Z","lastPackageTimeStamp":"2021-06-21T02:55:13.951Z","distZipFilename":"[***]orters-[***]50734930-[***].zip","lastPushDirHash":"fiqOySmNm9tzwU+lSL62aH8+/wA=","resourceName":"MapTransporters","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]},{"category":"function","resourceName":"[***]rations","attributes":["Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]tion:[***]ders-[***]ev","Name":"[***]ders-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole7bd1727e-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.320Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/MapOrders-cloudformation-template.json","logicalId":"[***]pOrders"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]ders-[***]50546443-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.617Z","lastPackageTimeStamp":"2021-06-21T02:55:14.240Z","distZipFilename":"[***]ders-[***]50546443-[***].zip","lastPushDirHash":"n/RHksm9NjNh8AeO7R4ScUl9DK4=","resourceName":"MapOrders","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]tion:[***]ders-[***]ev","Name":"[***]ders-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRolea76eccdd-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.323Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/GetOrders-cloudformation-template.json","logicalId":"[***]tOrders"},"s3Bucket":{"deploymentBucketName":"[***]ify-[***]webapp-[***]ev-[***]316-[***]ment","s3Key":"[***]ify-[***]lds/[***]ders-[***]797a7534-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.621Z","lastPackageTimeStamp":"2021-06-21T02:55:09.408Z","distZipFilename":"[***]ders-[***]797a7534-[***].zip","lastPushDirHash":"TkIIL51a/8pg7ugxqInPj+ZI9nA=","resourceName":"GetOrders","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]:[***]orters-[***]ev","Name":"[***]orters-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole1874c5ff-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.328Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/[***]ify-[***]webapp-[***]ev-[***]316-[***]ment/amplify-cfn-templates/function/GetTransporters-cloudformation-template.json","logicalId":"[***]ansporters"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]orters-[***]66737070-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.624Z","lastPackageTimeStamp":"2021-06-21T02:55:09.425Z","distZipFilename":"[***]orters-[***]66737070-[***].zip","lastPushDirHash":"bkUDEWORME3d0bvtNT0enfkIiKk=","resourceName":"GetTransporters","category":"function"},{"providerPlugin":"[***]rmation","service":"LambdaLayer","build":true,"output":{"Arn":"[***]mbda:us-[***]st-[***]ppsyncOperations-[***]:59"},"lastPushTimeStamp":"2021-06-21T03:16:40.332Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/[***]rations-[***]rmation-template.json","logicalId":"[***]Operations"},"lastBuildTimeStamp":"2021-06-21T03:17:40.631Z","lastPackageTimeStamp":"2021-06-21T02:54:56.803Z","distZipFilename":"[***]rations-[***]ion7a3ea3c1-[***].zip","latestPushedVersionHash":"2cdc1ef4ea81d68b68f2580c6e4584c0ca26adbc4da36e312cbb664cde450c54","s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]rations-[***]ion7a3ea3c1-[***].zip"},"resourceName":"[***]rations","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]n:[***]tments-[***]ev","Name":"[***]tments-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole9e1b3b23-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.336Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/GetDepartments-cloudformation-template.json","logicalId":"[***]partments"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]tments-[***]762f7a30-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.635Z","lastPackageTimeStamp":"2021-06-21T02:55:11.982Z","distZipFilename":"[***]tments-[***]762f7a30-[***].zip","lastPushDirHash":"z4FXnEsksU/1W4bR0OQf1NSwxqs=","resourceName":"GetDepartments","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]n:[***]tments-[***]ev","Name":"[***]tments-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole1e285a7d-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.339Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/MapDepartments-cloudformation-template.json","logicalId":"[***]partments"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]tments-[***]334b6370-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.640Z","lastPackageTimeStamp":"2021-06-21T02:55:03.748Z","distZipFilename":"[***]tments-[***]334b6370-[***].zip","lastPushDirHash":"3o0QJ6KP1Oh20WIffJcwgKMA6ZA=","resourceName":"MapDepartments","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]},{"category":"function","resourceName":"[***]rations","attributes":["Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]:[***]tments-[***]ev","Name":"[***]tments-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole1ccd8dc9-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.344Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/SyncDepartments-cloudformation-template.json","logicalId":"[***]epartments"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]tments-[***]4d722f69-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.644Z","lastPackageTimeStamp":"2021-06-21T02:55:07.099Z","distZipFilename":"[***]tments-[***]4d722f69-[***].zip","lastPushDirHash":"CrcyfU3DJW/Y0VjUAUaVwfQ2/ns=","resourceName":"SyncDepartments","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***][***]rStatus-[***]ev","Name":"[***]rStatus-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole08465184-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.348Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/[***]rStatus-cloudformation-template.json","logicalId":"[***]rderStatus"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]rStatus-[***]756a7a75-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.648Z","lastPackageTimeStamp":"2021-06-21T02:55:09.470Z","distZipFilename":"[***]rStatus-[***]756a7a75-[***].zip","lastPushDirHash":"mkJ17CmcPBJsEpNY48uKp+FP+Jo=","resourceName":"UpdateOrderStatus","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]SightDashboardEmbedURL-[***]ev","Name":"[***]oardEmbedURL-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole03c41770-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.352Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/[***]oardEmbedURL-cloudformation-template.json","logicalId":"[***]ashboardEmbedURL"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]oardEmbedURL-[***]53523451-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.652Z","lastPackageTimeStamp":"2021-06-21T02:55:02.471Z","distZipFilename":"[***]oardEmbedURL-[***]53523451-[***].zip","lastPushDirHash":"ggDbsHBe+V/ATeFF2jqMrwKGyG8=","resourceName":"[***]oardEmbedURL","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]},{"category":"function","resourceName":"appsyncOperations","attributes":["Arn"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]teTransporterStatus-[***]ev","Name":"[***]rterStatus-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole0af65d7e-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.355Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/[***]rterStatus-cloudformation-template.json","logicalId":"[***]sporterStatus"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]rterStatus-[***]51787977-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.656Z","lastPackageTimeStamp":"2021-06-21T02:55:09.325Z","distZipFilename":"[***]rterStatus-[***]51787977-[***].zip","lastPushDirHash":"7H+IUxk8U6SER3QG1qZQM460J40=","resourceName":"[***]rterStatus","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]on:[***]Order-[***]ev","Name":"[***]Order-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRolefe26ee81-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.359Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/[***]Order-cloudformation-template.json","logicalId":"[***]ignOrder"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]Order-[***]6f397447-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.660Z","lastPackageTimeStamp":"2021-06-21T02:55:11.244Z","distZipFilename":"[***]Order-[***]6f397447-[***].zip","lastPushDirHash":"rl2vVErtl+Li6DW2qBvDsUKME4s=","resourceName":"[***]Order","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]ion:[***]ient-[***]ev","Name":"[***]ient-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole52ac5b46-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.370Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/[***]ient-cloudformation-template.json","logicalId":"[***]tPatient"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]ient-[***]5661774b-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.664Z","lastPackageTimeStamp":"2021-06-21T02:55:11.098Z","distZipFilename":"[***]ient-[***]5661774b-[***].zip","lastPushDirHash":"Xax00iJXy1XAJeJdw0bqhLrwQ8Q=","resourceName":"[***]ient","category":"function"},{"build":true,"providerPlugin":"[***]rmation","service":"Lambda","dependsOn":[{"category":"api","resourceName":"[***]nt","attributes":["GraphQLAPIIdOutput","GraphQLAPIEndpointOutput","GraphQLAPIKeyOutput"]}],"output":{"Region":"us-east-1","Arn":"[***]mbda:us-[***]st-[***]on:[***]Order-[***]ev","Name":"[***]Order-[***]ev","LambdaExecutionRole":"enroutewebappLambdaRole3d0acf05-dev"},"lastPushTimeStamp":"2021-06-21T03:16:40.374Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/function/[***]Order-cloudformation-template.json","logicalId":"[***]celOrder"},"s3Bucket":{"deploymentBucketName":"amplify-enroutewebapp-dev-112316-deployment","s3Key":"[***]ify-[***]lds/[***]Order-[***]352f5771-[***].zip"},"lastBuildTimeStamp":"2021-06-21T03:17:40.668Z","lastPackageTimeStamp":"2021-06-21T02:54:56.693Z","distZipFilename":"[***]Order-[***]352f5771-[***].zip","lastPushDirHash":"5ytk9eJ4hc8XS+SIO0t2GRqnvjg=","resourceName":"[***]Order","category":"function"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]},{"category":"function","resourceName":"[***]eries95b0fd50","attributes":["Arn","Name"]}],"output":{"ApiName":"AdminQueries","RootUrl":"https://[***]rnp2.execute-api.us-east-1.amazonaws.com/dev","ApiId":"me0vy4rnp2"},"lastPushTimeStamp":"2021-06-21T03:16:40.377Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/admin-queries-cloudformation-template.json","logicalId":"[***]ueries"},"lastPushDirHash":"RzgM07DMytqC3KCPP3zp1CZWsCw=","resourceName":"AdminQueries","category":"api"},{"service":"AppSync","providerPlugin":"[***]rmation","output":{"authConfig":{"defaultAuthentication":{"authenticationType":"AMAZON_COGNITO_USER_POOLS","userPoolConfig":{"userPoolId":"[***]pp5d9977ce"}},"additionalAuthenticationProviders":[{"authenticationType":"API_KEY","apiKeyConfig":{"apiKeyExpirationDays":365,"description":"api"}}]},"GraphQLAPIIdOutput":"[***]3ju6vgnywym","GraphQLAPIEndpointOutput":"https://bpnydz5rhfdj7oqscavj2x35f4.appsync-api.us-east-1.amazonaws.com/graphql","GraphQLAPIKeyOutput":"[***]a2-[***]d4xc6uzw2f4"},"lastPushTimeStamp":"2021-06-21T03:16:40.382Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/cloudformation-template.json","logicalId":"[***]vent"},"lastPushDirHash":"9OARkLxrlRCWwzGMU/MqEbzVH2A=","resourceName":"[***]nt","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"UpdateOrderStatus","attributes":["Name","Arn"]},{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]},{"category":"auth","resourceName":"[***]Groups","attributes":["adminGroupRole"]}],"output":{"ApiName":"[***]rStatus","RootUrl":"https://[***]czue.execute-api.us-east-1.amazonaws.com/dev","ApiId":"s3c4rvczue"},"lastPushTimeStamp":"2021-06-21T03:16:40.385Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/[***]rStatus-cloudformation-template.json","logicalId":"[***]erStatus"},"lastPushDirHash":"bHw0vS3OFFeUkMxkLTXbXbnu7Oo=","resourceName":"updateOrderStatus","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"getQuickSightDashboardEmbedURL","attributes":["Name","Arn"]},{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]},{"category":"auth","resourceName":"[***]Groups","attributes":["adminGroupRole"]}],"output":{"ApiName":"[***]ight","RootUrl":"https://[***]jmyk.execute-api.us-east-1.amazonaws.com/dev","ApiId":"4yhyvrjmyk"},"lastPushTimeStamp":"2021-06-21T03:16:40.388Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/[***]ight-cloudformation-template.json","logicalId":"[***]ksight"},"lastPushDirHash":"ELFAZZVNctl9IEH0+OyMCmFCdFs=","resourceName":"quicksight","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"[***]rterStatus","attributes":["Name","Arn"]},{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]},{"category":"auth","resourceName":"[***]Groups","attributes":["adminGroupRole"]}],"output":{"ApiName":"[***]rterStatus","RootUrl":"https://[***]5jqd.execute-api.us-east-1.amazonaws.com/dev","ApiId":"192gcm5jqd"},"lastPushTimeStamp":"2021-06-21T03:16:40.392Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/updateTransporterStatus-cloudformation-template.json","logicalId":"[***]orterStatus"},"lastPushDirHash":"IKUnw6XZ4CvrFeCBDxF5FXKBskg=","resourceName":"updateTransporterStatus","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"[***]Order","attributes":["Name","Arn"]},{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]},{"category":"auth","resourceName":"[***]Groups","attributes":["adminGroupRole"]}],"output":{"ApiName":"AssignOrder","RootUrl":"https://[***]it5e.execute-api.us-east-1.amazonaws.com/dev","ApiId":"ih6e98it5e"},"lastPushTimeStamp":"2021-06-21T03:16:40.397Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/AssignOrder-cloudformation-template.json","logicalId":"[***]nOrder"},"lastPushDirHash":"/cnf8FEf7nLJGUC+/WTdmdhvma4=","resourceName":"AssignOrder","category":"api"},{"service":"API Gateway","providerPlugin":"[***]rmation","dependsOn":[{"category":"function","resourceName":"[***]ient","attributes":["Name","Arn"]},{"category":"auth","resourceName":"[***]p5d9977ce","attributes":["UserPoolId"]},{"category":"auth","resourceName":"[***]Groups","attributes":["adminGroupRole"]}],"output":{"ApiName":"GetPatient","RootUrl":"https://[***]ps91.execute-api.us-east-1.amazonaws.com/dev","ApiId":"engb0gps91"},"lastPushTimeStamp":"2021-06-21T03:16:40.401Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/GetPatient-cloudformation-template.json","logicalId":"[***]atient"},"lastPushDirHash":"9STgqmGfHSE1JwuPaVjxnYHBdps=","resourceName":"GetPatient","category":"api"},{"service":"API Gateway","providerPlugin":"awscloudformation","dependsOn":[{"category":"function","resourceName":"[***]Order","attributes":["Name","Arn"]},{"category":"auth","resourceName":"enroutewebapp5d9977ce","attributes":["UserPoolId"]},{"category":"auth","resourceName":"[***]Groups","attributes":["adminGroupRole"]}],"output":{"ApiName":"CancelOrder","RootUrl":"https://[***]cxs7.execute-api.us-east-1.amazonaws.com/dev","ApiId":"okrxykcxs7"},"lastPushTimeStamp":"2021-06-21T03:16:40.406Z","providerMetadata":{"s3TemplateURL":"https://s3.amazonaws.com/amplify-enroutewebapp-dev-112316-deployment/amplify-cfn-templates/api/CancelOrder-cloudformation-template.json","logicalId":"[***]lOrder"},"lastPushDirHash":"iNi2BpnSZ7scV3nssS4oQPAZ5Hw=","resourceName":"CancelOrder","category":"api"}]}]) SyntaxError: Invalid or unexpected token 2021-06-21T03:17:40.746Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileConfig(["default"]) 2021-06-21T03:17:40.747Z|info : amplify-provider-awscloudformation.system-config-manager.getProfiledAwsConfig.profileConfig([{"region":"us-east-1"}]) 2021-06-21T03:17:40.747Z|info : amplify-provider-awscloudformation.system-config-manager.getProfileCredentials(["default"]) 2021-06-21T03:17:40.761Z|info : amplify-provider-awscloudformation.aws-lambda.Lambda.listLayerVersions([{"LayerName":"[***]rations-[***]ev","MaxItems":20}]) ```

Additional information

No response

attilah commented 3 years ago

@matansagee could you please provide the screenshot as it was not uploaded, also do I understand correctly that you try it in Amplify Console and that succeeds, but when you try to push it locally it fails? As that error message is quite interesting, is that possible that something is wrong in your configured AWS profile files in ~/.aws folder? based on the log it looks like the problem is there?

matansagee commented 3 years ago

Hi @attilah ! Thanks for looking at this issue. Screenshots attached. image image

It happens when I'm doing amplify push --force from my Mac. It doesn't happen when Amplify CICD is doing amplifyPush --simple

attilah commented 3 years ago

@matansagee another idea is that your local src/aws-exports.js is corrupt and or have manual modifications. Could you check that file for errors?

Or delete it and then try the push locally?

matansagee commented 3 years ago

Hi @attilah. It's not coming from the src/aws-exports.js file. image Moreover, the ~/.aws folder looks intact also. Is there a way to print which is the problematic file?

attilah commented 3 years ago

If you up to build CLI yourself then I could point you to the place where this is happening and then the stacktrace could tell us what is failing as it fails to some JS error, which is usually when we require some generated files. Let me know.

matansagee commented 3 years ago

@attilah Sure. Please refer me to the file in the code. Thanks!

attilah commented 3 years ago

This is the actual line in the catch where you should put the breakpoint after running amplify-dev push --yes

https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-provider-awscloudformation/src/push-resources.ts#L397

Find the instructions on setting up local dev here: https://github.com/aws-amplify/amplify-cli/blob/master/CONTRIBUTING.md#local-environment-setup

Thanks for your help!

matansagee commented 3 years ago

Hi @attilah! I built the CLI, and amplify-dev push --yes ends successfully! However, amplify push --yes fails.

Screen Shot 2021-06-23 at 8 48 44 PM Screen Shot 2021-06-23 at 8 48 50 PM

I tried to uninstall the amplify CLI and install it again but getting the same failure message. Is there anything else I can do?

attilah commented 3 years ago

@matansagee, I still see the syntax error in both cases, could you put a breakpoint on the line I linked above and see what is in the stacktrace and see what is wrong?

Also can you try a push --yes with 5.0.2 that we just released?

matansagee commented 3 years ago

@attilah I tried with the 5.0.2 version still no success. Same error as with 5.0.1.

And, I'm not getting the error with the amplify-dev push --yes,

Screen Shot 2021-06-24 at 9 31 27 PM
cjihrig commented 3 years ago

@matansagee can you try with version 5.1.0 of the CLI. If you aren't seeing the issue with amplify-dev, but you are with amplify can you also run amplify -v immediately before or after as a quick check (it's surprisingly easy to be running the wrong version of the CLI even after a fresh install).

josefaidt commented 3 years ago

Hey @matansagee :wave: are you still experiencing this issue with the latest version of the CLI? Just wanted to check in 🙂

josefaidt commented 3 years ago

Closing issue due to inactivity. @matansagee if you are still experiencing this issue with the latest version of the CLI please reply back to this thread and we can re-open to investigate further.

github-actions[bot] commented 3 years ago

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.