Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
266 commits
Select commit Hold shift + click to select a range
5a7eccb
Updating API Gateway template for individual use.
Jan 22, 2020
38b3586
Updating Dynamo DB to use individually.
Jan 22, 2020
35a61bd
Updating tags template to be used individually also.
Jan 22, 2020
592a53f
Correcting explorer view creation.
Jan 22, 2020
9c92d4b
Updating master template as per individual changes for multiple templ…
Jan 22, 2020
04746a4
Adding import functionality.
Jan 22, 2020
8e5e081
Updating tags, adding common collector and correcting EC2 App.
Jan 22, 2020
562b1f1
Updating resource template
Jan 23, 2020
1d4edb8
Do not install collector if it is already installed. If common Collec…
Jan 23, 2020
eda98cc
Install collector and cloudwatch source of common not installed for ALB
Jan 23, 2020
e8fbd39
Adding EC2 and ALB to master template.
Jan 23, 2020
dce20d8
Correcting EC2 and ALB Templates.
Jan 23, 2020
b0521c2
Correcting resource creation.
Jan 23, 2020
3d9a597
Stack name.
Jan 23, 2020
2fdca96
Correcting Dynamo DB
Jan 23, 2020
38f32d1
Correcting Lambda and API Gateway resources.
Jan 23, 2020
455cf07
Correcting RDS Template
Jan 23, 2020
23900f8
Splitting condition into two different conditions.
Jan 23, 2020
d00d4ca
Adding more apps
Jan 23, 2020
82f7a0c
Correcting Namespaces.
Jan 23, 2020
f155210
Correcting Conditions.
Jan 23, 2020
caccb94
Adding S3 Source to ALB.
Jan 23, 2020
1e2e274
Correcting Names.
Jan 23, 2020
cfbea43
Resources
Jan 23, 2020
5ef8090
Adding cloudtrail source to dyanamo DB.
Jan 23, 2020
1b38007
updating zip for cloudwatch
Jan 23, 2020
e33f1f9
Updating conditions.
Jan 23, 2020
c2b0b7f
Updating lambda to create logs sources also.
Jan 23, 2020
7068205
Lambda APP modification for better understanding.
Jan 24, 2020
4bac843
Correcting API Gateway for better Understanding.
Jan 24, 2020
6bb37fd
Updating DynamoDB app for better understanding.
Jan 24, 2020
401ca19
Removing cloudwatch logs from dynamo and api gateway test
Jan 24, 2020
4bd0418
Correcting RDS template for better understanding
Jan 24, 2020
e0d56be
Updating EC2 resources.
Jan 24, 2020
0ebdee2
updating metadata source name
Jan 24, 2020
16283f9
Updating ALB for better understanding.
Jan 24, 2020
595f36f
Install collector when name is not empty to fetch the existing collec…
Jan 24, 2020
1d2b2b3
Testing for tags.
Jan 24, 2020
f4d665f
if parent stack, fetch collector to create Metadata Source in the col…
Jan 25, 2020
e5097da
Adding Bucket Policy for ALB logs.
Jan 25, 2020
2a813b3
Resources to create common resources.
Jan 25, 2020
4a71462
Test for resources.
Jan 25, 2020
7e3b27a
Adding Create Collector Condition.
Jan 26, 2020
66e36ec
Master template
Jan 26, 2020
20fa6b8
Add bucket policy when installing resource.
Jan 26, 2020
5db5f05
Add bucket policy when installing resource.
Jan 26, 2020
13ec659
Add bucket policy when installing resource.
Jan 26, 2020
1425fcc
test master
Jan 26, 2020
e32e888
Testing master
Jan 26, 2020
49e40ed
Add bucket policy when installing resource.
Jan 27, 2020
952a6dd
Metric Rules API
Jan 27, 2020
3e08783
Metric RUle test
Jan 27, 2020
55dfb4a
Adding metric rules.
Jan 27, 2020
cc0ddbd
Adding metric rules.
Jan 27, 2020
ba48a95
adding account alias allowedpattern
Jan 27, 2020
770d373
Metric name
Jan 27, 2020
df18f64
Add bucket policy when installing resource.
Feb 3, 2020
049e685
Adding fields when creating resources.
Feb 3, 2020
9bbcb13
adding fields capability while creating sources.
Feb 3, 2020
e5f67ac
Adding fields to existing sources.
Feb 3, 2020
a735c7d
Adding Tag resources, Metric rule and Explorer view in the Child Temp…
Feb 4, 2020
6ad457d
Adding tag resources, metric rule and explorer to API gateway.
Feb 4, 2020
dab764b
adding explorer view and metric rules to dynamoDB
Feb 4, 2020
07a85e8
Add bucket policy when installing resource.
Feb 4, 2020
a4bc513
Adding tag , metric rule for ec2
Feb 4, 2020
2ceba00
adding tag , metric rule and explorer to rds.
Feb 4, 2020
c66ea36
adding tag, metric and explorer for lambda
Feb 4, 2020
8c5472b
remove region from tags.
Feb 4, 2020
0724301
removing source categories from metrics rule. Also, for ec2 and dynam…
Feb 4, 2020
974419b
adding tags to ALB.
Feb 4, 2020
1454191
Correcting resources.
Feb 4, 2020
9e5740b
Changing master template.
Feb 5, 2020
c6029ec
adding regions to sources, collector and buckets name,
Feb 5, 2020
ec2ecd4
all resources
Feb 5, 2020
c0c387f
adding actions to lambda role.
Feb 5, 2020
6d3c8a8
Add bucket policy when installing resource.
Feb 5, 2020
f6c3e3d
adding CLoudwatch logs CF for lambda
Feb 5, 2020
8f40de1
Removing metric rules for dynamo DB.
Feb 5, 2020
1e83190
Adding tag for dynamoDB
Feb 5, 2020
fe9e932
adding dynamodb tags resource.
Feb 5, 2020
ad516e7
tag dynamoDB resources.
Feb 5, 2020
253c12e
Add bucket policy when installing resource.
Feb 5, 2020
6896b7c
Add bucket policy when installing resource.
Feb 5, 2020
02548b7
adding account alias to collector name and source names
Feb 6, 2020
b9be246
adding permission to common role
Feb 6, 2020
fa4e509
adding FER capability to sumo apps utils
Feb 7, 2020
1a5f945
adding prefix AwsObservability to metric rule names.
Feb 7, 2020
f5052e7
adding FER to api gateway
Feb 7, 2020
050b883
adding DynamoDB FER.
Feb 7, 2020
a8a48ce
adding FER for lambda
Feb 7, 2020
e0f7e88
Adding FER for RDS
Feb 7, 2020
63296e8
Add bucket policy when installing resource.
Feb 7, 2020
70b1310
namespace in small case on log source.
Feb 10, 2020
cf04d15
if install app is true then only update the source with field details.
Feb 10, 2020
d301596
No Need for Field Extraction Rule as no Cloudtrail Source Category pr…
Feb 10, 2020
2be2072
adding update method for all new resources. Adding FER scope merging.
Feb 10, 2020
529756b
FER update with same name.
Feb 10, 2020
9c451ce
adding update method for all new resources. Adding FER scope merging.
Feb 11, 2020
b889892
delete collector if no sources present in collector
Feb 11, 2020
63a5479
adding update method for all new resources. Adding FER scope merging.
Feb 11, 2020
9f6a7ad
install app flag on api gateway
Feb 11, 2020
5145238
adding install app flag for dynamodb
Feb 11, 2020
9f8651c
adding install app flag to all apps.
Feb 11, 2020
befc802
making install app flag as separate to handle installation of separatly.
Feb 11, 2020
1604d08
changing folder structure.
Feb 11, 2020
27ae91a
Correcting path
Feb 11, 2020
4afcf0e
correcting template path.
Feb 11, 2020
415be61
adding more to elb account id.
Feb 11, 2020
3a7fa85
create sources depends on hosted collector
Feb 11, 2020
c8a0de2
separating resource types.
Feb 12, 2020
9263c7e
removing accessid
Feb 12, 2020
818b398
Automatic tagging of resources.
Feb 14, 2020
f102540
tagging
Feb 15, 2020
2cd30a4
improving tagging code.
Feb 15, 2020
565fe9a
adding api gateway
Feb 15, 2020
2de7092
dynamo
Feb 15, 2020
d50d74e
lambda
Feb 15, 2020
22b209f
Adding RDS
Feb 17, 2020
0ff948f
adding alb
Feb 17, 2020
e556807
auto enable s3 logs alb.
Feb 17, 2020
4a00ee7
testing templates.
Feb 17, 2020
27edfa8
Enable and disable the S# logs for ALB.
Feb 17, 2020
54eb992
correcting app name,
Feb 17, 2020
6fa48e1
adding output
Feb 17, 2020
55089cf
adding auto subscribe to master templates.
Feb 17, 2020
691c4db
changing namespace for ec2
Feb 17, 2020
043d731
adding new zip
Feb 17, 2020
5979949
name improve
Feb 17, 2020
946189c
loading class
Feb 18, 2020
9f3b21b
delete collector.
Feb 18, 2020
ef0528f
new zip
Feb 18, 2020
9e0733f
adding filter regex match
Feb 18, 2020
13da6cf
adding filter expression.
Feb 18, 2020
57d516c
adding filter expression.
Feb 18, 2020
3a5d63b
adding limit to number of sources.
Feb 19, 2020
b6a667f
adding filter condition to master.
Feb 19, 2020
5e5cf03
updating the bucket name to prod
Feb 19, 2020
32026fc
adding region mappings for buckets.
Feb 19, 2020
38f5ebe
adding account alias while creating rules
Feb 20, 2020
b679cf2
conditions
Feb 20, 2020
50ad908
changing names
Feb 21, 2020
65c9ccb
adding s3 source creation with a common bucket in common resource.
Feb 25, 2020
13bf881
adding capability for common bucket
Feb 25, 2020
913f210
adding bucket prefix capability
Feb 25, 2020
797e7fd
Merge branch 'master' into sourabh-aws-observability
Feb 27, 2020
0ded690
changing to ELB source.
Feb 27, 2020
a0c95b5
changing description
Feb 27, 2020
af685e1
in and fed to description.
Feb 27, 2020
95b662b
auto enable for existing alb resources.
Feb 27, 2020
3d03357
making app install go one by one to not exceed rate limit of 10 concu…
Feb 27, 2020
66bad63
adding region and account overview dashboard
Feb 27, 2020
88d7dd3
adding condition for overview dashboards.
Feb 27, 2020
970afd2
default value for host metrics source category
Mar 2, 2020
2138c0a
message per request added as parameter.
Mar 4, 2020
d5740ba
message per request added as parameter.
Mar 4, 2020
b67d86f
message per request added as parameter.
Mar 4, 2020
b4b05bf
adding configuration recorder.
Mar 5, 2020
f4d24d5
updating delete
Mar 5, 2020
ba5b6c6
adding capability to enable delivery channel for config.
Mar 5, 2020
5b662ab
adding template level description and NoEcho for Sumo Access Key.
Mar 9, 2020
2f692c9
Fixed - "sumo collector / source api limit reached" and "CloudWatch l…
Mar 20, 2020
9ca6e63
Fixed - "Improved description for Auto Subscription part" and "Remove…
Mar 20, 2020
4055d5f
Fixed - "raise exception"
Mar 20, 2020
e1991b7
handling API limit reached.
Mar 20, 2020
06deb69
Adding Bucket policy in case ALB logs bucket does not have required p…
Mar 27, 2020
1d0a963
adding to enable s3 logs for policy addition
Mar 27, 2020
18efa45
adding to enable s3 logs for policy addition
Mar 27, 2020
a019a15
New Zip
Mar 27, 2020
501f2f1
updating parameters names in order to maintain the order of appearanc…
Mar 29, 2020
f81b4f7
adding new zip
Apr 6, 2020
587b772
new zip file.
Apr 6, 2020
51e0d0a
adding vpc flow logs logic to VPC resources.
Apr 7, 2020
f82f63b
new zip
Apr 7, 2020
ddba50c
new zip
Apr 7, 2020
bbbd698
new zip
Apr 7, 2020
463c6ea
new zip
Apr 7, 2020
24218a0
new zip
Apr 7, 2020
416aaea
new zip
Apr 7, 2020
50fc51c
new zip
Apr 7, 2020
2648877
new zip
Apr 7, 2020
ae943c3
new zip
Apr 7, 2020
2bd0e75
adding bucket policy
Apr 7, 2020
4ffa3bb
new zip
Apr 7, 2020
59f05f5
put bucket acl for S3 logging.
Apr 7, 2020
fb7fafd
removing / from end
Apr 8, 2020
3f1ba43
adding AWS Inventory as TSAT
Apr 9, 2020
f92490c
adding sleep after adding policy
Apr 11, 2020
a85a45b
calling sources if flag to remove is true
Apr 12, 2020
c4740d0
Tsat Template
Apr 13, 2020
2431ee2
Tsat Template
Apr 13, 2020
e146edb
New Zip
Apr 16, 2020
8d1bfd6
Changing default values and description.
Apr 16, 2020
df01141
Correcting Description and Labels.
Apr 16, 2020
0a9dec9
Correcting Description and Labels.
Apr 16, 2020
7a75e04
New zip Version.
Apr 18, 2020
a489d4d
New zip Version to handle intermittent issue of destinationfolderid i…
Apr 18, 2020
d3b5967
New zip Version to handle intermittent issue of destinationfolderid i…
Apr 18, 2020
a394521
Remove seconds and milliseconds from app name as it makes the name ea…
Apr 22, 2020
9d0dd50
adding second to app name as getting Duplicate content issue.
Apr 22, 2020
e9818b7
adding default value in description.
Apr 23, 2020
10f7cb6
adding names for lambda, IAM roles and sns topic to make identificati…
Apr 27, 2020
63341b2
append stack ID to install it multiple times. S3 Bucket name change.
Apr 27, 2020
1bcc94e
updating rule names.
Apr 27, 2020
7981eeb
adding account alias
Apr 27, 2020
ee970d0
adding aws-obs to rules name.
Apr 27, 2020
7890e0b
improving Description for cloudwatch rules.
Apr 27, 2020
c642f32
Reducing the size of rule, lambda and sns names.
Apr 30, 2020
2702138
Adding rule for max length of Account alias
May 1, 2020
b5bf9e1
adding check for empty dict. Also changing month to string data.
May 14, 2020
64bfe4e
Modifying Ec2 Template with rearranging parameters, removing source c…
May 14, 2020
cafd090
Modifying ALB Template with rearranging parameters, removing source c…
May 14, 2020
924f2af
Re arranging the folder structure.
May 14, 2020
e406311
Modifying DynamoDB Template with rearranging parameters, removing sou…
May 14, 2020
e85cfca
Changing Upload.sh
May 14, 2020
12fd11a
Modifying API Gateway Template with rearranging parameters, removing …
May 14, 2020
84ba832
moving master template to templates folder structure
May 14, 2020
aabe5fd
Modifying RDS Template with rearranging parameters, removing source c…
May 14, 2020
af31334
Modifying Lambda Template with rearranging parameters, removing sourc…
May 14, 2020
68e2d45
Moving Auto tag Template to new folder structure.
May 14, 2020
171c840
Adding condition for creating common SNS topic when bucket is created…
May 15, 2020
c5a2ce0
Improving Common Resource creation - Removed ELB and CloudWatch Logs …
May 15, 2020
e8b91b1
Improving Common Resource creation - Removed ELB and CloudWatch Logs …
May 15, 2020
74c989a
Improving TSAT Template with all condition and parent stack to use it…
May 15, 2020
e129eb7
Updating nested template to have collector name for each source so th…
May 18, 2020
e3a8211
Lambda app update
May 18, 2020
4989680
Updating Dynamo DB as per master template.
May 18, 2020
dcf2b42
Updating RDS Template
May 18, 2020
6b50d12
Template for S3 logging enable
May 18, 2020
c1d0174
auto enable s3 logging
May 18, 2020
62a9314
First Level Update before testing the master changes.
May 18, 2020
4ef583f
Improving condition and testing master template.
May 19, 2020
b1f405d
adding new scenarios to test file.
May 19, 2020
386e9a7
Correcting Path expression.
May 20, 2020
4b86e3e
Testing all templates using master test sh.
May 20, 2020
6b7d896
correcting S3 bucket.
May 20, 2020
b69c8d2
Upload YAML to S3.
May 20, 2020
a860474
Adding app JSONs.
May 20, 2020
6de1d26
Adding latest app JSONs from Sumo Labs.
May 20, 2020
59d0010
Updating Read Me.
May 20, 2020
b86efad
moved all templates to other repo.
May 20, 2020
29e2e86
Merge branch 'master' into sourabh-aws-observability
May 20, 2020
928d7c1
Releasing 1.0.27 version for testing.
May 21, 2020
6bd6f52
Releasing 1.0.29 for Sumo-App-Utils. Added Two resources one with rol…
May 26, 2020
a6c3bee
Uploading the Zip also for Sumo App Utils.
May 26, 2020
69e1781
Releasing Major Version for Sumo App Utils as to be used in AWS Obser…
May 27, 2020
047e50d
Releasing 1.0.0 Version for auto enable S3 logging for S3 buckets, VP…
May 27, 2020
e9db1c9
Releasing 2.0.1 Version for SumoLogic app utils as per review comment…
May 29, 2020
833495c
Changing Source Category to AWS/EC2.
Jun 8, 2020
e16afa9
Changing Source Category to AWS/EC2.
Jun 8, 2020
b626e20
changing namespace to Namespace
Jun 8, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 201 additions & 0 deletions awsautoenableS3Logging/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Sumo Logic Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
50 changes: 50 additions & 0 deletions awsautoenableS3Logging/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# sumologic-s3-logging-auto-enable

This Server Less application is used to automatically enable logging to S3 buckets for [VPC, Subnets and Network Interfaces Flow Logs](https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs-s3.html), [S3 Buckets Audit Logging](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerLogs.html#server-access-logging-overview) and [Load Balancer Access logging](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#enable-access-logging).

The application supports
- **[S3 Audit Logging](https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerLogs.html#server-access-logging-overview)** to S3 Buckets.
- **[VPC flow Logs](https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs-s3.html)** enable for VPC, Subnets and Network interfaces. FLow Logs for new VPC is enabled and AWS creates Flow Logs for any new Subnets or network interfaces attached to the VPC.
- **[Load Balancer Access Logging](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-access-logs.html#enable-access-logging)** enable for Load Balancer.

Made with ❤️ by Sumo Logic. Available on the [AWS Serverless Application Repository](https://aws.amazon.com/serverless)

## AWS Resources

The Server Less Application can enable S3 logging for below AWS Resources.
* **Existing AWS resources** - Lambda calls describe APIs to get existing resources and Enable S3 logging or VPC Flow logs.
* **New AWS Resources** - Lambda is invoked on CLoudWatch Events after AWS Resource creation and Enable S3 logging or VPC Flow logs.

### Deploying the SAM Application

1. Open a browser window and enter the following URL: https://serverlessrepo.aws.amazon.com/applications
2. Select Show apps that create custom IAM roles or resource policies check box.
3. In the Serverless Application Repository, search for sumologic-s3-logging-auto-enable.
4. Click the sumologic-s3-logging-auto-enable link, and then click Deploy.
5. In the Configure application parameters panel,
EnableLogging: "Select the AWS Resource from S3, VPC and ALB to enable logging for."
1. S3 - To Enable S3 Audit Logging for new S3 buckets.
2. VPC - To Enable VPC flow logs for new VPC, Subnets and Network Interfaces.
3. ALB - To Enable S3 Logging for new Application Load Balancer.
TaggingResourceOptions: "Select AWS Resource to tag from New and Existing."
1. New - Automatically enables S3 logging for newly created AWS resources to send logs to S3 Buckets. This does not affect AWS resources already collecting logs.
2. Existing - Automatically enables S3 logging for existing AWS resources to send logs to S3 Buckets.
3. Both - Automatically enables S3 logging for new and existing AWS resources.
4. None - Skips Automatic S3 Logging enable for AWS resources.
BucketName: "Provide the AWS S3 Bucket Name where logs should be sent"
BucketPrefix: "Provide the prefix within the bucket to store logs."
RemoveOnDeleteStack: "Disable the S3 logging for AWS Resources after the stack is deleted."
1. True - To remove S3 logging or Vpc flow logs after stack is deleted.
2. False - To keep the S3 logging after stack is deleted.
ParentStackName: "DO NOT EDIT THE VALUE"
6. Click Deploy.


## License

Apache License 2.0 (Apache-2.0)


## Support
Requests & issues should be filed on GitHub: https://github.com/SumoLogic/sumologic-aws-lambda/issues

Loading