Completed - Assignment 2 Pull Request: Extend Automation for Log Management with EC2 & S3 #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR enhances the existing automation by meeting the requirements from the 2nd DevOps assignment:
Adds two distinct IAM roles for S3 (read-only and upload/create).
Associates correct roles with respective EC2 instances.
Implements EC2 log upload to a configurable, private S3 bucket.
Enables application log and system log uploads to S3.
Applies S3 lifecycle rules to delete logs after 7 days.
Verifies S3 access using the read-only role.
Adds local log synchronization from read-only EC2 to local directory structure. Saves the log to ./mylogs/app/ and ./mylogs/system/
Reviewer Email:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Author:
Akhil C