Skip to content

Instantly share code, notes, and snippets.

@greencamp20552
Last active July 11, 2023 09:43
Show Gist options
  • Select an option

  • Save greencamp20552/7055da6e1edd53547d3e32405e195d65 to your computer and use it in GitHub Desktop.

Select an option

Save greencamp20552/7055da6e1edd53547d3e32405e195d65 to your computer and use it in GitHub Desktop.

Revisions

  1. greencamp20552 renamed this gist Jul 10, 2023. 1 changed file with 0 additions and 0 deletions.
  2. greencamp20552 created this gist Jul 10, 2023.
    7 changes: 7 additions & 0 deletions iam_attach_policy_to_group
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    def attach_group_policy(policy_arn, group_name):
    iam = boto3.client("iam")
    response = iam.attach_group_policy(
    GroupName=group_name,
    PolicyArn=policy_arn
    )
    print(response)