Create S3 Bucket to store logs

Creating an S3 Bucket

To store the logs, we’ll need to create an S3 Bucket. In the search bar:

  • Enter S3.
  • Select Amazon S3.

9.1.1

Go to Buckets, then select Create bucket.

9.1.2

Start configuring the S3 bucket:

  • Name: give it any name; here, we’ll name it firelens-logs.
  • Object Ownership: select ACLs Disable (recommended).

9.1.3

Next, we’ll make the Bucket accessible over the Internet.

9.1.4

To expedite the practice, we’ll make this Bucket publicly accessible in this tutorial. However, for a real-world setup, you should configure an S3 Endpoint for your VPC and disable public access for the Bucket. Additionally, apply a Resource-based Policy on the Bucket and permit ECS Service as a Principal.

In Bucket versioning, select Disable.

9.1.5

Next, in the Default encryption section:

  • Encryption type: leave it as default.
  • Bucket key: Disable.
  • Click Create bucket.

9.1.6

Once created, you can view the result in the S3 console.

9.1.7