The following policy should be added to Last9 user or IAM role.
Where
From the main console, click on Identity & Access Management
.
From the IAM dashboard
select the Policies
section and then click the Create Policy
**button.
Paste the policy and fill in name of the S3 bucket and prefix, if any as used in Step-1
Give a meaningful name to the policy and click on Create Policy
- in this example, we gave the name access-lb-logs
as the policy was tied to an AWS load balancer logging bucket. A similar name like access-apigw-logs
can be provided for API Gateway logging bucket and so on.
Go back to the Policies
section, select the policy we just created, click on Policy Actions
, and select Attach
Select the Last9 user or IAM role to attach the policy to, and then click on Attach Policy