AWSDeepRacerCloudFormationAccessPolicy

Last Modified

Mar 12, 2026

March 12, 2026 at 09:25 PM UTC

Version

v2

Total Versions

7

Created

Jun 14, 2019

Actions

64

Risk

High

An unrestricted escalation path, identity administration, secret reads or the power to switch off security monitoring. Read from this policy document alone: trust policies, boundaries and SCPs in your account still decide what actually succeeds. How this is assessed

  • High

    Can launch resources that run as a more privileged role

    Grants every action of 1 documented escalation path on any resource with no condition, and 3 more in a scoped form.

    • cloudformation-005cloudformation:CreateChangeSet + cloudformation:ExecuteChangeSetunrestricted
    • cloudformation-001iam:PassRole + cloudformation:CreateStackscoped
      • iam:PassRole: condition iam:PassedToService, on arn:aws:iam::*:role/service-role/AWSDeepRacerLambdaAccessRole
    • cloudformation-003iam:PassRole + cloudformation:CreateStackSet + cloudformation:CreateStackInstancesscoped
      • iam:PassRole: condition iam:PassedToService, on arn:aws:iam::*:role/service-role/AWSDeepRacerLambdaAccessRole
    • cloudformation-004iam:PassRole + cloudformation:UpdateStackSetscoped
      • iam:PassRole: condition iam:PassedToService, on arn:aws:iam::*:role/service-role/AWSDeepRacerLambdaAccessRole

    Use with caution: Make sure no highly privileged role trusts the service involved, and restrict iam:PassRole in your own policies or boundary to named roles with iam:PassedToService.

  • High

    Can take over existing resources that run as another role

    Grants every action of 1 documented escalation path on any resource with no condition, and 1 more in a scoped form.

    • cloudformation-002cloudformation:UpdateStackunrestricted
    • lambda-003lambda:UpdateFunctionCodescoped
      • lambda:UpdateFunctionCode: on arn:aws:lambda:*:*:function:*DeepRacer*, arn:aws:lambda:*:*:function:*Deepracer*, arn:aws:lambda:*:*:function:*deepracer*

    Use with caution: List the roles attached to the functions, instances, pipelines or notebooks it can modify: the holder effectively has them too.

  • Medium

    Can rewrite resource policies and sharing

    Grants 1 permissions management action across 1 service (cloudformation) on any resource, enough to share resources outside the account.

    cloudformation:setstackpolicy

    Use with caution: Turn on IAM Access Analyzer external access findings, and keep account-level guards like S3 Block Public Access enabled.

  • Medium

    Full cloudformation access on every resource

    Uses cloudformation:* with Resource "*" and no condition, so every action AWS adds to that service later is granted too.

    cloudformation:*

    Use with caution: The grant grows every time the service does. For long-lived access, prefer a policy that lists the actions you actually need.

Policy Document

View on GitHub
{
  "PolicyVersion": {
    "Document": {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": [
            "cloudformation:*"
          ],
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "ec2:AllocateAddress",
            "ec2:AttachInternetGateway",
            "ec2:AssociateRouteTable",
            "ec2:AuthorizeSecurityGroupEgress",
            "ec2:AuthorizeSecurityGroupIngress",
            "ec2:CreateInternetGateway",
            "ec2:CreateNatGateway",
            "ec2:CreateNetworkAcl",
            "ec2:CreateNetworkAclEntry",
            "ec2:CreateRoute",
            "ec2:CreateRouteTable",
            "ec2:CreateSecurityGroup",
            "ec2:CreateSubnet",
            "ec2:CreateTags",
            "ec2:CreateVpc",
            "ec2:CreateVpcEndpoint",
            "ec2:DeleteInternetGateway",
            "ec2:DeleteNatGateway",
            "ec2:DeleteNetworkAcl",
            "ec2:DeleteNetworkAclEntry",
            "ec2:DeleteRoute",
            "ec2:DeleteRouteTable",
            "ec2:DeleteSecurityGroup",
            "ec2:DeleteSubnet",
            "ec2:DeleteTags",
            "ec2:DeleteVpc",
            "ec2:DeleteVpcEndpoints",
            "ec2:DescribeAddresses",
            "ec2:DescribeInternetGateways",
            "ec2:DescribeNatGateways",
            "ec2:DescribeNetworkAcls",
            "ec2:DescribeRouteTables",
            "ec2:DescribeSecurityGroups",
            "ec2:DescribeSubnets",
            "ec2:DescribeTags",
            "ec2:DescribeVpcEndpoints",
            "ec2:DescribeVpcs",
            "ec2:DetachInternetGateway",
            "ec2:DisassociateRouteTable",
            "ec2:ModifySubnetAttribute",
            "ec2:ModifyVpcAttribute",
            "ec2:ReleaseAddress",
            "ec2:ReplaceNetworkAclAssociation",
            "ec2:RevokeSecurityGroupEgress",
            "ec2:RevokeSecurityGroupIngress"
          ],
          "Resource": "*"
        },
        {
          "Effect": "Allow",
          "Action": [
            "iam:PassRole"
          ],
          "Resource": "arn:aws:iam::*:role/service-role/AWSDeepRacerLambdaAccessRole",
          "Condition": {
            "StringLikeIfExists": {
              "iam:PassedToService": "lambda.amazonaws.com"
            }
          }
        },
        {
          "Effect": "Allow",
          "Action": [
            "lambda:CreateFunction",
            "lambda:GetFunction",
            "lambda:DeleteFunction",
            "lambda:TagResource",
            "lambda:UpdateFunctionCode"
          ],
          "Resource": [
            "arn:aws:lambda:*:*:function:*DeepRacer*",
            "arn:aws:lambda:*:*:function:*Deepracer*",
            "arn:aws:lambda:*:*:function:*deepracer*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "s3:PutBucketPolicy",
            "s3:CreateBucket",
            "s3:ListBucket",
            "s3:GetBucketAcl",
            "s3:DeleteBucket"
          ],
          "Resource": [
            "arn:aws:s3:::*DeepRacer*",
            "arn:aws:s3:::*Deepracer*",
            "arn:aws:s3:::*deepracer*"
          ]
        },
        {
          "Effect": "Allow",
          "Action": [
            "robomaker:CreateSimulationApplication",
            "robomaker:CreateSimulationApplicationVersion",
            "robomaker:DeleteSimulationApplication",
            "robomaker:DescribeSimulationApplication",
            "robomaker:ListSimulationApplications",
            "robomaker:TagResource",
            "robomaker:UpdateSimulationApplication"
          ],
          "Resource": [
            "arn:aws:robomaker:*:*:/createSimulationApplication",
            "arn:aws:robomaker:*:*:simulation-application/deepracer*"
          ]
        }
      ]
    },
    "VersionId": "v2",
    "IsDefaultVersion": true,
    "CreateDate": "2019-06-14T17:02:04+00:00"
  }
}

Version History (10 recorded)

Raw history

AWSDeepRacerCloudFormationAccessPolicy - Policy Version v2

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

Mar 12, 2026

5e1f8c3

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 14, 2019

6777762

Update 2019.03.03

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

Mar 3, 2019

6655c5d