Search in sources :

Example 6 with SsmConnectionBuilder

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");
}
Also used : SsmService(com.formkiq.aws.ssm.SsmService) SsmServiceImpl(com.formkiq.aws.ssm.SsmServiceImpl) SqsConnectionBuilder(com.formkiq.aws.sqs.SqsConnectionBuilder) SsmConnectionBuilder(com.formkiq.aws.ssm.SsmConnectionBuilder) SnsService(com.formkiq.aws.sns.SnsService) S3ConnectionBuilder(com.formkiq.aws.s3.S3ConnectionBuilder) SqsService(com.formkiq.aws.sqs.SqsService) Region(software.amazon.awssdk.regions.Region) SnsConnectionBuilder(com.formkiq.aws.sns.SnsConnectionBuilder) S3Service(com.formkiq.aws.s3.S3Service) BeforeClass(org.junit.BeforeClass)

Example 7 with SsmConnectionBuilder

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();
}
Also used : SsmServiceImpl(com.formkiq.aws.ssm.SsmServiceImpl) SsmConnectionBuilder(com.formkiq.aws.ssm.SsmConnectionBuilder) DynamoDbConnectionBuilder(com.formkiq.stacks.dynamodb.DynamoDbConnectionBuilder) BeforeClass(org.junit.BeforeClass)

Aggregations

SsmConnectionBuilder (com.formkiq.aws.ssm.SsmConnectionBuilder)7 SsmServiceImpl (com.formkiq.aws.ssm.SsmServiceImpl)6 BeforeClass (org.junit.BeforeClass)5 S3ConnectionBuilder (com.formkiq.aws.s3.S3ConnectionBuilder)3 S3Service (com.formkiq.aws.s3.S3Service)3 SqsConnectionBuilder (com.formkiq.aws.sqs.SqsConnectionBuilder)3 SqsService (com.formkiq.aws.sqs.SqsService)3 DynamoDbConnectionBuilder (com.formkiq.stacks.dynamodb.DynamoDbConnectionBuilder)3 Region (software.amazon.awssdk.regions.Region)3 SnsConnectionBuilder (com.formkiq.aws.sns.SnsConnectionBuilder)2 SnsService (com.formkiq.aws.sns.SnsService)2 SsmService (com.formkiq.aws.ssm.SsmService)2 CognitoConnectionBuilder (com.formkiq.aws.cognito.CognitoConnectionBuilder)1 CognitoService (com.formkiq.aws.cognito.CognitoService)1 FormKiqClientConnection (com.formkiq.stacks.client.FormKiqClientConnection)1 FormKiqClientV1 (com.formkiq.stacks.client.FormKiqClientV1)1 DocumentServiceImpl (com.formkiq.stacks.dynamodb.DocumentServiceImpl)1 AwsCredentialsProvider (software.amazon.awssdk.auth.credentials.AwsCredentialsProvider)1