Exemplo n.º 1
0
def kms():
    if config.KMS_PROVIDER == "local-kms":
        from localstack.services.kms import kms_starter

        return Service("kms", start=kms_starter.start_kms_local)

    # fall back to default provider
    from localstack.services.kms.provider import KmsProvider

    provider = KmsProvider()
    return Service("kms", listener=AwsApiListener("kms", MotoFallbackDispatcher(provider)))
Exemplo n.º 2
0
def awslambda_asf():
    from localstack.aws.proxy import AwsApiListener
    from localstack.services.awslambda.provider import LambdaProvider

    provider = LambdaProvider()

    return Service("lambda", listener=AwsApiListener("lambda", provider), lifecycle_hook=provider)
Exemplo n.º 3
0
def opensearch():
    from localstack.aws.proxy import AwsApiListener
    from localstack.services.opensearch.provider import OpensearchProvider

    provider = OpensearchProvider()
    return Service("opensearch",
                   listener=AwsApiListener("opensearch", provider))
Exemplo n.º 4
0
def cloudformation():
    from localstack.services.cloudformation.provider import CloudformationProvider

    provider = CloudformationProvider()

    return Service("cloudformation",
                   listener=AwsApiListener("cloudformation", provider))
Exemplo n.º 5
0
def redshift():
    from localstack.services.redshift.provider import RedshiftProvider

    provider = RedshiftProvider()
    listener = AwsApiListener("redshift", MotoFallbackDispatcher(provider))

    return Service("redshift", listener=listener)
Exemplo n.º 6
0
def s3():
    from localstack.services.s3 import s3_listener, s3_starter

    return Service("s3",
                   listener=s3_listener.UPDATE_S3,
                   start=s3_starter.start_s3,
                   check=s3_starter.check_s3)
Exemplo n.º 7
0
def apigateway_asf():
    from localstack.services.apigateway.provider_asf import AsfApigatewayProvider

    provider = AsfApigatewayProvider()
    listener = AwsApiListener("apigateway", MotoFallbackDispatcher(provider))

    return Service("apigateway", listener=listener, lifecycle_hook=provider)
Exemplo n.º 8
0
def acm():
    from localstack.services.acm.provider import AcmProvider
    from localstack.services.moto import MotoFallbackDispatcher

    provider = AcmProvider()

    return Service("acm", listener=AwsApiListener("acm", MotoFallbackDispatcher(provider)))
Exemplo n.º 9
0
def sqs_asf():
    from localstack.aws.proxy import AwsApiListener
    from localstack.services.sqs.provider import SqsProvider

    provider = SqsProvider()

    return Service("sqs", listener=AwsApiListener("sqs", provider), lifecycle_hook=provider)
Exemplo n.º 10
0
def swf():
    from localstack.services.swf import swf_starter

    return Service(
        "swf",
        start=swf_starter.start_swf,
    )
Exemplo n.º 11
0
def cloudwatch():
    from localstack.services.cloudwatch import cloudwatch_listener, cloudwatch_starter

    return Service(
        "cloudwatch",
        listener=cloudwatch_listener.UPDATE_CLOUD_WATCH,
        start=cloudwatch_starter.start_cloudwatch,
    )
Exemplo n.º 12
0
def resourcegroupstaggingapi():
    from localstack.services.resourcegroupstaggingapi import rgta_listener, rgta_starter

    return Service(
        "resourcegroupstaggingapi",
        listener=rgta_listener.UPDATE_RGSA,
        start=rgta_starter.start_rgsa,
    )
Exemplo n.º 13
0
def s3control():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.s3control.provider import S3ControlProvider

    provider = S3ControlProvider()
    return Service("s3control",
                   listener=AwsApiListener("s3control",
                                           MotoFallbackDispatcher(provider)))
Exemplo n.º 14
0
def route53():
    from localstack.services.route53.provider import Route53Provider

    provider = Route53Provider()

    return Service("route53",
                   listener=AwsApiListener("route53",
                                           MotoFallbackDispatcher(provider)))
Exemplo n.º 15
0
def apigateway():
    from localstack.services.apigateway import apigateway_listener, apigateway_starter

    return Service(
        "apigateway",
        listener=apigateway_listener.UPDATE_APIGATEWAY,
        start=apigateway_starter.start_apigateway,
    )
Exemplo n.º 16
0
def awsconfig():
    from localstack.services.configservice.provider import ConfigProvider
    from localstack.services.moto import MotoFallbackDispatcher

    provider = ConfigProvider()
    return Service("config",
                   listener=AwsApiListener("config",
                                           MotoFallbackDispatcher(provider)))
Exemplo n.º 17
0
def swf():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.swf.provider import SWFProvider

    provider = SWFProvider()
    return Service(
        "swf",
        listener=AwsApiListener("swf", MotoFallbackDispatcher(provider)),
    )
Exemplo n.º 18
0
def stepfunctions():
    from localstack.services.stepfunctions import stepfunctions_listener, stepfunctions_starter

    return Service(
        "stepfunctions",
        listener=stepfunctions_listener.UPDATE_STEPFUNCTIONS,
        start=stepfunctions_starter.start_stepfunctions,
        check=stepfunctions_starter.check_stepfunctions,
    )
Exemplo n.º 19
0
def ssm():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.ssm.provider import SsmProvider

    provider = SsmProvider()
    return Service(
        "ssm",
        listener=AwsApiListener("ssm", MotoFallbackDispatcher(provider)),
    )
Exemplo n.º 20
0
def sqs():
    from localstack.services.sqs import sqs_listener, sqs_starter

    return Service(
        "sqs",
        listener=sqs_listener.UPDATE_SQS,
        start=sqs_starter.start_sqs,
        check=sqs_starter.check_sqs,
    )
Exemplo n.º 21
0
def events():
    from localstack.services.events.provider import EventsProvider
    from localstack.services.moto import MotoFallbackDispatcher

    provider = EventsProvider()
    return Service(
        "events",
        listener=AwsApiListener("events", MotoFallbackDispatcher(provider)),
    )
Exemplo n.º 22
0
def stepfunctions():
    from localstack.services.stepfunctions.provider import StepFunctionsApiListener

    listener = StepFunctionsApiListener()
    return Service(
        "stepfunctions",
        listener=listener,
        lifecycle_hook=listener.provider,
    )
Exemplo n.º 23
0
def dynamodb():
    from localstack.services.dynamodb.provider import DynamoDBApiListener

    listener = DynamoDBApiListener()
    return Service(
        "dynamodb",
        listener=listener,
        lifecycle_hook=listener.provider,
    )
Exemplo n.º 24
0
def swf():
    from localstack.services.swf import swf_listener, swf_starter

    return Service(
        "swf",
        listener=swf_listener.UPDATE_SWF,
        start=swf_starter.start_swf,
        check=swf_starter.check_swf,
    )
Exemplo n.º 25
0
def dynamodb():
    from localstack.services.dynamodb import dynamodb_listener, dynamodb_starter

    return Service(
        "dynamodb",
        listener=dynamodb_listener.UPDATE_DYNAMODB,
        start=dynamodb_starter.start_dynamodb,
        check=dynamodb_starter.check_dynamodb,
    )
Exemplo n.º 26
0
def secretsmanager():
    from localstack.services.secretsmanager import secretsmanager_listener, secretsmanager_starter

    return Service(
        "secretsmanager",
        listener=secretsmanager_listener.UPDATE_SECRETSMANAGER,
        start=secretsmanager_starter.start_secretsmanager,
        check=secretsmanager_starter.check_secretsmanager,
    )
Exemplo n.º 27
0
def support():
    from localstack.services.moto import MotoFallbackDispatcher
    from localstack.services.support.provider import SupportProvider

    provider = SupportProvider()
    return Service(
        "support",
        listener=AwsApiListener("support", MotoFallbackDispatcher(provider)),
    )
Exemplo n.º 28
0
def kinesis():
    from localstack.services.kinesis import kinesis_listener, kinesis_starter

    return Service(
        "kinesis",
        listener=kinesis_listener.UPDATE_KINESIS,
        start=kinesis_starter.start_kinesis,
        check=kinesis_starter.check_kinesis,
    )
Exemplo n.º 29
0
def ec2():
    from localstack.services.ec2.provider import Ec2Provider
    from localstack.services.moto import MotoFallbackDispatcher

    provider = Ec2Provider()
    return Service(
        "ec2",
        listener=AwsApiListener("ec2", MotoFallbackDispatcher(provider)),
    )
Exemplo n.º 30
0
def awslambda():
    from localstack.services.awslambda import lambda_starter

    return Service(
        "lambda",
        start=lambda_starter.start_lambda,
        stop=lambda_starter.stop_lambda,
        check=lambda_starter.check_lambda,
    )