This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include classpath("application.conf") | |
# What is the outside visible address of this ElasticMQ node | |
# Used to create the queue URL (may be different from bind address!) | |
node-address { | |
protocol = http | |
host = "*" | |
port = 9324 | |
context-path = "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# enable debug | |
# set -x | |
echo "Configuring SQS..." | |
echo "HOSTNAME:${HOSTNAME}" | |
echo "AWS_REGION_NAME:${AWS_REGION_NAME}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include classpath("application.conf") | |
node-address { | |
protocol = http | |
host = "*" | |
port = 9324 | |
context-path = "" | |
} | |
rest-sqs { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
celery -A app worker -Q $1 -l info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Base off the official python image | |
# Define a common stage for dev and prod images called base | |
FROM python:3.10 as base | |
# Set environment variables | |
ENV PYTHONDONTWRITEBYTECODE 1 | |
ENV PYTHONUNBUFFERED 1 | |
# Create a user to avoid running containers as root in production | |
RUN addgroup --system web \ | |
&& adduser --system --ingroup web web | |
# Install os-level dependencies (as root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
db: | |
image: postgres:10 | |
restart: always | |
ports: | |
- ${DB_PORT}:${DB_PORT} | |
environment: | |
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import boto3 | |
import argparse | |
AWS_ACCOUNT_ID = os.getenv("AWS_ACCOUNT_ID") | |
AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID") | |
AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY") | |
AWS_REGION_NAME = os.getenv("AWS_REGION_NAME") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aws_cdk import ( | |
Stack, | |
aws_ec2 as ec2, | |
aws_ecs as ecs, | |
aws_ecs_patterns as ecs_patterns, | |
aws_certificatemanager as acm, | |
aws_elasticloadbalancingv2 as elbv2, | |
) | |
from constructs import Construct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import aws_cdk as cdk | |
from aws_cdk import ( | |
Environment, | |
) | |
from my_django_app.pipeline_stack import MyDjangoAppPipelineStack | |
app = cdk.App() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from constructs import Construct | |
from aws_cdk import ( | |
Stack, | |
pipelines as pipelines, | |
aws_ssm as ssm, | |
aws_secretsmanager as secretsmanager, | |
aws_rds as rds, | |
) | |
from .deployment_stage import MyDjangoAppPipelineStage |
NewerOlder