Skip to content

Commit

Permalink
Merge pull request #449 from data-mermaid/use-fifo-env-var
Browse files Browse the repository at this point in the history
Add fifo switch env var.
  • Loading branch information
saanobhaai committed May 3, 2024
2 parents d2bb3ad + 6ce722b commit 904e9c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iac/app.py
Expand Up @@ -51,6 +51,7 @@
api_zone=common_stack.api_zone,
public_bucket=dev_static_site_stack.site_bucket,
image_processing_bucket=common_stack.image_processing_bucket,
use_fifo_queues="False"
)

prod_static_site_stack = StaticSiteStack(
Expand All @@ -76,6 +77,7 @@
api_zone=common_stack.api_zone,
public_bucket=prod_static_site_stack.site_bucket,
image_processing_bucket=common_stack.image_processing_bucket,
use_fifo_queues="True"
)


Expand Down
2 changes: 2 additions & 0 deletions iac/stacks/api.py
Expand Up @@ -34,6 +34,7 @@ def __init__(
container_security_group: ec2.SecurityGroup,
api_zone: r53.HostedZone,
image_processing_bucket: s3.Bucket,
use_fifo_queues: str,
**kwargs,
) -> None:
super().__init__(scope, id, **kwargs)
Expand Down Expand Up @@ -124,6 +125,7 @@ def __init__(
"SQS_MESSAGE_VISIBILITY": str(config.api.sqs_message_visibility),
"SQS_QUEUE_NAME": sqs_queue_name,
"IMAGE_SQS_QUEUE_NAME": image_sqs_queue_name,
"USE_FIFO": use_fifo_queues
}

# build image asset to be shared with API and Backup Task
Expand Down

0 comments on commit 904e9c2

Please sign in to comment.