Export kanban-board-app tasks as iCal (*.ics) format with AWS Lambda + S3 infrastructure.
- Create S3 Bucket as public.
- Create Lambda function by 'Author from scratch'.
- Select runtime
Node 10.x
, Create a new role with basic Lambda permissions. - Move view
IAM/Roles
and edit the generated role for the Lambda function.- Edit the role's policies. See below.
- Set
Handler
aslambda-index.handler
.
- Select runtime
- Add
CloudWatch Events
trigger.- Select
Create new rule
. - Select
Scheduled expression
.- expression:
rate(1 hour)
Enable trigger
andAdd
.
- expression:
- Select
- Run Cloud9 and import the Lambda function.
- Clone this repository and overwrite copying to the imported Lambda function directory.
- Copy
config/*.config.dist.js
toconfig/*.config.js
and edit. npm ci
node index.js
for testing db configurations.- Deploy the imported Lambda function.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"logs:CreateLogStream",
"logs:PutLogEvents",
"s3:GetObjectAcl",
"s3:GetObject",
"s3:ListBucket",
"s3:DeleteObject",
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:logs:<your-region-name>:<your-cloud-watch-log-id>:log-group:/aws/lambda/<your-lambda-function-name>:*",
"arn:aws:s3:::<your-bucket-name>/*"
]
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "logs:CreateLogGroup",
"Resource": "arn:aws:logs:<your-region-name>:<your-cloud-watch-log-id>:*"
}
]
}
<your-region-name>
<your-cloud-watch-log-id>
<your-bucket-name>
<your-lambda-function-name>
See Add someone else's Google calendar > Add using a link
.
ISC
Copyright (c) 2019 Shellyl_N and Authors.