use of com.formkiq.aws.ssm.SsmConnectionBuilder in project formkiq-core by formkiq.
the class EmailSendingTest method beforeClass.
/**
* beforeclass.
*
* @throws IOException IOException
*/
@BeforeClass
public static void beforeClass() throws IOException {
Region awsregion = Region.of(System.getProperty("testregion"));
String awsprofile = System.getProperty("testprofile");
final SqsConnectionBuilder sqsConnection = new SqsConnectionBuilder().setCredentials(awsprofile).setRegion(awsregion);
final SsmConnectionBuilder ssmBuilder = new SsmConnectionBuilder().setCredentials(awsprofile).setRegion(awsregion);
final SnsConnectionBuilder snsBuilder = new SnsConnectionBuilder().setCredentials(awsprofile).setRegion(awsregion);
final S3ConnectionBuilder s3Builder = new S3ConnectionBuilder().setCredentials(awsprofile).setRegion(awsregion);
s3Service = new S3Service(s3Builder);
sqsService = new SqsService(sqsConnection);
SsmService ssmService = new SsmServiceImpl(ssmBuilder);
snsService = new SnsService(snsBuilder);
String app = System.getProperty("testappenvironment");
snsDocumentEmailArn = ssmService.getParameterValue("/formkiq/" + app + "/sns/DocumentsEmailNotificationArn");
stagingdocumentsbucketname = ssmService.getParameterValue("/formkiq/" + app + "/s3/DocumentsStageS3Bucket");
}
use of com.formkiq.aws.ssm.SsmConnectionBuilder in project formkiq-core by formkiq.
the class AwsResourceTest method beforeClass.
/**
* beforeclass.
*
* @throws IOException IOException
*/
@BeforeClass
public static void beforeClass() throws IOException {
String awsprofile = System.getProperty("testprofile");
appenvironment = System.getProperty("testappenvironment");
awsregion = Region.of(System.getProperty("testregion"));
final SsmConnectionBuilder ssmBuilder = new SsmConnectionBuilder().setCredentials(awsprofile).setRegion(awsregion);
ssmService = new SsmServiceImpl(ssmBuilder);
dynamoDB = new DynamoDbConnectionBuilder().setCredentials(awsprofile).setRegion(awsregion).build();
}
Aggregations