Sample code for implementing CI/CD with AWS CDK
To run this sample you will need
- AWS Account
- Docker and Docker Compose installed
- Node and NPM installed
- AWS CDK CLI installed
To run the code locally, you can execute following command.
docker-compose up
To run the unit text, you can execute the following command after running the server above.
docker-compose exec web ./vendor/bin/phpunit
To deploy the infrastructure to AWS, you need to install the node dependencies first.
npm install
And then you can deploy using following command,
cdk deploy
To avoid incurring cost after you finish with this code, destroy the created resources using the following
cdk destroy