Skip to content

Commit

Permalink
Merge pull request tmobile#245 from sajeer-nooh/add_redshift_policy_a…
Browse files Browse the repository at this point in the history
…utofix

Added redshift policies for autofix
  • Loading branch information
johnakash authored Jun 25, 2019
2 parents 22c782d + a496537 commit 52b0d25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion installer/core/providers/aws/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def validate_user_policies(self):
else:
False


def _check_group_policies(self, access_key, secret_key, user_name):
"""
Check required policies are present in user-group policies or not. Required policies are kept in the settings AWS_POLICIES_REQUIRED
Expand Down
1 change: 0 additions & 1 deletion installer/custom/commands/redeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def re_deploy_pacbot(self, input_instance):
self.run_pre_deployment_process(resources_to_process)
self.run_real_deployment(input_instance, resources_to_process, terraform_with_targets)


def run_pre_deployment_process(self, resources_to_process):
"""
Before redeploy get started do predeployment activities
Expand Down
6 changes: 5 additions & 1 deletion installer/resources/iam/all_read_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ class AllReadRoleAutoFixPolicyDocument(iam.IAMPolicyDocumentData):
"s3:ListBucketByTags",
"s3:PutBucketAcl",
"s3:PutBucketPolicy",
"s3:PutBucketTagging"
"s3:PutBucketTagging",
"redshift:AuthorizeClusterSecurityGroupIngress",
"redshift:CreateClusterSecurityGroup",
"redshift:CreateTags",
"redshift:ModifyCluster",
],
'resources': ["*"],
'effect': "Allow"
Expand Down

0 comments on commit 52b0d25

Please sign in to comment.