mirror of https://github.com/sgoudham/Tweeter.git
Include mypy for type checking
parent
c2b53c838d
commit
92f4a574f6
@ -1,4 +1,5 @@
|
||||
troposphere==3.0.2
|
||||
awacs==2.0.0
|
||||
ydiff
|
||||
ydiff==1.2
|
||||
pycodestyle==2.7.0
|
||||
mypy==0.910
|
||||
|
@ -1,18 +1,18 @@
|
||||
from troposphere import Template
|
||||
from troposphere.sqs import Queue
|
||||
|
||||
from util import Util
|
||||
|
||||
PROJECT_NAME = "Tweeter"
|
||||
S3_QUEUE_NAME = PROJECT_NAME + "S3Queue"
|
||||
TWEETER_QUEUE_NAME = PROJECT_NAME + "Queue"
|
||||
DYNAMO_DB_QUEUE_NAME = PROJECT_NAME + "DynamoDbQueue"
|
||||
SHARED_CONFIG_BUCKET_NAME = PROJECT_NAME + "SharedConfig"
|
||||
PROJECT_NAME: str = "Tweeter"
|
||||
S3_QUEUE_NAME: str = "S3Queue"
|
||||
TWEETER_QUEUE_NAME: str = "TwitterQueue"
|
||||
DYNAMO_DB_QUEUE_NAME: str = "DynamoDbQueue"
|
||||
|
||||
template = Template(PROJECT_NAME + "Workflow")
|
||||
templateUtil = Util(template)
|
||||
template: Template = Template(PROJECT_NAME + "Workflow")
|
||||
templateUtil: Util = Util(template)
|
||||
|
||||
s3_queue = templateUtil.create_queue(S3_QUEUE_NAME)
|
||||
tweeter_queue = templateUtil.create_queue(TWEETER_QUEUE_NAME)
|
||||
dynamo_db_queue = templateUtil.create_queue(DYNAMO_DB_QUEUE_NAME)
|
||||
s3_queue: Queue = templateUtil.create_queue(S3_QUEUE_NAME)
|
||||
tweeter_queue: Queue = templateUtil.create_queue(TWEETER_QUEUE_NAME)
|
||||
dynamo_db_queue: Queue = templateUtil.create_queue(DYNAMO_DB_QUEUE_NAME)
|
||||
|
||||
print(template.to_json())
|
||||
|
Loading…
Reference in New Issue