cdk-apisix
CDK construct library to generate serverless Apache APISIX workload on AWS Fargate
sample
from cdk_apisix import Apisix
apisix = Apisix(stack, "apisix-demo")
apisix.create_web_service("flask",
environment={
"PLATFORM": "Apache APISIX on AWS Fargate"
},
image=ContainerImage.from_registry("public.ecr.aws/pahudnet/flask-docker-sample")
)
deploy with required context variables
cdk deploy \
-c ADMIN_KEY_ADMIN=*********** \
-c ADMIN_KEY_VIEWER=*********** \
-c DASHBOARD_ADMIN_PASSWORD=*********** \
-c DASHBOARD_USER_PASSWORD=***********
custom container image from local assets
Apisix(stack, "apisix-demo",
apisix_container=ContainerImage.from_asset(path.join(__dirname, "../apisix_container")),
dashboard_container=ContainerImage.from_asset(path.join(__dirname, "../apisix_dashboard"))
)