use of com.amazonaws.auth.AWSCredentials in project ignite-extensions by apache.
the class S3CheckpointSpiStartStopBucketEndpointSelfTest method spiConfigure.
/**
* {@inheritDoc}
*/
@Override
protected void spiConfigure(S3CheckpointSpi spi) throws Exception {
AWSCredentials cred = new BasicAWSCredentials(IgniteS3TestSuite.getAccessKey(), IgniteS3TestSuite.getSecretKey());
spi.setAwsCredentials(cred);
spi.setBucketNameSuffix(S3CheckpointSpiSelfTest.getBucketNameSuffix() + "-e");
spi.setBucketEndpoint("s3.us-east-2.amazonaws.com");
super.spiConfigure(spi);
}
use of com.amazonaws.auth.AWSCredentials in project ignite-extensions by apache.
the class S3CheckpointSpiStartStopSSEAlgorithmSelfTest method spiConfigure.
/**
* {@inheritDoc}
*/
@Override
protected void spiConfigure(S3CheckpointSpi spi) throws Exception {
AWSCredentials cred = new BasicAWSCredentials(IgniteS3TestSuite.getAccessKey(), IgniteS3TestSuite.getSecretKey());
spi.setAwsCredentials(cred);
spi.setBucketNameSuffix(S3CheckpointSpiSelfTest.getBucketNameSuffix());
spi.setSSEAlgorithm("AES256");
super.spiConfigure(spi);
}
use of com.amazonaws.auth.AWSCredentials in project ignite-extensions by apache.
the class S3CheckpointSpiStartStopSelfTest method spiConfigure.
/**
* {@inheritDoc}
*/
@Override
protected void spiConfigure(S3CheckpointSpi spi) throws Exception {
AWSCredentials cred = new BasicAWSCredentials(IgniteS3TestSuite.getAccessKey(), IgniteS3TestSuite.getSecretKey());
spi.setAwsCredentials(cred);
spi.setBucketNameSuffix(S3CheckpointSpiSelfTest.getBucketNameSuffix());
super.spiConfigure(spi);
}
use of com.amazonaws.auth.AWSCredentials in project ignite-extensions by apache.
the class S3SessionCheckpointSelfTest method testS3Checkpoint.
/**
* @throws Exception If failed.
*/
@Ignore("https://issues.apache.org/jira/browse/IGNITE-2420")
@Test
public void testS3Checkpoint() throws Exception {
IgniteConfiguration cfg = getConfiguration();
S3CheckpointSpi spi = new S3CheckpointSpi();
AWSCredentials cred = new BasicAWSCredentials(IgniteS3TestSuite.getAccessKey(), IgniteS3TestSuite.getSecretKey());
spi.setAwsCredentials(cred);
spi.setBucketNameSuffix(S3CheckpointSpiSelfTest.getBucketNameSuffix());
cfg.setCheckpointSpi(spi);
GridSessionCheckpointSelfTest.spi = spi;
checkCheckpoints(cfg);
}
use of com.amazonaws.auth.AWSCredentials in project stream-applications by spring-cloud.
the class S3SourceTests method initS3.
@BeforeAll
static void initS3() {
AWSCredentials credentials = new BasicAWSCredentials("minio", "minio123");
ClientConfiguration clientConfiguration = new ClientConfiguration();
s3Client = AmazonS3ClientBuilder.standard().withEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration("http://localhost:" + minio.getMappedPort(9000), Regions.US_EAST_1.name())).withPathStyleAccessEnabled(true).withClientConfiguration(clientConfiguration).withCredentials(new AWSStaticCredentialsProvider(credentials)).build();
}
Aggregations