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
Copy file name to clipboardExpand all lines: README.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,7 +204,6 @@ You can also use [examples/0\_5\_setup\_account\_as.py](examples/0_5_setup_accou
204
204
Accounts can be both producers and consumers, so you may wish to run this step against the account used above. You may also have Accounts that are Consumer only, and cannot create data shares. This step is only run once per AWS Account and must be run using credentials that have AdministratorAccess as well as being Lake Formation Data Lake Admin:
205
205
206
206
```python
207
-
import logging
208
207
from data_mesh_util.lib.constants import*
209
208
from data_mesh_util import DataMeshMacros as data_mesh_macros
210
209
@@ -244,7 +243,6 @@ The above Steps 1.1 and 1.2 can be run for any number of accounts that you requi
244
243
Creating a data product replicates Glue Catalog metadata from the Producer's account into the Data Mesh account, while leaving the source storage at rest within the Producer. The data mesh objects are shared back to the Producer account to enable local control without accessing the data mesh. Data Products can be created from Glue Catalog Databases or one-or-more Tables, but all permissions are managed at Table level. Producers can run this as many times as they require. To create a data product:
245
244
246
245
```python
247
-
import logging
248
246
from data_mesh_util import DataMeshProducer as dmp
249
247
250
248
data_mesh_account ='insert data mesh account number here'
You can also use [examples/1\_create\_data\_product.py](examples/1_create_data_product.py) as an example to build your own application.
287
285
286
+
Please note that upon creation of a data product, you will see a new Database and Table created in the Data Mesh Account, and this Database and Table have been shared back to the producer AWS Account using Resource Access Manager (RAM). Your producer Account may now be able to query data both from within the data mesh and from their own account, but the security Principal used for Data Mesh Utils may require additional permissions to use Athena or other query services.
287
+
288
288
### Step 3: Request access to a Data Product Table
289
289
290
290
As a consumer, you can gain view public metadata by assuming the `DataMeshReadOnly` role in the mesh account. You can then create an access request for data products using:
291
291
292
292
```python
293
-
import logging
294
293
from data_mesh_util import DataMeshConsumer as dmc
295
294
296
295
data_mesh_account ='insert data mesh account number here'
@@ -303,7 +302,6 @@ consumer_credentials = {
303
302
}
304
303
data_mesh_consumer = dmp.DataMeshConsumer(
305
304
data_mesh_account_id=data_mesh_account,
306
-
log_level=logging.DEBUG,
307
305
region_name=aws_region,
308
306
use_credentials=consumer_credentials
309
307
)
@@ -329,7 +327,6 @@ You can also use [examples/2\_consumer\_request\_access.py](examples/2_consumer_
329
327
In this step, you will grant permissions to the Consumer who has requested access:
330
328
331
329
```python
332
-
import logging
333
330
from data_mesh_util import DataMeshProducer as dmp
334
331
335
332
data_mesh_account = 'insert data mesh account number here'
@@ -342,7 +339,6 @@ producer_credentials = {
342
339
}
343
340
data_mesh_producer = dmp.DataMeshProducer(
344
341
data_mesh_account_id=data_mesh_account,
345
-
log_level=logging.DEBUG,
346
342
region_name=aws_region,
347
343
use_credentials=producer_credentials
348
344
)
@@ -381,7 +377,6 @@ You can also use [examples/3\_grant\_data\_product\_access.py](examples/3_grant_
381
377
Permissions have been granted, but the Consumer must allow those grants to be imported into their account:
382
378
383
379
```python
384
-
import logging
385
380
from data_mesh_util import DataMeshConsumer as dmc
386
381
387
382
data_mesh_account = 'insert data mesh account number here'
0 commit comments