Difference between revisions of "AWS SelfManageCredentials"

From wikieduonline
Jump to navigation Jump to search
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",
 +
    "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}"
 +
        }
 +
    ]
 +
}
 +
</pre>
  
  
 
+
== Related ==
 
* AllowManageOwnAccessKeys
 
* AllowManageOwnAccessKeys
  
{{aws iam}}
+
== See also ==
 +
* {{aws iam}}

Revision as of 14:55, 2 May 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

  • AllowManageOwnAccessKeys

See also

Advertising: