Getting started
This section explains how to enable and start using Amazon Security Lake.
Getting started steps
- Step 1: Initial AWS account setup
- Step 2: Complete other prerequisites
- Step 3: Enable Amazon Security Lake
- Step 4: Define collection objective (sources)
- Step 5: Define target objective (optional)
- Step 6: Review and create data lake (console-only step)
- Step 7: View and query your own data
- Step 8: Create subscribers
Step 1: Initial AWS account setup
Sign up for an AWS account
If you do not have an AWS account, complete the following steps to create one.
To sign up for an AWS account
Follow the online instructions.
Part of the sign-up procedure involves receiving a phone call and entering a verification code on the phone keypad.
When you sign up for an AWS account, an AWS account root user is created. The root user has access to all AWS services and resources in the account. As a security best practice, assign administrative access to an administrative user, and use only the root user to perform tasks that require root user access.
AWS sends you a confirmation email after the sign-up process is
complete. At any time, you can view your current account activity and manage your account by
going to https://aws.amazon.com/
Create an administrative user
After you sign up for an AWS account, create an administrative user so that you don't use the root user for everyday tasks.
Secure your AWS account root user
-
Sign in to the AWS Management Console
as the account owner by choosing Root user and entering your AWS account email address. On the next page, enter your password. For help signing in by using root user, see Signing in as the root user in the AWS Sign-In User Guide.
-
Turn on multi-factor authentication (MFA) for your root user.
For instructions, see Enable a virtual MFA device for your AWS account root user (console) in the IAM User Guide.
Create an administrative user
-
For your daily administrative tasks, grant administrative access to an administrative user in AWS IAM Identity Center (successor to AWS Single Sign-On).
For instructions, see Getting started in the AWS IAM Identity Center (successor to AWS Single Sign-On) User Guide.
Sign in as the administrative user
-
To sign in with your IAM Identity Center user, use the sign-in URL that was sent to your email address when you created the IAM Identity Center user.
For help signing in using an IAM Identity Center user, see Signing in to the AWS access portal in the AWS Sign-In User Guide.
Step 2: Complete other prerequisites
After you sign up for AWS, you can activate Security Lake for your account and create your data lake.
Here are prerequisites to complete before you start using Security Lake:
Identify the account that you'll use to enable Security Lake
Security Lake integrates with AWS Organizations to manage log collection across multiple accounts in an organization. If you want to use Security Lake for an organization, you must use your Organizations management account to designate a delegated Security Lake administrator. Then, you must use the credentials of the delegated administrator to enable Security Lake, add member accounts, and enable Security Lake for them. For more information, see Managing multiple accounts with AWS Organizations.
Alternatively, you can use Security Lake without the Organizations integration for a standalone account that's not part of an organization.
Install the AWS CLI (optional)
To access Security Lake through the AWS Command Line Interface (AWS CLI), you need to install the latest version of the AWS CLI on a supported operation system. For more instructions, see Installing or updating the latest version of the AWS CLI in the AWS Command Line Interface User Guide.
Create necessary IAM roles
Important
If you plan to use the Security Lake console, you can skip this step and proceed to Step 3: Enable Amazon Security Lake. The Security Lake console offers a streamlined process for getting started, and creates all necessary IAM roles or uses existing roles on your behalf.
If you plan to use API or AWS CLI to access Security Lake, continue with this step to create the necessary IAM roles manually.
If you're using the Security Lake API or AWS CLI, create a role called
AmazonSecurityLakeMetaStoreManager
in AWS Identity and Access Management (IAM). The role
must carry this name and is necessary for Security Lake to support extract, transform,
and load (ETL) jobs on raw log and event data that it receives from sources. Without
creating and assuming this role, you can't create your data lake or query data from
Security Lake. One role can be used across Regions—there is no need to create a
separate role for each Region.
Attach the following policy to your
AmazonSecurityLakeMetaStoreManager
role:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowWriteLambdaLogs", "Effect": "Allow", "Action": [ "logs:CreateLogStream", "logs:PutLogEvents" ], "Resource": [ "arn:aws:logs:*:{{
accountId
}}:log-group:/aws/lambda/SecurityLake_Glue_Partition_Updater_Lambda*" ] }, { "Sid": "AllowCreateAwsCloudWatchLogGroup", "Effect": "Allow", "Action": [ "logs:CreateLogGroup" ], "Resource": [ "arn:aws:logs:*:{{accountId
}}:/aws/lambda/SecurityLake_Glue_Partition_Updater_Lambda*" ] }, { "Sid": "AllowGlueManage", "Effect": "Allow", "Action": [ "glue:CreatePartition", "glue:BatchCreatePartition" ], "Resource": [ "arn:aws:glue:*:*:table/amazon_security_lake_glue_db*/*", "arn:aws:glue:*:*:database/amazon_security_lake_glue_db*", "arn:aws:glue:*:*:catalog" ] }, { "Sid": "AllowToReadFromSqs", "Effect": "Allow", "Action": [ "sqs:ReceiveMessage", "sqs:DeleteMessage", "sqs:GetQueueAttributes" ], "Resource": [ "arn:aws:sqs:*:{{accountId
}}:SecurityLake*" ] } ] }
Attach the following trust policy to the role to permit the partition updater Lambda function to assume the role:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AllowLambda", "Effect": "Allow", "Principal": { "Service": [ "lambda.amazonaws.com" ] }, "Action": "sts:AssumeRole" } ] }
Create additional roles in IAM if you'll be taking one or more of these actions (choose the links to see more information about IAM roles for each action):
-
Creating a custom source – Custom sources are sources other than natively-supported AWS services that send data to Security Lake.
-
Creating a subscriber with data access – Subscribers with permissions can directly access S3 objects from your data lake.
-
Creating a subscriber with query access – Subscribers with permissions can query data from Security Lake using services like Amazon Athena.
-
Configuring a rollup Region – A rollup Region consolidates data from multiple AWS Regions.
Step 3: Enable Amazon Security Lake
Before enabling Security Lake, consider the following:
-
Security Lake provides cross-region management features, which means you can create your data lake and configure log collection across AWS Regions. To enable Security Lake in all supported Regions, you can choose any supported Regional endpoint. You can also add rollup Regions to aggregate data from multiple regions to a single Region.
-
We recommend activating Security Lake in all of the supported AWS Regions. If you do this, Security Lake can collect data that's connected to unauthorized or unusual activity even in Regions that you aren't actively using. If Security Lake is not activated in all supported Regions, its ability to collect data from other services that you use in multiple Regions is reduced.
-
When you enable Security Lake for the first time in any Region, it creates a service-linked role for your account called
AWSServiceRoleForSecurityLake
. This role includes the permissions to call other AWS services on your behalf and operate the security data lake. For more information about how service-linked roles work, see Using service-linked roles in the IAM User Guide. If you enable Security Lake as the delegated Security Lake administrator, Security Lake creates the service-linked role in each member account in the organization.
After you complete the prerequisites, select your preferred method of access and enable Security Lake by following these instructions.
Step 4: Define collection objective (sources)
Security Lake collects log and event data from a variety of sources and across your AWS accounts and Regions. Follow these instructions to identify which data you want Security Lake to collect. You can only use these instructions to add a natively-supported AWS service as a source. For information about adding a custom source, see Collecting data from custom sources.
Step 5: Define target objective (optional)
You can specify the Amazon S3 storage class in which you want Security Lake to store your data and for how long. You can also specify a rollup Region to consolidate data from multiple Regions. These are optional steps. For more information, see Lifecycle management in Security Lake.
Step 6: Review and create data lake (console-only step)
Review the sources that Security Lake will collect data from, your rollup Regions, and your retention settings. Then, create your data lake.
-
While enabling Security Lake, review Log and event sources, Regions, Rollup Regions, and Storage classes.
-
Choose Create.
After creating your data lake, you will see the Summary page on the Security Lake console. This page provides an overview of the number of Regions and Rollup Regions, information about subscribers, and System issues.
The System issues menu shows you a summary of issues from the last 14 days that are impacting the Security Lake service or your Amazon S3 buckets.
Step 7: View and query your own data
After creating your data lake, you can use Amazon Athena or similar services to view and
query your data from AWS Lake Formation databases and tables. The data lake administrator account
in AWS Lake Formation must grant SELECT
permissions to the IAM role you want to use
to query the relevant databases and tables. At a minimum, the role must have
Data analyst permissions. For more information on permission
levels, see Lake Formation personas and IAM
permissions reference. For instructions on granting SELECT
permissions, see Granting Data
Catalog permissions using the named resource method in the
AWS Lake Formation Developer Guide.
Step 8: Create subscribers
After creating your data lake, you can add subscribers to consume your data. Subscribers can consume data by directly accessing objects in your Amazon S3 buckets or by querying the data lake. For more information about subscribers, see Subscriber management in Amazon Security Lake.