Skip to content

Commit

Permalink
rename table
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo committed Sep 24, 2024
1 parent de57454 commit 9cf0031
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pulumi/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""An AWS Python Pulumi program"""

import pulumi
import pulumi_cloudflare
from lambda_utils import create_lambda_layer, create_lambda_zip
from pulumi_aws import (
apigatewayv2,
cloudwatch,
Expand All @@ -12,10 +12,10 @@
scheduler,
secretsmanager,
)

from lambda_utils import create_lambda_layer, create_lambda_zip
from telegram_provider import Webhook

import pulumi

RESOURCES_PREFIX = "erfiume"

Check failure on line 19 in pulumi/__main__.py

View workflow job for this annotation

GitHub Actions / python-ci-pulumi / install-and-checks

Ruff (I001)

__main__.py:3:1: I001 Import block is un-sorted or un-formatted
SYNC_MINUTES_RATE_NORMAL = 24 * 60 # Once a day
SYNC_MINUTES_RATE_EMERGENCY = 20
Expand All @@ -35,9 +35,9 @@
],
)

utenti_table = dynamodb.Table(
chats_table = dynamodb.Table(
f"{RESOURCES_PREFIX}-users",
name="Utenti",
name="Chats",
billing_mode="PAY_PER_REQUEST",
hash_key="chatid",
attributes=[
Expand Down Expand Up @@ -131,14 +131,14 @@
"dynamodb:Query",
"dynamodb:GetItem",
],
"Resources": [stazioni_table.arn, utenti_table.arn],
"Resources": [stazioni_table.arn, chats_table.arn],
},
{
"Effect": "Allow",
"Actions": [
"dynamodb:PutItem",
],
"Resources": [utenti_table.arn],
"Resources": [chats_table.arn],
},
{
"Effect": "Allow",
Expand Down

0 comments on commit 9cf0031

Please sign in to comment.