Skip to content

Commit

Permalink
Update cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ehanson8 committed Jan 21, 2022
1 parent e4bfaa4 commit cb41cd3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions awd/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ def check_permissions():
happen and the test message will remain in the queue. It is best to only run
this command when the configured output queues are empty.
"""

dynamodb = DynamoDB()
logger.info(dynamodb.check_read_permissions(config.DOI_TABLE))
logger.info(dynamodb.check_write_permissions(config.DOI_TABLE))
Expand All @@ -335,7 +334,11 @@ def check_permissions():
logger.info(ssm.check_permissions(path))

sqs = SQS()
logger.info(sqs.check_write_permissions(config.SQS_BASE_URL, config.SQS_INPUT_QUEUE))
logger.info(sqs.check_read_permissions(config.SQS_BASE_URL, config.SQS_OUTPUT_QUEUE))
logger.info(
sqs.check_write_permissions(config.SQS_BASE_URL, config.SQS_INPUT_QUEUE)
)
logger.info(
sqs.check_read_permissions(config.SQS_BASE_URL, config.SQS_OUTPUT_QUEUE)
)

logger.info(f"All permissions confirmed for env: {config.ENV}")

0 comments on commit cb41cd3

Please sign in to comment.