erDiagram
SUBJECT_TYPE {
any id PK
string name
}
SUBJECT {
any id PK
any subject_type_id FK
}
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
services: | |
minio: | |
image: minio/minio:latest | |
command: server /data --console-address ":9001" | |
ports: | |
- 9000:9000 | |
- 9001:9001 | |
environment: | |
- MINIO_ROOT_USER=root | |
- MINIO_ROOT_PASSWORD=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
attrs==22.1.0 | |
blis==0.7.9 | |
catalogue==2.0.8 | |
certifi==2022.9.24 | |
charset-normalizer==2.1.1 | |
click==8.1.3 | |
confection==0.0.3 | |
cymem==2.0.7 | |
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.4.1/en_core_web_sm-3.4.1-py3-none-any.whl | |
exceptiongroup==1.0.4 |
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 amazon/aws-lambda-python:3.9 | |
COPY lambda_function.py requirements.txt ${LAMBDA_TASK_ROOT}/ | |
RUN pip install -U pip setuptools wheel | |
RUN pip install -r requirements.txt | |
CMD [ "lambda_function.lambda_handler" ] |
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 python | |
import json | |
import pke | |
extractor = pke.unsupervised.TopicRank() | |
def lambda_handler(event, context): | |
body = event["body"] if "body" in event else event | |
if isinstance(body, str): |
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 python | |
from cdktf import App, Fn, TerraformStack | |
from cdktf_cdktf_provider_aws.provider import AwsProvider | |
from cdktf_cdktf_provider_aws.route53_record import Route53Record | |
from cdktf_cdktf_provider_aws.route53_zone import Route53Zone | |
from cdktf_cdktf_provider_aws.ses_configuration_set import \ | |
SesConfigurationSet, \ | |
SesConfigurationSetDeliveryOptions | |
from cdktf_cdktf_provider_aws.ses_domain_dkim import SesDomainDkim | |
from cdktf_cdktf_provider_aws.ses_domain_identity import SesDomainIdentity |
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 python | |
from cdktf import TerraformStack | |
from cdktf_cdktf_provider_aws.provider import AwsProvider | |
from cdktf_cdktf_provider_aws.route53_record import Route53Record | |
from cdktf_cdktf_provider_aws.route53_zone import Route53Zone | |
from constructs import Construct | |
class ExampleDnsStack(TerraformStack): | |
def __init__(self, scope: Construct, ns: str, aws_helper: AwsHelper): |
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 python | |
import os | |
from cdktf import AssetType, TerraformAsset | |
from cdktf_cdktf_provider_aws.iam_role import IamRole | |
from cdktf_cdktf_provider_aws.iam_role_policy_attachment import IamRolePolicyAttachment | |
from cdktf_cdktf_provider_aws.lambda_function import LambdaFunction, LambdaFunctionEnvironment | |
from cdktf_cdktf_provider_aws.lambda_function_url import LambdaFunctionUrl, LambdaFunctionUrlCors | |
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 python | |
from cdktf import App, TerraformStack, TerraformOutput | |
from cdktf_cdktf_provider_aws.lambda_function_url import LambdaFunctionUrlCors | |
from cdktf_cdktf_provider_aws.provider import AwsProvider | |
from constructs import Construct | |
from http_lambda import HttpLambda | |
class ExampleStack(TerraformStack): |
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 cdktf import App, TerraformStack | |
from cdktf_cdktf_provider_aws.provider import AwsProvider | |
from cdktf_cdktf_provider_aws.s3_bucket import S3Bucket, S3BucketGrant, S3BucketServerSideEncryptionConfiguration, \ | |
S3BucketServerSideEncryptionConfigurationRule, S3BucketVersioning, \ | |
S3BucketServerSideEncryptionConfigurationRuleApplyServerSideEncryptionByDefault | |
class ExampleStack(TerraformStack): | |
def __init__(self, scope: Construct, ns: str): |
NewerOlder