<?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 Abhijeet Vaidya on Medium]]></title>
        <description><![CDATA[Stories by Abhijeet Vaidya on Medium]]></description>
        <link>https://medium.com/@abhijeet.vaidya?source=rss-cf445b763b00------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*utRJp4n1pAoKfu_U</url>
            <title>Stories by Abhijeet Vaidya on Medium</title>
            <link>https://medium.com/@abhijeet.vaidya?source=rss-cf445b763b00------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:02:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhijeet.vaidya/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[Multistage Deployment in Looker (Dev > Stg > Prod)]]></title>
            <link>https://blog.searce.com/multistage-deployment-in-looker-dev-stg-prod-f2103cbcda5f?source=rss-cf445b763b00------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2103cbcda5f</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[advanced-deploy-mode]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[looker]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Abhijeet Vaidya]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 08:31:23 GMT</pubDate>
            <atom:updated>2022-09-07T08:52:20.168Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>In a traditional development system it is necessary to have separate environments for various stages in the development pipeline. Below are the 3 different environments in Looker which can be as a multi-instance deployment:</p><ul><li>Development: Looker Developers use the development environment to create new Projects, Data Models/codes and Looker Dashboards.</li><li>QA: Also referred to as a test or a staging environment, this is where data validation/UAT is done by the Business Owners / Functional SMEs. This environment is used as a mixing ground for reviewing changes.</li><li>Production: Once the QA is done and is approved by the Stakeholders, the codes/content can be moved to the Production Environment for users. Production is a highly visible environment that deeply impacts reputation and brand name. The production environment should be as free of errors as possible.</li></ul><p><strong>Problem Statement:</strong></p><p>We have 3 different instances for Looker — development, staging &amp; production. Each instance is connected to a different data environment. (For example: development Looker environment is connected to development data source, and so on).</p><p>The goal is to move the LookML code and content developed on Looker development instance to the other instances using GIT. And creating a deployment workflow for the same.</p><p><strong>Solution Architecture:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*7bhawID63FWqHIHE" /></figure><p>Steps to move code &amp; content from Looker Development to Staging/Production instance</p><ol><li>Create the project &amp; the relevant connections in both the instances.</li><li>If there are different versions of the database connected to different instances make sure that the name of the connection remains the same in all 3 instances. The changes in port, host name, etc can be done while creating connections in the different environments.</li><li>Create all the code &amp; content (LookML, models, views, dashboard LookML) in development</li><li>Configure git using SSH mode in both the instances. The deploy key for development will have read &amp; write permissions whereas the deploy key for staging instance will only have read access. This is to make sure no changes can be made in the code from the staging/production instance. All the changes/updates in the code will happen in Development and then it will be moved to the other environments.</li></ol><p>Deploy key for Development</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y-Vqz1WEEVFr_acf" /></figure><p>Deploy key for Staging</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wRa9DFaCM3aeXpeo" /></figure><p>5. The project in the staging instance should be enabled with advanced deploy mode</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bt4FZUeloxaUXIVg" /></figure><p>6. Push all the code &amp; content in the development environment into the master branch following the usual procedure.</p><p>Save changes to the code → Validate LookML → Commit changes &amp; push → Deploy to production</p><p>The master branch will now have the updated code, which can be pushed to the staging environment.</p><p>7. Go to the staging environment where the code needs to be updated from development</p><p>8. Go to the advance deploy option of the project. The screes looks like below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UNK6D5-sHY5n3Cip" /></figure><p>It gives an indication of how behind the staging is from the development. ( In this example staging is 3 commits behind)</p><p>9. Click on Deploy Latest button, which will give an option to</p><p>a. Tag &amp; deploy — Using first option we can tag the latest commit with any relevant text &amp; a small description</p><p>b. Deploy without tagging — Deploy the latest code without any tagging &amp; description.</p><p>10. In the staging instance pull the code using the ‘pull from production’ so that the code is available in the current instance. (If the development is ON and the code needs to be pulled in a personal branch)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dCtpgzpYdZrM9oB7" /></figure><p>Steps to configure Git for Dev/Stg/Prod instances using SSH</p><p>Why SSH mode? <br>- SSH allows us to have different access permissions (read/read-write) for 3 different instances using deploy keys with the same GIT repo. Other available options do not provide such permissions.</p><p>Configure git via SSH mode:</p><ol><li>Create the project and click configure git. It will take you to the following page:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZJj0OViC-0AHGB3e" /></figure><p>2. Create a repository in any git based tool (we are using gitlab in this case). Get the SSH url as per the below screenshot (<em>Clone with SSH</em>) and enter it into the repository URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AHRItRKlthxWReMF" /></figure><p>3. A deploy key will be generated. Copy that key in the Deploy key section of the repository. (Settings → Repository → Deploy Keys) along with the relevant permissions. Normally a read &amp; write and access is given for the key which is to be used in the development instance &amp; only read access for the keys which are to be used in staging &amp; production instances. This is to make sure that any update in the code will happen only via the development instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BtBzgqRdxGkpXjsR" /></figure><p><strong>Conclusion:</strong></p><p>We can move the code &amp; content from one Looker instance to another using GIT and advanced deploy functionality. This process is very useful when the use case involves multiple Looker instances and the requirement is to keep the environments discrete and enable change management seamlessly.</p><p><strong>Useful Documents:</strong></p><p><a href="https://cloud.google.com/looker/docs/version-control-and-deploying-changes#advanced_deploy_mode">Using version control and deploying | Looker | Google Cloud</a></p><p>I would like to give special thanks to <a href="https://medium.com/@pankaj.baliharia">Pankaj Baliharia</a> for his contributions in designing and implementing the above solution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2103cbcda5f" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/multistage-deployment-in-looker-dev-stg-prod-f2103cbcda5f">Multistage Deployment in Looker (Dev &gt; Stg &gt; Prod)</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>