Skip to content

localstack-samples/wordpress-ecs-rds-cdk

Repository files navigation

LocalStack Pods Launchpad GitHub Actions

Wordpress Sample

Wordpress deployed using ECS and RDS

Quickstart

This sample requires a valid LocalStack for AWS license. Your license provides a LOCALSTACK_AUTH_TOKEN to activate LocalStack.

To install python requirements and developer tools (cdklocal, awslocal) into a venv run:

make install

Start LocalStack for AWS with the LOCALSTACK_AUTH_TOKEN pre-configured:

export LOCALSTACK_AUTH_TOKEN=<your-auth-token>
make start
make ready

Then, to deploy the CDK app:

make deploy-local

Tinker

After running make install, when you activate the virtual environment with

source .venv/bin/activate

you get the *local commands:

cdklocal
awslocal

You can for example get the name of the bucket that was created and whose name was added as an SSM parameter:

awslocal ssm get-parameter --name /artifacts/bucket

Or list the created lambdas:

awslocal lambda list-functions

About

Deploy Wordpress with ECS and RDS using CDK

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors