문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
aws:localstack [2022/03/29 12:43] kwon37xi |
aws:localstack [2022/03/29 12:49] kwon37xi [LocalStack] |
||
---|---|---|---|
줄 6: | 줄 6: | ||
* Python 기반이지만 [[: | * Python 기반이지만 [[: | ||
* Unit Test 시에 JUnit 4/5 를 모두 지원하여 자동으로 컨테이너를 띄웠다 내려줄 수 있다. | * Unit Test 시에 JUnit 4/5 를 모두 지원하여 자동으로 컨테이너를 띄웠다 내려줄 수 있다. | ||
- | * | + | * [[aws: |
* [[aws: | * [[aws: | ||
줄 108: | 줄 108: | ||
new AwsClientBuilder.EndpointConfiguration(" | new AwsClientBuilder.EndpointConfiguration(" | ||
- | AmazonSNS amazonSNS = AmazonSNSClient.builder() | + | AmazonSNS amazonSNS = AmazonSNSClient |
+ | | ||
.withEndpointConfiguration(localstackEndpointConfiguration) | .withEndpointConfiguration(localstackEndpointConfiguration) | ||
.withCredentials(localstackCrendentialProvider) | .withCredentials(localstackCrendentialProvider) | ||
- | .build(); | + | |
</ | </ | ||
줄 120: | 줄 121: | ||
AmazonS3 amazonS3 = AmazonS3ClientBuilder | AmazonS3 amazonS3 = AmazonS3ClientBuilder | ||
.standard() | .standard() | ||
- | .withEndpointConfiguration(null) | + | .withEndpointConfiguration(localstackEndpointConfiguration) |
- | .withCredentials(null) | + | .withCredentials(localstackCrendentialProvider) |
.withPathStyleAccessEnabled(true) | .withPathStyleAccessEnabled(true) | ||
.build(); | .build(); |