pasa
04/30/2018, 8:42 AMAuthentication token is invalid: Token can't be decoded: Expected token [null] to be composed of 2 or 3 parts separated by dots.
when trying to run prisma deploy
.
I created a token with prisma token
. What should I do with it? Where can I store it?
And where can I store my private RSA key, for deploying the service? I was never asked to which cluster/server I want to deploy.Daniel K.
04/30/2018, 8:43 AMDaniel K.
04/30/2018, 8:44 AMpasa
04/30/2018, 8:52 AMDaniel K.
04/30/2018, 8:52 AMpasa
04/30/2018, 8:53 AMpasa
04/30/2018, 8:53 AMDaniel K.
04/30/2018, 8:53 AMDaniel K.
04/30/2018, 8:54 AMpasa
04/30/2018, 8:54 AMDaniel K.
04/30/2018, 8:55 AMpasa
04/30/2018, 8:56 AMDaniel K.
04/30/2018, 8:56 AMpasa
04/30/2018, 8:56 AMDaniel K.
04/30/2018, 8:56 AMpasa
04/30/2018, 8:57 AMDaniel K.
04/30/2018, 8:57 AMDaniel K.
04/30/2018, 8:57 AMpasa
04/30/2018, 8:58 AMDaniel K.
04/30/2018, 8:58 AMpasa
04/30/2018, 8:59 AMpasa
04/30/2018, 9:00 AMDaniel K.
04/30/2018, 9:01 AMpasa
04/30/2018, 9:02 AMpasa
04/30/2018, 9:02 AMDaniel K.
04/30/2018, 9:02 AMpasa
04/30/2018, 9:03 AMpasa
04/30/2018, 9:04 AMDaniel K.
04/30/2018, 9:04 AMPRISMA_CLUSTER=
PRISMA_ENDPOINT=
PRISMA_MANAGEMENT_API_SECRET=
PRISMA_SECRET=
PRISMA_TOKEN=
# to disable authentication:
secret: ${env:PRISMA_SECRET}
# the file path pointing to your data model
datamodel: datamodel.graphql
endpoint: ${env:PRISMA_ENDPOINT}
cluster: ${env:PRISMA_CLUSTER}
hooks:
post-deploy:
- echo "Deployment finished"
- graphql get-schema --project database
- graphql prepare
pasa
04/30/2018, 9:05 AMDaniel K.
04/30/2018, 9:05 AMpasa
04/30/2018, 9:06 AMDaniel K.
04/30/2018, 9:06 AMpasa
04/30/2018, 9:07 AMDaniel K.
04/30/2018, 9:07 AMpasa
04/30/2018, 9:07 AMDaniel K.
04/30/2018, 9:08 AMDaniel K.
04/30/2018, 9:09 AMprisma deploy -e .env.aws
to read different vars and those will be used in prisma.ymlpasa
04/30/2018, 9:13 AMDaniel K.
04/30/2018, 9:13 AMpasa
04/30/2018, 9:14 AMDaniel K.
04/30/2018, 9:15 AMpasa
04/30/2018, 9:16 AMpasa
04/30/2018, 9:16 AMDaniel K.
04/30/2018, 9:18 AMDaniel K.
04/30/2018, 9:19 AMpasa
04/30/2018, 9:22 AMDaniel K.
04/30/2018, 9:24 AMdatabase:
schemaPath: src/generated/prisma.graphql
extensions:
prisma: src/database/prisma.yml
prepare-binding:
output: src/generated/prisma.ts
generator: prisma-ts
endpoints:
default:
url: ${env:PRISMA_ENDPOINT}
headers:
Authorization: "Bearer ${env:PRISMA_TOKEN}"
but this is totally weird and I hope they are going to change itpasa
04/30/2018, 9:29 AMERROR: Authentication token is invalid: Token can't be decoded: Illegal base64 character 5c
pasa
04/30/2018, 9:29 AMDaniel K.
04/30/2018, 9:29 AMpasa
04/30/2018, 9:30 AMDaniel K.
04/30/2018, 9:30 AMpasa
04/30/2018, 9:30 AMpasa
04/30/2018, 9:30 AMDaniel K.
04/30/2018, 9:30 AMDaniel K.
04/30/2018, 9:31 AMpasa
04/30/2018, 9:32 AMDaniel K.
04/30/2018, 9:33 AMDaniel K.
04/30/2018, 9:33 AMpasa
04/30/2018, 9:34 AM# the name for the service (will be part of the service's HTTP endpoint)
service: service-prisma
# the cluster and stage the service is deployed to
stage: prod
# to disable authentication:
#disableAuth: true
secret: 'zgk04283LRRpRpA20cVe0i8'
# the file path pointing to your data model
datamodel: datamodel.graphql
cluster: service-prisma-live
Daniel K.
04/30/2018, 9:35 AMpasa
04/30/2018, 9:35 AMpasa
04/30/2018, 9:35 AMDaniel K.
04/30/2018, 9:36 AMpasa
04/30/2018, 9:37 AMDaniel K.
04/30/2018, 9:38 AMpasa
04/30/2018, 9:38 AMDaniel K.
04/30/2018, 9:38 AMpasa
04/30/2018, 9:39 AMnilan
04/30/2018, 3:39 PMpasa
04/30/2018, 3:41 PMpasa
04/30/2018, 3:41 PM