This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2333 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 69bfeccc8f77e57581679f49760518013d8936f7 Author: leonidfrolov <[email protected]> AuthorDate: Mon May 24 15:58:51 2021 +0300 [DATALAB-2333]: added list of attached to policy roles --- infrastructure-provisioning/src/general/lib/aws/actions_lib.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py index e34de9d..f35f94b 100644 --- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py +++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py @@ -954,6 +954,10 @@ def remove_all_iam_resources(instance_type, project_name='', endpoint_name=''): service_base_name)) except: print('There is no policy {}-ssn-policy to delete'.format(service_base_name)) + attached_role_policies = client.list_attached_role_policies(RoleName=iam_role) + if attached_role_policies: + print('========1') + print(attached_role_policies) role_profiles = client.list_instance_profiles_for_role(RoleName=iam_role).get('InstanceProfiles') if role_profiles: for i in role_profiles: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
