The repository-s3 plugin enables the use of S3 as a place to store snapshots.
./gradlew :plugins:repository-s3:test
Integration tests require several environment variables.
amazon_s3_bucket
: Name of the S3 bucket to use.amazon_s3_access_key
: The access key ID (AWS_ACCESS_KEY_ID
) with r/w access to the S3 bucket.amazon_s3_secret_key
: The secret access key (AWS_SECRET_ACCESS_KEY
).amazon_s3_base_path
: A relative path inside the S3 bucket, e.g.opensearch
.AWS_REGION
: The region in which the S3 bucket was created. While S3 buckets are global, credentials must scoped to a specific region and cross-region access is not allowed. (TODO: rename this toamazon_s3_region
in opensearch-project/opensearch-build#3615 and opensearch-project#7974.)
AWS_REGION=us-west-2 amazon_s3_access_key=$AWS_ACCESS_KEY_ID amazon_s3_secret_key=$AWS_SECRET_ACCESS_KEY amazon_s3_base_path=path amazon_s3_bucket=dblock-opensearch ./gradlew :plugins:repository-s3:s3ThirdPartyTest