-
Notifications
You must be signed in to change notification settings - Fork 82
EPMRPP-113780 || Update 'S3 Cloud Storage' article #1095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,17 +12,29 @@ description: Configure S3 cloud storage for the ReportPortal Flaky Test Detectio | |
|
|
||
| ReportPortal supports cloud storage options through the Java library [JCLOUDS](https://jclouds.apache.org/). | ||
|
|
||
| To configure storage using Amazon S3, ReportPortal uses the following environment variables for the services **API**, **Jobs**, and **Authorization**: | ||
| To configure storage using Amazon S3, ReportPortal uses the following **environment variables for the services API, Jobs, and Authorization**: | ||
|
|
||
| ```bash | ||
| RP_FEATURE_FLAGS: singleBucket # Enable single-bucket storage (recommended) | ||
| DATASTORE_TYPE: aws-s3 | ||
| DATASTORE_TYPE: s3 | ||
| DATASTORE_REGION: us-standard # Region of the bucket (JCloud ref. to `us-east-1`) | ||
| DATASTORE_ACCESSKEY: <access_key> | ||
| DATASTORE_SECRETKEY: <secret_key> | ||
| DATASTORE_DEFAULTBUCKETNAME: my-bucket # Name of the bucket | ||
| ``` | ||
|
|
||
| **Environment variables for for Analyzer:** | ||
|
|
||
| ```bash | ||
| x-analyzer-environment: &common-analyzer-environment | ||
| DATASTORE_REGION: us-east-1 | ||
| DATASTORE_ACCESSKEY: "<access_key>" | ||
| DATASTORE_SECRETKEY: "<secret_key>" | ||
| DATASTORE_BUCKETPREFIX: prj- | ||
| DATASTORE_BUCKETPOSTFIX: "" | ||
| DATASTORE_DEFAULTBUCKETNAME: my-rp-docker-bucket/analyzer | ||
| ``` | ||
|
Comment on lines
+28
to
+36
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Verify DATASTORE_REGION and bucket name configuration patterns
# Search for DATASTORE_REGION usage patterns
rg -n -C2 'DATASTORE_REGION.*us-(east-1|standard)' --type=md --type=yaml
# Search for bucket name patterns with slashes
rg -n 'DATASTORE.*BUCKET.*/' --type=md --type=yaml
# Search for documentation about bucket prefix/postfix usage
rg -n -C3 'BUCKETPREFIX|BUCKETPOSTFIX' --type=mdRepository: reportportal/docs Length of output: 4584 🏁 Script executed: # Get broader context around the snippet to understand the configuration sections
sed -n '17,50p' docs/installation-steps-advanced/file-storage-options/S3CloudStorage.mdRepository: reportportal/docs Length of output: 1238 🏁 Script executed: # Get the full file to understand documentation structure and clarifications
wc -l docs/installation-steps-advanced/file-storage-options/S3CloudStorage.mdRepository: reportportal/docs Length of output: 136 🏁 Script executed: # Search for explanations about bucket naming conventions in the file
rg -n -C5 'bucket.*name|bucket.*notation|slash|path' docs/installation-steps-advanced/file-storage-options/S3CloudStorage.md -iRepository: reportportal/docs Length of output: 4256 🏁 Script executed: # Search for any warnings or notes about S3 bucket name format restrictions
rg -n -C3 'S3.*name|bucket.*format|slash|cannot|invalid' docs/installation-steps-advanced/file-storage-options/S3CloudStorage.md -iRepository: reportportal/docs Length of output: 740 Fix bucket name format and add clarifying comment for region format in Analyzer section. Two issues require attention:
🤖 Prompt for AI Agents |
||
|
|
||
| ## IAM Role-based authentication | ||
|
|
||
| ### Amazon EKS-based | ||
|
|
@@ -341,11 +353,25 @@ In your `docker-compose.yml`, configure ReportPortal to use IAM-based S3 access: | |
| ```yaml | ||
| x-environment: &common-environment | ||
| # IAM Role-Based S3 Access - Leave credentials empty | ||
| DATASTORE_ACCESSKEY: "" | ||
| DATASTORE_SECRETKEY: "" | ||
| DATASTORE_TYPE: aws-s3 | ||
| DATASTORE_REGION: us-standard # JClouds alias for us-east-1 | ||
| DATASTORE_ACCESSKEY: "" # Leave empty for IAM Role-based access | ||
| DATASTORE_SECRETKEY: "" # Leave empty for IAM Role-based access | ||
| RP_FEATURE_FLAGS: singleBucket | ||
| DATASTORE_TYPE: s3 # Enable single-bucket storage (necessary for Amazon S3) | ||
| DATASTORE_REGION: us-standard # JClouds alias for us-east-1 | ||
| DATASTORE_DEFAULTBUCKETNAME: my-rp-docker-bucket | ||
|
|
||
| x-analyzer-environment: &common-analyzer-environment | ||
| LOGGING_LEVEL: info | ||
| AMQP_EXCHANGE_NAME: analyzer-default | ||
| AMQP_VIRTUAL_HOST: analyzer | ||
| AMQP_URL: amqp://${RABBITMQ_DEFAULT_USER-rabbitmq}:${RABBITMQ_DEFAULT_PASS-rabbitmq}@rabbitmq:5672 | ||
| ES_HOSTS: http://opensearch:9200 | ||
| DATASTORE_REGION: us-east-1 | ||
| DATASTORE_ACCESSKEY: "" # Leave empty for IAM Role-based access | ||
| DATASTORE_SECRETKEY: "" # Leave empty for IAM Role-based access | ||
| DATASTORE_BUCKETPREFIX: prj- | ||
| DATASTORE_BUCKETPOSTFIX: "" | ||
| DATASTORE_DEFAULTBUCKETNAME: my-rp-docker-bucket/analyzer | ||
| ``` | ||
|
|
||
| :::note | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the duplicate word in the header.
The header contains a typo: "for for Analyzer" should be "for Analyzer".
📝 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents