Reputation: 227
I have a CDK stack that sets up an API Gateway and routes resources to lambda functions. Very simple, not using SLS or SAM, but I do use s3 and sqs for this service.
Is there a way to:
Ideally I can just type something like 'cdk deploy local' and deploy my cdk stack to this resource just like I do to our dev test and prod environments.
Upvotes: 0
Views: 1113
Reputation: 41119
You can use the AWS CDK with Localstack (cdklocal
). Localstack resources essentially behave just like AWS cloud resources and most resource types are supported -- you can create buckets, lambda functions, api gateways, dynamo db tables, or whatever you need locally.
You will likely need to tweak some things to ensure the code you deploy locally uses the localstack endpoints.
See also: https://docs.localstack.cloud/getting-started/
Upvotes: 0