Skip to main content

Example: Adding Resources to an Existing Service

Enhance an existing preset by adding modular AWS resources using generators.

Add SNS + SQS

nx g @mhshahzad/nx-cdk-deploy:sns-sqs --project=orders --topicName=order-events --queueName=order-jobs

Add DynamoDB

nx g @mhshahzad/nx-cdk-deploy:dynamodb --project=orders --tableName=OrdersTable --partitionKey=id:string

Add S3

nx g @mhshahzad/nx-cdk-deploy:s3 --project=orders --bucketName=orders-artifacts

Redeploy

nx deploy orders --configuration=dev

See generators: