Node v6.10.3 Lambda Function to integrate Bitbucket as S3 Bucket.
Activating S3 Bucket Versioning you can use it to triggering push event to AWS CodePipeline
./config/bitbucket.json.example
./config/s3.json.example
Run the following command with Node Version 6.10.3
npm install
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:PutObjectAcl"
],
"Resource": "<YOUR BUCKET ARN HERE>"
}
]
}
Let's do it!