Difference between revisions of "AWS SelfManageCredentials"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_aws_my-sec-creds-self-manage-pass-accesskeys-ssh.html
 
* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_examples_aws_my-sec-creds-self-manage-pass-accesskeys-ssh.html
<pre>
+
 
{
+
{
    "Version": "2012-10-17",
+
    "Version": "2012-10-17",
    "Statement": [
+
    "Statement": [
        {
+
        {
            "Sid": "AllowViewAccountInfo",
+
            "Sid": "AllowViewAccountInfo",
            "Effect": "Allow",
+
            "Effect": "Allow",
            "Action": [
+
            "Action": [
                "iam:GetAccountPasswordPolicy",
+
                "iam:GetAccountPasswordPolicy",
                "iam:GetAccountSummary"
+
                "iam:GetAccountSummary"
            ],
+
            ],
            "Resource": "*"
+
            "Resource": "*"
        },
+
        },
        {
+
        {
            "Sid": "AllowManageOwnPasswords",
+
            "Sid": "AllowManageOwnPasswords",
            "Effect": "Allow",
+
            "Effect": "Allow",
            "Action": [
+
            "Action": [
                "iam:ChangePassword",
+
                "iam:ChangePassword",
                "iam:GetUser"
+
                "iam:GetUser"
            ],
+
            ],
            "Resource": "arn:aws:iam::*:user/${aws:username}"
+
            "Resource": "arn:aws:iam::*:user/${aws:username}"
        },
+
        },
        {
+
        {
            "Sid": "AllowManageOwnAccessKeys",
+
            "Sid": "AllowManageOwnAccessKeys",
            "Effect": "Allow",
+
            "Effect": "Allow",
            "Action": [
+
            "Action": [
                "iam:CreateAccessKey",
+
                "iam:CreateAccessKey",
                "iam:DeleteAccessKey",
+
                "iam:DeleteAccessKey",
                "iam:ListAccessKeys",
+
                "[[iam:ListAccessKeys]]",
                "iam:UpdateAccessKey"
+
                "iam:UpdateAccessKey"
            ],
+
            ],
            "Resource": "arn:aws:iam::*:user/${aws:username}"
+
            "Resource": "arn:aws:iam::*:user/${aws:username}"
        },
+
        },
        {
+
        {
            "Sid": "AllowManageOwnSSHPublicKeys",
+
            "Sid": "AllowManageOwnSSHPublicKeys",
            "Effect": "Allow",
+
            "Effect": "Allow",
            "Action": [
+
            "Action": [
                "iam:DeleteSSHPublicKey",
+
                "iam:DeleteSSHPublicKey",
                "iam:GetSSHPublicKey",
+
                "iam:GetSSHPublicKey",
                "iam:ListSSHPublicKeys",
+
                "iam:ListSSHPublicKeys",
                "iam:UpdateSSHPublicKey",
+
                "iam:UpdateSSHPublicKey",
                "iam:UploadSSHPublicKey"
+
                "iam:UploadSSHPublicKey"
            ],
+
            ],
            "Resource": "arn:aws:iam::*:user/${aws:username}"
+
            "Resource": "arn:aws:iam::*:user/${aws:username}"
        }
+
        }
    ]
+
    ]
}
+
}
</pre>
 
  
  
Line 53: Line 52:
 
* AllowManageOwnAccessKeys
 
* AllowManageOwnAccessKeys
 
* [[IAMSelfManageServiceSpecificCredentials]]
 
* [[IAMSelfManageServiceSpecificCredentials]]
 +
* <code>[[iam:CreateAccessKey]]</code>
 +
* [[Read only]]
  
 
== See also ==
 
== See also ==
 
* {{aws iam}}
 
* {{aws iam}}
 +
 +
[[Category:AWS]]

Latest revision as of 06:09, 12 July 2022

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "AllowViewAccountInfo",
            "Effect": "Allow",
            "Action": [
                "iam:GetAccountPasswordPolicy",
                "iam:GetAccountSummary"
            ],
            "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": "AllowManageOwnSSHPublicKeys",
            "Effect": "Allow",
            "Action": [
                "iam:DeleteSSHPublicKey",
                "iam:GetSSHPublicKey",
                "iam:ListSSHPublicKeys",
                "iam:UpdateSSHPublicKey",
                "iam:UploadSSHPublicKey"
            ],
            "Resource": "arn:aws:iam::*:user/${aws:username}"
        }
    ]
}


Related[edit]

See also[edit]

Advertising: