The blog post Build a CI/CD Pipeline using Amazon CodeCatalyst to deploy an Alexa Skill with CDK v2 demonstrates how to leverage the AWS CDK v2 to achieve Infrastructure-as-Code for your Alexa Skills and orchestrate it using CodeCatalyst CI/CD pipeline. The solution uses an open-source construct library to deploy a Garbage Collection Day Alexa skill via the AWS CDK v2.
See blog post for detailed solution walkthrough. This code is fully functional and can be deployed as is. The only requirement is the following SSM parameters must be present in the AWS account being deployed to:
Parameter Name | Service | Type | Description |
---|---|---|---|
/garbage-day/alexa-developer-vendor-id | SSM Parameter | String | Alexa Developer Vendor ID |
/garbage-day/lwa-client-id | SSM Parameter | String | LWA Security Profile Client ID |
/garbage-day/lwa-client-secret | Secrets Manager Secret | Plaintext / secret-string | LWA Security Profile Client Secret |
/garbage-day/lwa-refresh-token | Secrets Manager Secret | Plaintext / secret-string | LWA Security Profile Refresh Token |
A sample CLI script for uploading these parameters can be found here. Full descriptions and how-tos for retrieving each value can be found in the blog post solution walkthrough.
Please be mindful of the cost of $0.40 per secret per month. For secrets that are stored for less than a month, the price is prorated (based on the number of hours). This is the only cost associated with our CDK stack for provisioning the 2 secrets and you should not incur any additional costs if you stay within the free limits of other resources like CodeCatalyst, Lambda, CloudWatch Logs and the API calls.