AWS-ConfigureS3BucketLogging - Amazon Systems Manager Automation runbook reference
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS-ConfigureS3BucketLogging

Description

Enable logging on an Amazon Simple Storage Service (Amazon S3) bucket.

Run this Automation (console)

Document type

Automation

Owner

Amazon

Platforms

Linux, macOS, Windows

Parameters

  • AutomationAssumeRole

    Type: String

    Description: (Optional) The Amazon Resource Name (ARN) of the Amazon Identity and Access Management (IAM) role that allows Systems Manager Automation to perform the actions on your behalf. If no role is specified, Systems Manager Automation uses the permissions of the user that starts this runbook.

  • BucketName

    Type: String

    Description: (Required) The name of the Amazon S3 Bucket for which you want to configure logging.

  • GrantedPermission

    Type: String

    Valid values: FULL_CONTROL | READ | WRITE

    Description: (Required) Logging permissions assigned to the grantee for the bucket.

  • GranteeEmailAddress

    Type: String

    (Optional) Email address of the grantee.

  • GranteeId

    Type: String

    Description: (Optional) The canonical user ID of the grantee.

  • GranteeType

    Type: String

    Valid values: CanonicalUser | AmazonCustomerByEmail | Group

    Description: (Required) Type of grantee.

  • GranteeUri

    Type: String

    Description: (Optional) URI of the grantee group.

  • TargetBucket

    Type: String

    Description: (Required) Specifies the bucket where you want Amazon S3 to store server access logs. You can have your logs delivered to any bucket that you own. You can also configure multiple buckets to deliver their logs to the same target bucket. In this case you should choose a different TargetPrefix for each source bucket so that the delivered log files can be distinguished by key.

  • TargetPrefix

    Type: String

    Default: /

    Description: (Optional) Specifies a prefix for the keys under which the log files will be stored.