diff --git a/freqtrade/aws/tables.py b/freqtrade/aws/tables.py index ecae65f57..6921dd2be 100644 --- a/freqtrade/aws/tables.py +++ b/freqtrade/aws/tables.py @@ -1,7 +1,6 @@ import os import boto3 -from boto.dynamodb2.exceptions import ResourceInUseException db = boto3.resource('dynamodb') @@ -47,7 +46,7 @@ def get_trade_table(): 'WriteCapacityUnits': 1 } ) - except ResourceInUseException as e: + except Exception as e: print("table already exist {}".format(e)) return db.Table(table_name) @@ -93,7 +92,7 @@ def get_strategy_table(): 'WriteCapacityUnits': 1 } ) - except ResourceInUseException as e: + except Exception as e: print("table already exist {}".format(e)) return db.Table(table_name) diff --git a/serverless.yml b/serverless.yml index 62cc123ce..b4e1a70cc 100644 --- a/serverless.yml +++ b/serverless.yml @@ -18,13 +18,8 @@ provider: iamRoleStatements: - Effect: Allow Action: - - dynamodb:Query - - dynamodb:Scan - - dynamodb:GetItem - - dynamodb:PutItem - - dynamodb:UpdateItem - - dynamodb:DeleteItem - Resource: "arn:aws:dynamodb:${opt:region, self:provider.region}:*:table/*" + - dynamodb:* + Resource: "*" - Effect: Allow Action: - SNS:*