Deprecated

Removed from AWS on 2025-08-14 - Active for 6 years, 2 months

AWSOpsWorksRegisterCLI_OnPremises

Last Modified

Sep 18, 2024

September 18, 2024 at 10:06 AM UTC

Version

v1

Total Versions

6

Created

Jun 18, 2019

Actions

13

Risk

Medium

The same capabilities in a scoped form, resource policy writes, reads across all data, or full access to a whole service. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • Medium

    Can grant itself more permissions

    Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.

    • iam-008iam:AttachUserPolicyscoped
      • iam:AttachUserPolicy: condition iam:PolicyARN, on arn:aws:iam::*:user/AWS/OpsWorks/OpsWorks-*
    • iam-013iam:AddUserToGroupscoped
      • iam:AddUserToGroup: on arn:aws:iam::*:group/AWS/OpsWorks/OpsWorks-*

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

  • Medium

    Can take over other users or roles

    Grants the actions of 2 documented escalation paths, but only on named resources or under a condition. Review that scope before trusting it.

    • iam-002iam:CreateAccessKeyscoped
      • iam:CreateAccessKey: on arn:aws:iam::*:user/AWS/OpsWorks/OpsWorks-*
    • iam-015iam:AttachUserPolicy + iam:CreateAccessKeyscoped
      • iam:AttachUserPolicy: condition iam:PolicyARN, on arn:aws:iam::*:user/AWS/OpsWorks/OpsWorks-*
      • iam:CreateAccessKey: on arn:aws:iam::*:user/AWS/OpsWorks/OpsWorks-*

    Use with caution: Check which roles, users or policies fall inside the scope shown above. Within it the escalation works as documented, so keep privileged principals out of it.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "CreateDate": "2019-06-18T15:33:16Z",
    "VersionId": "v1",
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Action": [
            "opsworks:AssignInstance",
            "opsworks:CreateLayer",
            "opsworks:DeregisterInstance",
            "opsworks:DescribeInstances",
            "opsworks:DescribeStackProvisioningParameters",
            "opsworks:DescribeStacks",
            "opsworks:UnassignInstance"
          ],
          "Resource": [
            "*"
          ],
          "Effect": "Allow"
        },
        {
          "Action": [
            "ec2:DescribeInstances"
          ],
          "Resource": [
            "*"
          ],
          "Effect": "Allow"
        },
        {
          "Action": [
            "iam:CreateGroup",
            "iam:AddUserToGroup"
          ],
          "Resource": [
            "arn:aws:iam::*:group/AWS/OpsWorks/OpsWorks-*"
          ],
          "Effect": "Allow"
        },
        {
          "Action": [
            "iam:CreateUser",
            "iam:CreateAccessKey"
          ],
          "Resource": [
            "arn:aws:iam::*:user/AWS/OpsWorks/OpsWorks-*"
          ],
          "Effect": "Allow"
        },
        {
          "Action": [
            "iam:AttachUserPolicy"
          ],
          "Resource": [
            "arn:aws:iam::*:user/AWS/OpsWorks/OpsWorks-*"
          ],
          "Effect": "Allow",
          "Condition": {
            "ArnEquals": {
              "iam:PolicyARN": "arn:aws:iam::aws:policy/AWSOpsWorksInstanceRegistration"
            }
          }
        }
      ]
    },
    "IsDefaultVersion": true
  }
}

Version History (8 recorded)

Raw history

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 18, 2024

aafbae9

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

May 13, 2024

1b36617

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

49aa1d0

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

71619cf

Update detected

No recorded action delta - this version predates the change index. View the raw diff.

Sep 16, 2019

8279033

`2019-08-29`

No recorded action delta - this version predates the change index. View the raw diff.

Aug 29, 2019

5016d52

I updated my CLI and it looks like it reordered everything and changed the white-space, so everything looks changed, but is not

No recorded action delta - this version predates the change index. View the raw diff.

Jul 12, 2019

9d2dff1

Update

No recorded action delta - this version predates the change index. View the raw diff.

Jun 18, 2019

b2905bf