diff --git a/README.md b/README.md index 16e44c62..10be0030 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,13 @@ $ mvn clean package ## To run integration tests ### Create environment for testing in nonproduction env + +First install the aws-wps package to your maven repo: + +``` +$ mvn clean install +``` + wps-cloudformation-template.yml is used to create the followings: - AWS Batch: Module [aggregation-worker](aggregation-worker) contains the code to do the batch job. During the build, the maven will invoke docker-build.sh under scripts to create a docker image. You can find the image with the command @@ -94,9 +101,9 @@ click the APIs on the top menu and find the ID of your API_ID. WPS_ENDPOINT=https://$API_ID.execute-api.ap-southeast-2.amazonaws.com/LATEST/wps ```shell -Finally you can run the integrateion-test as below +Finally you can run the integration-testing as below -cd integration-tests +cd integration-testing WPS_ENDPOINT='https://w4fnovhz73.execute-api.ap-southeast-2.amazonaws.com/LATEST/wps' mvn verify ``` diff --git a/wps-cloudformation-template.yaml b/wps-cloudformation-template.yaml index 875f5682..e62e1616 100644 --- a/wps-cloudformation-template.yaml +++ b/wps-cloudformation-template.yaml @@ -100,6 +100,14 @@ Resources: Condition: CreateEphemeralBucket DeletionPolicy: Delete Properties: + PublicAccessBlockConfiguration: + BlockPublicAcls: False + BlockPublicPolicy: False + IgnorePublicAcls: True + RestrictPublicBuckets: True + OwnershipControls: + Rules: + - ObjectOwnership: BucketOwnerPreferred LifecycleConfiguration: Rules: - Id: JobExpirationInDays