<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Brad Irby on Medium]]></title>
        <description><![CDATA[Stories by Brad Irby on Medium]]></description>
        <link>https://medium.com/@BradleyIrby?source=rss-1f1255c1f8cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Brad Irby on Medium</title>
            <link>https://medium.com/@BradleyIrby?source=rss-1f1255c1f8cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 03:02:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@BradleyIrby/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Alexa Skill Lifecycle for Solo Developers]]></title>
            <link>https://medium.com/@BradleyIrby/alexa-skill-lifecycle-for-solo-developers-ef1789e308a4?source=rss-1f1255c1f8cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef1789e308a4</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[alexa]]></category>
            <category><![CDATA[csharp]]></category>
            <dc:creator><![CDATA[Brad Irby]]></dc:creator>
            <pubDate>Wed, 10 Nov 2021 11:52:23 GMT</pubDate>
            <atom:updated>2022-03-04T09:38:01.978Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SIFuv8TSwxPPeROa.png" /></figure><h3>Alexa Skill Lifecycle for Solo Developers</h3><p>Getting started with a new Alexa skill is not complicated but the lifecycle of a skill is different than for normal development. It is easy to make missteps that can lead to problems after release. If not done correctly fixing small bugs in production can turn into a much bigger effort than necessary, and you also run the risk of accidentally overlaying production code with test code.</p><p>This is a lifecycle that has proven itself over the years to be flexible yet not too formal. It is meant for a development process with no dedicated QA resources so if you are a solo developer and also do your own testing, this is the process for you.</p><h3>Creating the Alexa Skill</h3><p>We are going to go through the lifecycle I use for my production <a href="https://www.amazon.in/Alobria-Systems-Exact-Measure/dp/B01KOXO60M">Alexa Skill Exact Measure</a>, including how I first created the skill and how I do ongoing maintenance and feature releases.</p><p>First we create our new Alexa Skill. Open the <a href="https://developer.amazon.com/alexa/console/ask">Alexa Console</a> and click the “Create Skill” button. For this exercise we will choose a custom skill and to provision our own and to start from scratch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TdIwEB96JzZSxFi0-LjIZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8HcXmRc1Z45UZ4BWzKkMvw.png" /></figure><h3>Creating the Lambda</h3><p>Now we create our new Lambda by opening your <a href="https://console.aws.amazon.com/lambda/home">Lambda Home page</a> and press “Create function” to get the screen shown below. Configure your Lambda appropriately and press Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*Fp9X7ibCC3Vgo8YowoftgA.png" /></figure><blockquote>I will be using .NET Core but the language you use is not important.</blockquote><p>Once the Lambda is created you need to add a trigger that it can respond to. Click the Add Trigger button and choose the Alexa Skills Kit trigger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nyYSag6A6OgttMx3wb-64Q.png" /></figure><p>It is best to keep the Skill ID Verification turned on because this limits calls to this Lambda to only those coming from your Alexa skill. You can get your Skill ID from the Alexa Developer Console. If you are just playing around, though, you can Disable the Skill ID verification.</p><p>Copy the Function ARN for the Lambda because you will need it in the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VrkfyIEKvofv1uDtaYLrsw.png" /></figure><h3>Finish setting up the Alexa Skill</h3><p>Now that your Lambda is created and configured to accept Alexa Skill requests, you need to connect your skill to the Lambda so Alexa knows where to send the requests. Return to your Alexa Console and edit your new skill. Go to the Endpoint configuration screen and add the Lambda endpoint. The Endpoint can be found in the Lambda admin screen.</p><p>You are now ready to publish code and test your skill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KcEMFkZ0g9CsEwDfTCX_KQ.png" /></figure><h3>Pushing to Production</h3><p>Once you have your skill working correctly, you are ready for the “go live” part of the lifecycle. Up to this point you have been developing and testing with the dev version of your Lambda, called $Latest. You could go live with your skill pointing to this version but then you cannot update your Lambda with new code without changing production. To get around this we create a new version of the Lambda we can use that will stay static through the continuing development process.</p><p>Publishing a new version of your Lambda is quite easy with the Versions tab of the Lambda function screen. Just click the Publish New Version button and you will be asked for an optional description. Enter something like “ProdV1” and press Create. Now you will be editing Version 1 of your Lambda. You can tell what version you are editing by the label in the top left corner, and also the Function ARN which now has a “:1” appended to it.</p><p>This version of your Lambda is now immutable. It cannot be changed so when you publish your Skill using this Lambda you will never accidentally overwrite your code.</p><p>Notice that the version of the Lambda has lost the trigger you added to the $Latest version. You need to add that trigger back just like you did when setting up the Lambda the first time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuWGbbd1r9DNqbzKa7Xy2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MoQ_55FREnrQI8TBSj_y-w.png" /></figure><p>We are not quite ready for production, though. If you publish your skill using this Version 1 directly, you are limiting your ability to handle small bugs that may come up later. Anytime you make a significant change to an Alexa skill you need to resubmit it for certification. Changing an endpoint counts as a significant change so to fix even the smallest bug would require a full recertification. If we use an Alias, however, we can get around this.</p><p>In your Lambda editing screen, choose the General Configuration in the left side menu. Press the Create Alias link and enter a name, like ProdV1. Make sure you point it at the proper version number (not $Latest). We are going to ignore the Weighted Alias for now. Click Save and you will see your new Alias. You must add the trigger one more time.</p><p>Note you did not need to add the trigger to the Lambda version itself like we did above. You only need to add the trigger to the Alias. I did so above for clarity and flow.</p><p>You should now see the fully configures Alias for the published version of your Lambda.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzaZfldItgxCsLbr9XSyTA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*sSLjAzm8P-Wh6ppGUfLrqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzaZfldItgxCsLbr9XSyTA.png" /></figure><p>With our Alias ready we can update our Skill to point to this alias. Copy the Function ARN for the alias and update the endpoint for the skill. You are now ready to submit for Certification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HuXrgkZpX8TYaWO0v6jG4A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Np9WEuIJFG8PxYc1oqOPw.png" /></figure><h3>After Getting Certified</h3><p>After you have gone through the certification process for your skill, you will see 2 nearly identical skills in your list. One has a status of Live and the other In Dev.</p><p>The Live skill is read only — all you can do is view or delete it. The In Dev version is the one you use when continuing development.</p><p>Initially both of these skills point to the same ProdV1 endpoint. In order to continue development on your skill, you must edit the In Dev skill and point it back to the $Latest version of your Lambda so it will get the new code changes. Once that is done you are ready to continue working on your next feature release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*Bl7CvfDVRQGAYuHbpI6pWQ.png" /></figure><h3>Fixing Small Bugs</h3><p>Fixing small bugs in production is a simple process thanks to our Alias. Edit your Lambda code and publish to $Latest as needed. When your bug is fixed create another version of your Lambda as described, then change your Alias to point to the new version. Your skill is instantly updated with no need for recertification.</p><p>This works if the bug is just in the Lambda function. If your bug fix includes any changes to the Skill configuration, you will have to go through a full feature release in order to fix it.</p><h3>Releasing a New Feature</h3><p>Releasing a new feature is a bit more involved than a bug fix due to the recertification process needed. The process for the Lambda function, however, is the same as when fixing a bug.</p><p>Edit your code as necessary to add the new feature. Also update the skill configuration as necessary. By this time you should have changed the endpoint of the In Dev skill to point to the $Latest version of your Lambda.</p><p>Once your testing is done create another version of your Lambda. Create a new Alias called ProdV2 or something similar and point at the new Lambda version. Change your In Dev skill to use the new Alias, and submit for recertification.</p><p>The old version of your skill will continue to work while the new version is being certified. If you chose to auto-release when certification completes, then the new version of your skill should become live within a few days of submission.</p><p><em>Originally published at </em><a href="https://bradirby.com/alexa-skill-lifecycle-for-solo-developers/"><em>https://bradirby.com</em></a><em> on November 10, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef1789e308a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Publish a C# Function to AWS Lambda]]></title>
            <link>https://medium.com/@BradleyIrby/publish-a-c-function-to-aws-lambda-44b9a9c203a9?source=rss-1f1255c1f8cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/44b9a9c203a9</guid>
            <category><![CDATA[csharp]]></category>
            <category><![CDATA[alexa]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Brad Irby]]></dc:creator>
            <pubDate>Thu, 04 Nov 2021 12:52:32 GMT</pubDate>
            <atom:updated>2022-03-04T09:45:07.065Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d8E-m-YDEXKQZn7p6oxZkQ.png" /></figure><h3>Publish a C# Function to AWS Lambda</h3><p>Publishing a C# function to an AWS Lambda is not difficult. Amazon has provided a Visual Studio add-in that does nearly all the work for you — as long as you get it setup correctly. This is a short tutorial showing just where to get the different pieces of info you need to publish your method.</p><h3>Lay the Ground Work</h3><p>Before deploying the function you must create it. To use a real-life example we are going to publish to the Lambda I use for my <a href="https://www.amazon.in/Alobria-Systems-Exact-Measure/dp/B01KOXO60M">Alexa Skill Exact Measure</a>.</p><p>Create the new Lambda by opening your <a href="https://console.aws.amazon.com/lambda/home">Lambda Home page</a> and press “Create function” to get the screen shown below. Configure your Lambda as shown in the image, then press Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*Fp9X7ibCC3Vgo8YowoftgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nyYSag6A6OgttMx3wb-64Q.png" /></figure><p>In this example we are using Visual Studio 2019, so we have to install the <a href="https://aws.amazon.com/visualstudio/">AWS Toolkit for Visual Studio</a> 2017 (a 2019 version does not exist). If you are on VS2022, install that version instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*CiLJ1XEvtDoXD98L_ZUn9A.png" /></figure><p>To publish a C# method to an AWS Lambda function all you need is a normal class library project. However, the AWS tool provides a special project type that has a lot of the settings you need already wired up. It provides a blueprint project (shown in the screenshot below) that allows you to choose many different kinds of functions. For today, were just going to choose the empty function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/937/1*Y-L7qO1wUCkv8TxBRljKNQ.png" /></figure><p>If you want to convert an existing project to one that can be published with the Alexa tools, it is not difficult. Just add the 2 nuget packages</p><ul><li>Amazon.Lambda.Core</li><li>Amazon.Lambda.Serialization.SystemTextJson</li></ul><p>and update the project file by adding the these three lines to the ProjectGroup</p><blockquote><em>&lt;GenerateRuntimeConfigurationFiles&gt;true&lt;/GenerateRuntimeConfigurationFiles&gt;</em></blockquote><blockquote><em>&lt;AWSProjectType&gt;Lambda&lt;/AWSProjectType&gt;</em></blockquote><blockquote><em>&lt;CopyLocalLockFileAssemblies&gt;true&lt;/CopyLocalLockFileAssemblies&gt;</em></blockquote><p>See the screenshots below for help. When your project is configured for publishing, you should get the context menu shown when you right click the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*t0911d0qs5N2_Za9icEyTw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*VpBb3AVkyycEKNcHEnmVZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*cOOEHLKWarfOwiauYTGRQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*Kkql41iYpZFHltkJdwbbIA.png" /></figure><h3>Publishing from Visual Studio</h3><p>Now we are ready to publish our C# method to the AWS Lambda. The sample Lambda function given by creating a new project is very simple. If you want to convert an existing method to this, just add the assembly reference.</p><blockquote>[assembly: LambdaSerializer(typeof( Amazon.Lambda.Serialization.SystemTextJson.DefaultLambdaJsonSerializer))]</blockquote><p>Our example is a Lambda used for an Alexa skill. I have 2 versions of my lambda function for dev and prod, and I choose which to publish while publishing. These two functions look like the picture to the right. Since the logic does not use the ILambdaContext in production I leave it out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*0iPI5sW9JiV7pMf2AexfpQ.png" /></figure><p>So we’re finally to the important part. Right click the project and choose Publish to AWS Lambda. You should see a screen similar to the one on the left below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*uDsoMpNMlmyeAUjwu8Lb0A.png" /></figure><p>It is not very clear what the Handler parameter contains, so here is a breakdown. Each piece below is separate by two colons</p><ul><li>Namespace (in this case ExactMeasureSkill)</li><li>Fully qualified class name (here we have ExactMeasureSkill.ExactMeasureLambdaFunction)</li><li>Method Name (for us it’s TestFunctionHandler)</li></ul><p>These three params give us the final result of</p><blockquote>ExactMeasureSkill::ExactMeasureSkill.ExactMeasureLambdaFunction::TestFunctionHandler</blockquote><p>Once the publish is complete, you should see a screen to use to test your new installation. Entering some text and pressing the Invoke button should echo back the text in all capital letters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*aek_Iz2cMPuu0Sk-C2tT8w.png" /></figure><p><em>Originally published at </em><a href="https://bradirby.com/publish-a-csharp-function-to-aws-lambda/"><em>https://bradirby.com</em></a><em> on November 4, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44b9a9c203a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>