diff --git a/CloudWatch2S3-additional-account.template b/CloudWatch2S3-additional-account.template index dab3edf..4990fee 100644 --- a/CloudWatch2S3-additional-account.template +++ b/CloudWatch2S3-additional-account.template @@ -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:.* @@ -223,3 +238,4 @@ Resources: - LogSubscriberFunction - Arn Type: Custom::Subscriber +Transform: AWS::Serverless-2016-10-31 diff --git a/CloudWatch2S3.template b/CloudWatch2S3.template index 2c5f1a5..26621c7 100644 --- a/CloudWatch2S3.template +++ b/CloudWatch2S3.template @@ -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 @@ -762,3 +777,4 @@ Resources: - LogSubscriberFunction - Arn Type: Custom::Subscriber +Transform: AWS::Serverless-2016-10-31 diff --git a/README.md b/README.md index e278bb5..2373ce2 100644 --- a/README.md +++ b/README.md @@ -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