Skip to content

Commit

Permalink
publish to serverless repo
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik committed Mar 7, 2020
1 parent 7676c7e commit 48b89d8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
16 changes: 16 additions & 0 deletions CloudWatch2S3-additional-account.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ Metadata:
default: Required Log Group Name Prefix
SubscribeSchedule:
default: Look for New Logs Schedule
AWS::ServerlessRepo::Application:
Author: CloudSnorkel
Description: Logging source for CloudWatch2S3 from a separate AWS account. Deploy
CloudWatch2S3 to your main account first.
HomePageUrl: https://github.com/CloudSnorkel/CloudWatch2S3
Labels:
- cloudwatch
- s3
- export
LicenseUrl: LICENSE
Name: CloudWatch2S3-additional-account
ReadmeUrl: README.md
SemanticVersion: 1.0.0
SourceCodeUrl: https://github.com/CloudSnorkel/CloudWatch2S3
SpdxLicenseId: MIT
Parameters:
LogDestination:
AllowedPattern: arn:aws:logs:[a-z1-9\-]+:[0-9]+:destination:.*
Expand Down Expand Up @@ -223,3 +238,4 @@ Resources:
- LogSubscriberFunction
- Arn
Type: Custom::Subscriber
Transform: AWS::Serverless-2016-10-31
16 changes: 16 additions & 0 deletions CloudWatch2S3.template
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,21 @@ Metadata:
default: Kinesis Shard Count
SubscribeSchedule:
default: Look for New Logs Schedule
AWS::ServerlessRepo::Application:
Author: CloudSnorkel
Description: Logging infrastructure for exporting all CloudWatch logs from multiple
accounts to a single S3 bucket.
HomePageUrl: https://github.com/CloudSnorkel/CloudWatch2S3
Labels:
- cloudwatch
- s3
- export
LicenseUrl: LICENSE
Name: CloudWatch2S3
ReadmeUrl: README.md
SemanticVersion: 1.0.0
SourceCodeUrl: https://github.com/CloudSnorkel/CloudWatch2S3
SpdxLicenseId: MIT
Outputs:
Bucket:
Description: Bucket where all logs will be written
Expand Down Expand Up @@ -762,3 +777,4 @@ Resources:
- LogSubscriberFunction
- Arn
Type: Custom::Subscriber
Transform: AWS::Serverless-2016-10-31
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

Logging infrastructure for exporting all CloudWatch logs from multiple accounts to a single S3 bucket.

Available on AWS Serverless Application Repository:

* [CloudWatch2S3](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:859319237877:applications~CloudWatch2S3)
* [CloudWatch2S3-additional-account](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:859319237877:applications~CloudWatch2S3-additional-account)

### Overview

![Architecture diagram](architecture.svg)
![Architecture diagram](https://github.com/CloudSnorkel/CloudWatch2S3/raw/master/architecture.svg?sanitize=true)

This project supplies a CloudFormation template that setups Kinesis stream that takes log records from CloudWatch and
writes them to a specific S3 bucket as they are arrive. Log records can be retrieved from multiple AWS accounts using
Expand Down

0 comments on commit 48b89d8

Please sign in to comment.