Zum Inhalt springen

Deploying a Sample Retail Store App on Amazon EKS – Step-by-Step Guide

Overview

In this workshop, we will walk through deploying a sample retail store application on Amazon EKS (Elastic Kubernetes Service) using a combination of CloudFormation and Terraform. This guide is divided into logical stages, from setting up foundational infrastructure to running your app on Spot and Graviton instances.

Step 1: Set Up AWS Infrastructure with CloudFormation

We’ll start by using AWS CloudFormation to provision the foundational network infrastructure (VPC, subnets, Internet Gateway, etc.) that EKS requires.

What to do:

  • Create a CloudFormation stack using a predefined template (YAML/JSON)

  • Include resources:

  • VPC

  • Public and Private Subnets

  • NAT Gateways

  • Route Tables

Launching the CloudFormation stack using a predefined template to set up a code-server IDE for the EKS workshop.
Create a Cloudformation stack named eks-workshop-ide

Reviewing permissions and acknowledging IAM capabilities before creating the eks-workshop-ide CloudFormation stack.

CloudFormation stack eks-workshop-ide created successfully with status CREATE_COMPLETE.

The CloudFormation stack will take roughly 5 minutes to deploy, and once completed you can retrieve information required to continue from the Outputs tab:

The IdeUrl output contains the URL to enter in your browser to access the IDE. The IdePasswordSecret contains a link to an AWS Secrets Manger secret that contains a generated password for the IDE.

To retrieve the password open that URL and click the Retrieve button, the password will then be available for you to copy::

Open the IDE URL provided and you will be prompted for the password:

After submitting your password you will be presented with the initial VSCode screen

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert