You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* To run all mocked test functions (Using 8 parallel processes):
106
106
@@ -121,6 +121,10 @@ You can choose from three different environments to test your fixes/changes, bas
121
121
122
122
``pip install -r requirements-dev.txt``
123
123
124
+
*[OPTIONAL] Set AWS_DEFAULT_REGION to define the region the Data Lake Test envrioment will deploy into. You may want to choose a region which you don't currently use:
125
+
126
+
``export AWS_DEFAULT_REGION=ap-northeast-1``
127
+
124
128
* Go to the ``cloudformation`` directory
125
129
126
130
``cd cloudformation``
@@ -145,10 +149,16 @@ You can choose from three different environments to test your fixes/changes, bas
145
149
146
150
``pytest -n 8 tests/test_athena*``
147
151
152
+
*[OPTIONAL] To remove the base test environment cloud formation stack post testing:
153
+
154
+
``./cloudformation/delete-base.sh``
155
+
148
156
### Full test environment
149
157
150
158
**DISCLAIMER**: Make sure you know what you are doing. These steps will charge some services on your AWS account and require a minimum security skill to keep your environment safe.
151
159
160
+
**DISCLAIMER**: This environment contains Aurora MySQL, Aurora PostgreSQL and Redshift (single-node) clusters which will incur cost while running.
161
+
152
162
* Pick up a Linux or MacOS.
153
163
* Install Python 3.6, 3.7 and 3.8
154
164
* Fork the AWS Data Wrangler repository and clone that into your development environment
@@ -160,16 +170,27 @@ You can choose from three different environments to test your fixes/changes, bas
160
170
161
171
``pip install -r requirements-dev.txt``
162
172
173
+
*[OPTIONAL] Set AWS_DEFAULT_REGION to define the region the Full Test envrioment will deploy into. You may want to choose a region which you don't currently use:
174
+
175
+
``export AWS_DEFAULT_REGION=ap-northeast-1``
176
+
163
177
* Go to the ``cloudformation`` directory
164
178
165
179
``cd cloudformation``
166
180
167
-
* Deploy the Cloudformation templates `base.yaml` and `databases.yaml`
181
+
* Deploy the Cloudformation templates `base.yaml` and `databases.yaml`. This step could take about 15 minutes to deploy.
168
182
169
183
``./deploy-base.sh``
170
184
``./deploy-databases.sh``
171
185
172
186
* Go to the `EC2 -> SecurityGroups` console, open the `aws-data-wrangler-*` security group and configure to accept your IP from any TCP port.
187
+
- Alternatively run:
188
+
189
+
``./security-group-databases-add-local-ip.sh``
190
+
191
+
- Check local IP was applied:
192
+
193
+
``./security-group-databases-check.sh``
173
194
174
195
``P.S Make sure that your security group will not be open to the World! Configure your security group to only give access for your IP.``
175
196
@@ -185,12 +206,22 @@ You can choose from three different environments to test your fixes/changes, bas
0 commit comments