redshift_poc_automation/stacks/jmeter_stack.py [41:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            user_data_2 = f_2.read()

        # Instance Role and SSM Managed Policy

        role_policy_document = {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Effect": "Allow",
                    "Principal": {
                        "AWS": "arn:aws:iam::" + account_id + ":root"
                    },
                    "Action": "sts:AssumeRole"
                }
            ]
        }
        client = boto3.client('iam')
        roles = client.list_roles()
        Role_list = roles['Roles']
        for key in Role_list:
            name = key['RoleName']
            if name == 'window-cli-role':
                windowcliexists = 1
            else:
                windowcliexists = 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



redshift_poc_automation/stacks/sct_stack.py [41:65]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            user_data_2 = f_2.read()

        # Instance Role and SSM Managed Policy

        role_policy_document = {
            "Version": "2012-10-17",
            "Statement": [
                {
                    "Effect": "Allow",
                    "Principal": {
                        "AWS": "arn:aws:iam::" + account_id + ":root"
                    },
                    "Action": "sts:AssumeRole"
                }
            ]
        }
        client = boto3.client('iam')
        roles = client.list_roles()
        Role_list = roles['Roles']
        for key in Role_list:
            name = key['RoleName']
            if name == 'window-cli-role':
                windowcliexists = 1
            else:
                windowcliexists = 0
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



