Skip to content

Commit

Permalink
adding example-pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mialarconchong committed Sep 5, 2023
1 parent 15d4b60 commit bc96b0c
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions cloudtrail-lambda-dynamo-cdk/example-pattern.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"title": "Check S3 Object Tag Compliance Using CloudTrail, Lambda and Dynamo",
"description": "Creates a CloudTrail trail to track S3 object creation events, and checks for the required tags on those objects to determine compliance",
"language": "TypeScript",
"level": "200",
"framework": "CDK",
"introBox": {
"headline": "How it works",
"text": [
"This pattern demonstrates how to use CloudTrail events to check the tags of S3 objects that have been created. The S3 objects are stored in a DynamoDB table",
"which then gets sent to Lambda to check if the required tags are present. Compliance is updated on the DynamoDB table in the attribute is_compliant (true/false).",
"Further actions can be taken based on the results of the compliance check at the user's discretion."
]
},
"gitHub": {
"template": {
"repoURL": "https://github.com/aws-samples/serverless-patterns/tree/main/cloudtrail-lambda-dynamo-cdk",
"templateURL": "serverless-patterns/cloudtrail-lambda-dynamo-cdk",
"projectFolder": "cloudtrail-lambda-dynamo-cdk/src",
"templateFile": "cloudtrail-lambda-dynamo-cdk/src/lib/tag-compliance-stack.ts"
}
},
"resources": {
"bullets": [
{
"text": "S3 Object Tagging",
"link": "https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-tagging.html"
}
]
},
"deploy": {
"text": [
"cdk deploy"
]
},
"testing": {
"text": [
"See the Github repo for detailed testing instructions."
]
},
"cleanup": {
"text": [
"Delete the stack: <code>cdk destroy</code>"
]
},
"authors": [
{
"name": "Mia Alarcon Chong",
"image": "",
"bio": "AWS Cloud Application Developer",
"linkedin": "mialarcon"
}
]
}

0 comments on commit bc96b0c

Please sign in to comment.