generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from hackforla/cb/testuser
Creating users to test permissions and updating level 4 policy
- Loading branch information
Showing
5 changed files
with
63 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module "aws_custom_policies" { | ||
source = "./modules/aws-policies" | ||
policies = { | ||
"IAMServicesAdmin" = { | ||
"IAMServicesSupervisor" = { | ||
description = "Policy granting IAM services admins permissions to make changes to user accounts" | ||
filename = "level-4-iam-services-admin-policy.json" | ||
filename = "level-4-iam-services-supervisor-policy.json" | ||
} | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
terraform/aws-custom-policies/level-4-iam-services-admin-policy.json
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
terraform/aws-custom-policies/level-4-iam-services-supervisor-policy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"Statement": [ | ||
{ | ||
"Action": [ | ||
"iam:CreateAccessKey" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "arn:aws:iam::*:user/*" | ||
}, | ||
{ | ||
"Action": [ | ||
"iam:UpdateLoginProfile" | ||
], | ||
"Condition": { | ||
"StringEquals": { | ||
"iam:ResourceTag/Access Level": [ | ||
"1", | ||
"2" | ||
] | ||
} | ||
}, | ||
"Effect": "Allow", | ||
"Resource": "arn:aws:iam::*:user/*" | ||
}, | ||
{ | ||
"Action": [ | ||
"cloudshell:CreateEnvironment", | ||
"cloudshell:GetEnvironmentStatus", | ||
"cloudshell:CreateSession", | ||
"cloudshell:StartEnvironment", | ||
"cloudshell:StopEnvironment" | ||
], | ||
"Effect": "Allow", | ||
"Resource": "*" | ||
} | ||
], | ||
"Version": "2012-10-17" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters