-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1724 from SEKOIA-IO/feat/aws-s3-sqs
feat(aws): add template and update doc
- Loading branch information
Showing
11 changed files
with
103 additions
and
91 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
_shared_content/operations_center/integrations/aws_create_s3_notification.md
This file was deleted.
Oops, something went wrong.
70 changes: 70 additions & 0 deletions
70
_shared_content/operations_center/integrations/aws_create_s3_sqs_notification.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
### Deploying the Data Collection Architecture | ||
|
||
This section will guide you through creating all the AWS resources needed to collect AWS logs. If you already have existing resources that you want to use, you may do so, but any potential issues or incompatibilities with this tutorial will be your responsibility. | ||
|
||
#### Prerequisites | ||
|
||
In order to set up the AWS architecture, you need an administator access to the [Amazon console]( https://console.aws.amazon.com) with the permissions to create and manage S3 buckets, SQS queues, S3 notifications and users. | ||
|
||
=== "Automatic" | ||
|
||
To get started, click on the button below and fill the form on AWS to set up the required environment for Sekoia [![Deploy to AWS](https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png)](https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=sekoia_stack&templateURL=https://sekoia-doc-bucket.s3.eu-west-3.amazonaws.com/resources.yml) | ||
|
||
You need to fill 4 inputs: | ||
|
||
- Stack name - Name of the stack in CloudFormation (Name of the template) | ||
- BucketName - Name of the S3 Bucket | ||
- IAMUserName - Name of the dedicated user to access the S3 and SQS queue | ||
- SQSName - Name of the SQS queue | ||
|
||
Read the different pages and click on `Next`, then click on `Submit`. | ||
|
||
You can follow the creation in the `Events` tab (it can take few minutes). | ||
|
||
Once finished, it should be displayed on the left `CREATE_COMPLETE`. Click on the `Outputs` tab in order to retrieve the information needed for Sekoia playbook. | ||
|
||
<div style="text-align: center;"> | ||
<img width="100%" alt="image" src="/assets/operation_center/integration_catalog/cloud_and_saas/aws/aws_cloudformation.png"> | ||
</div> | ||
|
||
=== "Manual" | ||
|
||
**Create a S3 Bucket** | ||
|
||
Please refer to [this guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html) to create a S3 Bucket. | ||
|
||
**Create a SQS queue** | ||
|
||
The collect will rely on S3 Event Notifications (SQS) to get new S3 objects. | ||
|
||
1. Create a queue in the SQS service by following [this guide](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-create-queue.html) | ||
2. In the Access Policy step, choose the advanced configuration and adapt this configuration sample with your own SQS Amazon Resource Name (ARN) (the main change is the Service directive allowing S3 bucket access): | ||
```json | ||
{ | ||
"Version": "2008-10-17", | ||
"Id": "__default_policy_ID", | ||
"Statement": [ | ||
{ | ||
"Sid": "__owner_statement", | ||
"Effect": "Allow", | ||
"Principal": { | ||
"Service": "s3.amazonaws.com" | ||
}, | ||
"Action": "SQS:SendMessage", | ||
"Resource": "arn:aws:sqs:XXX:XXX" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
!!! Important | ||
Keep in mind that you have to create the SQS queue in the same region as the S3 bucket you want to watch. | ||
|
||
** Create a S3 Event Notification ** | ||
|
||
Use the [following guide](https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-event-notifications.html) to create S3 Event Notification. | ||
Once created: | ||
|
||
1. Select the notification for object creation in the Event type section | ||
2. As the destination, choose the SQS service | ||
3. Select the queue you created in the previous section |
33 changes: 0 additions & 33 deletions
33
_shared_content/operations_center/integrations/aws_create_sqs_queue.md
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+65.2 KB
.../operation_center/integration_catalog/cloud_and_saas/aws/aws_cloudformation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions
6
docs/xdr/features/collect/ingestion_methods/cloud_saas/aws.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
# Prerequisites to retrieve logs from AWS to Sekoia.io | ||
|
||
When utilizing an AWS integration with Sekoia.io, the initial step involves centralizing your logs using AWS S3. This allows Sekoia.io to retrieve events seamlessly. The following page will guide you through the process of setting up these prerequisites; | ||
When utilizing an AWS integration with Sekoia.io, the initial step involves centralizing your logs using AWS S3. This allows Sekoia.io to retrieve events seamlessly. The following page will guide you through the process of setting up these prerequisites. | ||
|
||
{!_shared_content/operations_center/integrations/aws_create_sqs_queue.md!} | ||
|
||
{!_shared_content/operations_center/integrations/aws_create_s3_notification.md!} | ||
{!_shared_content/operations_center/integrations/aws_create_s3_sqs_notification.md!} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters