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 f4bcda1 [DATALAB-2538]: fixed boundary variable
f4bcda1 is described below
commit f4bcda102814202ddf0c5549af0df8c423595326
Author: leonidfrolov <[email protected]>
AuthorDate: Thu Aug 26 12:22:12 2021 +0300
[DATALAB-2538]: fixed boundary variable
---
infrastructure-provisioning/src/general/lib/aws/actions_lib.py | 2 --
.../src/general/scripts/aws/common_create_role_policy.py | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
index 2ba8416..34916cd 100644
--- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
@@ -557,8 +557,6 @@ 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 ffd7036..94489da 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,8 +47,8 @@ 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},
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)
+ print("Creating role {0}, profile name
{1}".format(args.role_name, args.role_profile_name))
+ create_iam_role(args.role_name, args.role_profile_name,
args.region, args.permissions_boundary_arn, tag=tag, user_tag=user_tag)
else:
print("ROLE AND ROLE PROFILE ARE ALREADY CREATED")
print("ROLE {} created. IAM group {}
created".format(args.role_name, args.role_profile_name))
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]