<?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[Cloud Uprising - Medium]]></title>
        <description><![CDATA[brought to you by the team at cloudactica — a collection of Cloud Architects and technical geeks. - Medium]]></description>
        <link>https://medium.com/cloud-uprising?source=rss----5c6d9bf8c3f6---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Cloud Uprising - Medium</title>
            <link>https://medium.com/cloud-uprising?source=rss----5c6d9bf8c3f6---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:54:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/cloud-uprising" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Lambda-backed Custom Resources in all AWS Regions (or at least faking it), Part 2…]]></title>
            <link>https://medium.com/cloud-uprising/using-lambda-backed-custom-resources-in-all-aws-regions-or-at-least-faking-it-part-2-e91709e39333?source=rss----5c6d9bf8c3f6---4</link>
            <guid isPermaLink="false">https://medium.com/p/e91709e39333</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Nate Aiman-Smith]]></dc:creator>
            <pubDate>Wed, 13 Jan 2016 16:26:21 GMT</pubDate>
            <atom:updated>2016-01-14T16:11:42.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*aBz2-CGXgRa_noK-a_n85w.jpeg" /><figcaption>photo credit: <a href="http://www.flickr.com/photos/35068899@N03/6765038379">http://www.flickr.com/photos/35068899@N03/6765038379</a> via <a href="http://photopin.com/">http://photopin.com</a> <a href="https://creativecommons.org/licenses/by-sa/2.0/">license</a></figcaption></figure><h3>Using Lambda-backed Custom Resources in all AWS Regions (or at least faking it), Part 2: Implementation</h3><p>In <a href="https://medium.com/cloud-uprising/using-lambda-backed-custom-resources-in-all-aws-regions-or-at-least-faking-it-part-1-intro-d679a50f7330">Part 1</a> of this article we covered what Custom Resources are, the difference between Custom Resources backed by SNS vs. Lambda, and why Lambda is clearly the better choice between the two. Unfortunately, at the time of this writing, Lambda is only available in a subset of AWS Regions. Furthermore, CloudFormation does not support using a Lambda function in one region as the ServiceToken for a CloudFormation template on another region (so you can’t circumvent the problem by creating your Lambda function in a supported region and referencing it in a CloudFormation template in another region). My personal guess is that AWS will eventually make Lambda available in all commercial regions, but waiting for that to happen probably isn’t a viable plan.</p><p>In the meantime, there’s an alternative; the basic idea is to create a Lambda proxy using SNS, the key component of which is an EC2 instance (or group of instances) that can poll an SQS queue for Custom Resource requests, then pass the request to a Lambda function in another region.</p><h4>POC Step 1: Creating the Lambda function</h4><p>As a first step in building a POC, let’s set up the Lambda function that we will be using. I’ve created a slightly modified version of <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough-custom-resources-lambda-lookup-amiids.html">AWS’s walkthrough example</a> to find the latest Amazon Linux AMI ID and launch an instance using it, with the following modifications:</p><ul><li>This template doesn’t launch an EC2 instance — it’s not necessary for what we’re trying to do.</li><li>The ARN of the Lambda function has been added to the stack outputs — we’ll use this for the proxy.</li></ul><p>To launch the stack that creates the Lambda function, click <a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=AmiLookupFunction&amp;templateURL=https://s3.amazonaws.com/staunchtech-demos/LambdaAMILookupSample-noInstance.template">here</a> and accept all defaults to create the Lambda function (if you’re reading this article, I assume you’ve already got some familiarity with creating CloudFormation stacks). Note that this will default to whatever region you’re currently working in, so if you want to change it then just cancel creating the stack, change your region, and then click the link again. Obviously, whichever region you launch into must support Lambda — see <a href="http://docs.aws.amazon.com/general/latest/gr/rande.html#lambda_region">here</a> for a list of regions in which Lambda is supported</p><p>The stack should only take a couple of minutes to spin up. After it’s done, click on the “Outputs” tab and you should have two outputs. The first output (AMIID) is the AMI of the latest Amazon Linux image for your region, and the second (ServiceToken) is the ARN of the Lambda function to look up the image. Copy the ServiceToken ARN somewhere — you’re going to need it in Step 3.</p><h4>POC Step 2: Creating the proxy</h4><p>Now that we have a function to serve as the base, we can create the proxy. In the AWS console, navigate to a different region without Lambda support (such as Northern California), then click <a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=LambdaProxy&amp;templateURL=https://s3.amazonaws.com/staunchtech-demos/lambda-proxy.template">here</a> to launch a proxy (note that this does launch a t2.micro instance and you may be billed accordingly). The only output from this stack is the ARN of the resulting SNS topic (ServiceToken). You should copy this for future reference as well.</p><p>While that’s spinning up, let’s talk a little bit about what this actually does. The stack goes through the process of creating a SNS-backed Custom Resource as described in <a href="https://medium.com/cloud-uprising/using-lambda-backed-custom-resources-in-all-aws-regions-or-at-least-faking-it-part-1-intro-d679a50f7330">part 1</a>, but in this case the action to be taken is to just forward the request to a Lambda function (as specified by the “LambdaARN” request parameter). Fortunately, the request and response formats are identical for SNS- and Lambda-backed Custom Resources, so there’s no manipulation of the request needed — we just forward it wholesale to the Lambda function.</p><h4>POC Step 3: Testing the proxy</h4><p>As a means of testing the proxy, we will launch a modified version of the AWS walkthrough template that will use the SNS proxy as the basis of the Custom Resource. Ensure that you are in the same region as the SNS proxy from Step 2 and click <a href="https://console.aws.amazon.com/cloudformation/home#/stacks/new?stackName=AmiLookupTest&amp;templateURL=https://s3.amazonaws.com/staunchtech-demos/LambdaAMILookupViaProxy.template">here</a> to launch the CloudFormation stack — use the ServiceToken values from the previous two stacks as parameters. After the stack is complete, you should have as your output the latest Amazon Linux AMI for the region in which you created the proxy.</p><h4>Next steps</h4><p>The above example serves as a relatively basic proof of concept of using Lambda as the backend for all Custom Resources, even for regions in which Lambda is not yet supported. A couple of obvious benefits:</p><ul><li>You can implement functions in Lambda and use a proxy for regions that don’t yet support Lambda — you don’t need to have a separate code base to run on EC2 Instances vs Lambda. Once Lambda gets brought to a region, you can simply implement the same function in the region and change the ServiceToken to point to the local Lambda function.</li><li>In the near future, when Lambda can be incorporated into a user-controlled VPC, there will be lots of folks building out applications with relational databases as a backend. Custom Resources that take advantage of this type of architecture will need to live in a single region (assuming you don’t want to open your DB to the Internet). Using a proxy, you can keep the Lambda function in a single region while still using it as the backend for Custom Resources in any region.</li></ul><p>Hopefully this has been a fun exercise and will serve as a springboard for much more complex CloudFormation templates. Please do let me know if you have any thoughts or enhancements to share.</p><p>(One final word of caution about your POC — you want to delete the last stack first; the last stack references the proxy, which in turn uses the Lambda backend. If either the proxy or the Lambda backend get torn down then the “Delete” call for the Custom Resource will fail and your stack will be stuck ,you’ll have to contact AWS support to get it removed from your CloudFormation console, which is a pain)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e91709e39333" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloud-uprising/using-lambda-backed-custom-resources-in-all-aws-regions-or-at-least-faking-it-part-2-e91709e39333">Using Lambda-backed Custom Resources in all AWS Regions (or at least faking it), Part 2…</a> was originally published in <a href="https://medium.com/cloud-uprising">Cloud Uprising</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Lambda-backed Custom Resources in all AWS Regions (or at least faking it), Part 1: Intro]]></title>
            <link>https://medium.com/cloud-uprising/using-lambda-backed-custom-resources-in-all-aws-regions-or-at-least-faking-it-part-1-intro-d679a50f7330?source=rss----5c6d9bf8c3f6---4</link>
            <guid isPermaLink="false">https://medium.com/p/d679a50f7330</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Nate Aiman-Smith]]></dc:creator>
            <pubDate>Fri, 08 Jan 2016 13:50:44 GMT</pubDate>
            <atom:updated>2016-01-13T16:28:24.341Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*aBz2-CGXgRa_noK-a_n85w.jpeg" /><figcaption>photo credit: <a href="http://www.flickr.com/photos/35068899@N03/6765038379">http://www.flickr.com/photos/35068899@N03/6765038379</a> via <a href="http://photopin.com/">http://photopin.com</a> <a href="https://creativecommons.org/licenses/by-sa/2.0/">license</a></figcaption></figure><p>I’ll just admit my bias up front: I think that AWS CloudFormation is still one of the most useful and underrated services in the AWS repertoire, and I think that Custom Resources are one of the coolest parts of CloudFormation. With CloudFormation, infrastructure can be represented as a series of templates, which can themselves be treated for all intents and purposes as code. Much has been written on that subject so I won’t go deeper into it than that, but suffice it to say that if you’re serious about using AWS services (particularly EC2), you should be using CloudFormation.</p><h4>What are Custom Resources and why should I care?</h4><p>Invariably, after using CloudFormation for a while, you’ll end up needing to create something that can’t be represented as a CloudFormation template. A straightforward example might be the creation of an EMR cluster, but you may also need to put some workflow into motion or get some information that isn’t directly related to AWS.</p><p>Consider the following scenario: your organization has a pool of Elastic IP addresses (EIPs) that you can use for test workloads — these EIPs have already been specifically whitelisted by the network team (which took multiple change orders, a security review, and waiting for the firewall change window — a process you don’t wish to repeat). You have various options here; you can enter an available EIP as a parameter to the template, or you can associate the instance with an IAM role with permissions to the ec2:AssociateAddress API call, and at bootstrap have the instance run its own script to find an available EIP and associate itself with it. Both of these are fine solutions, but the first is inconvenient and the second is potentially insecure if you don’t fully trust everyone who would have access to the instances. This is just one of many potential scenarios in which a Custom Resource is the best fit.</p><h4>SNS-backed Custom Resources</h4><p>A Custom Resource, simply put, can take almost any input and produce almost any output, and can be implemented via either a SNS topic or a Lambda function. To set up the SNS version requires implementing the following steps:</p><ol><li>Set up an SNS topic to be used by CloudFormation</li><li>Set up a SQS queue</li><li>Create a queue policy for the SQS queue to allow the SNS topic to put messages into the queue.</li><li>Add the SQS queue as an endpoint to the SNS topic.</li><li>Create an instance, preferably with an IAM profile with permissions to get and delete messages from the SQS queue. Consider setting up an Auto Scaling group for resiliency.</li><li>Set up a job that polls the queue, processes requests, does whatever needs to be done (for example: find an available EIP), puts a response object into S3, and deletes the message.</li></ol><p>All of this is a bit of a pain, but of course it can be made a lot easier with a good CloudFormation template :)</p><h4>Lambda-backed Custom Resources</h4><p>In April 2015, AWS announced support for Lambda-backed custom resources, which is definitely a better way to do it:</p><ul><li>Lambda is already fully managed, so no worry about having the backend of your Custom Resource go down because you set it up incorrectly.</li><li>For the purposes of Custom Resources, Lambda is free — you’re very unlikely to use enough resources to pass the free tier, and if you do you’re probably looking at a bill measured in pennies.</li></ul><p>The process for setting up a Lambda-backed Custom Resource is a little different and considerably simpler:</p><ol><li>Create a Lambda function that does what you want to do. I <em>highly</em> recommend “cheating” and starting with one of the functions written by AWS in one of <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough-custom-resources-lambda-cross-stack-ref.html">their</a> <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/walkthrough-custom-resources-lambda-lookup-amiids.html">walkthroughs</a>.</li><li>Assign a Role to the function to ensure that it has permissions required to perform the function.</li></ol><p>That’s it! After that, you can simply use the ARN of the Lambda function as the ServiceToken in your Custom Resource.</p><p>Given the reduced cost, inherent management, and simplicity of deployment, it almost always makes sense to use Lambda for all Custom Resources rather than SNS. There’s only one problem: Lambda isn’t available in all AWS Regions — for example, if you have significant presence in Asia Pacific, you’re somewhat out of luck — Lambda is currently only available in the Tokyo region, so you’re out of luck if you wanted to implement your CloudFormation Custom Resources in Singapore, Sydney, or Beijing. CloudFormation also doesn’t currently support referencing a ServiceToken in a region other than the one in which you’re launching a CloudFormation stack (so, for example, you can’t launch a template in Singapore and reference a Lambda function in Tokyo).</p><p>Will Lambda eventually make its way to all regions? I imagine so; Lambda is an absolute game-changer in infrastructure and a critical piece of the #NoOps ideology that AWS is looking to lead, so I would imagine that it’s already slated to make its way to all regions eventually.</p><p>There is, of course, a workaround; we can create a proxy for Lambda that can be accessed via a SNS resource. In <a href="https://medium.com/cloud-uprising/using-lambda-backed-custom-resources-in-all-aws-regions-or-at-least-faking-it-part-2-e91709e39333">part 2</a>, I’ll give a step-by-step on how to implement this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d679a50f7330" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloud-uprising/using-lambda-backed-custom-resources-in-all-aws-regions-or-at-least-faking-it-part-1-intro-d679a50f7330">Using Lambda-backed Custom Resources in all AWS Regions (or at least faking it), Part 1: Intro</a> was originally published in <a href="https://medium.com/cloud-uprising">Cloud Uprising</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Data Science of AWS Spot Pricing]]></title>
            <link>https://medium.com/cloud-uprising/the-data-science-of-aws-spot-pricing-8bed655caed2?source=rss----5c6d9bf8c3f6---4</link>
            <guid isPermaLink="false">https://medium.com/p/8bed655caed2</guid>
            <category><![CDATA[ipython]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[spot]]></category>
            <dc:creator><![CDATA[sdksb]]></dc:creator>
            <pubDate>Mon, 14 Sep 2015 15:20:41 GMT</pubDate>
            <atom:updated>2015-09-15T04:22:36.719Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w1A1gKUJDeCxQNQZ2RO4aQ.jpeg" /></figure><p>Amazon Web Services is the 800-lb gorrilla in Cloud Computing and provides a number of different pricing models ranging from pay-per-use (<em>on-demand</em>), fixed (<em>reserved</em>), and auction-based (s<em>pot</em>). This spot model is on the order of 8–10x cheaper as compared with on-demand, but with a twist: since instances in the spot market are auctioned, you may or may not “win” the auction. Even if you win and get the instances you asked for, you may subsequently loose them with little notice depending on the next auction and how others are bidding. Despite this added complexity, with almost an order of magnitude cost savings, it is worth exploring how to use Spot in at least part of your workloads.</p><p>AWS provides data on spot market prices for each instance type in each availability zone (AZ) for the trailing 90 days. For example, Figure 1 shows the market price for a <em>c3.8xlarge</em> in the <em>us-east-1a</em> AZ for the past week. On average, its 2x below the on-demand price of $1.68/hr, but <strong>there are spikes in the pricing that push the price up 10x (!) over the on-demand price</strong>. When the market price exceeds your bid price, then your resources will be lost with very little notice. So you have to set a bid price balancing volatility and cost.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*BqfOurRgq3viOzqVoh0-YA.png" /><figcaption>Figure 1: Spot Market Price fluxuations for c3.8xlarge instance in us-east-1e.</figcaption></figure><p>Therefore, it’s worthwhile to build algorithms to manage your spot requests dynamically based on current market forces — similar to algorithmic trading where software decides when and what stocks to trade. Using some common open-source data science tools, I’ll show you how to access the spot market price data, manipulate and graph the data. I’ll leave it up to you to develop your own algorithms, but with the available tool set, it is accessible even to non-expert programmers.</p><p>All the code used here is accessible in a github repository (see <a href="https://github.com/lila/spot_price_history">here</a>). The toolset uses <a href="http://ipython.org/">iPython</a>, a web-based interactive programming environment similar to Mathematica or Matlab; <a href="http://pandas.pydata.org/">Pandas</a> for data manipulation; and <a href="http://matplotlib.org/">Mathplotlib</a> for graphing. You can add <a href="http://scikit-learn.org/stable/">Scikit</a> for machine learning and <a href="http://deeplearning.net/software/theano/">theano</a> for deep learning neural networks if you wish to do more analysis of the data or build your own predictive models. To run the code you will need an AWS account. Lets get started …</p><h3>Getting Started</h3><p>Assuming you have setup your AWS account, downloaded iPython and started the interactive notebook session, we can get started. We first create a new notebook and set the parameters for our analysis, including the instance types we will examine and the time frame.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f2b09f9e6758c9c57d1054916f99f102/href">https://medium.com/media/f2b09f9e6758c9c57d1054916f99f102/href</a></iframe><p>We use the Boto python library to access AWS api’s, but if you followed the link to the source code and the instructions for installing iPython, then you have boto installed. It will pull your credentials from environment variables, so make sure that AWS_ACCESS_KEY and AWS_SECRET_KEY are setup.</p><pre>% export AWS_ACCESS_KEY_ID=&lt;your access key&gt;<br>% export AWS_SECRET_ACCESS_KEY=&lt;your secret key&gt;</pre><p>Then we create a new code cell in your notebook and initialize boto using:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97a9e26892d28944efe9e3dc37accecb/href">https://medium.com/media/97a9e26892d28944efe9e3dc37accecb/href</a></iframe><p>Now, we can download the pricing data and store it into a Pandas dataframe:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/394bcda5c033bf05595cad6cc51b4d70/href">https://medium.com/media/394bcda5c033bf05595cad6cc51b4d70/href</a></iframe><p>This might look complicated, its not really. The script uses the <em>ec2.get_spot_price_history</em> api call to download the data for each instance type, and since the data may come in batches, it downloads each batch until it has all the data you are asking for. In the end, it converts the data into a dataframe so you can easily manipulate and graph it.</p><h3>Data Overview</h3><p>The data has a timestamp, instance type, availability zone, and the market price at that timestamp. The first thing we can do is plot the price over time to see the volatility of the <em>c3.8xlarge</em> market for each availability zone:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZAknM9VxqK-4VhStAcMlFQ.png" /><figcaption>Figure 2: time series graph of Spot Market Price for c3.8xlarge for different AZs.</figcaption></figure><p>This shows that pricing in different availability zones have different characteristics: initially (to the left on the graph), the price in <em>us-east-1a</em> is spiking to $6/hr quite often while the other AZs are more stable; and more recently (to the right of the graph) we see <em>us-east-1e</em> to have significant volatility.</p><p>We can also easily generate a price histogram, this time looking at a single AZ and partitioning out the data for the 4 instance types in the family:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4jwYnwFaFc9v-sVRdhTdBw.png" /><figcaption><em>Figure 3: Histogram of prices for c3 family in a single AZ, us-east-1a.</em></figcaption></figure><p>This histogram shows you that (at least for <em>us-east-1a</em> AZ) in general as you go from smaller to larger instance types the hourly price also increases: the <em>c3.xlarge</em> in green on the left is the least expensive, the <em>c3.2xlarge</em> the next expensive, and so on. The <em>c3.8xlarge, </em>in contrast, is often half as expensive as a <em>c3.4xlarge</em> which is 1/2 as powerful. When making spot requests, it is beneficial to consider multiple instance types to get the lowest price.</p><p>It is also interesting to note that each instance type has a minimum price, and the <em>c3.2xlarge</em> minimum price is almost exactly 2 times the minimum price of the <em>c3.xlarge</em>, and the <em>c3.4xlarge</em> minimum prices is 2x the <em>c3.2xlarge</em>, and so on. You can also easily generate numerical averages and variances to produce exact values in addition to visual analysis via graphs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_yo-wxRC3DH-pHcgua6QEg.png" /><figcaption>Figure 4: numeric calculation of statistical properties of market price.</figcaption></figure><h3>Price Trends</h3><p>Another hypothesis is that the market prices vary by time of day or day of the week. We can extract the hour or day of each recorded price data and determine the average/stdev for each hour of the day. Figure 5 shows both the average and standard deviation of the values by hour for the c3.xlarge instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrgyQVkIfMf86Fq9OV7IMw.png" /><figcaption>Figure 5: average price for c3.large aggregated by hour of the day. Plot shows both median and stdev.</figcaption></figure><p>It seems the best time to use this instance is 11am UTC (which is 7am EST) when the price is 30% less than the overall average. With a low standard deviation, that indicates that this pattern is recurring.</p><p>You can similarly look at day of week patterns or other time frequencies. Pandas is an essential tool for time series data, providing filtering and resampling that are both powerful and easy to use.</p><h3>Summary</h3><p>The examples shown here show that accessing and analyzing the historical spot pricing is easy using modern data science toolsets and very simple calculations and aggregations can lead to insight that can save you significant money.</p><p>But be warned: the pricing changes week to week and even day to day. If Netflix decides they need to re-encode all their movies for the new AppleTV, then the price and availability statistics of the instances will change dramatically. Your mileage will vary and that’s why it is important to build algorithms that can adapt to market fluxuations.</p><p>With this as your basis, you can go in a number of interesting directions, for example:</p><ul><li>determine the lower bound on the probability that the market price will exceed your bid price, and hence, the probability that your resources will complete their computation,</li><li>analyze the volatility of each AZ and instance type in order to determine where to request instances,</li><li>use more advanced techniques to find recurring patterns in the data that you can then take advantage of.</li></ul><p>If you have any thoughts or comments, feel free to post here or contact me at: karan.bhatia@gmail.com</p><p>External links:</p><ul><li><a href="https://github.com/lila/spot_price_history">code repository [Github]</a></li><li><a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html">official aws spot guide [aws]</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bed655caed2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cloud-uprising/the-data-science-of-aws-spot-pricing-8bed655caed2">The Data Science of AWS Spot Pricing</a> was originally published in <a href="https://medium.com/cloud-uprising">Cloud Uprising</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>