Skip to content

Commit 1e708a7

Browse files
authored
Merge pull request #104 from cloudcomponents/feat_s3_antivirus
feat: S3 antivirus
2 parents 74cfc38 + 41674ff commit 1e708a7

29 files changed

+883
-13
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ This repository is a monorepo managed with [Lerna](https://github.com/lerna/lern
3939
| [cdk-cloudfront-authorization](/packages/cdk-cloudfront-authorization) | CloudFront with Cognito authentication using Lambda@Edge | ![npm](https://img.shields.io/npm/dm/@cloudcomponents/cdk-cloudfront-authorization) |
4040
| [cdk-secret-key](/packages/cdk-secret-key) | Provide secret keys to lambdas | ![npm](https://img.shields.io/npm/dm/@cloudcomponents/cdk-secret-key) |
4141
| [cdk-responsive-email-template](/packages/cdk-responsive-email-template) | Responsive email template for aws ses | ![npm](https://img.shields.io/npm/dm/@cloudcomponents/cdk-responsive-email-template) |
42+
| [cdk-s3-antivirus](/packages/cdk-s3-antivirus) | Antivirus for Amazon S3 | ![npm](https://img.shields.io/npm/dm/@cloudcomponents/cdk-s3-antivirus) |
4243
## Contributing
4344

4445
We welcome community contributions and pull requests.
File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Useful commands
2+
3+
* `npm run build` compile typescript to js
4+
* `npm run watch` watch for changes and compile
5+
* `cdk deploy` deploy this stack to your default AWS account/region
6+
* `cdk diff` compare deployed stack with current state
7+
* `cdk synth` emits the synthesized CloudFormation template

examples/s3-antivurs-example/cdk.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"app": "cdkdx node src/s3-antivirus-app.ts"
3+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "s3-antivirus-example",
3+
"version": "0.1.0",
4+
"license": "MIT",
5+
"private": true,
6+
"scripts": {
7+
"build": "cdkdx build",
8+
"upgrade:cdk": "cdkdx upgrade-cdk",
9+
"cdk": "cdk"
10+
},
11+
"dependencies": {
12+
"@aws-cdk/aws-s3": "^1.106.1",
13+
"@aws-cdk/aws-sns": "^1.106.1",
14+
"@aws-cdk/aws-sns-subscriptions": "^1.106.1",
15+
"@aws-cdk/core": "^1.106.1",
16+
"@aws-cdk/aws-lambda-destinations": "^1.106.1",
17+
"@cloudcomponents/cdk-s3-antivirus": "^1.0.0",
18+
"source-map-support": "^0.5.19"
19+
},
20+
"devDependencies": {
21+
"@types/source-map-support": "^0.5.3",
22+
"aws-cdk": "^1.106.1"
23+
}
24+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
import 'source-map-support/register';
4+
import { App } from '@aws-cdk/core';
5+
6+
import { S3AntivirusStack } from './s3-antivirus-stack';
7+
8+
const app = new App();
9+
10+
new S3AntivirusStack(app, 'S3AntivirusStack', {
11+
env: {
12+
region: process.env.DEFAULT_REGION,
13+
account: process.env.CDK_DEFAULT_ACCOUNT,
14+
},
15+
});

0 commit comments

Comments
 (0)