aws-samples / aws-data-mesh-utils

Apache License 2.0
85 stars 22 forks source link

adding programatic support for aws cli Profiles #25

Open nbaillie opened 10 months ago

nbaillie commented 10 months ago

Description of changes in addition to ReadMe update:

  1. added 'use_profile' to bootstrap_account as an alternative to credentials, additionally account id for consumer and/or producer is determined now by using a the sts client for the appropriate connection.

  2. Class DataMeshAdmin is updated to handle the new option for 'use_profile' and will use this to connect the clients if supplied, 'use_profile' can not be used at the same time as 'use_credentials' and we raise error if we try and do that.

  3. the function assert_is_data_lake_admin is updated to handle the case were we use and STS assumed role and need to check that it is a data lake Admin.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

IanMeyers commented 10 months ago

Can you also please add support for these profiles in the data-mesh-cli so that these are available on the command line?

nbaillie commented 10 months ago

let me get on the CLI change as requested. Thanks @IanMeyers