In this step, we will create an S3 bucket to store session logs sent from EC2 instances.
Access S3 service management console
At the Create bucket page.
The name of the S3 bucket must not be the same as all other S3 buckets in the system. You can substitute your name and enter a random number when generating the S3 bucket name.
When we created the S3 bucket we did Block all public access so our EC2 instances won’t be able to connect to S3 via the internet. In the next step, we will configure the S3 Gateway Endpoint feature to allow EC2 instances to connect to the S3 bucket via the VPC’s internal network.