You've already forked EjemplosPoliticasAWS
Orden en carpetas
This commit is contained in:
17
AWSgeneral/AccesoConcretoMFAfecha.json
Normal file
17
AWSgeneral/AccesoConcretoMFAfecha.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": {
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"service-prefix-1:*",
|
||||
"service-prefix-2:action-name-a",
|
||||
"service-prefix-2:action-name-b"
|
||||
],
|
||||
"Resource": "*",
|
||||
"Condition": {
|
||||
"Bool": {"aws:MultiFactorAuthPresent": true},
|
||||
"DateGreaterThan": {"aws:CurrentTime": "2017-07-01T00:00:00Z"},
|
||||
"DateLessThan": {"aws:CurrentTime": "2017-12-31T23:59:59Z"}
|
||||
}
|
||||
}
|
||||
}
|
||||
26
AWSgeneral/HabilitarDeshaAZ.json
Normal file
26
AWSgeneral/HabilitarDeshaAZ.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Sid": "EnableDisableHongKong",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"account:EnableRegion",
|
||||
"account:DisableRegion"
|
||||
],
|
||||
"Resource": "*",
|
||||
"Condition": {
|
||||
"StringEquals": {"account:TargetRegion": "ap-east-1"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Sid": "ViewConsole",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"aws-portal:ViewAccount",
|
||||
"account:ListRegions"
|
||||
],
|
||||
"Resource": "*"
|
||||
}
|
||||
]
|
||||
}
|
||||
108
AWSgeneral/IAMporMFAMySecurityCredentials.json
Normal file
108
AWSgeneral/IAMporMFAMySecurityCredentials.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Sid": "AllowViewAccountInfo",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:GetAccountPasswordPolicy",
|
||||
"iam:ListVirtualMFADevices"
|
||||
],
|
||||
"Resource": "*"
|
||||
},
|
||||
{
|
||||
"Sid": "AllowManageOwnPasswords",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:ChangePassword",
|
||||
"iam:GetUser"
|
||||
],
|
||||
"Resource": "arn:aws:iam::*:user/${aws:username}"
|
||||
},
|
||||
{
|
||||
"Sid": "AllowManageOwnAccessKeys",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:CreateAccessKey",
|
||||
"iam:DeleteAccessKey",
|
||||
"iam:ListAccessKeys",
|
||||
"iam:UpdateAccessKey"
|
||||
],
|
||||
"Resource": "arn:aws:iam::*:user/${aws:username}"
|
||||
},
|
||||
{
|
||||
"Sid": "AllowManageOwnSigningCertificates",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:DeleteSigningCertificate",
|
||||
"iam:ListSigningCertificates",
|
||||
"iam:UpdateSigningCertificate",
|
||||
"iam:UploadSigningCertificate"
|
||||
],
|
||||
"Resource": "arn:aws:iam::*:user/${aws:username}"
|
||||
},
|
||||
{
|
||||
"Sid": "AllowManageOwnSSHPublicKeys",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:DeleteSSHPublicKey",
|
||||
"iam:GetSSHPublicKey",
|
||||
"iam:ListSSHPublicKeys",
|
||||
"iam:UpdateSSHPublicKey",
|
||||
"iam:UploadSSHPublicKey"
|
||||
],
|
||||
"Resource": "arn:aws:iam::*:user/${aws:username}"
|
||||
},
|
||||
{
|
||||
"Sid": "AllowManageOwnGitCredentials",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:CreateServiceSpecificCredential",
|
||||
"iam:DeleteServiceSpecificCredential",
|
||||
"iam:ListServiceSpecificCredentials",
|
||||
"iam:ResetServiceSpecificCredential",
|
||||
"iam:UpdateServiceSpecificCredential"
|
||||
],
|
||||
"Resource": "arn:aws:iam::*:user/${aws:username}"
|
||||
},
|
||||
{
|
||||
"Sid": "AllowManageOwnVirtualMFADevice",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:CreateVirtualMFADevice",
|
||||
"iam:DeleteVirtualMFADevice"
|
||||
],
|
||||
"Resource": "arn:aws:iam::*:mfa/${aws:username}"
|
||||
},
|
||||
{
|
||||
"Sid": "AllowManageOwnUserMFA",
|
||||
"Effect": "Allow",
|
||||
"Action": [
|
||||
"iam:DeactivateMFADevice",
|
||||
"iam:EnableMFADevice",
|
||||
"iam:ListMFADevices",
|
||||
"iam:ResyncMFADevice"
|
||||
],
|
||||
"Resource": "arn:aws:iam::*:user/${aws:username}"
|
||||
},
|
||||
{
|
||||
"Sid": "DenyAllExceptListedIfNoMFA",
|
||||
"Effect": "Deny",
|
||||
"NotAction": [
|
||||
"iam:CreateVirtualMFADevice",
|
||||
"iam:EnableMFADevice",
|
||||
"iam:GetUser",
|
||||
"iam:ListMFADevices",
|
||||
"iam:ListVirtualMFADevices",
|
||||
"iam:ResyncMFADevice",
|
||||
"sts:GetSessionToken"
|
||||
],
|
||||
"Resource": "*",
|
||||
"Condition": {
|
||||
"BoolIfExists": {
|
||||
"aws:MultiFactorAuthPresent": "false"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
14
AWSgeneral/fechahora.json
Normal file
14
AWSgeneral/fechahora.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"Version": "2012-10-17",
|
||||
"Statement": [
|
||||
{
|
||||
"Effect": "Allow",
|
||||
"Action": "service-prefix:action-name",
|
||||
"Resource": "*",
|
||||
"Condition": {
|
||||
"DateGreaterThan": {"aws:CurrentTime": "2020-04-01T00:00:00Z"},
|
||||
"DateLessThan": {"aws:CurrentTime": "2020-06-30T23:59:59Z"}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user