This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2538
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2538 by this push:
new d25bfab [DATALAB-2538]: added output for testing
d25bfab is described below
commit d25bfabb5e3efde1aff6a51c9707186229a09995
Author: leonidfrolov <[email protected]>
AuthorDate: Thu Aug 26 12:19:06 2021 +0300
[DATALAB-2538]: added output for testing
---
infrastructure-provisioning/src/general/lib/aws/actions_lib.py | 2 ++
.../src/general/scripts/aws/common_create_role_policy.py | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
index 34916cd..2ba8416 100644
--- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
@@ -557,6 +557,8 @@ def tag_emr_volume(cluster_id, node_name, billing_tag):
def create_iam_role(role_name, role_profile, region, permissions_boundary='',
service='ec2', tag=None, user_tag=None):
conn = boto3.client('iam')
try:
+ print('=======')
+ print(permissions_boundary)
if region == 'cn-north-1':
conn.create_role(
RoleName=role_name,
diff --git
a/infrastructure-provisioning/src/general/scripts/aws/common_create_role_policy.py
b/infrastructure-provisioning/src/general/scripts/aws/common_create_role_policy.py
index 7b80cf7..ffd7036 100644
---
a/infrastructure-provisioning/src/general/scripts/aws/common_create_role_policy.py
+++
b/infrastructure-provisioning/src/general/scripts/aws/common_create_role_policy.py
@@ -47,7 +47,7 @@ if __name__ == "__main__":
if role_name == '':
tag = {"Key": args.infra_tag_name, "Value":
args.infra_tag_value}
user_tag = {"Key": "user:tag", "Value": args.user_tag_value}
- print("Creating role {0}, profile name
{1}".format(args.role_name, args.role_profile_name))
+ print("Creating role {0}, profile name {1},
permissions_boundary_arn {2}".format(args.role_name, args.role_profile_name,
args.permissions_boundary_arn))
create_iam_role(args.role_name, args.role_profile_name,
args.permissions_boundary_arn, args.region, tag=tag, user_tag=user_tag)
else:
print("ROLE AND ROLE PROFILE ARE ALREADY CREATED")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]