Configure data delivery to OSS

更新时间:
复制 MD 格式

To deliver scheduled snapshots or resource change logs to a specific destination in Object Storage Service (OSS), you must configure a bucket. After the data is delivered, you can view and download it in JSON format.

Prerequisites

Object Storage Service (OSS) is activated. For more information, see Activate OSS.

Important

Activating Object Storage Service (OSS) is free of charge. However, charges apply when Cloud Config delivers data to an OSS bucket. For more information, see Billing overview.

Background information

  • To avoid incurring charges for Object Storage Service (OSS), you can delete the bucket in the OSS console. After you delete the bucket, the Cloud Config delivery task becomes invalid, and data delivery stops. For more information, see Delete a bucket.

  • To balance storage costs with your use case, we recommend using the Storage Class: Standard, which is the default. If you need long-term storage for data that you access infrequently (once or twice per month), we recommend using the Storage Class: (Infrequent Access) storage class. For more information, see Create a bucket.

Procedure

  1. Log on to the Cloud Config console.

  2. Optional. In the upper-left corner, select an account group.

    This operation is required only if you are using a management account of a resource directory. Otherwise, you do not need to perform the operation.

  3. In the left-side navigation pane, click Deliveries.

  4. On the Deliveries page, click Create Delivery in the upper-left corner.

  5. On the Create Delivery page, enter a Deliveries, select Object Storage Service (OSS) for Channel Type, and then configure the OSS parameters.

    The following table describes the delivery parameters.

    Parameter

    Description

    Content

    The content to deliver to the OSS bucket. Valid values:

    • Historical Configuration Changes: Cloud Config delivers a resource change log to the bucket when a resource's configuration changes.

    • Scheduled Snapshots: By default, Cloud Config delivers a snapshot of your resources to the bucket at 00:00:00 and 12:00:00 every day.

      Note

      If you set Daily Delivery Time, Cloud Config delivers data at the specified time.

    Bucket Source

    The OSS bucket source. Valid values:

    • Create a bucket in the account.: Select a region, create a bucket, and then configure log file encryption. The bucket name must be unique.

    • Select an existing bucket from the account.: Select a region and an existing bucket.

    • Select an existing bucket from another account (This option is available only for a management account or delegated administrator account): Specify the ARN of the bucket in the destination account. The ARN includes the Region, Members, and Bucket Name.

      You can deliver data from your account and all member accounts in your resource directory to a bucket that is owned by a specific member account. Member accounts do not have permission to configure data delivery and use the settings configured by the management account.

      Note

      If the management account has configured a delegated administrator account for Cloud Config, the delegated administrator account can configure data delivery on behalf of the management account. For more information about how to add a delegated administrator account, see Add a delegated administrator account.

    Events of Specified Resource Type

    The resource types for which data will be delivered. For a list of resource types supported by Cloud Config, see Supported resource types and resource relationships.

    Daily Delivery Time

    The time of day to deliver the resource snapshot.

    Note

    If you do not set this parameter, Cloud Config delivers data at 00:00:00 and 12:00:00 by default.

  6. Click OK.

  7. (Optional) In the Confirm dialog box, click OK.

    This operation is required only if you are using a management account of a resource directory. Otherwise, you do not need to perform the operation.

    Note

    The new delivery task applies only to all members in the current account group.

Next steps

View the delivery results and download the JSON files.

  1. On the Deliveries page, click the ID of the delivery that you created.11.png

  2. In the Extended Information section, click the bucket name.

    This action redirects you to the bucket's page in the Object Storage Service (OSS) console.

  3. In the left-side navigation pane, choose Object Management > Objects.

    View or download the JSON files from the following path: /ACSLogs/AccountId/Config/RegionId/yyyy/mm/dd/. For content examples, see Resource snapshot example and Resource change log example.