<?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 Pawan Sharma on Medium]]></title>
        <description><![CDATA[Stories by Pawan Sharma on Medium]]></description>
        <link>https://medium.com/@pawansharma_25255?source=rss-eed9feab4819------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p_4POOVZ7P9QQa58ghYevw.png</url>
            <title>Stories by Pawan Sharma on Medium</title>
            <link>https://medium.com/@pawansharma_25255?source=rss-eed9feab4819------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:42:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pawansharma_25255/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[From Localhost to Live on AWS: Deploying Kentico’s Dancing Goat with Docker, Terraform, and GitHub…]]></title>
            <link>https://medium.com/@pawansharma_25255/from-localhost-to-live-on-aws-deploying-kenticos-dancing-goat-with-docker-terraform-and-github-14f129734481?source=rss-eed9feab4819------2</link>
            <guid isPermaLink="false">https://medium.com/p/14f129734481</guid>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[xperience-by-kentico]]></category>
            <category><![CDATA[kentico-developers]]></category>
            <category><![CDATA[aws-ecs-fargate]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Pawan Sharma]]></dc:creator>
            <pubDate>Sun, 26 Jul 2026 17:22:51 GMT</pubDate>
            <atom:updated>2026-07-26T17:36:38.383Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kf-EwppHVGlCdynbl9Zi9w.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><h3>From Localhost to Live on AWS: Deploying Kentico’s Dancing Goat with Docker, Terraform, and GitHub Actions on ECS Fargate</h3><p><em>A hands-on journey (with all the messy parts left in)</em></p><p>I’ve read a lot of “deploy X to AWS” tutorials that make the whole thing look like five clean commands and a green checkmark. This is not that post. This is what actually happened when I took Kentico’s Dancing Goat sample site — the one most Xperience developers have running on localhost at some point — and tried to get it properly live on AWS, with a real CI/CD pipeline behind it.</p><p>Spoiler: it took a lot longer than five commands. I hit a Windows port reservation bug, a SQL Server version mismatch I didn’t see coming, an AWS error message that was flat-out misleading, and a full afternoon lost to an SSM tunnel that just would not forward SQL traffic no matter what I tried. I’m including all of it, because I think the debugging is actually the useful part.</p><p>If you just want the destination: by the end of this, pushing a commit to GitHub builds a Docker image, waits for my manual approval, and deploys straight to a live ECS Fargate service on AWS — database, load balancer, and all of it created by Terraform, destroyable with one command.</p><p>Let’s start from zero.</p><h3>1. Getting Dancing Goat Running Locally</h3><p>If you’ve worked with Xperience by Kentico before, this part is familiar territory — Dancing Goat ships as the reference sample site, and getting it running locally is mostly about making sure your SQL Server instance and connection string line up.</p><p>For me, this meant:</p><ul><li>A local SQL Server instance (I was running SQL Server 2022 — this detail becomes <em>very</em> relevant later, so hold onto it)</li><li>The XbyK-DG-6July.csproj project, targeting .NET 10.0</li><li>A connection string in appsettings.json using Windows Authentication, pointed at my machine (DST-14)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*bYeYr8NIgymkz0Lk5Gu_Ew.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*YYCHr5gowA1J7rkXczMWMg.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><p>Once the database was attached and the connection string was set, I hit F5 in Visual Studio and had both the front end and the admin running locally:</p><pre>http://localhost:58554/<br>http://localhost:58554/admin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYBgeXaXIT59o09vBR30hg.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhD6gKvXS7ZYEsrOJqM7dg.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FGQzhIGdkOc8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DGQzhIGdkOc8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FGQzhIGdkOc8%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f692284d8fccd852d06eb32086528729/href">https://medium.com/media/f692284d8fccd852d06eb32086528729/href</a></iframe><p>Nothing fancy here — this is the baseline every Kentico developer starts from. The real work begins once you try to take this off your machine.</p><h3>2. Containerizing It: Docker on Local</h3><p>Here’s where I made my first real decision that mattered: <strong>don’t over-engineer the Dockerfile.</strong></p><p>Visual Studio actually generates a perfectly good multi-stage Dockerfile the moment you add Docker support to the project — it handles the SDK build stage, the publish stage, and the final runtime image. My first instinct was to bolt a Node.js/Grunt asset-build stage on top of it, because I assumed the front-end CSS/JS was compiled from source.</p><p>It wasn’t. A quick look at Solution Explorer showed wwwroot already had fully-built Content/Bundles, Content/Styles, and Scripts folders checked directly into the project — no build step needed. So I threw away the Grunt stage and kept Visual Studio&#39;s original Dockerfile untouched:</p><p>dockerfile</p><pre>FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base<br>USER $APP_UID<br>WORKDIR /app<br>EXPOSE 8080</pre><pre>FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build<br>ARG BUILD_CONFIGURATION=Release<br>WORKDIR /src<br>COPY [&quot;XbyK-DG-6July.csproj&quot;, &quot;.&quot;]<br>RUN dotnet restore &quot;./XbyK-DG-6July.csproj&quot;<br>COPY . .<br>WORKDIR &quot;/src/.&quot;<br>RUN dotnet build &quot;./XbyK-DG-6July.csproj&quot; -c $BUILD_CONFIGURATION -o /app/build</pre><pre>FROM build AS publish<br>ARG BUILD_CONFIGURATION=Release<br>RUN dotnet publish &quot;./XbyK-DG-6July.csproj&quot; -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false</pre><pre>FROM base AS final<br>WORKDIR /app<br>COPY --from=publish /app/publish .<br>ENTRYPOINT [&quot;dotnet&quot;, &quot;XbyK-DG-6July.dll&quot;]</pre><p><strong>Lesson one: less is more.</strong> Adding complexity you don’t actually need just gives you more surface area for things to break later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5CLXxZ6Xi3CX-DiFo-oXA.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><h3>The port 8080 mystery</h3><p>First bump, and a genuinely funny one: docker run -p 8080:8080 dancing-goat failed with:</p><pre>Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:8080 -&gt; 0.0.0.0:0</pre><p>Turns out <strong>Windows reserves ranges of ports for Hyper-V/WSL2</strong>, and 8080 fell inside one of those reservations. Docker itself had nothing wrong with it — Windows just wouldn’t let anything bind to that port. The fix was almost embarrassingly simple: map to a different host port.</p><p>bash</p><pre>docker run -p 8990:8080 dancing-goat</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b5CLXxZ6Xi3CX-DiFo-oXA.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><h3>Connecting the container to my local database</h3><p>This is where it got genuinely educational. My local connection string used Integrated Security=True — Windows Authentication. From inside a Linux container, there&#39;s no such thing as Windows Authentication. I had to:</p><ol><li>Enable SQL Server + Windows Authentication mode on my local SQL Server (not just Windows-only)</li><li>Create a dedicated SQL login for the app</li><li>Open port 1433 through Windows Firewall</li><li>Swap Data Source=DST-14 for host.docker.internal (the special hostname a container uses to reach its host machine)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DbyTCF3SS1I0hwBol9K1xw.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><p>Once all four pieces were in place, the container connected cleanly and Dancing Goat came up — proof that the image itself worked, completely independent of any cloud infrastructure. This “prove it locally first” instinct saved me a huge amount of debugging time later, because every problem after this point was isolated to <em>AWS specifically</em>, not the app or the container.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9FOkNuitmFE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9FOkNuitmFE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9FOkNuitmFE%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0006f6a401f2fc9910fa0cb0ed0e54c0/href">https://medium.com/media/0006f6a401f2fc9910fa0cb0ed0e54c0/href</a></iframe><h3>3. AWS Deployment Options — And Why I Picked ECS Fargate</h3><h4>Before writing a single line of infrastructure code</h4><p>It’s worth actually laying out what your real options are for hosting a .NET app like this on AWS:</p><p><strong>EC2 + IIS</strong><br>Full manual VM — install IIS yourself, deploy like it’s 2015.<br><em>Verdict:</em> Total control, but you own OS patching, IIS config, and scaling forever. No thanks for something meant to stay maintainable.</p><p><strong>Elastic Beanstalk</strong><br>AWS’s managed PaaS for .NET.<br><em>Verdict:</em> Fast to stand up, genuinely good for a first deploy — but it hides infrastructure in ways that make debugging harder, and doesn’t give a clean path to a real multi-environment CI/CD setup.</p><p><strong>ECS on Fargate</strong><br>Serverless containers — no EC2 instances to manage at all.<br><em>Verdict:</em> Environment parity with local Docker, a real scaling story, and it plays perfectly with a CI/CD pipeline.</p><p><strong>EKS (Kubernetes)</strong><br>Full container orchestration.<br><em>Verdict:</em> Overkill for a single-service demo like this — Kubernetes’ complexity buys you nothing here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Kxgv48p4bSREksqUK69_pg.png" /><figcaption>Cloud With Pawan</figcaption></figure><p><strong>Why ECS Fargate won for me:</strong></p><ul><li>What runs locally in Docker is <em>nearly identical</em> to what runs in the cloud — I’d already proven the image worked, and Fargate just runs that same image</li><li>No servers to patch or maintain</li><li>Scaling is just “add another task,” not capacity planning</li><li>It’s the natural target for a GitHub Actions pipeline — build image, push, deploy, done</li></ul><p>Elastic Beanstalk would’ve gotten me a working demo faster on day one, but I’d have hit a wall the moment I wanted a real CI/CD pipeline with infrastructure-as-code behind it. Fargate cost me a bit more setup time up front and paid for it immediately once the pipeline came together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*82fXsIlH_ofpOcUvukqD3A.png" /><figcaption>Cloud With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HuWwiHG_UqtfStD3gIy5fQ.png" /><figcaption>Cloud With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rAAs484tFxQFtCSDnudR6Q.png" /><figcaption>Cloud With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sfWh9EjyQlqRnIkiLlIgng.png" /><figcaption>Cloud With Pawan</figcaption></figure><h3>4. Terraform, Not CloudFormation — Here’s Why</h3><p>This is a genuine “it depends” decision, and I want to be honest that CloudFormation isn’t <em>wrong</em> — it’s native to AWS, no extra tooling to install, and AWS manages the state for you.</p><p>I picked <strong>Terraform</strong> for one concrete reason specific to this project: <strong>Dancing Goat’s media library uses Azure Blob Storage</strong> (kentico.xperience.azurestorage was already referenced in the .csproj), even though the compute runs on AWS. Terraform can manage resources across <em>both</em> clouds in the same codebase. CloudFormation is AWS-only — it literally cannot touch Azure. If I ever wanted the media storage managed as code too, Terraform was the only option that could do both halves.</p><p>Beyond that specific reason, Terraform’s HCL syntax is genuinely more readable than CloudFormation’s YAML once your stack has more than a handful of resources, and the community/example base for “ECS + RDS + ALB” patterns specifically is much larger for Terraform.</p><h3>What Terraform actually built</h3><p>Everything — and I mean everything — except two one-time manual bootstrap steps:</p><ul><li><strong>VPC</strong> with public and private subnets across two AZs</li><li><strong>NAT Gateway</strong> for private subnet internet egress</li><li><strong>Security groups</strong> for the ALB, the app, and the database, each scoped to only talk to what it needs to</li><li><strong>RDS SQL Server instance</strong> (more on this in a second)</li><li><strong>ECR repository</strong> for the Docker image</li><li><strong>ECS cluster, task definition, and service</strong></li><li><strong>Application Load Balancer</strong> with target group and listener</li><li><strong>IAM roles</strong> for the ECS execution and task roles</li><li><strong>Secrets Manager</strong> entry for the database connection string</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/1*eZKc0HVCAY4ez1gzE04ziw.png" /><figcaption>Cloud With Pawan</figcaption></figure><p>The only two things done manually, once, before Terraform could even run: the S3 bucket + DynamoDB table that hold Terraform’s own state file, and the GitHub OIDC role that lets GitHub Actions authenticate to AWS without ever storing a long-lived access key.</p><h3>The RDS saga (this deserves its own section, honestly)</h3><p>I wanted the cheapest viable database option since this is a demo — db.t3.micro. Here&#39;s where things got genuinely twisty:</p><ol><li><strong>SQL Server Standard Edition doesn’t offer </strong><strong>db.t3.micro in Mumbai (</strong><strong>ap-south-1)</strong> — only larger, pricier classes like db.m5.large. Switching to <strong>SQL Server Express Edition</strong> (sqlserver-ex) unlocked the cheap burstable classes.</li><li>Then RDS rejected my chosen engine version with a <em>specific</em> instance-class incompatibility error — turns out not every engine version supports every instance class, even within the same edition. Had to query AWS directly for which versions actually support db.t3.micro.</li><li>Then, after successfully restoring my local backup… <strong>it failed.</strong> The error was refreshingly precise: my local SQL Server was version 16.00 (SQL Server 2022), and RDS was running 15.00 (SQL Server 2019). <strong>You cannot restore a backup onto an older SQL Server version than it was created on.</strong> I had to upgrade the RDS instance to SQL Server 2022 — which meant a major version upgrade, a new option group (option groups are tied to major version), and re-attaching the whole thing.</li></ol><p>I won’t pretend this was fun in the moment, but it’s a genuinely good lesson: <strong>check your local SQL Server version before you build your RDS instance</strong>, not after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eFZlYBjtiiDUK2cQ-d1bLg.png" /><figcaption>Cloud With Pawan</figcaption></figure><h3>The SSM tunnel rabbit hole</h3><p>Since I’d set RDS to publicly_accessible = false for security (as you should), I needed a way to actually get my local backup <em>into</em> RDS for the initial restore. I tried:</p><ol><li>Making RDS temporarily public — hit DNS propagation delays and subnet routing dead ends (a private subnet with only a NAT gateway route has no <em>inbound</em> path from the internet, even with a public IP assigned)</li><li>An AWS Systems Manager Session Manager port-forwarding tunnel through a tiny bastion EC2 instance — this is the “correct” way to do it without exposing RDS publicly at all</li></ol><p>The tunnel <em>looked</em> like it was working (accepted connections, listening on the local port) but the actual SQL Server handshake kept timing out. After a lot of back-and-forth, I gave up on debugging the tunnel itself and instead <strong>ran the restore command directly from inside the bastion instance</strong> via SSM Run Command — completely bypassing the tunnel and my local machine’s networking. That’s what finally worked.</p><p>The honest lesson here: sometimes the “proper” solution (the tunnel) isn’t worth chasing when a more direct one (running the command on the remote machine itself) gets you there faster. Don’t be precious about the elegant solution if the pragmatic one works.</p><h3>5. Building the GitHub Actions Pipeline</h3><p>Once the infrastructure and the app were both proven to work manually, it was time to stop doing everything by hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5iF6dcf1VXS57pGp3gAQQ.png" /><figcaption>Cloud With Pawan</figcaption></figure><h3>Repo setup</h3><p>Private repo to start (sensible default — you don’t want your Dockerfile, task definitions, or AWS account structure public by accident). I later made it public specifically to unlock GitHub’s free-tier “Required reviewers” approval gate, since that feature is Enterprise-only for private repos on lower plans. Worth knowing before you assume approval gates are free everywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*DCmH8grC2MUNXQOePcfQbw.png" /><figcaption>Cloud With Pawan</figcaption></figure><h3>Authentication: OIDC, not access keys</h3><p>Rather than storing long-lived AWS credentials as GitHub secrets, I set up an <strong>OIDC identity provider</strong> so GitHub Actions gets a short-lived, scoped token per run. This required:</p><ol><li>Creating the OIDC provider in AWS (one-time)</li><li>Creating an IAM role with a trust policy scoped to my exact repo and branch</li><li>A gotcha I didn’t expect: jobs using a GitHub environment: block (for the approval gate) send a <em>different</em> sub claim format than regular jobs — I had to update the trust policy to allow both patterns</li></ol><h3>The pipeline itself</h3><pre>push to main<br>  → terraform plan (dry run only)<br>  → ⏸ manual approval required<br>  → terraform apply<br>  → build &amp; push Docker image (tagged with commit SHA, never :latest)<br>  → Xperience CD restore (structural content sync)<br>  → deploy to ECS</pre><h3>The plumbing bugs (there are always plumbing bugs)</h3><ul><li>GitHub’s $GITHUB_OUTPUT mechanism chokes on multi-line JSON — fixed by piping through jq -c . to compact everything onto one line before writing it out</li><li>PowerShell’s line-continuation backticks kept getting mangled on copy-paste, which broke several AWS CLI commands with baffling parser errors — switching to single-line commands or writing JSON payloads to files first (file://payload.json) sidestepped this entirely</li></ul><h3>The Xperience CI vs. CD lesson</h3><p>I genuinely conflated these two features at first. <strong>Continuous Integration (CI)</strong> is for keeping <em>developer</em> databases in sync with each other via a CIRepository folder. <strong>Continuous Deployment (CD)</strong> is a separate feature, with its own config and its own CDRepository folder, meant for pushing structural changes (page types, content types, forms) between <em>environments</em>. I had only set up CI, which is why my first several attempts at --kxp-cd-restore failed with &quot;unknown option&quot; — the CD repository simply didn&#39;t exist yet.</p><p>Once I ran the actual CD-specific steps —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*COubNg7DuZ2vf84xW_GS1g.png" /><figcaption>Cloud With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a51ZVMAyiABRzEZDO0Ibhg.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><p>bash</p><pre>dotnet run --no-build -- --kxp-cd-config --path &quot;.\App_Data\CDRepository\repository.config&quot;<br>dotnet run --no-build -- --kxp-cd-store --repository-path &quot;.\App_Data\CDRepository&quot;</pre><p>— and confirmed the restore command worked locally first, the pipeline’s CD step started working too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wpjj_sCvSt6aHbxbPOMQdA.png" /><figcaption>Cloud With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1wdOEKKFWI33Bp46A-iDwg.png" /><figcaption>Cloud With Pawan</figcaption></figure><h3>6. The Deployment Model: Single Branch, With a Real Approval Gate</h3><p>I originally planned a full dev/main two-branch setup — developers push to dev and get an automatic deploy to a dev environment, then merging to main triggers a gated deploy to production.</p><p>For this project specifically, I simplified to a <strong>single branch with a single environment</strong>, because:</p><ul><li>It’s a demo, not a team project with multiple concurrent developers</li><li>Every environment doubles your RDS instances, Terraform state, and things that can silently drift out of sync</li><li>The core safety property I actually wanted — <em>nothing reaches AWS without a human approving it</em> — doesn’t require two environments to achieve. One branch, one pipeline, one manual approval gate via GitHub’s environment protection rules, gets you the same guarantee with a fraction of the moving parts.</li></ul><p>If this project ever grows into something with real content editors and multiple developers working independently, that’s the trigger to introduce a second environment — and the module structure is already set up to support that split without a rewrite, just an addition.</p><h3>7. Tear It All Down (And Bring It Back) With One Command</h3><p>Because everything AWS-side is Terraform-managed, the entire stack — VPC, RDS, ECS, ALB, IAM roles, everything — comes down with:</p><p>bash</p><pre>terraform destroy -var=&quot;db_password=...&quot;</pre><p>And back up again with:</p><p>bash</p><pre>terraform apply -var=&quot;db_password=...&quot;</pre><p>Two things stay put across a destroy/recreate cycle, deliberately: the S3 bucket + DynamoDB table holding Terraform’s own state, and the GitHub OIDC IAM role — both created manually, once, and both things Terraform can’t manage since they’re what it depends on to function at all.</p><p>Worth knowing: every fresh apply gives you a <strong>new</strong> RDS endpoint and a <strong>new</strong> ALB DNS name. Without a custom domain via Route 53, you&#39;re grabbing a fresh URL from terraform output each time.</p><h3>What I’d Tell Past-Me Before Starting This</h3><ul><li><strong>Check your local SQL Server version against what RDS actually offers</strong> before you build anything — this alone would have saved an entire afternoon.</li><li><strong>Prove every layer locally before automating it.</strong> Docker locally, then Docker against a real database, then one manual cloud deployment, <em>then</em> the pipeline. Every time I skipped this discipline, I paid for it in confused debugging later.</li><li><strong>Read the actual error message twice before acting on it.</strong> AWS’s “you cannot move to a subnet group in the same VPC, use a different VPC” error was genuinely backwards-sounding, and cost real time before I traced it to an actual transcription typo on my end.</li><li><strong>Terraform drift is real.</strong> A rule I added manually via the CLI (outside Terraform) got silently wiped the next time I ran apply, because Terraform didn&#39;t know about it and &quot;corrected&quot; my infrastructure back to match the code. Once something&#39;s Terraform-managed, everything about it needs to go through Terraform — no exceptions, no quick manual patches.</li></ul><p>That’s the whole journey, warts and all. If you’re doing this yourself, I hope the specific error messages in here save you the hour or two it cost me to figure out what they actually meant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4Hox7lu4fYdpJqkv-vlvQ.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G3ArYE-tQDKEwQQNP1-nGg.png" /><figcaption>Xperience by Kentico With Pawan</figcaption></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVY7bZm07tnQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVY7bZm07tnQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVY7bZm07tnQ%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8f0b5443c7a836eb37125720b323bfa0/href">https://medium.com/media/8f0b5443c7a836eb37125720b323bfa0/href</a></iframe><p>As you can see, I can’t run front end because we are using evaluation key not a registered key but we are able to access back end.</p><p>If you any one need any type of help, if you need my repo access — Let me know. I will connect or I will share.</p><p>Thanks…. See you in next Blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14f129734481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating Media Libraries to Content Hub in Xperience by Kentico — A Hands-On Project Case Study]]></title>
            <link>https://medium.com/@pawansharma_25255/migrating-media-libraries-to-content-hub-in-xperience-by-kentico-a-hands-on-project-case-study-84b9a6bdc516?source=rss-eed9feab4819------2</link>
            <guid isPermaLink="false">https://medium.com/p/84b9a6bdc516</guid>
            <dc:creator><![CDATA[Pawan Sharma]]></dc:creator>
            <pubDate>Mon, 17 Nov 2025 16:28:26 GMT</pubDate>
            <atom:updated>2025-11-17T16:28:26.459Z</atom:updated>
            <content:encoded><![CDATA[<h3>Migrating Media Libraries to Content Hub in Xperience by Kentico — A Hands-On Project Case Study</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*fndHAU1a2Q_VFl7Xr52FJQ.png" /><figcaption>Xperience by Kentico</figcaption></figure><p>Yesterday, I completed a Media Library migration to Content Hub in a project, and I thought it would be great to share the complete experience here.</p><p><strong>As most of you already know, Media Libraries have been officially sunset in Xperience by Kentico. Their related API members are now marked as obsolete, and support will end on July 24, 2026. After that date, the entire feature and associated APIs will be removed.</strong></p><p>If your project still relies on Media Libraries, it’s the right time to start planning your migration. In our case, the client’s application was still using Media Libraries extensively, so we took the opportunity to move everything to Content Hub and adopt Content Item Assets, which is now the recommended and future-ready approach for managing media files in <strong>Kentico</strong>.</p><h3>Why the Migration Was Needed</h3><p>Media Libraries have been around for years and served their purpose well. However, they were tightly coupled with legacy APIs and didn’t align with Kentico’s new <strong>content modeling approach</strong>.</p><p>Content Hub, on the other hand, provides a <strong>centralized and structured way</strong> to manage all your digital assets. It offers:</p><ul><li>A more flexible content model</li><li>Better metadata and permissions handling</li><li>Integration with modern workflows</li><li>Long-term compatibility with Kentico’s evolving architecture</li></ul><p>For our project, moving to Content Hub was not only about compliance but also about future-proofing the solution.</p><h3>Migration Overview</h3><p>The migration process was smoother than I expected — thanks to Kentico’s built-in Media Library Migration Tool.</p><p>Here’s the overall process we followed:</p><p><strong>1. Migrate Media Library files to Content Hub</strong><br> <strong>2. Create a database backup</strong> <br> <strong>3. Set up the local development environment</strong><br> <strong>4. Migrate fields referencing media files</strong><br> <strong>5. Update the codebase</strong><br> <strong>6. Deploy changes</strong><br> <strong>7. Delete old Media Libraries</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*slQqGdlUcLSCER1J.png" /></figure><p>Let me walk you through each phase in more detail.</p><h3>Step 1 — Migrate Media Library Files to Content Hub</h3><p>This is the main step where all your existing media library files get converted into Content Item Assets.</p><p>Once I opened the <strong>Media Libraries</strong> application, I used the new migration option. When you click “Migrate Media Libraries”, Kentico creates a workspace named “<strong>Migration from Media Libraries</strong>” in the <strong>Content Hub</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*I5BNouB55H9zN141.png" /></figure><p>Here’s what I really liked:</p><p>The <strong>folder hierarchy</strong> is fully preserved (e.g., a file in ~/AcmeLibrary/Icons/ stays under the same structure in Content Hub).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*EvXlLCi9JowayLKI.png" /></figure><p>All <strong>GUIDs, custom fields, and system fields</strong> remain intact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*sS4W_7AHtc2D4u54.png" /></figure><p>Permissions from the original media libraries automatically carry over.</p><p>Also, this is a <strong>non-destructive migration</strong> — meaning the original files remain in place, so nothing breaks during the process.</p><p>Once the migration finished, I verified the logs in the <strong>Event Log</strong> and confirmed everything migrated successfully.</p><h3>Step 2 — Create a Database Backup</h3><p>After completing the migration, I immediately took a <strong>full database backup</strong> of the environment.</p><p>This is an important step — it ensures you can safely roll back if anything goes wrong during later steps like field or code migration. I also implemented a short content freeze to prevent users from uploading new files during this phase.</p><h3>Step 3 — Set Up the Development Environment</h3><p>Next, I restored the backed-up database in my local environment to mirror the client’s production setup. This allowed me to run all migration scripts safely and test changes before pushing anything live.</p><h3>Step 4 — Migrate Fields Referencing Media Files</h3><p>This part required some command-line work. Kentico provides a <strong>.NET CLI script</strong> that migrates database definitions of fields referencing media files.</p><p>All fields of type Media files were updated to the new <strong>Pages and Reusable Content data type</strong>, and the Media file selector was replaced by the <strong>Combined Content Selector</strong>.</p><p>The best part is — the script is <strong>re-runnable</strong>, so if any field fails to migrate due to a naming conflict or schema issue, it logs an error and continues safely.</p><p>To run the migration, I used:<br> dotnet run --kxp-migrate-media-file-fields</p><p>This step ensures that all database-level references to media files now correctly point to Content Item Assets.</p><h3>Step 5 — Update the Codebase</h3><p>Now came the manual part — updating the code to remove references to obsolete APIs.</p><p>Here are a few key changes we made:</p><p>Old API New Replacement Notes MediaFileInfo Generated model of content type The content type must include a content item asset field. MediaLibraryInfo ContentFolderInfo Represents folders inside Content Hub. IInfoProvider&lt;MediaFileInfo&gt; IContentItemManager Used for programmatically managing content items. AssetSelectorComponent ContentItemSelectorComponent Updated UI form component for asset selection.</p><p>Some APIs like IMediaFileUrlRetriever and IMediaProtectionService don’t have direct replacements, but we implemented custom logic for asset URLs and resizing where needed.</p><h3>Step 6 — Deploy Changes</h3><p>After successfully migrating data and updating the code, we deployed the changes to the client’s environment.</p><p>We excluded the temporary <strong>MediaLibrariesMigration.MigratedMediaFile</strong> content type from the deployment package and ensured the Continuous Deployment restore mode was set to CreateUpdate.</p><p>Everything worked as expected on the first deployment — always a good feeling!</p><h3>Step 7 — Delete Old Media Libraries</h3><p>Once we verified all assets were functional and no broken links existed, we deleted the original <strong>Media Libraries</strong> from the environment.</p><p>I also updated the <strong>Role Management</strong> settings to remove permissions for the Media Libraries application, preventing any new legacy libraries from being created accidentally.</p><h3>Redirects and URLs</h3><p>Kentico does a great job handling redirects automatically.<br> All old <strong>~/getmedia/…</strong> links are redirected to the new <strong>~/getcontentasset/…</strong> URLs.</p><p>Important note: direct path URLs like <strong>~/AcmeLibrary/coffee.png</strong> don’t get redirected, so we ensured no references relied on those patterns.</p><h3>Conclusion</h3><p>Overall, the <strong>Media Library to Content Hub migration</strong> was straightforward and well-supported.</p><p>It’s clear that Kentico is moving towards a <strong>modern, flexible, and content-first architecture</strong>, and this migration is an important step in that direction.</p><p>If you’re still using Media Libraries, I’d strongly recommend starting the migration early. It’s not just about compliance with the July 2026 deadline — it’s also about unlocking a more powerful and scalable way to manage assets.</p><p>This migration gave me hands-on experience with Kentico’s latest content architecture, and I must say — it’s a big leap forward for content management in Xperience.</p><p>Happy Learning…..See You Soon<br>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84b9a6bdc516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Autocomplete to Autonomy: Kiro and the Evolution of AI IDEs]]></title>
            <link>https://medium.com/@pawansharma_25255/from-autocomplete-to-autonomy-kiro-and-the-evolution-of-ai-ides-e3f1aca0750c?source=rss-eed9feab4819------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3f1aca0750c</guid>
            <dc:creator><![CDATA[Pawan Sharma]]></dc:creator>
            <pubDate>Wed, 08 Oct 2025 09:47:46 GMT</pubDate>
            <atom:updated>2025-10-08T09:47:46.330Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Y9KhVU2HL9lMcSgrk4PATQ.jpeg" /></figure><p>In today’s rapidly evolving software development landscape, artificial intelligence is stepping out of the role of <em>mere assistant</em> and into the role of <em>collaborator</em>. While tools like GitHub Copilot have impressed developers with predictive autocomplete and handy code snippets, what if your AI partner could actually understand your end goal, traverse your entire project, debug, refactor, and deliver features across files — all without micromanagement?</p><p>That’s the vision — and reality — of <strong>Kiro</strong>, AWS’s experimental, agentic AI-powered IDE. Think of it not as a fancy autocomplete, but as a goal-driven junior developer built into your local workspace.</p><h3>What Makes Kiro Agentic?</h3><p>“<strong>Agentic</strong>” is the keyword that sets Kiro apart. Unlike traditional coding AI that responds only to direct prompts, Kiro operates with autonomous, goal-oriented reasoning. This means you can describe a complete feature — for instance, <em>“</em><strong><em>Add user authentication</em></strong><em>”</em> — and Kiro will open the relevant files, implement the functionality, adjust configurations, and present all the changes for your review.</p><p>Rather than spoon-feeding single code snippets, Kiro handles multi-step tasks, interpreting your intent and working until the goal is achieved.</p><h3>How Kiro Stands Apart from Copilot</h3><p>GitHub Copilot shines as an inline suggestion engine, predicting what comes next — word by word, line by line. But it lives inside the confines of a single file’s immediate context.</p><p><strong>Kiro’s approach is broader and deeper:</strong></p><ul><li>Goal-Oriented Development — You describe the end-state; Kiro handles the journey.</li><li>Multi-File Intelligence — Analyzes and edits multiple files simultaneously for truly end-to-end feature delivery.</li><li>Transparent Actions — Every proposed change appears in a task panel for explicit approval.</li><li>Autonomous Reasoning Loops — Plans, executes, validates, and iterates until the request is complete.</li></ul><p>In short, Copilot is autocomplete, Kiro is a task-executing teammate.</p><h3>Key Capabilities</h3><p>Kiro’s feature set goes far beyond basic code generation:</p><ul><li><strong>Full-Stack Feature Development —</strong> Add APIs, integrate UI changes, modify backend logic with context awareness.</li><li><strong>Code Refactoring —</strong> Improve readability, reorganize logic, and clean legacy codebases.</li><li><strong>Explain and Document —</strong> Get human-readable explanations of functions, modules, or architectural patterns.</li><li><strong>Debugging with Context —</strong> Provide logs or error output; Kiro traces causes and proposes fixes.</li><li><strong>Follow-Up Iterations —</strong> Chain commands and build progressively on earlier steps.</li><li><strong>Extensibility via MCP —</strong> Integrate other AI agents or tools with the Model Context Protocol.</li></ul><h3>The Engine Under the Hood</h3><p>Kiro functions on a deliberate design philosophy:</p><ul><li><strong>Agentic Reasoning Loop —</strong> Structured cycles of planning, execution, and evaluation.</li><li><strong>Local Context Awareness —</strong> Deep integration with MCP and Language Server Protocol for real-time code comprehension.</li><li><strong>Security &amp; Privacy by Design —</strong> Tasks execute locally; no code leaves your machine unless you permit it.</li><li><strong>Integration with Amazon Q —</strong> Enhanced analysis and assistance if you connect via AWS Builder ID.</li></ul><h3>Why Developers Should Care</h3><p>Every developer knows the pain of context switching — hopping between files, deciphering legacy logic, or trawling documentation. Kiro reduces this overhead, letting you concentrate on <em>what</em> needs building, not <em>how to stitch every piece together</em>.</p><p>For large-scale projects or unfamiliar codebases, Kiro becomes a catalyst for faster onboarding, more confident changes, and streamlined delivery.</p><h3>Current Status and Language Support</h3><p>Kiro is in preview and actively evolving. At present, it supports Python and JavaScript, with more languages on the horizon. You can run it locally by setting up the MCP environment and linking it to your project directory — no mandatory cloud dependency.</p><h3>Getting Started with Kiro</h3><ol><li>Visit <a href="https://kiro.dev/"><strong>Kiro’s Official Site</strong></a> and download the appropriate installer for your OS.</li></ol><figure><img alt="Kiro" src="https://cdn-images-1.medium.com/max/800/0*20TYp-Z2ItC2UK6a.png" /></figure><p><strong>2. Download the Installer.</strong></p><p>Click on the <strong>Download</strong> button based on the operating system you are using. In this example, we are using <strong>Windows</strong>, so we download the Windows executable (.exe) file.</p><p>Once downloaded, run the installer, click through the setup steps, and complete the installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/0*mxU6A8a5sGeGQVoi.png" /></figure><p>3. <strong>Sign up for Kiro.</strong></p><p>After the installation is complete, Kiro will prompt you to sign up. You can choose from multiple sign-in options. In this case, we are using <strong>AWS Builder ID</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/0*XdLTAnOWZXybLTvc.png" /></figure><p><strong>4. Benefit of Using AWS Builder ID</strong></p><p>Signing in with <strong>AWS Builder ID</strong> unlocks direct integration with <strong>Amazon Q</strong> within Kiro. If you have access to the <strong>Amazon Q Pro version</strong>, it can significantly enhance your experience by offering deeper code analysis, explanations, and agentic assistance during development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*TO4X_zS83NuHt_WY.png" /></figure><p><strong>5. Import Existing VS Code Configuration (Optional)</strong></p><p>Next, Kiro gives you the option to import your existing <strong>VS Code settings and configurations</strong>. This can include themes, extensions, and preferences. For this guide, we are skipping this step and proceeding with the default settings.</p><figure><img alt="Kiro" src="https://cdn-images-1.medium.com/max/594/0*oIVnC6jLgpo_emlx.png" /></figure><p><strong>6. Complete Setup</strong></p><p>Once you finish the onboarding steps, Kiro is ready to use. You have now successfully installed and configured the <strong>Kiro IDE</strong>.</p><figure><img alt="Kiro" src="https://cdn-images-1.medium.com/max/800/0*aXLXj8KgFCDSGEeZ.png" /></figure><h3>Documentation and Resources</h3><p>You can explore more features, updates, and usage examples from the official <a href="https://kiro.dev/">KIRO</a>.</p><p>Happy Learning! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3f1aca0750c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A robust solution for managing and resolving conflicts in within Visual…]]></title>
            <link>https://medium.com/@pawansharma_25255/a-robust-solution-for-managing-and-resolving-conflicts-in-within-visual-7b6b726e50da?source=rss-eed9feab4819------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b6b726e50da</guid>
            <dc:creator><![CDATA[Pawan Sharma]]></dc:creator>
            <pubDate>Thu, 11 Apr 2024 17:36:35 GMT</pubDate>
            <atom:updated>2024-04-11T17:40:11.561Z</atom:updated>
            <content:encoded><![CDATA[<h3>A robust solution for managing and resolving conflicts in NuGet package dependencies within Visual Studio</h3><p>Today I got a project in .net core for upgrading the version from .net 6 to 8 and I was super excited but when I set up the project on my system, I found the complexity of the project.</p><p>There are 8–10 projects and references to each other’s. I started to work on upgradation. I was happy because I had done my job (.Net 6 to 8) but when I built the project then lots of errors are there regarding conflicts of dependencies,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*8vs-ukl1_X_GLrjAwWyzTw.png" /></figure><p>So, I started to resolve it one by one but when I built the project again then errors of conflict increased more. I spent much more time to resolve the issues but not succeed then I found <a href="https://marketplace.visualstudio.com/items?itemName=vsext.NuGetSolver"><em>NuGetSolver</em></a> to resolve this issue. I downloaded the extension from VS Marketplace. <a href="https://marketplace.visualstudio.com/items?itemName=vsext.NuGetSolver">NuGetSolver</a> is a powerful Visual Studio extension designed to help you tackle NuGet dependency conflicts with ease.</p><p>I run the tool from the “Solution Explorer” by right-clicking and selecting “Resolve Dependency Conflicts”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/184/1*Kxr0jpInqwz6gg9TIYfegg.png" /></figure><p>You can run the tool even if your solution doesn’t have any dependency conflicts at the moment. It will upgrade your dependencies while keeping the changes minimal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*fGVZYSsU88UrJmZTgCOxPQ.png" /></figure><p>Thanks, See you in next blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b6b726e50da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>