fterh / heimdall Goto Github PK
View Code? Open in Web Editor NEWSelf-hosted personal email guardian with one-step deployment
License: MIT License
Self-hosted personal email guardian with one-step deployment
License: MIT License
Is there a command that tears down all the AWS deployments? After a quick search in the Serverless CLI docs, I tried sls remove
, but unfortunately I get this:
โฏ sls remove
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.stage' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.stage' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.stage' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.awsId' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.awsSmtpHost' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.awsSmtpPort' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.awsSmtpUser' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.awsSmtpPass' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.baseDomain' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.devSubdomain' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.email' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/env.js):serverless.stage' could not be found.
Serverless Warning --------------------------------------
A valid file to satisfy the declaration 'file(lib/config.js):serverless.tableName' could not be found.
Serverless Error ---------------------------------------
Trying to populate non string value into a string for variable ${file(lib/env.js):serverless.stage}. Please make sure the value of the property is a string.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 10.15.3
Framework Version: 1.63.0
Plugin Version: 3.4.0
SDK Version: 2.3.0
Components Core Version: 1.1.2
Components CLI Version: 1.4.0
This would help people like myself who are not familiar with the Serverless framework a lot!
Thank you ๐
In Gmail (and probably most clients), this creates a conversation thread for easier tracking.
any idea why this is failing?
(base) D:\Code\heimdall>yarn run deploy-prod
yarn run v1.22.0
$ STAGE=prod yarn run deploy-dev
'STAGE' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Are there any?
Thank you so much for creating this very useful tool. I recently forked it and added the following functionality for my use case.
generate
command. Leave the subject blank to auto generate an alias.generate
command. Here is an example.To: generate@<YOUR DOMAIN>
SUBJECT: <CUSTOM ALIAS NAME>:<EMAIL ADDRESS TO FORWARD EMAIL TO>
BODY: <DESCRIPTION OF ALIAS>
To: [email protected]
SUBJECT: myfriend:[email protected]
BODY: Alias for my friend bob
When you send emails to <CUSTOM_ALIAS_NAME>@<YOUR DOMAIN>
it will automatically forward to the email specified
Happy to create PRs if these are features you would be interested in merging. Not a big deal either way. https://github.com/taylorhakes/heimdall
Something is wrong with the serveless install - it keeps failing:
โ heimdall git:(master) yarn global add serverless .
yarn global v1.21.1
[1/4] Resolving packages...
error Received malformed response from registry for ".". The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
Here is a verbose log: https://pastebin.com/k2e6jZsy
Details:
โ ~ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
โ ~ node --version
v12.16.1
โ ~ yarn --version
1.21.1
โฏ yarn run deploy-prod
yarn run v1.22.0
$ STAGE=prod yarn run deploy-dev
$ yarn run predeploy && serverless deploy && yarn run postdeploy
$ tsc lib/env.ts lib/config.ts
/bin/sh: tsc: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Improves usability and memorability of email addresses
cool project. I built something very similar in Python using Lambda & SES to manage my personal email. I like what you did with replies as I hadn't thought of going that far.
One question, when sending the reply, do you remove the prepended subject info before shipping it back to the original sender? Threads could get quite messy if it keeps prepending subjects on each reply. Also, when replying does the lambda cc the email to the original cc list? So the receiver should REPLY vs Reply ALL when responding?
Another suggestion that I think adds some flexibility would be a configuration that would allow all aliases by default and potentially have a way of disabling them. So if I was signing up for medium i could just use [email protected] without having to take the extra set of enabling that alias.
Anyway, wish it was Python so I could contribute, but really like what you have done.
This should be an "expected use case", and not an exceptional one.
Instead, log (warn) and return. Also delete the email.
Errors should be reserved for truly unexpected, exceptional events.
Running into the following issue when trying to deploy
Serverless: Validating template...
Serverless: [AWS cloudformation 400 0.67s 0 retries] validateTemplate({ TemplateURL:
'xxxx/compiled-cloudformation-template.json' })
Error --------------------------------------------------
Error: The CloudFormation template is invalid: Template format error: Unresolved resource dependencies [S3BucketHeimdallprodmcg-heimdallx] in the Resources block of the template
The section I believe it is referencing is:
cloudformation-template-update-stack.json
"Resource": {
"Fn::Join": [
"",
[
"arn:aws:s3:::",
{
"Ref": "S3BucketHeimdallprodmcg-heimdallx"
},
"/*"
]
]
}
Steps for Windows:
in the command prompt:
set the stage variable:
set stage=prod
then run the deployment using:
yarn run deploy-dev
Other notes:
What are your plans for adding attachments?
I've been using this for the last couple of years. The only big problem there is it drops all emails above 10mb (attachment issue).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.