<?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 Scott Ashmore on Medium]]></title>
        <description><![CDATA[Stories by Scott Ashmore on Medium]]></description>
        <link>https://medium.com/@scottashmore?source=rss-2fe722c3e2e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NpxwMxc2R330SPimImVVbA@2x.jpeg</url>
            <title>Stories by Scott Ashmore on Medium</title>
            <link>https://medium.com/@scottashmore?source=rss-2fe722c3e2e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 14:54:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@scottashmore/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[How can we better empower retail investors?]]></title>
            <link>https://medium.com/pitchedit/how-can-we-better-empower-retail-investors-12f25c20faa8?source=rss-2fe722c3e2e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/12f25c20faa8</guid>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[crowdfunding]]></category>
            <category><![CDATA[retail-investors]]></category>
            <dc:creator><![CDATA[Scott Ashmore]]></dc:creator>
            <pubDate>Fri, 18 Nov 2022 12:03:25 GMT</pubDate>
            <atom:updated>2022-11-21T16:12:53.461Z</atom:updated>
            <content:encoded><![CDATA[<p>There’s a lot of VC’s out there who would have you believe retail investors aren’t worthy of venture capital. This is proven simply by looking at equity crowdfunding. Mention the word and many VC’s will turn their nose up in disgust, telling you those platforms are a wasteland of startups rejected by VC’s. Fortunately mindsets are beginning to shift and some of the more forward thinking VC’s are even partnering with crowdfunding platforms.</p><p>Equity crowdfunding has a dirty little secret though… Retail investors aren’t flocking to most of the deals on offer yet many platforms enjoy very high success rates. But how? We’ve spoken with numerous founders who’ve crowdfunded and the majority said their experience was a poor one. Lured in by the promise of thousands of investors lining up to put their money in your business. Only to realise after months of blood, sweat and tears, most of the money ended up coming from their own network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*ZeiKB_oIjD_4p2ztiMmaUg.png" /><figcaption>Retail investor activity growth from 2019 to 2021</figcaption></figure><p>If you look at retail activity in public markets, a very different picture is being painted. In 2021 Degiro, a European public markets brokerage for retail investors, amassed trading volumes of over €350 billion! Yes, billion. And that’s just one platform. So why are retail investors not piling into equity crowdfunding like they are into public markets?</p><p>Well, the answer is simple. Time and knowledge:</p><ul><li><strong>Time</strong>: Most retail investors work full time jobs to earn their disposable income. They simply don’t have the time to be rummaging through pages and pages of equity crowdfunding platforms, trying to evaluate deals.</li><li><strong>Knowledge</strong>: The inner workings of startups are complicated. Even seasoned investors become overwhelmed reading through some decks. Now imagine you have no startup experience and you’re trying to filter through 50 deals on a platform. Ouch…</li></ul><p>Traditional angel investing simply doesn’t work for retail investors because they don’t have the required time or knowledge to source and evaluate early-stage companies. Even if they did, because VC’s have historically painted equity crowdfunding with a certain brush, you won’t find the best startups on these platforms anyway, bar the rare B2C scale-up looking to capitalise on the PR benefits. Even as an angel investor, unless you’re connected to the right people and writing very large cheques, you won’t be getting near the best deals.</p><p>At PitchedIt we’re taking a different approach by enabling everyone, regardless of their wealth or connections, to build a highly diversified portfolio with minimal effort. We simply take investments on a quarterly or annual basis via a subscription plan, starting from as little as €250 per quarter. Then we pool all that money together and use it to invest in world changing founders and startups.</p><p>Our network of business experts use PitchedIt’s proprietary technology to source, evaluate and invest in the very best companies and for their service, our experts earn a small cut of any profits made by the fund.</p><p>So, instead of spending all your time and effort sifting through platforms trying to find a needle in a haystack, invest with PitchedIt and create a diversified portfolio of amazing companies, instantly.</p><p>If that sounds like an exciting opportunity to you, you can get early access to our 2023 launch by joining <a href="https://pitchedit.co/">our waitlist</a>.</p><p>Thanks for reading!<br>Scott</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12f25c20faa8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/pitchedit/how-can-we-better-empower-retail-investors-12f25c20faa8">How can we better empower retail investors?</a> was originally published in <a href="https://medium.com/pitchedit">PitchedIt</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Performant, Scalable, Fully Automated, Cost Efficient Web Infrastructure for 2021 (Part 3)]]></title>
            <link>https://scottashmore.medium.com/building-performant-scalable-fully-automated-and-cost-efficient-web-infrastructure-for-2021-90b95c94a8be?source=rss-2fe722c3e2e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/90b95c94a8be</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[strapi]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Scott Ashmore]]></dc:creator>
            <pubDate>Tue, 19 Jan 2021 20:17:56 GMT</pubDate>
            <atom:updated>2021-01-21T09:48:47.738Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Performant, Scalable, Fully Automated and Cost Efficient Web Infrastructure for 2021 (Part 3)</h3><p>Setting up Docker &amp; Bitbucket Pipelines</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*635t8i53Ki7fq0QA5ffSqA.jpeg" /></figure><h3>Introduction</h3><p>Welcome to part 3 of the series! In this instalment we’ll be setting up a Cloud SQL proxy for local database development, configuring our app to run in a Docker environment and setting up Bitbucket pipelines.</p><p>Let’s get started!</p><h3>Cloud SQL Proxy</h3><p>Now that all our infrastructure is provisioned, we can make a small efficiency improvement around how we handle local database development. Google allows us to test Cloud SQL databases locally using their <a href="https://cloud.google.com/sql/docs/mysql/sql-proxy">Cloud SQL Proxy</a>. It’s really easy to setup so let’s dive in.</p><p>Create a new file at the root of your project named google-credentials.json and add the local database JSON that was output by Terraform when you provisioned your infrastructure (You can always go back to your Terraform workspace and inspect the last successful plan for outputs). Copy the JSON and paste it into the file you just created. Make sure you add this file to your .gitignore file as you do not want it checked into git since it’s very sensitive.</p><p>Now create a .env file also at the root of the project and add a variable DB_PASSWORD that is equal to the local user password output by our Terraform plan from <a href="https://scottashmore.medium.com/building-performant-scalable-fully-automated-and-cost-efficient-web-infrastructure-for-2021-658d029b8a4e">step 2</a>.</p><p>We also need to update our Strapi development database config to work with our Google Cloud SQL proxy. In your editor, navigate to cms/config/environments/development/database.json and update it to match these settings:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/405fe08db2f82afc1513a4ee894551ed/href">https://medium.com/media/405fe08db2f82afc1513a4ee894551ed/href</a></iframe><p>Finally, open up your docker-compose.yml file and update it like so:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0b77072d4f337eacb93bfbe39b75c10/href">https://medium.com/media/f0b77072d4f337eacb93bfbe39b75c10/href</a></iframe><p>Make sure to update line 6 with your Cloud SQL connection name. Now if you run the app locally, you should connect to Cloud SQL using the proxy we setup. This will make syncing databases a lot easier when deploying to production.</p><h3>Docker</h3><p>In order our for our app to run on Google Cloud Run, we need to containerise it. Open your editor and create a new Dockerfile in the cms directory of our repo and copy the following code into it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b7bad6fd2d05b0633a4ce08191d4cb7d/href">https://medium.com/media/b7bad6fd2d05b0633a4ce08191d4cb7d/href</a></iframe><p>First we pull in the image we want. I’m using the alpine distribution of Node.js since it’s much leaner than the base image and includes everything we need to run our application. Next we set the working directory, NODE_ENV, pass in our package.json and package-lock.json, install our dependencies and copy them into our image. Finally we build and start the application. You should also create a .dockerignore file and make sure to ignore the node_modules directory.</p><p>Now we need to update our Strapi database config to work with our Google Cloud SQL instance. In your editor, navigate to cms/config/environments/production/database.json and update it to match these settings:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/405fe08db2f82afc1513a4ee894551ed/href">https://medium.com/media/405fe08db2f82afc1513a4ee894551ed/href</a></iframe><p>All we need to connect to Cloud SQL is the socket path, database name, username and password so we can remove host and port from our config. Let’s move on to our Next.js app.</p><p>Move to the app directory and crate another Dockerfile. The config is almost identical to the cms except for a couple of aditions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4723edb8459a0231204d9ff69ad04a35/href">https://medium.com/media/4723edb8459a0231204d9ff69ad04a35/href</a></iframe><p>Since Next.js generates a static version of our app, it will need access to the cms during build time. To help with this we will pass an <a href="https://gist.github.com/ashmore11/f0965482a34df534e432fb48801bd88b">argument</a> to our Dockerfile. Docker doesn’t actually expose these arguments to our app so we need to create and environment variable from this argument. Now Next.js will have access to Strapi via the CMS_GRAPHQL_URL variable which we added to next.config.js in <a href="https://scottashmore.medium.com/building-a-fully-automated-highly-scalable-cost-efficient-and-truly-performant-web-3b3d3ad5a2cf">step 1</a> of this series. As with the cms, you should also create a .dockerignore file and make sure to ignore the node_modules and .next directory.</p><h3>Pipelines</h3><p>Now that both our services are ready to run in a docker environment, we can start setting up our pipelines. At the root of the project, create a file named bitbucket-pipelines.yml. Here’s how it should look:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8d051f463b6e30415d9997b66e17f3ca/href">https://medium.com/media/8d051f463b6e30415d9997b66e17f3ca/href</a></iframe><p>Let’s go through the step field:<br>- First we give our step a name.<br>- Next we set the deployment target.<br>- Since we’re deploying to GCP, we need access to gcloud cli commands. We can do this by pulling in the gcloud sdk using the image field.<br>- We also need to enable docker as a service so we can access the Docker daemon from our pipelines.<br>- Next we add docker to the caches field. Docker can be quite heavy so we want to cache all the layers generated by our build. This will speed up subsequent deployments for us.<br>- Finally we point our script field to four scripts which we will be creating in a moment.</p><p>In the definitions section we are setting the memory for docker to 2048mb. Docker tasks can be intensive and therefore we need to give our pipelines a little more memory to work with.</p><p>There’s a few things we need to do in our pipeline. Instead of writing it all in the script field, it’s better to break the tasks down into separate files. Create a directory named scripts. In that directory create a file named pipelines-prepare.sh and populate with the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/edbefc7f656e37fa5c73d9fa733eace7/href">https://medium.com/media/edbefc7f656e37fa5c73d9fa733eace7/href</a></iframe><p>First we create a json file from the content of our GCLOUD_SERVICE_ACCOUNT_KEY environment variable. Then we activate the service account using that file. Next we set our project. This is purely a convenience so we don’t have to set it every time we run a gcloud command. Next we configure docker so we can pull/push images from/to GCR (Google Container Registry). Finally we execute the deploy scripts for each service. Let’s create those scripts now.</p><p>In the same directory, create a file name pipelines-deploy-cms.sh and add the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cd527d43706830b3f7df550060754cce/href">https://medium.com/media/cd527d43706830b3f7df550060754cce/href</a></iframe><p>Lets go over this line by line:<br>- 8: Create a variable that contains the path of our image on GCR.<br>- 9: Query GCR for any images with the cms tag.<br>- 11: Check if existing_tags is an empty array.<br>- 12: Build a fresh image with the tag cms.<br>- 14: Pull the older image from GCR.<br>- 15: Build an image and cache from our older image.<br>- 18: Push the image to GCR.<br>- 20: Deploy the image to Cloud Run.</p><p>Now let’s create pipelines-deploy-app.sh. This one is almost identical bar a couple of things:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f70f2cf1352e56b28e50b1e17402a936/href">https://medium.com/media/f70f2cf1352e56b28e50b1e17402a936/href</a></iframe><p>The first difference can be seen on line 14. Remember in our Dockerfile we create the ARG and ENV variables for CMS_GRAPHQL_URL? This is how we pass that argument to our Docker build step. The other two minor changes are the env vars on line 29 and setting the port to 3000on line 30.</p><p>Finally create a file named pipelines-sync-db.sh in the same directory and populate with the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ba9206856f99523dd895ca7a956f9f0/href">https://medium.com/media/4ba9206856f99523dd895ca7a956f9f0/href</a></iframe><p>This file will be responsible for syncing our development database with our production database during deployments. Let’s have a look at all the important lines:<br>- 3: Install the mysql client.<br>- 5: Create a query that checks how many tables are in a given database.<br>- 6: Create a variable from the result of that query.<br>- 10: Check if there are no tables in the given database.<br>- 11: Dump the database with no options.<br>- 13: Dump the database with <a href="https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html#option_mysqldump_no-create-info">--no-create-info</a> and <a href="https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html#option_mysqldump_replace">--replace</a> options.<br>- 17: Merge our local database dump into our production database.</p><p>We’re all set now! Go ahead and commit your changes to Bitbucket and open up the pipelines page in Bitbucket. You should see your pipeline running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HXBj0ZA-KCfVyi5UN8aI3Q.jpeg" /></figure><p>Click into it to see the logs and when finished, hopefully you’ll have a successful build:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HZaanHbXPG3XIgXbCMPCjw.png" /></figure><p>As you can see above it took me 18 builds to get it right so don’t be surprised if you run into some issues. It wouldn’t be fun if everything worked perfectly first run 😅 Now open each Cloud Run service in your browser. You should see your services running instead of the default Cloud Run service.</p><h3>Conclusion</h3><p>Congratulations! 👏 We’ve successfully setup Strapi and Next.js, provisioned all our Google Cloud infrastructure using Terraform and automated our deployments using Bitbucket pipelines.</p><p>All the steps we’ve taken start to form a really strong foundation for shipping solid production applications but there is still a lot of improvements and optimisations we can make! Here’s a couple of improvements you should think about to solidify this approach to web infrastructure even further:</p><ul><li>We’re only setup for a single deployment environment. In reality you will be deploying to multiple environments (qa, staging, production, etc). How can we automate that from provisioning infrastructure through to our pipelines.</li><li>Currently we build the cms and app on every deploy. This is fine for a small apps like ours but when things begin to increase in size, we’ll want to run some checks to see if we actually do need to build the cms/app. Pipelines cost money and if you have many projects running these costs can add up so only perform the tasks you really need to. Also, nobody likes 20 minute builds if they can be avoided 😅</li></ul><p>I hope you’ve enjoyed this series and hopefully learned a thing or two in the process. Please leave a comment if you have any questions or maybe some thoughts on improvements that I could make. Thanks for reading!</p><p>You can find the full source code below:<br><a href="https://bitbucket.org/scottashmore/next-strapi-cloud-run"><strong>https://bitbucket.org/scottashmore/next-strapi-cloud-run</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90b95c94a8be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Performant, Scalable, Fully Automated, Cost Efficient Web Infrastructure for 2021 (Part 2)]]></title>
            <link>https://scottashmore.medium.com/building-performant-scalable-fully-automated-and-cost-efficient-web-infrastructure-for-2021-658d029b8a4e?source=rss-2fe722c3e2e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/658d029b8a4e</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[bitbucket]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[google-cloud-run]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Scott Ashmore]]></dc:creator>
            <pubDate>Fri, 15 Jan 2021 07:31:40 GMT</pubDate>
            <atom:updated>2021-01-21T09:41:27.044Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Performant, Scalable, Fully Automated, and Cost-Efficient Web Infrastructure for 2021 (Part 2)</h3><h4>Setting up Google Cloud &amp; Terraform</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*635t8i53Ki7fq0QA5ffSqA.jpeg" /></figure><h3>Introduction</h3><p>Welcome to part 2 of the series. In this installment, we’ll be provisioning our Google Cloud infrastructure using Terraform.</p><p>Similar to <a href="https://medium.com/swlh/building-a-fully-automated-highly-scalable-cost-efficient-and-truly-performant-web-3b3d3ad5a2cf">part 1</a>, I won’t be going into too much depth explaining any of the technology used. There are plenty of articles and tutorials out there that go into great depth for all the technology used in this series. I will provide relevant links where appropriate.</p><p>Let’s get started.</p><h3>Google Cloud Platform</h3><p>Firstly we need to set up a new project on GCP that will handle creating all our resources when requested by Terraform. You will also need a billing account as some of the resources we will be provisioning come with costs attached.</p><p>Go ahead and create a new project from within the GCP console. I named mine Terraform Admin. Once created, take note of the project ID as it will be different from the name. Now we need to create a service account with some specific roles that will give Terraform permission to create all the necessary resources.</p><p>From the left menu, go to IAM &amp; Admin &gt; Service Accounts. From the service accounts page click + CREATE SERVICE ACCOUNT at the top of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JefPvWqT5gsdtHlSvJaFSw.png" /></figure><p>Finally, enter a name (I named mine terraform) and click done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8lMZS3uSzJrcPEAGAK8flA.png" /></figure><p>Now we need to create a key for the service account. From the service accounts page, click the service account you just created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iDGLj2kDaZLK2muuqwxNBQ.png" /></figure><p>It will be the name you just used followed by the project ID. After you click that, you should see an option to create a new key from the bottom of the page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MzrVhHm5F0g_s9OU0l7vHA.png" /></figure><p>Go ahead and create a new key using the JSON key type:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PUHM1id-5DLJ3wTr02v3Ew.png" /></figure><p>Once created, the key will automatically be downloaded by your browser. Save it somewhere <strong>safe</strong>. I use a service called 1password but there is a multitude of options available for storing secrets.</p><p>Finally, we need to set some permissions for our service account. From the IAM home page, click ADD at the top of the page. Enter the email address of the service account you just created, give it the Storage Object Admin role and click save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NbGGWCu0XJX9EcXnUsYiRg.png" /></figure><p>Finally, we need to create a bucket that will store our terraform state. Give it a unique name but something recognizable, like: project-id-terraform-admin. You can see the details of how I created mine below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cMeZY4NuS-bmu2xXcKmXnQ.png" /></figure><p>That’s the initial GCP setup complete, now we can move on to the next step.</p><h3>Bitbucket</h3><p>Firstly we need to enable pipelines. Navigate to Repository Settings &gt; Pipelines Settings from the side menu and enable pipelines as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B91LMeliZ-3G11fev3XEyQ.png" /></figure><p>We also need to create an app password that will be used by Terraform for adding all our environment variables to our pipelines. From the Bitbucket web UI, in the side menu, go to your Personal Settings &gt; App Passwords and create a new password. Here’s how I set mine but you might not need to enable this many permissions for this particular use case:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MMR9rjuipVHYpFoM5QNZsA.png" /></figure><p>Once that’s created it will show you the generated password and a little modal. Save this somewhere safe like the Google service account key we downloaded earlier (not in the repo or anywhere publicly accessible), we’ll need it later.</p><h3>Terraform Cloud</h3><p>Now we are ready to start configuring Terraform so it can provide all the infrastructure we need. If you don’t already have an account, you can create one <a href="https://app.terraform.io/signup/account">here</a>. It’s totally free if you are a team of fewer than 5 engineers which is pretty great!</p><p>When your account has been created, you’ll need to set up Bitbucket as a VCS provider. Terraform has detailed instructions on just that <a href="https://www.terraform.io/docs/cloud/vcs/bitbucket-cloud.html">here</a>. Once you’ve enabled Bitbucket go ahead and create a new workspace from your account home page. In the first step choose the Version control workflow option:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YnJGstHQROY8C8keaSp_Dw.png" /></figure><p>In the second step the Bitbucket Cloud option should appear:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-M6o9LvxTlp1UtsAU0hCyw.png" /></figure><p>When it does click it to move to step 3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DY70Ke7KaHJhAMtG666_3w.png" /></figure><p>If you have a lot of repositories, the one we created might not appear and you’ll have to type the id into the box as you can see above. In step 4 we’ll configure some basic settings. You can copy what I have done below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cWk2sbriGBG6JjhApinXJQ.png" /></figure><p>Click create workspace and after a minute or so you should see the final success confirmation below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cL0Kz4pNhhETKMrG0SJJ7w.png" /></figure><p>Now we need to add a couple of variables for our plans to execute successfully. Click theConfigure Variables button and create a new variable under the Terraform Variables section named bitbucket_password, set the value to the Bitbucket app password we created earlier, and check the sensitive checkbox. Now under Environment Variables create a variable named GOOGLE_CREDENTIALS and set it to the value of the Service Account key we created earlier. You’ll need to minify the JSON as Terraform doesn’t handle whitespace. When you’re finished you should have something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LQpKOwMF7dIayk3lRlDcPg.png" /></figure><h3>Terraform Configuration</h3><p>Now it’s time to move to our editor and start creating our Terraform configuration files. In your editor, create a new directory infrastructure at the root of the repo. Create a file named providers.tf in that directory and populate it with the following data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ce86514dc74854daeaba6939e1d45e9/href">https://medium.com/media/5ce86514dc74854daeaba6939e1d45e9/href</a></iframe><p>In order to create resources Terraform needs to pull in providers that describe how to create resources in a given platform. We’ll be creating resources on Google Cloud Platform and Bitbucket so that’s what we’ve referenced in the file above. We’ll also be using the random provider which allows us to use randomness in our config files. You’ll see this in action further down.</p><p>Any secrets (passwords, private keys, etc) we use will be visible in our state. Terraform does not encrypt this so it’s safer to store your state somewhere more secure that offers encryption. Terraform allows us to do just this using a concept called <a href="https://www.terraform.io/docs/backends/">backends</a>. With that in mind, let’s create a file named backend.tf:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1364ac3ff86ecca11b5ca0a0fe53b14c/href">https://medium.com/media/1364ac3ff86ecca11b5ca0a0fe53b14c/href</a></iframe><p>All this file does is tell Terraform we want to store our state in the Google Cloud Storage bucket we created earlier. Remember to update the bucket name to whatever you used previously. Now we need to create some variables that will make our lives a little easier when provisioning resources and also help us pull in some sensitive data. Let’s create a file called variables.tf:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6d2d605a48a4d93ad3a473c8659cb5f/href">https://medium.com/media/a6d2d605a48a4d93ad3a473c8659cb5f/href</a></iframe><p>Let’s go through this variable by variable:</p><ol><li><strong>gcp_project_name</strong>: The name of the project we will be creating on GCP.</li><li><strong>gcp_region</strong>: The region in which all our GCP resources will be created.</li><li><strong>google_project_services</strong>: We need to enable a few services in GCP before we can create resources within those services. In order of appearance: <br>- Cloud Run (hosting and serving our applications)<br>- Container Registry (storing our Docker images)<br>- Cloud SQL (managing our SQL databases)<br>- Cloud Logging API (logs 🙂)</li><li><strong>pipelines_ip_addresses</strong>: This is simply a map of IP addresses used by Bitbucket in their pipelines. We’ll add these to our Cloud SQL instance so we can access our databases during deployments.</li><li><strong>bitbucket_username</strong>: The username associated with your Bitbucket account.</li><li><strong>bitbucket_password: </strong>The app password we created earlier in this article.</li><li><strong>bitbucket_repository_slug</strong>: The slug of the Bitbucket repo we created in <a href="https://scottashmore.medium.com/building-a-fully-automated-highly-scalable-cost-efficient-and-truly-performant-web-3b3d3ad5a2cf">part 1</a> of this series.</li></ol><p>Now we can get started configuring our infrastructure for GCP. Create a file named gcp.tf and populate with the following data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/343fa0d5533f935c1f20df8a6d55f825/href">https://medium.com/media/343fa0d5533f935c1f20df8a6d55f825/href</a></iframe><p>Let’s go over what we’ve created above in order of appearance:</p><ol><li><strong>provider “google”</strong>:<br>Provider configuration for Google. You can see the details for this <a href="https://registry.terraform.io/providers/hashicorp/google/latest/docs/guides/getting_started">here</a>. We are omitting the project field since we are creating a new project via Terraform.</li><li><strong>random_id: id</strong>:<br>Helps us generate a unique ID for our new GCP project. We also prefix the ID with our GCP project name to make it more recognizable.</li><li><strong>google_project: project</strong>:<br>Configuration for generating our new GCP project. You will need a valid billing account ID here since we are spinning up some services that come with costs attached. I have also set the organization ID but this is not strictly necessary so feel free to omit that if your account is not associated with any organization.</li><li><strong>google_project_service: services</strong>:<br>Responsible for enabling all the services we need within GCP in order for our resources to be created successfully. If you remember in variables.tf we created a list of services. Here we are using Terraforms count helper to loop over that list and create each resource within a single block instead of creating a resource block per service.</li><li><strong>google_sql_database_instance: cms_database_instance</strong>:<br>Provisions a Cloud SQL instance. Note that we are using db-f1-micro machine type. You may want to opt for something a little beefier in production, depending on the demands of your application. Since we are using Next.js’ static generation, the database is nearly always only accessed during build time and when cms updates are made so db-f1-micro is perfectly capable of handling small to medium-sized apps.</li><li><strong>random_password: cms_sql_root_password</strong>:<br>Generates a random password for our SQL database root user.</li><li><strong>google_sql_user</strong>: <strong>root</strong>:<br>Root user for our mySQL database.</li><li><strong>random_password: cms_sql_local_password</strong>:<br>Generates a random password for our SQL database local user.</li><li><strong>google_sql_user</strong>: <strong>local</strong>:<br>Local development user for our mySQL database.</li><li><strong>google_sql_database: cms_database</strong>:<br>Creates a database within our Cloud SQL instance</li><li><strong>google_cloud_run_service</strong>:<br>- cms: Creates a Cloud Run service for our cms and links our Cloud SQL instance so we can access our database from the service.<br>- app: Same as above just without linking Cloud SQL. You’ll also notice here we are setting our resource limits. I’m using defaults for the purpose of development but you may want to play with these settings in production to see what fits your application&#39;s needs best. You can find more detailed info on this topic <a href="https://cloud.google.com/run/docs/how-to#configure">here</a> and <a href="https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_run_service">here</a>.</li><li><strong>google_iam_policy: noauth</strong>:<br>Creates an IAM policy that will allow our Cloud Run services to be publicly accessible.</li><li><strong>google_cloud_run_service_iam_policy</strong>:<br>- noauth_cms: Apply’s the policy above to our cms service.<br>- noauth_app: Apply’s the policy above to our app service.</li><li><strong>google_service_account: bitbucket_pipelines</strong>:<br>Creates a new SA (service account) to be used by Bitbucket pipelines.</li><li><strong>google_project_iam_member: bitbucket_pipelines_cloudrun_admin</strong>:<br>Gives the pipelines SA Cloud Run Admin permissions.</li><li><strong>google_project_iam_member: bitbucket_pipelines_storage_admin</strong>:<br>Gives the pipelines SA Storage Admin permissions.</li><li><strong>google_project_iam_member: bitbucket_pipelines_service_account_user</strong>:<br>Gives the pipelines SA Service Account User permissions so Bitbucket can interact with our GCP resources.</li><li><strong>google_service_account_key: bitbucket_pipelines</strong>:<br>Generates a new SA key to be used in conjunction with pipelines.</li><li><strong>google_service_account: local_database</strong>:<br>Creates a new service account for local development</li><li><strong>google_project_iam_member: local_database_viewer</strong>:<br>Gives the local database SA Project Viewer permissions.</li><li><strong>google_project_iam_member: local_database_sql_client</strong>:<br>Gives the local database SA Cloud SQL Client permissions.</li><li><strong>google_project_iam_member: local_database_sql_viewer</strong>:<br>Gives the local database SA Cloud SQL Viewer permissions.</li><li><strong>google_service_account_key: local_database</strong>:<br>Generates a new SA key to be used in conjunction with local development.</li></ol><p>That’s all the infrastructure we need for GCP. Let’s create our configuration for Bitbucket. All we need to create on Bitbucket is some repository variables for our pipelines. Go ahead and create a file named bitbucket.tf and add the following data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b72d452d20769e3d9d3c77204e44d9a/href">https://medium.com/media/1b72d452d20769e3d9d3c77204e44d9a/href</a></iframe><p>I won’t go into details for each resource here as all we’re creating is a bunch of repository variables and the resources themselves are descriptive enough I feel but if anything is unclear just leave a comment and I will respond.</p><p>Finally, we should to output some values which we’ll need for setting up the rest of our infrastructure later on. Create a file name outputs.tf and add the following data:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eb043c97d3a29282e77aef3a90b330c4/href">https://medium.com/media/eb043c97d3a29282e77aef3a90b330c4/href</a></iframe><p>That’s all our configuration complete! Commit all your latest updates to git and let’s move to the next step.</p><p>If you navigate to your workspace in the Terraform Cloud UI, you should see a plan already running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aA0dckw_Oqs5yLsQn2SNrw.png" /></figure><p>Click on the plan to open it and you should see a screen similar to mine once Terraform has finished planning your infrastructure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ihSNnrrdG_zPGE_c-s5DaA.png" /></figure><p>Go ahead and click Confirm &amp; Apply. Actually provisioning your infrastructure will take around 10 minutes so grab a coffee and put your feet up for a little bit. Once the run is complete you should see some outputs in the Apply tab if it was successful:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OABqsDKcFOynssd7Akv7lw.png" /></figure><p>Congratulations. All your infrastructure has been created. Navigate to your GCP console and open the Cloud Run page. You should see your app and cms services like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wsY8yjCGOYwaK-PJC1-_WQ.png" /></figure><p>Click into either service and open the public URL generated for you. You should see a screen similar to mine in your browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUK5M-Mi_mWuuuCtnhGNqg.png" /></figure><p>If you navigate to the Cloud SQL page within GCP, you should see your database instance that we also spun up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-ZjjAbm0GdBP8KIBICQ3g.png" /></figure><p>We need to update the local database user account we created to limit its privileges so it can only work with the development database. Click the instance and on the next page select Connect using Cloud Shell from the Connect to this instance panel. It should fire up a shell environment for you:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7lQt2SYaJ2QptdVaSNQ36g.png" /></figure><p>Login as the root user and enter the password that was output by Terraform earlier in our setup. Once logged in enter the following query:</p><pre>REVOKE ALL PRIVILEGES, GRANT OPTION FROM local;</pre><p>This will revoke all privileges from our local database user. Next we need to tell the server to reload privileges in the MySQL system schema:</p><pre>FLUSH PRIVILEGES;</pre><p>Then we grant our local user limited permissions for only the development database. This prevents any unwanted disasters happening on the production database:</p><pre>GRANT SELECT, UPDATE, INSERT, DELETE ON development.* TO local;</pre><p>Nice 😎 I remember how good that felt the first time I successfully ran Terraform. The amount of time and effort saved is phenomenal. If you’re spinning up a lot of projects like me, this is a serious productivity booster.</p><h3>Conclusion</h3><p>That’s a wrap for part 2 of the series.</p><p>We’ve managed to set up a GCP project that’s sole purpose is for provisioning infrastructure via Terraform. This project can be used for any projects/resources you create in the future. It has no costs attached so keep it around.</p><p>We’ve also set up a Terraform account, linked our Bitbucket, created a new workspace, and set up all our .tf configuration files. I used Terraforms cloud workflow to manage our workspace instead of their CLI driven workflow. The CLI may be quicker and more intuitive to work from but it’s much easier to manage the cloud workflow within teams.</p><p>I hope you’ve enjoyed this instalment. It may seem like a lot of work now but once you’ve done it once, you’ll never look back. Stick around for part 3 where we’ll configure Docker, Bitbucket pipelines and deploy the first version of our application. See you there and thanks for reading folks.</p><h4><a href="https://scottashmore.medium.com/building-performant-scalable-fully-automated-and-cost-efficient-web-infrastructure-for-2021-90b95c94a8be">Click here for part 3</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=658d029b8a4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Performant, Scalable, Fully Automated, Cost-Efficient Web Infrastructure for 2021 (Part 1)]]></title>
            <link>https://scottashmore.medium.com/building-a-fully-automated-highly-scalable-cost-efficient-and-truly-performant-web-3b3d3ad5a2cf?source=rss-2fe722c3e2e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b3d3ad5a2cf</guid>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[strapi]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Scott Ashmore]]></dc:creator>
            <pubDate>Tue, 05 Jan 2021 17:03:44 GMT</pubDate>
            <atom:updated>2021-01-21T09:42:38.876Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Performant, Scalable, Fully Automated, and Cost-Efficient Web Infrastructure for 2021 (Part 1)</h3><h4>Setting Up Locally</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*635t8i53Ki7fq0QA5ffSqA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@vividcafe">Aleksejs Bergmanis</a> on <a href="https://www.pexels.com/">Pexels</a></figcaption></figure><h3>Welcome!</h3><p>Throughout this series we’ll be setting up the building blocks of what I would consider to be a very robust web development infrastructure. There will be lots of optimisations to be made within each of the technology choices I make but the deeper you go, the more opinionated it becomes. Consider what we build here to be the foundations of a performant, scalable and cost efficient web architecture. Where you take it from there is entirely in your hands. With that in mind, let’s take a look at the technology stack we’ll be using throughout the series:</p><ul><li><a href="https://nextjs.org/"><strong>Next.js</strong></a>: Production ready React framework with hybrid static &amp; server rendering, smart bundling, route pre-fetching, and much more.</li><li><a href="https://strapi.io/"><strong>Strapi</strong></a>: 100% Javascript, fully customisable, developer-first headless content management system.</li><li><a href="https://www.terraform.io/"><strong>Terraform</strong></a>: Open-source infrastructure as code software tool that provides a consistent workflow to manage hundreds of cloud services.</li><li><a href="https://www.docker.com/"><strong>Docker</strong></a>: Provides the ability to package and run applications in a loosely isolated environment called a container.</li><li><a href="https://cloud.google.com/run"><strong>Google Cloud Run</strong></a>: Deploy highly scalable containerised applications on a fully managed serverless platform.</li><li><a href="https://cloud.google.com/sql"><strong>Google Cloud SQL</strong></a>: Fully managed relational database service for MySQL, PostgreSQL, and SQL Server.</li></ul><p>In the first part of this series we’ll be looking at Bitbucket, Strapi, Next.js and Docker Compose. Let’s get started!</p><h3>Bitbucket</h3><p>Let’s get started by setting up the repo where our project will live. We’ll be using Bitbucket since that’s what I use for professional work but this should work with any other service like Github or Gitlab. For the purpose of this article though I recommend using Bitbucket as pipelines configuration differs between services.</p><p>Once you’re logged into Bitbucket, go ahead and create a new repository. I named mine Next Strapi Cloud Run but you can name yours whatever you like. After that, clone the repo to your local machine.</p><p>That’s our repo all setup, now we can move on to the fun stuff.</p><h3>Strapi</h3><p>Strapi is a powerful open source headless CMS with GraphQL functionality built in. I have chosen to use Strapi for its simplicity and flexibility. It also has pretty detailed documentation and probably the nicest UI of all the open source CMS’s I’ve seen so far (imo 😅).</p><p>Before we install Strapi we need to get a mySQL database running on our machine. Thankfully this is pretty trivial with Docker Compose. Make sure you have Docker installed and running on your machine first then go ahead and create a file named docker-compose.yml at the root of your project and populate with the following:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/994ec3efc84724e61a59381acfb52c9a/href">https://medium.com/media/994ec3efc84724e61a59381acfb52c9a/href</a></iframe><p>Here we are just pulling in mySQL version 5.7, setting the credentials for the database and finally mapping the host and container ports. In your terminal navigate to the repo we setup earlier and run:</p><pre>docker-compose up</pre><p>You should see similar to the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8t2zbKmtQwtIa0un0TAMfQ.png" /></figure><p>Now we’re ready to install Strapi!</p><p>Stop mySQL and Adminer by pressing ctrl + c then run the following:</p><pre>npx create-strapi-app cms --quickstart</pre><p>This will create a new directory cms<em>, </em>install all the required dependencies, scaffold a basic Strapi app for us and run the application. Once that’s complete go ahead and stop Strapi running in your terminal.</p><p>We now need to make a few updates to get our mySQL database working with Strapi. In your editor, navigate to cms/config/environments/development, open database.json and update it with the following JSON:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a9a5ad65da0cfca8ed95eb06ade7575/href">https://medium.com/media/8a9a5ad65da0cfca8ed95eb06ade7575/href</a></iframe><p>Let’s update our docker-compose.yml file to include our cms so we can pass these environment variables to our application:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb2365c45fc110583a94d6a86340202f/href">https://medium.com/media/fb2365c45fc110583a94d6a86340202f/href</a></iframe><p>Strapi has a dedicated docker image for running Strapi so that’s what we’ll be using as our image. The rest is all pretty self explanatory: Set the working directory, run Strapi and expose port 1337 (but not before mysql is ready), set our volumes and environment variables. Next we need to install mySQL:</p><pre>cd cms &amp;&amp; yarn add mysql</pre><p>Finally lets enable GraphQL by running strapi install graphql. We’ll be using this to pull content into our Next.js app later on.</p><p>Run docker-compose up again and we should now see our cms running on localhost:1337 with the database all hooked up. Play around to make sure everything is working.</p><p>Create a new Single Type by clicking on the Content-Types Builder cta in the menu. Set the display name as test, add a short text field named title and click save. Now click the newly created Test type that appears in the menu and set the title to Hello Next App and save. Now click Roles &amp; Permissions in the left menu. You should see the Test type with some checkboxes near the bottom right. Check find and click save. Now we can move on to our next piece of the puzzle.</p><h3>Next.js</h3><p>I think most, if not all web developers will have heard of Next.js by now. If you haven’t I strongly recommend you check it out, it’s incredibly powerful. Here is the quote from their homepage:</p><blockquote>“Next.js gives you the best developer experience with all the features you need for production: hybrid static &amp; server rendering, TypeScript support, smart bundling, route pre-fetching, and more. No config needed.”</blockquote><p>It’s very easy to setup so let’s go ahead and get started. In your terminal navigate to the repo we setup earlier and run the following command:</p><pre>npx create-next-app app</pre><p>This will scaffold a fresh Next.js app inside a newly created directory named app<em>. </em>Let’s update our docker-compose.yml file to include the Next.js app:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3beec917ca5d503901741ace4d2b5e2c/href">https://medium.com/media/3beec917ca5d503901741ace4d2b5e2c/href</a></iframe><p>Very similar approach to Strapi but here we also add the .next folder to our volumes and expose the Strapi GraphQL URL as an environment variable. If you run docker-compose up again, you should now see our Next.js app running on localhost:3000.</p><p>Great! Now that we have a simple app running, let’s connect our cms to Next.js. Create a next.config.js file at the root of our app directory where Next.js lives and add the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0af544d65ebb0c95c2454c7bd3e1fa44/href">https://medium.com/media/0af544d65ebb0c95c2454c7bd3e1fa44/href</a></iframe><p>All this does is expose the CMS_GRAPHQL_URL environment variable to the frontend of our Next.js app. Now that we have access to the cms api we need to make some updates to our app so we can pull in the content. First lets install graphql and a library to help us make our GraphQL requests. I will be using <a href="https://github.com/prisma-labs/graphql-request">graphql-request</a>. It’s lightweight and easy to use. Navigate to your <em>app </em>directory in terminal and run the following:</p><pre>yarn add graphql graphql-request</pre><p>Then open app/pages/index.js in your editor and add the following code to the top of your file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b98354beb18b973e0c72b7e3b7d35d8/href">https://medium.com/media/0b98354beb18b973e0c72b7e3b7d35d8/href</a></iframe><p>First we are importing two functions from graphql-request: request and gql. Two simple abstractions that will make our HTTP requests much more succinct and understandable.</p><p>Next we export our getStaticProps function. Inside the function we build our GraphQL query, execute the request and return our props object. Notice the revalidate property. This is one of Next.js’ new and really awesome features: <a href="https://nextjs.org/docs/basic-features/data-fetching#incremental-static-regeneration">Incremental Static Regeneration</a>. I won’t go into the details here but if you’re not familiar with the concept then take a moment to read the link I’ve just shared. It’s a really simple but powerful concept.</p><p>Finally don’t forget to bring the test prop into your actual component and replace the h1 content:</p><pre>Welcome to &lt;a href=&quot;https://nextjs.org&quot;&gt;Next.js!&lt;/a&gt;</pre><p>with the following:</p><pre>{test.title}</pre><p>Let’s run docker-compose up again to check everything is working. If all goes well you should be greeted with a screen like this on localhost:3000:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iEFPEjH-__yU1x3TIUS27w.png" /></figure><h3>Conclusion</h3><p>We’re all done setting up locally now. Push all your updates to Bitbucket and grab a coffee, beer, whiskey or whatever your poison is! There was a lot of information to take in so if anything isn’t clear leave a comment and I’ll respond ASAP! I really hope you enjoyed following along.</p><p>In the next article we’ll be configuring Terraform to help us provision all the infrastructure we need for our applications to run on the web. See you there and thanks for reading!</p><h4><a href="https://scottashmore.medium.com/building-performant-scalable-fully-automated-and-cost-efficient-web-infrastructure-for-2021-658d029b8a4e">Click here for part 2</a></h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b3d3ad5a2cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>