Continue writing exercise 2.

This commit is contained in:
2023-12-19 16:21:01 +13:00
parent 2d74d995c5
commit 12c5ea4c9a
5 changed files with 25 additions and 16 deletions

View File

@ -17,16 +17,14 @@ There are of course many different options for installing OpenShift in a restric
**Let's get started!** **Let's get started!**
## 1.1 - Obtaining your aws account ## 1.1 - Obtaining your environment
To get underway open your web browser and navigate to the workshop login page https://demo.redhat.com/workshop/enwmgc. To get underway open your web browser and navigate to the etherpad link to reserve yourself a user [insert etherpad link here]. You can reserve a user by noting your name or initials next to a user that has not yet been claimed.
Once the page loads you can login with the details provided by your workshop facilitator. Once logged in you will see your aws environment details.
<Zoom> <Zoom>
|![workshop](/workshops/static/images/disconnected/workshop.png) | |![workshop](/workshops/static/images/disconnected/etherpad.gif) |
|:-----------------------------------------------------------------------------:| |:-----------------------------------------------------------------------------:|
| *Workshop login page* | | *Etherpad collaborative editor* |
</Zoom> </Zoom>
@ -36,11 +34,7 @@ Throughout the remainder of the workshop you will be using a number of command l
To save you from needing to install or configure these tools on your own device for the remainder of this workshop a web terminal will be available for you. To save you from needing to install or configure these tools on your own device for the remainder of this workshop a web terminal will be available for you.
Simply copy the link below and paste into your browser, replacing `<number>` with the three digit number in the top level route53 domain obtained in the aws environment details assigned in the previous step. Simply copy the link next to the user your reserved in etherpad and paste into your browser.
```bash
https://terminal-sandbox<number>.apps.openshift.example.com
```
## 1.3 - Creating an air gap ## 1.3 - Creating an air gap

View File

@ -17,7 +17,9 @@ In this exercise we will be creating a new [AWS ec2 instance](https://aws.amazon
We'll start by creating an [AWS security group](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html) and collecting its ID. We'll start by creating an [AWS security group](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html) and collecting its ID.
We're going to use this shortly for the **Low side** prep system, and later on in the workshop for the **High side** bastion server: We're going to use this shortly for the **Low side** prep system, and later on in the workshop for the **High side** bastion server.
Copy the commands below into your web terminal:
```bash ```bash
# Obtain vpc id # Obtain vpc id
@ -35,6 +37,12 @@ SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-s
echo "Security group id is: ${SG_ID}" echo "Security group id is: ${SG_ID}"
``` ```
<Zoom>
|![workshop](/workshops/static/images/disconnected/security-group.gif) |
|:-----------------------------------------------------------------------------:|
| *Creating aws ec2 security group* |
</Zoom>
## 2.2 - Opening ssh port ingress ## 2.2 - Opening ssh port ingress
@ -56,7 +64,14 @@ Ready to launch! 🚀 We'll use the `t3.micro` instance type, which offers `1GiB
Run the command below in your web terminal to launch the instance. We will specify an Amazon Machine Image (AMI) to use for our prep system which for this lab will be the [Marketplace AMI for RHEL 8](https://access.redhat.com/solutions/15356#us_east_2) in `us-east-2`. Run the command below in your web terminal to launch the instance. We will specify an Amazon Machine Image (AMI) to use for our prep system which for this lab will be the [Marketplace AMI for RHEL 8](https://access.redhat.com/solutions/15356#us_east_2) in `us-east-2`.
```bash ```bash
aws ec2 run-instances --image-id "ami-092b43193629811af" --count 1 --instance-type t3.micro --key-name disco-key --security-group-ids $SG_ID --subnet-id $PUBLIC_SUBNET --associate-public-ip-address --tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=disco-prep-system}]" --block-device-mappings "DeviceName=/dev/sdh,Ebs={VolumeSize=50}" aws ec2 run-instances --image-id "ami-092b43193629811af" \
--count 1 --instance-type t3.micro \
--key-name disco-key \
--security-group-ids $SG_ID \
--subnet-id $PUBLIC_SUBNET \
--associate-public-ip-address \
--tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=disco-prep-system}]" \
--block-device-mappings "DeviceName=/dev/sdh,Ebs={VolumeSize=50}"
``` ```
<Zoom> <Zoom>

View File

@ -25,10 +25,10 @@ export default function ListLayout({ posts, title, initialDisplayPosts = [], pag
</h1> </h1>
<div className="relative max-w-lg"> <div className="relative max-w-lg">
<input <input
aria-label="Search articles" aria-label="Search exercises"
type="text" type="text"
onChange={(e) => setSearchValue(e.target.value)} onChange={(e) => setSearchValue(e.target.value)}
placeholder="Search articles" placeholder="Search exercises"
className="block w-full px-4 py-2 text-gray-900 bg-white border border-gray-300 rounded-md dark:border-gray-900 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-800 dark:text-gray-100" className="block w-full px-4 py-2 text-gray-900 bg-white border border-gray-300 rounded-md dark:border-gray-900 focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-800 dark:text-gray-100"
/> />
<svg <svg

Binary file not shown.

After

Width:  |  Height:  |  Size: 874 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB