找不到我的 IAM 用户的 AWS Lightsail 权限策略

Can't find AWS Lightsail permissions policy for my IAM user

我正在尝试将 AWS 上的 Lightsail 设置为 运行 Wordpress 安装。

当我尝试使用我的 'user' 帐户登录时,出现此错误:

https://lightsail.aws.amazon.com/ls/error/access-denied

There might be a problem.
It looks like you aren't authorized.

If you're signed in as an IAM user, ask your administrator to create a permissions policy that grants access to Amazon Lightsail resources and related AWS services.

但是当我使用我的管理员用户帐户登录时,我在权限策略列表中看不到任何 Lightsail 策略。

在哪里可以启用正确的策略?目前我只能将我的 Lightsail 服务器设置为管理员用户,不能使用我的用户帐户。

您是对的,没有针对 Amazon Lisghtsail 访问的托管策略。

您需要创建自己的内联策略来授予访问权限。

要授予完全权限,请使用:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "lightsail:*"
            ],
            "Resource": "*"
        }
    ]
}

有关完整说明,请参阅:Managing access to Amazon Lightsail for an IAM user | Lightsail Documentation