roam/aweber/20210506110533-dynamodb_iam_policies.org
2021-09-01 16:57:39 -04:00

2.4 KiB

DynamoDB IAM Policies

  {
      "Version": "2012-10-17",
      "Statement": [
          {
              "Effect": "Allow",
              "Action": "dynamodb:ListTables",
              "Resource": "*"
          },
          {
              "Effect": "Allow",
              "Action": [
                  "dynamodb:BatchGetItem",
                  "dynamodb:BatchWriteItem",
                  "dynamodb:ConditionCheckItem",
                  "dynamodb:PutItem",
                  "dynamodb:DeleteItem",
                  "dynamodb:Scan",
                  "dynamodb:Query",
                  "dynamodb:UpdateItem",
                  "dynamodb:DescribeTimeToLive",
                  "dynamodb:CreateTable",
                  "dynamodb:DescribeTable",
                  "dynamodb:GetItem",
                  "dynamodb:UpdateTable"
              ],
              "Resource": [
                  "arn:aws:dynamodb:*:018154689201:table/*-webhook-callbacks/index/*",
                  "arn:aws:dynamodb:*:018154689201:table/*-webhook-callbacks"
              ]
          },
          {
              "Effect": "Allow",
              "Action": [
                  "dynamodb:BatchGetItem",
                  "dynamodb:BatchWriteItem",
                  "dynamodb:ConditionCheckItem",
                  "dynamodb:PutItem",
                  "dynamodb:DeleteItem",
                  "dynamodb:Scan",
                  "dynamodb:Query",
                  "dynamodb:UpdateItem",
                  "dynamodb:DescribeTimeToLive",
                  "dynamodb:CreateTable",
                  "dynamodb:DescribeTable",
                  "dynamodb:GetItem",
                  "dynamodb:UpdateTable"
              ],
              "Resource": [
                  "arn:aws:dynamodb:*:018154689201:table/*-webhooks",
                  "arn:aws:dynamodb:*:018154689201:table/*-webhooks/index/*"
              ]
          }
      ]
  }
DynamoDB access for the k8s-labs-application role