Difference between revisions of "AWS SelfManageCredentials"

From wikieduonline
Jump to navigation Jump to search
 
(7 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
  
 +
{
 +
    "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 ==
 
* AllowManageOwnAccessKeys
 
* AllowManageOwnAccessKeys
 +
* [[IAMSelfManageServiceSpecificCredentials]]
 +
* <code>[[iam:CreateAccessKey]]</code>
 +
* [[Read only]]
 +
 +
== 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: