Mystash @ https://mystash.70511337.xyz/
- Docker is required
- Serverless is required
- AWS CLI is required
npm install -g serverless
npm i
aws configure --profile mystashapp-devAdd or update ~/.aws/config
[default]
s3 =
endpoint_url = http://localhost:4566Login: test@example.com / salasana
npm run devnpm startList tables
aws dynamodb list-tables --endpoint-url http://localhost:8001Delete table
aws dynamodb delete-table --table-name mystash-dev-users --endpoint-url http://localhost:8001List users
aws dynamodb scan \
--table-name mystash-dev-users \
--endpoint-url http://localhost:8001List notes
aws dynamodb scan \
--table-name mystash-dev-notes \
--endpoint-url http://localhost:8001List files
aws dynamodb scan \
--table-name mystash-dev-files \
--endpoint-url http://localhost:8001aws dynamodb delete-item \
--table-name mystash-dev-users \
--key '{"id": {"S": "replace-this-with-real-uuid"}}' \
--endpoint-url http://localhost:8001aws dynamodb delete-item \
--table-name mystash-dev-notes \
--key '{"id": {"S": "0de4eafa-4752-4535-aab0-79a3a9592b95"}}' \
--endpoint-url http://localhost:8001aws --endpoint-url=http://localhost:4566 s3 ls
aws --endpoint-url=http://localhost:4566 s3 ls s3://mystash-dev-infra-files-bucket --recursiveMust install aws cli and cdk before. If cdk synth gives some docker error make sure esbuild is installed!
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/installnpm install -g aws-cdkexport AWS_PROFILE=mystashapp-prod
npm ci
aws s3 ls
aws sts get-caller-identity --profile mystashapp-prod
cdk bootstrap aws://AWS-ACCOUNT-ID-HERE/eu-north-1cd frontend
npm run buildcd stack
export AWS_PROFILE=mystashapp-prod
npx cdk synth --profile mystashapp-prod
npx cdk diff --profile mystashapp-prod
npx cdk deploy --profile mystashapp-prod