Skip to main content

Amazon S3 for bundle import Data Source

An Amazon S3 Bundle Data Source uploads a bundle stored in an Amazon S3 bucket to Styra DAS and compiles it. The bundle can contain one or more .rego files structured in folders and a data.json file with some constant data that can be used by Rego bundle.

See Amazon S3 Bucket Access for Amazon S3 setup information.

Creating or Configuring the Data Source through the Styra DAS UI

Create or configure the Data Source through the Styra DAS UI.

  1. Login to the Styra DAS UI.
  2. Select the System to add the Data Source.
  3. Click the kebab icon (three dots ⋮) to the right of the System and select Add Data Source. The Add Data Source dialog box appears.
  4. Select Amazon S3 Bundle Data Source.
  5. In Path type a new or existing path separated by /. For example, path/to/datasourcetypes.
  6. In Data Source name (required) type the name for the Data Source.
  7. (Optional) Type in a Description name.
  8. In AWS region (required) select one of the regions from AWS service Endpoints. For example, us-east-1.
  9. In Bucket Name (and Path) (required) type the bucket name and optionally a path to the bucket. For example, aws-s3-bucket-testing. For more information on how to setup an AWS user and Amazon S3 bucket for secure Styra DAS S3 access, see Amazon S3 Bucket Access page.
  10. In Endpoint override type a gateway endpoint. For more information, see Amazon S3 Endpoints.
  11. In Refresh interval enter a refresh interval which is the amount of time between polling intervals. Default is s.
  12. In Access Keys for IAM Users type the access key credentials.
  13. In Access Key ID (required) type the access key ID. For more information, see AWS IAM User Access Keys.
  14. In Secret Access Key (required) type the Styra DAS secret if you are using a Amazon S3 bucket within your own AWS account.
  15. (Optional) Click the arrow to expand the Advanced field to configure Advanced options.
  16. Click Add.

The following shows an example output which appears after the Data Source is created in Styra DAS.

"_data": {},
"_packages": {
"data.datasourcetypes.bundle_s3": {
"a.rego": {}
"_signatures": null,
"allow": false