Coder Social home page Coder Social logo

learn-cantrill-io-labs's Introduction

learn-cantrill-io-labs

DEMOGRID

Welcome .. this repo stores a collection of freely available demos and mini projects for AWS (and in the future other cloud platforms) These demos are available in three ways:-

  • here in instruction & architecture diagram form for free
  • as part of https://learn.cantrill.io courses - including theory lessons and guided videos.
  • some of the popular mini projects have been upgraded with video guides on this repo (people buying my courses supports this)

💰💰 You can be paid to create new mini projects for this repo ... click here for more info 💰💰
this is made possible via my courses at learn.cantrill.io so if you need any training content please check this out

The free versions here are fully functional, with instructions & architecture diagrams and are maintained by me.

All demos have a structure ...

  • Most are started using a 1-Click Deployment .. click a link, check a box, click create stack and wait until complete.
  • 01_LABSETUP contains assets required for the DEMO if required - many are linked directly from the instructions.
  • 02_LABINSTRUCTIONS contains text instructions and architecture diagrams - most of these are directly linked from the instructions.

A full range of Video guided versions are available in my courses at https://learn.cantrill.io

I give free course credits for any bugs submitted via PR so please submit fixes for any issues you find

VIDEO GUIDED MINI PROJECTS (videos linked inside and on Youtube)

TEXT ONLY MINI PROJECTS

UNDER CONSTRUCTION OR BROKEN PROJECTS (DON'T USE) - fixes in progress

learn-cantrill-io-labs's People

Contributors

abhi-ksh avatar acantril avatar alexander-herr avatar bankolejohn avatar benjaminmitchell avatar bharathatluri avatar cjhar avatar codestorycooked avatar danieltatarkin avatar davyranger avatar devang-s avatar dfranc-d avatar edieblu avatar edwardmercado avatar eyulf avatar geosteffanov avatar hirak1984 avatar hoangnhiho avatar josegob avatar joseph7695 avatar kowenhouston avatar kylewintaur avatar la-li-lu-le-lo avatar martinkindall avatar mrog avatar ramadhantriyant avatar raulch626 avatar russianbb avatar surye avatar tim-andes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learn-cantrill-io-labs's Issues

Database Migration Service-STAGE1: CatWeb webserver does not work

I spawned the CloudFormation template into N.Virginia, but even one hour after it was successfully deployed, the CatWeb webserver is still not reachable over its public IP/DNS..
Would be great if you can fix this, so I can continue with the Lab in the Architect Pro course :)

Issue with SSM Agent installation on Centos

Lesson - https://github.com/acantril/learn-cantrill-io-labs/blob/master/aws-patch-manager/02_LABINSTRUCTIONS/STAGE2%20-%20AWS%20Managed%20Instances.md

This below command fails on Centos,

[centos@ip-10-16-0-105 ~]$ sudo dnf install -y https://s3.us-east-1.amazonaws.com/amazon-ssm-us-east-1/latest/linux_amd64/amazon-ssm-agent.rpm
CentOS-8 - AppStream                                                                                                                                                                                                                           41  B/s |  38  B     00:00    
Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Advanced Site-to-Site VPN - STAGE4

./ffrouting-install.sh returns errors

configure: error: libyang (>= 2.0.0) was not found on your system.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target 'install'. Stop.
install: cannot stat 'tools/frr.service': No such file or directory
Failed to enable unit: Unit file frr.service does not exist.
Failed to start frr.service: Unit frr.service not found.

Project proposal submitted

Hello,

I submitted a project proposal on June 15th, but never heard back from it.
Could you give me a status update via email?

aws-hybrid-DNS

In Stage 3A and 4A, there is a requirement to select the "Endpoint Type" when creating inbound and outbound enpoints.
Options are IPv4, IPv6 and Dual-Stack. In this lab IPv4 is appropriate but real world will depend on environment requirements.

Patching AWS and On-premises using Systems Manager Patch Manager

When applying the first 1 click installs "base infrastructure" I get "API: ec2:RunInstances Not authorized for images: [ami-077f1edd46ddb3129]" and stacks initiates rollback. Does anyone else get this error? I deleted the stack and tried again and got the same error.

VPC - EFS - lambda lab instance B not deploying successfully

Instance A received the cfn-signal and created
Instance B did not, from the logs it seems the catapi is throttling

h-4.2$ sudo cat /var/log/cloud-init-output.log
Cloud-init v. 19.3-46.amzn2 running 'init-local' at Wed, 25 Jan 2023 14:17:50 +0000. Up 5.62 seconds.
Cloud-init v. 19.3-46.amzn2 running 'init' at Wed, 25 Jan 2023 14:17:51 +0000. Up 6.72 seconds.
ci-info: +++++++++++++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++++++++++++
ci-info: +--------+------+------------------------------+---------------+--------+-------------------+
ci-info: | Device |  Up  |           Address            |      Mask     | Scope  |     Hw-Address    |
ci-info: +--------+------+------------------------------+---------------+--------+-------------------+
ci-info: |  eth0  | True |        10.16.126.230         | 255.255.240.0 | global | 12:f2:c1:96:83:69 |
ci-info: |  eth0  | True | fe80::10f2:c1ff:fe96:8369/64 |       .       |  link  | 12:f2:c1:96:83:69 |
ci-info: |   lo   | True |          127.0.0.1           |   255.0.0.0   |  host  |         .         |
ci-info: |   lo   | True |           ::1/128            |       .       |  host  |         .         |
ci-info: +--------+------+------------------------------+---------------+--------+-------------------+
ci-info: ++++++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++++++
ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+
ci-info: | Route |   Destination   |   Gateway   |     Genmask     | Interface | Flags |
ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+
ci-info: |   0   |     0.0.0.0     | 10.16.112.1 |     0.0.0.0     |    eth0   |   UG  |
ci-info: |   1   |   10.16.112.0   |   0.0.0.0   |  255.255.240.0  |    eth0   |   U   |
ci-info: |   2   | 169.254.169.254 |   0.0.0.0   | 255.255.255.255 |    eth0   |   UH  |
ci-info: +-------+-----------------+-------------+-----------------+-----------+-------+
ci-info: +++++++++++++++++++Route IPv6 info+++++++++++++++++++
ci-info: +-------+-------------+---------+-----------+-------+
ci-info: | Route | Destination | Gateway | Interface | Flags |
ci-info: +-------+-------------+---------+-----------+-------+
ci-info: |   9   |  fe80::/64  |    ::   |    eth0   |   U   |
ci-info: |   11  |    local    |    ::   |    eth0   |   U   |
ci-info: |   12  |   ff00::/8  |    ::   |    eth0   |   U   |
ci-info: +-------+-------------+---------+-----------+-------+
Cloud-init v. 19.3-46.amzn2 running 'modules:config' at Wed, 25 Jan 2023 14:17:53 +0000. Up 8.76 seconds.
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Existing lock /var/run/yum.pid: another copy is running as pid 3095.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  32 M RSS (324 MB VSZ)
    Started: Wed Jan 25 14:17:52 2023 - 00:02 ago
    State  : Sleeping, pid: 3095
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  91 M RSS (385 MB VSZ)
    Started: Wed Jan 25 14:17:52 2023 - 00:04 ago
    State  : Running, pid: 3095
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  88 M RSS (380 MB VSZ)
    Started: Wed Jan 25 14:17:52 2023 - 00:06 ago
    State  : Running, pid: 3095
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 178 M RSS (470 MB VSZ)
    Started: Wed Jan 25 14:17:52 2023 - 00:08 ago
    State  : Running, pid: 3095
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 171 M RSS (464 MB VSZ)
    Started: Wed Jan 25 14:17:52 2023 - 00:10 ago
    State  : Running, pid: 3095
 --> 2:vim-data-9.0.1006-1.amzn2.0.1.noarch from amzn2-core removed (updateinfo)
 --> freetype-2.8-14.amzn2.1.x86_64 from installed removed (updateinfo)
 --> 2:vim-enhanced-9.0.828-1.amzn2.0.1.x86_64 from installed removed (updateinfo)
 --> unzip-6.0-57.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo)
 --> 2:vim-filesystem-9.0.828-1.amzn2.0.1.noarch from installed removed (updateinfo)
 --> 2:vim-minimal-9.0.828-1.amzn2.0.1.x86_64 from installed removed (updateinfo)
 --> freetype-2.8-14.amzn2.1.1.x86_64 from amzn2-core removed (updateinfo)
 --> 2:vim-enhanced-9.0.1006-1.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo)
 --> ca-certificates-2021.2.50-72.amzn2.0.3.noarch from installed removed (updateinfo)
 --> 2:vim-common-9.0.1006-1.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo)
 --> 2:vim-data-9.0.828-1.amzn2.0.1.noarch from installed removed (updateinfo)
 --> ca-certificates-2021.2.50-72.amzn2.0.4.noarch from amzn2-core removed (updateinfo)
 --> 2:vim-common-9.0.828-1.amzn2.0.1.x86_64 from installed removed (updateinfo)
 --> 2:vim-filesystem-9.0.1006-1.amzn2.0.1.noarch from amzn2-core removed (updateinfo)
 --> 2:vim-minimal-9.0.1006-1.amzn2.0.1.x86_64 from amzn2-core removed (updateinfo)
 --> unzip-6.0-43.amzn2.x86_64 from installed removed (updateinfo)
6 package(s) needed (+0 related) for security, out of 14 available
Resolving Dependencies
--> Running transaction check
---> Package krb5-libs.x86_64 0:1.15.1-37.amzn2.2.4 will be updated
---> Package krb5-libs.x86_64 0:1.15.1-55.amzn2.2.5 will be an update
---> Package libpng.x86_64 2:1.5.13-8.amzn2 will be updated
---> Package libpng.x86_64 2:1.5.13-8.amzn2.0.1 will be an update
---> Package libtasn1.x86_64 0:4.10-1.amzn2.0.2 will be updated
---> Package libtasn1.x86_64 0:4.10-1.amzn2.0.3 will be an update
---> Package python3.x86_64 0:3.7.15-1.amzn2.0.2 will be updated
---> Package python3.x86_64 0:3.7.16-1.amzn2.0.1 will be an update
---> Package python3-libs.x86_64 0:3.7.15-1.amzn2.0.2 will be updated
---> Package python3-libs.x86_64 0:3.7.16-1.amzn2.0.1 will be an update
---> Package sqlite.x86_64 0:3.7.17-8.amzn2.1.1 will be updated
---> Package sqlite.x86_64 0:3.7.17-8.amzn2.1.2 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package           Arch        Version                    Repository       Size
================================================================================
Updating:
 krb5-libs         x86_64      1.15.1-55.amzn2.2.5        amzn2-core      803 k
 libpng            x86_64      2:1.5.13-8.amzn2.0.1       amzn2-core      212 k
 libtasn1          x86_64      4.10-1.amzn2.0.3           amzn2-core      320 k
 python3           x86_64      3.7.16-1.amzn2.0.1         amzn2-core       72 k
 python3-libs      x86_64      3.7.16-1.amzn2.0.1         amzn2-core      9.8 M
 sqlite            x86_64      3.7.17-8.amzn2.1.2         amzn2-core      391 k

Transaction Summary
================================================================================
Upgrade  6 Packages

Total download size: 12 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total                                               37 MB/s |  12 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : sqlite-3.7.17-8.amzn2.1.2.x86_64                            1/12
  Updating   : python3-3.7.16-1.amzn2.0.1.x86_64                           2/12
  Updating   : python3-libs-3.7.16-1.amzn2.0.1.x86_64                      3/12
  Updating   : libtasn1-4.10-1.amzn2.0.3.x86_64                            4/12
  Updating   : krb5-libs-1.15.1-55.amzn2.2.5.x86_64                        5/12
  Updating   : 2:libpng-1.5.13-8.amzn2.0.1.x86_64                          6/12
  Cleanup    : python3-3.7.15-1.amzn2.0.2.x86_64                           7/12
  Cleanup    : python3-libs-3.7.15-1.amzn2.0.2.x86_64                      8/12
  Cleanup    : sqlite-3.7.17-8.amzn2.1.1.x86_64                            9/12
  Cleanup    : libtasn1-4.10-1.amzn2.0.2.x86_64                           10/12
  Cleanup    : krb5-libs-1.15.1-37.amzn2.2.4.x86_64                       11/12
  Cleanup    : 2:libpng-1.5.13-8.amzn2.x86_64                             12/12
  Verifying  : 2:libpng-1.5.13-8.amzn2.0.1.x86_64                          1/12
  Verifying  : krb5-libs-1.15.1-55.amzn2.2.5.x86_64                        2/12
  Verifying  : sqlite-3.7.17-8.amzn2.1.2.x86_64                            3/12
  Verifying  : python3-libs-3.7.16-1.amzn2.0.1.x86_64                      4/12
  Verifying  : libtasn1-4.10-1.amzn2.0.3.x86_64                            5/12
  Verifying  : python3-3.7.16-1.amzn2.0.1.x86_64                           6/12
  Verifying  : python3-libs-3.7.15-1.amzn2.0.2.x86_64                      7/12
  Verifying  : libtasn1-4.10-1.amzn2.0.2.x86_64                            8/12
  Verifying  : 2:libpng-1.5.13-8.amzn2.x86_64                              9/12
  Verifying  : sqlite-3.7.17-8.amzn2.1.1.x86_64                           10/12
  Verifying  : python3-3.7.15-1.amzn2.0.2.x86_64                          11/12
  Verifying  : krb5-libs-1.15.1-37.amzn2.2.4.x86_64                       12/12

Updated:
  krb5-libs.x86_64 0:1.15.1-55.amzn2.2.5    libpng.x86_64 2:1.5.13-8.amzn2.0.1
  libtasn1.x86_64 0:4.10-1.amzn2.0.3        python3.x86_64 0:3.7.16-1.amzn2.0.1
  python3-libs.x86_64 0:3.7.16-1.amzn2.0.1  sqlite.x86_64 0:3.7.17-8.amzn2.1.2

Complete!
Cloud-init v. 19.3-46.amzn2 running 'modules:final' at Wed, 25 Jan 2023 14:18:11 +0000. Up 26.86 seconds.
+ yum -y update
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Existing lock /var/run/yum.pid: another copy is running as pid 3171.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  78 M RSS (296 MB VSZ)
    Started: Wed Jan 25 14:18:10 2023 - 00:02 ago
    State  : Running, pid: 3171
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 168 M RSS (387 MB VSZ)
    Started: Wed Jan 25 14:18:10 2023 - 00:04 ago
    State  : Running, pid: 3171
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 171 M RSS (390 MB VSZ)
    Started: Wed Jan 25 14:18:10 2023 - 00:06 ago
    State  : Running, pid: 3171
Resolving Dependencies
--> Running transaction check
---> Package ca-certificates.noarch 0:2021.2.50-72.amzn2.0.3 will be updated
---> Package ca-certificates.noarch 0:2021.2.50-72.amzn2.0.4 will be an update
---> Package freetype.x86_64 0:2.8-14.amzn2.1 will be updated
---> Package freetype.x86_64 0:2.8-14.amzn2.1.1 will be an update
---> Package unzip.x86_64 0:6.0-43.amzn2 will be updated
---> Package unzip.x86_64 0:6.0-57.amzn2.0.1 will be an update
---> Package vim-common.x86_64 2:9.0.828-1.amzn2.0.1 will be updated
---> Package vim-common.x86_64 2:9.0.1006-1.amzn2.0.1 will be an update
---> Package vim-data.noarch 2:9.0.828-1.amzn2.0.1 will be updated
---> Package vim-data.noarch 2:9.0.1006-1.amzn2.0.1 will be an update
---> Package vim-enhanced.x86_64 2:9.0.828-1.amzn2.0.1 will be updated
---> Package vim-enhanced.x86_64 2:9.0.1006-1.amzn2.0.1 will be an update
---> Package vim-filesystem.noarch 2:9.0.828-1.amzn2.0.1 will be updated
---> Package vim-filesystem.noarch 2:9.0.1006-1.amzn2.0.1 will be an update
---> Package vim-minimal.x86_64 2:9.0.828-1.amzn2.0.1 will be updated
---> Package vim-minimal.x86_64 2:9.0.1006-1.amzn2.0.1 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch       Version                    Repository      Size
================================================================================
Updating:
 ca-certificates     noarch     2021.2.50-72.amzn2.0.4     amzn2-core     369 k
 freetype            x86_64     2.8-14.amzn2.1.1           amzn2-core     374 k
 unzip               x86_64     6.0-57.amzn2.0.1           amzn2-core     182 k
 vim-common          x86_64     2:9.0.1006-1.amzn2.0.1     amzn2-core     7.8 M
 vim-data            noarch     2:9.0.1006-1.amzn2.0.1     amzn2-core      78 k
 vim-enhanced        x86_64     2:9.0.1006-1.amzn2.0.1     amzn2-core     1.6 M
 vim-filesystem      noarch     2:9.0.1006-1.amzn2.0.1     amzn2-core      72 k
 vim-minimal         x86_64     2:9.0.1006-1.amzn2.0.1     amzn2-core     736 k

Transaction Summary
================================================================================
Upgrade  8 Packages

Total download size: 11 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
--------------------------------------------------------------------------------
Total                                               29 MB/s |  11 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 2:vim-data-9.0.1006-1.amzn2.0.1.noarch                      1/16
  Updating   : 2:vim-filesystem-9.0.1006-1.amzn2.0.1.noarch                2/16
  Updating   : 2:vim-common-9.0.1006-1.amzn2.0.1.x86_64                    3/16
  Updating   : 2:vim-enhanced-9.0.1006-1.amzn2.0.1.x86_64                  4/16
  Updating   : 2:vim-minimal-9.0.1006-1.amzn2.0.1.x86_64                   5/16
  Updating   : unzip-6.0-57.amzn2.0.1.x86_64                               6/16
  Updating   : ca-certificates-2021.2.50-72.amzn2.0.4.noarch               7/16
  Updating   : freetype-2.8-14.amzn2.1.1.x86_64                            8/16
  Cleanup    : ca-certificates-2021.2.50-72.amzn2.0.3.noarch               9/16
  Cleanup    : 2:vim-minimal-9.0.828-1.amzn2.0.1.x86_64                   10/16
  Cleanup    : 2:vim-enhanced-9.0.828-1.amzn2.0.1.x86_64                  11/16
  Cleanup    : 2:vim-common-9.0.828-1.amzn2.0.1.x86_64                    12/16
  Cleanup    : 2:vim-data-9.0.828-1.amzn2.0.1.noarch                      13/16
  Cleanup    : 2:vim-filesystem-9.0.828-1.amzn2.0.1.noarch                14/16
  Cleanup    : unzip-6.0-43.amzn2.x86_64                                  15/16
  Cleanup    : freetype-2.8-14.amzn2.1.x86_64                             16/16
  Verifying  : freetype-2.8-14.amzn2.1.1.x86_64                            1/16
  Verifying  : ca-certificates-2021.2.50-72.amzn2.0.4.noarch               2/16
  Verifying  : 2:vim-enhanced-9.0.1006-1.amzn2.0.1.x86_64                  3/16
  Verifying  : 2:vim-filesystem-9.0.1006-1.amzn2.0.1.noarch                4/16
  Verifying  : 2:vim-minimal-9.0.1006-1.amzn2.0.1.x86_64                   5/16
  Verifying  : 2:vim-common-9.0.1006-1.amzn2.0.1.x86_64                    6/16
  Verifying  : 2:vim-data-9.0.1006-1.amzn2.0.1.noarch                      7/16
  Verifying  : unzip-6.0-57.amzn2.0.1.x86_64                               8/16
  Verifying  : 2:vim-filesystem-9.0.828-1.amzn2.0.1.noarch                 9/16
  Verifying  : 2:vim-minimal-9.0.828-1.amzn2.0.1.x86_64                   10/16
  Verifying  : 2:vim-common-9.0.828-1.amzn2.0.1.x86_64                    11/16
  Verifying  : freetype-2.8-14.amzn2.1.x86_64                             12/16
  Verifying  : 2:vim-enhanced-9.0.828-1.amzn2.0.1.x86_64                  13/16
  Verifying  : ca-certificates-2021.2.50-72.amzn2.0.3.noarch              14/16
  Verifying  : unzip-6.0-43.amzn2.x86_64                                  15/16
  Verifying  : 2:vim-data-9.0.828-1.amzn2.0.1.noarch                      16/16

Updated:
  ca-certificates.noarch 0:2021.2.50-72.amzn2.0.4
  freetype.x86_64 0:2.8-14.amzn2.1.1
  unzip.x86_64 0:6.0-57.amzn2.0.1
  vim-common.x86_64 2:9.0.1006-1.amzn2.0.1
  vim-data.noarch 2:9.0.1006-1.amzn2.0.1
  vim-enhanced.x86_64 2:9.0.1006-1.amzn2.0.1
  vim-filesystem.noarch 2:9.0.1006-1.amzn2.0.1
  vim-minimal.x86_64 2:9.0.1006-1.amzn2.0.1

Complete!
+ yum -y install httpd wget cowsay curl python3 pip3 amazon-efs-utils
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Package wget-1.14-18.amzn2.1.x86_64 already installed and latest version
Package curl-7.79.1-7.amzn2.0.1.x86_64 already installed and latest version
Package python3-3.7.16-1.amzn2.0.1.x86_64 already installed and latest version
No package pip3 available.
Resolving Dependencies
--> Running transaction check
---> Package amazon-efs-utils.noarch 0:1.34.4-1.amzn2 will be installed
--> Processing Dependency: stunnel5 for package: amazon-efs-utils-1.34.4-1.amzn2.noarch
---> Package cowsay.noarch 0:3.04-6.amzn2 will be installed
---> Package httpd.x86_64 0:2.4.54-1.amzn2 will be installed
--> Processing Dependency: httpd-tools = 2.4.54-1.amzn2 for package: httpd-2.4.54-1.amzn2.x86_64
--> Processing Dependency: httpd-filesystem = 2.4.54-1.amzn2 for package: httpd-2.4.54-1.amzn2.x86_64
--> Processing Dependency: system-logos-httpd for package: httpd-2.4.54-1.amzn2.x86_64
--> Processing Dependency: mod_http2 for package: httpd-2.4.54-1.amzn2.x86_64
--> Processing Dependency: httpd-filesystem for package: httpd-2.4.54-1.amzn2.x86_64
--> Processing Dependency: /etc/mime.types for package: httpd-2.4.54-1.amzn2.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.54-1.amzn2.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.54-1.amzn2.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.7.0-9.amzn2 will be installed
---> Package apr-util.x86_64 0:1.6.1-5.amzn2.0.2 will be installed
--> Processing Dependency: apr-util-bdb(x86-64) = 1.6.1-5.amzn2.0.2 for package: apr-util-1.6.1-5.amzn2.0.2.x86_64
---> Package generic-logos-httpd.noarch 0:18.0.0-4.amzn2 will be installed
---> Package httpd-filesystem.noarch 0:2.4.54-1.amzn2 will be installed
---> Package httpd-tools.x86_64 0:2.4.54-1.amzn2 will be installed
---> Package mailcap.noarch 0:2.1.41-2.amzn2 will be installed
---> Package mod_http2.x86_64 0:1.15.19-1.amzn2.0.1 will be installed
---> Package stunnel5.x86_64 0:5.58-1.amzn2.0.1 will be installed
--> Running transaction check
---> Package apr-util-bdb.x86_64 0:1.6.1-5.amzn2.0.2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                Arch      Version                   Repository     Size
================================================================================
Installing:
 amazon-efs-utils       noarch    1.34.4-1.amzn2            amzn2-core     55 k
 cowsay                 noarch    3.04-6.amzn2              amzn2-core     42 k
 httpd                  x86_64    2.4.54-1.amzn2            amzn2-core    1.4 M
Installing for dependencies:
 apr                    x86_64    1.7.0-9.amzn2             amzn2-core    122 k
 apr-util               x86_64    1.6.1-5.amzn2.0.2         amzn2-core     99 k
 apr-util-bdb           x86_64    1.6.1-5.amzn2.0.2         amzn2-core     19 k
 generic-logos-httpd    noarch    18.0.0-4.amzn2            amzn2-core     19 k
 httpd-filesystem       noarch    2.4.54-1.amzn2            amzn2-core     24 k
 httpd-tools            x86_64    2.4.54-1.amzn2            amzn2-core     88 k
 mailcap                noarch    2.1.41-2.amzn2            amzn2-core     31 k
 mod_http2              x86_64    1.15.19-1.amzn2.0.1       amzn2-core    149 k
 stunnel5               x86_64    5.58-1.amzn2.0.1          amzn2-core    165 k

Transaction Summary
================================================================================
Install  3 Packages (+9 Dependent packages)

Total download size: 2.1 M
Installed size: 5.8 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                              6.0 MB/s | 2.1 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apr-1.7.0-9.amzn2.x86_64                                    1/12
  Installing : apr-util-bdb-1.6.1-5.amzn2.0.2.x86_64                       2/12
  Installing : apr-util-1.6.1-5.amzn2.0.2.x86_64                           3/12
  Installing : httpd-tools-2.4.54-1.amzn2.x86_64                           4/12
  Installing : httpd-filesystem-2.4.54-1.amzn2.noarch                      5/12
  Installing : mailcap-2.1.41-2.amzn2.noarch                               6/12
  Installing : generic-logos-httpd-18.0.0-4.amzn2.noarch                   7/12
  Installing : mod_http2-1.15.19-1.amzn2.0.1.x86_64                        8/12
  Installing : httpd-2.4.54-1.amzn2.x86_64                                 9/12
  Installing : stunnel5-5.58-1.amzn2.0.1.x86_64                           10/12
  Installing : amazon-efs-utils-1.34.4-1.amzn2.noarch                     11/12
  Installing : cowsay-3.04-6.amzn2.noarch                                 12/12
  Verifying  : apr-util-1.6.1-5.amzn2.0.2.x86_64                           1/12
  Verifying  : apr-util-bdb-1.6.1-5.amzn2.0.2.x86_64                       2/12
  Verifying  : stunnel5-5.58-1.amzn2.0.1.x86_64                            3/12
  Verifying  : cowsay-3.04-6.amzn2.noarch                                  4/12
  Verifying  : generic-logos-httpd-18.0.0-4.amzn2.noarch                   5/12
  Verifying  : mod_http2-1.15.19-1.amzn2.0.1.x86_64                        6/12
  Verifying  : httpd-2.4.54-1.amzn2.x86_64                                 7/12
  Verifying  : mailcap-2.1.41-2.amzn2.noarch                               8/12
  Verifying  : httpd-tools-2.4.54-1.amzn2.x86_64                           9/12
  Verifying  : httpd-filesystem-2.4.54-1.amzn2.noarch                     10/12
  Verifying  : amazon-efs-utils-1.34.4-1.amzn2.noarch                     11/12
  Verifying  : apr-1.7.0-9.amzn2.x86_64                                   12/12

Installed:
  amazon-efs-utils.noarch 0:1.34.4-1.amzn2     cowsay.noarch 0:3.04-6.amzn2
  httpd.x86_64 0:2.4.54-1.amzn2

Dependency Installed:
  apr.x86_64 0:1.7.0-9.amzn2
  apr-util.x86_64 0:1.6.1-5.amzn2.0.2
  apr-util-bdb.x86_64 0:1.6.1-5.amzn2.0.2
  generic-logos-httpd.noarch 0:18.0.0-4.amzn2
  httpd-filesystem.noarch 0:2.4.54-1.amzn2
  httpd-tools.x86_64 0:2.4.54-1.amzn2
  mailcap.noarch 0:2.1.41-2.amzn2
  mod_http2.x86_64 0:1.15.19-1.amzn2.0.1
  stunnel5.x86_64 0:5.58-1.amzn2.0.1

Complete!
+ amazon-linux-extras install -y php7.2
Topic php7.2 has end-of-support date of 2020-11-30
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Existing lock /var/run/yum.pid: another copy is running as pid 3359.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  65 M RSS (283 MB VSZ)
    Started: Wed Jan 25 14:18:27 2023 - 00:02 ago
    State  : Running, pid: 3359
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 195 M RSS (486 MB VSZ)
    Started: Wed Jan 25 14:18:27 2023 - 00:04 ago
    State  : Running, pid: 3359
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 175 M RSS (467 MB VSZ)
    Started: Wed Jan 25 14:18:27 2023 - 00:06 ago
    State  : Running, pid: 3359
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-php7.2
17 metadata files removed
6 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:7.2.34-1.amzn2 will be installed
--> Processing Dependency: php-common(x86-64) = 7.2.34-1.amzn2 for package: php-cli-7.2.34-1.amzn2.x86_64
---> Package php-fpm.x86_64 0:7.2.34-1.amzn2 will be installed
---> Package php-json.x86_64 0:7.2.34-1.amzn2 will be installed
---> Package php-mysqlnd.x86_64 0:7.2.34-1.amzn2 will be installed
---> Package php-pdo.x86_64 0:7.2.34-1.amzn2 will be installed
--> Running transaction check
---> Package php-common.x86_64 0:7.2.34-1.amzn2 will be installed
--> Processing Dependency: libzip.so.5()(64bit) for package: php-common-7.2.34-1.amzn2.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:1.3.2-1.amzn2.0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package         Arch       Version                 Repository             Size
================================================================================
Installing:
 php-cli         x86_64     7.2.34-1.amzn2          amzn2extra-php7.2     4.4 M
 php-fpm         x86_64     7.2.34-1.amzn2          amzn2extra-php7.2     1.5 M
 php-json        x86_64     7.2.34-1.amzn2          amzn2extra-php7.2      71 k
 php-mysqlnd     x86_64     7.2.34-1.amzn2          amzn2extra-php7.2     238 k
 php-pdo         x86_64     7.2.34-1.amzn2          amzn2extra-php7.2     132 k
Installing for dependencies:
 libzip          x86_64     1.3.2-1.amzn2.0.1       amzn2-core             62 k
 php-common      x86_64     7.2.34-1.amzn2          amzn2extra-php7.2     1.1 M

Transaction Summary
================================================================================
Install  5 Packages (+2 Dependent packages)

Total download size: 7.5 M
Installed size: 31 M
Downloading packages:
--------------------------------------------------------------------------------
Total                                               19 MB/s | 7.5 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libzip-1.3.2-1.amzn2.0.1.x86_64                              1/7
  Installing : php-common-7.2.34-1.amzn2.x86_64                             2/7
  Installing : php-json-7.2.34-1.amzn2.x86_64                               3/7
  Installing : php-pdo-7.2.34-1.amzn2.x86_64                                4/7
  Installing : php-mysqlnd-7.2.34-1.amzn2.x86_64                            5/7
  Installing : php-fpm-7.2.34-1.amzn2.x86_64                                6/7
  Installing : php-cli-7.2.34-1.amzn2.x86_64                                7/7
  Verifying  : php-fpm-7.2.34-1.amzn2.x86_64                                1/7
  Verifying  : php-cli-7.2.34-1.amzn2.x86_64                                2/7
  Verifying  : php-json-7.2.34-1.amzn2.x86_64                               3/7
  Verifying  : libzip-1.3.2-1.amzn2.0.1.x86_64                              4/7
  Verifying  : php-mysqlnd-7.2.34-1.amzn2.x86_64                            5/7
  Verifying  : php-pdo-7.2.34-1.amzn2.x86_64                                6/7
  Verifying  : php-common-7.2.34-1.amzn2.x86_64                             7/7

Installed:
  php-cli.x86_64 0:7.2.34-1.amzn2       php-fpm.x86_64 0:7.2.34-1.amzn2
  php-json.x86_64 0:7.2.34-1.amzn2      php-mysqlnd.x86_64 0:7.2.34-1.amzn2
  php-pdo.x86_64 0:7.2.34-1.amzn2

Dependency Installed:
  libzip.x86_64 0:1.3.2-1.amzn2.0.1      php-common.x86_64 0:7.2.34-1.amzn2

Complete!
Installing php-pdo, php-fpm, php-mysqlnd, php-cli, php-json
  0  ansible2                 available    \
        [ =2.4.2  =2.4.6  =2.8  =stable ]
  2  httpd_modules            available    [ =1.0  =stable ]
  3  memcached1.5             available    \
        [ =1.5.1  =1.5.16  =1.5.17 ]
  6  postgresql10             available    [ =10  =stable ]
  9  R3.4                     available    [ =3.4.3  =stable ]
 10  rust1                    available    \
        [ =1.22.1  =1.26.0  =1.26.1  =1.27.2  =1.31.0  =1.38.0
          =stable ]
 15 *php7.2=latest            enabled      \
        [ =7.2.0  =7.2.4  =7.2.5  =7.2.8  =7.2.11  =7.2.13  =7.2.14
          =7.2.16  =7.2.17  =7.2.19  =7.2.21  =7.2.22  =7.2.23
          =7.2.24  =7.2.26  =stable ]
 18  libreoffice              available    \
        [ =5.0.6.2_15  =5.3.6.1  =stable ]
 19  gimp                     available    [ =2.8.22 ]
 20  docker=latest            enabled      \
        [ =17.12.1  =18.03.1  =18.06.1  =18.09.9  =stable ]
 21  mate-desktop1.x          available    \
        [ =1.19.0  =1.20.0  =stable ]
 22  GraphicsMagick1.3        available    \
        [ =1.3.29  =1.3.32  =1.3.34  =stable ]
 23  tomcat8.5                available    \
        [ =8.5.31  =8.5.32  =8.5.38  =8.5.40  =8.5.42  =8.5.50
          =stable ]
 24  epel                     available    [ =7.11  =stable ]
 25  testing                  available    [ =1.0  =stable ]
 26  ecs                      available    [ =stable ]
 27  corretto8                available    \
        [ =1.8.0_192  =1.8.0_202  =1.8.0_212  =1.8.0_222  =1.8.0_232
          =1.8.0_242  =stable ]
 29  golang1.11               available    \
        [ =1.11.3  =1.11.11  =1.11.13  =stable ]
 30  squid4                   available    [ =4  =stable ]
 32  lustre2.10               available    \
        [ =2.10.5  =2.10.8  =stable ]
 33  java-openjdk11           available    [ =11  =stable ]
 34  lynis                    available    [ =stable ]
 36  BCC                      available    [ =0.x  =stable ]
 37  mono                     available    [ =5.x  =stable ]
 38  nginx1                   available    [ =stable ]
 39  ruby2.6                  available    [ =2.6  =stable ]
 40  mock                     available    [ =stable ]
 41  postgresql11             available    [ =11  =stable ]
 43  livepatch                available    [ =stable ]
 44  python3.8                available    [ =stable ]
 45  haproxy2                 available    [ =stable ]
 46  collectd                 available    [ =stable ]
 47  aws-nitro-enclaves-cli   available    [ =stable ]
 48  R4                       available    [ =stable ]
 49  kernel-5.4               available    [ =stable ]
 50  selinux-ng               available    [ =stable ]
  _  php8.0                   available    [ =stable ]
 52  tomcat9                  available    [ =stable ]
 53  unbound1.13              available    [ =stable ]
 54  mariadb10.5              available    [ =stable ]
 55  kernel-5.10              available    [ =stable ]
 56  redis6                   available    [ =stable ]
 57  ruby3.0                  available    [ =stable ]
 58  postgresql12             available    [ =stable ]
 59  postgresql13             available    [ =stable ]
 60  mock2                    available    [ =stable ]
 61  dnsmasq2.85              available    [ =stable ]
 62  kernel-5.15              available    [ =stable ]
 63  postgresql14             available    [ =stable ]
 64  firefox                  available    [ =stable ]
 65  lustre                   available    [ =stable ]
  _  php8.1                   available    [ =stable ]
 67  awscli1                  available    [ =stable ]
* Extra topic has reached end of support.
+ amazon-linux-extras install epel -y
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Existing lock /var/run/yum.pid: another copy is running as pid 3447.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  42 M RSS (260 MB VSZ)
    Started: Wed Jan 25 14:18:42 2023 - 00:03 ago
    State  : Running, pid: 3447
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 190 M RSS (481 MB VSZ)
    Started: Wed Jan 25 14:18:42 2023 - 00:05 ago
    State  : Running, pid: 3447
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 174 M RSS (467 MB VSZ)
    Started: Wed Jan 25 14:18:42 2023 - 00:07 ago
    State  : Running, pid: 3447
Cleaning repos: amzn2-core amzn2extra-docker amzn2extra-epel amzn2extra-php7.2
22 metadata files removed
8 sqlite files removed
0 metadata files removed
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch           Version      Repository               Size
================================================================================
Installing:
 epel-release         noarch         7-11         amzn2extra-epel          15 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                     1/1
  Verifying  : epel-release-7-11.noarch                                     1/1

Installed:
  epel-release.noarch 0:7-11

Complete!
Installing epel-release
  0  ansible2                 available    \
        [ =2.4.2  =2.4.6  =2.8  =stable ]
  2  httpd_modules            available    [ =1.0  =stable ]
  3  memcached1.5             available    \
        [ =1.5.1  =1.5.16  =1.5.17 ]
  6  postgresql10             available    [ =10  =stable ]
  9  R3.4                     available    [ =3.4.3  =stable ]
 10  rust1                    available    \
        [ =1.22.1  =1.26.0  =1.26.1  =1.27.2  =1.31.0  =1.38.0
          =stable ]
 15 *php7.2=latest            enabled      \
        [ =7.2.0  =7.2.4  =7.2.5  =7.2.8  =7.2.11  =7.2.13  =7.2.14
          =7.2.16  =7.2.17  =7.2.19  =7.2.21  =7.2.22  =7.2.23
          =7.2.24  =7.2.26  =stable ]
 18  libreoffice              available    \
        [ =5.0.6.2_15  =5.3.6.1  =stable ]
 19  gimp                     available    [ =2.8.22 ]
 20  docker=latest            enabled      \
        [ =17.12.1  =18.03.1  =18.06.1  =18.09.9  =stable ]
 21  mate-desktop1.x          available    \
        [ =1.19.0  =1.20.0  =stable ]
 22  GraphicsMagick1.3        available    \
        [ =1.3.29  =1.3.32  =1.3.34  =stable ]
 23  tomcat8.5                available    \
        [ =8.5.31  =8.5.32  =8.5.38  =8.5.40  =8.5.42  =8.5.50
          =stable ]
 24  epel=latest              enabled      [ =7.11  =stable ]
 25  testing                  available    [ =1.0  =stable ]
 26  ecs                      available    [ =stable ]
 27  corretto8                available    \
        [ =1.8.0_192  =1.8.0_202  =1.8.0_212  =1.8.0_222  =1.8.0_232
          =1.8.0_242  =stable ]
 29  golang1.11               available    \
        [ =1.11.3  =1.11.11  =1.11.13  =stable ]
 30  squid4                   available    [ =4  =stable ]
 32  lustre2.10               available    \
        [ =2.10.5  =2.10.8  =stable ]
 33  java-openjdk11           available    [ =11  =stable ]
 34  lynis                    available    [ =stable ]
 36  BCC                      available    [ =0.x  =stable ]
 37  mono                     available    [ =5.x  =stable ]
 38  nginx1                   available    [ =stable ]
 39  ruby2.6                  available    [ =2.6  =stable ]
 40  mock                     available    [ =stable ]
 41  postgresql11             available    [ =11  =stable ]
 43  livepatch                available    [ =stable ]
 44  python3.8                available    [ =stable ]
 45  haproxy2                 available    [ =stable ]
 46  collectd                 available    [ =stable ]
 47  aws-nitro-enclaves-cli   available    [ =stable ]
 48  R4                       available    [ =stable ]
 49  kernel-5.4               available    [ =stable ]
 50  selinux-ng               available    [ =stable ]
  _  php8.0                   available    [ =stable ]
 52  tomcat9                  available    [ =stable ]
 53  unbound1.13              available    [ =stable ]
 54  mariadb10.5              available    [ =stable ]
 55  kernel-5.10              available    [ =stable ]
 56  redis6                   available    [ =stable ]
 57  ruby3.0                  available    [ =stable ]
 58  postgresql12             available    [ =stable ]
 59  postgresql13             available    [ =stable ]
 60  mock2                    available    [ =stable ]
 61  dnsmasq2.85              available    [ =stable ]
 62  kernel-5.15              available    [ =stable ]
 63  postgresql14             available    [ =stable ]
 64  firefox                  available    [ =stable ]
 65  lustre                   available    [ =stable ]
  _  php8.1                   available    [ =stable ]
 67  awscli1                  available    [ =stable ]
* Extra topic has reached end of support.
+ yum install stress -y
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
http://mirror.es.its.nyu.edu/epel/7/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.es.its.nyu.edu/epel/7/x86_64/repodata/repomd.xml: (28, 'Connection timeout after 5001 ms')
Trying other mirror.
236 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package stress.x86_64 0:1.0.4-16.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch             Version                 Repository      Size
================================================================================
Installing:
 stress           x86_64           1.0.4-16.el7            epel            39 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 39 k
Installed size: 94 k
Downloading packages:
warning: /var/cache/yum/x86_64/2/epel/packages/stress-1.0.4-16.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for stress-1.0.4-16.el7.x86_64.rpm is not installed
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <[email protected]>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (@amzn2extra-epel)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : stress-1.0.4-16.el7.x86_64                                   1/1
  Verifying  : stress-1.0.4-16.el7.x86_64                                   1/1

Installed:
  stress.x86_64 0:1.0.4-16.el7

Complete!
+ pip3 install random-cat
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Collecting random-cat
  Downloading random-cat-1.0.1.tar.gz (3.0 kB)
Using legacy 'setup.py install' for random-cat, since package 'wheel' is not installed.
Installing collected packages: random-cat
    Running setup.py install for random-cat: started
    Running setup.py install for random-cat: finished with status 'done'
Successfully installed random-cat-1.0.1
+ systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
+ systemctl start httpd
++ printf '%02x%02x%02x\n' 107 77 239
+ bgcolor=6b4def
++ curl http://169.254.169.254/latest/meta-data/instance-id
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    19  100    19    0     0   6132      0 --:--:-- --:--:-- --:--:--  9500
+ instanceId=i-0977f49b9846d73b7
+ wget -O /var/www/html/cat.gif 'http://thecatapi.com/api/images/get?format=src&type=gif&api_key=8f7dc437-0b9b-47b8-a2c0-65925d593acf'
--2023-01-25 14:19:11--  http://thecatapi.com/api/images/get?format=src&type=gif&api_key=8f7dc437-0b9b-47b8-a2c0-65925d593acf
Resolving thecatapi.com (thecatapi.com)... 104.21.33.166, 172.67.165.7, 2606:4700:3035::ac43:a507, ...
Connecting to thecatapi.com (thecatapi.com)|104.21.33.166|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://api.thecatapi.com/api/images/get?format=src&type=gif&api_key=8f7dc437-0b9b-47b8-a2c0-65925d593acf [following]
--2023-01-25 14:19:11--  https://api.thecatapi.com/api/images/get?format=src&type=gif&api_key=8f7dc437-0b9b-47b8-a2c0-65925d593acf
Resolving api.thecatapi.com (api.thecatapi.com)... 142.251.163.121, 2607:f8b0:4004:c1b::79
Connecting to api.thecatapi.com (api.thecatapi.com)|142.251.163.121|:443... connected.
HTTP request sent, awaiting response... 429 Too Many Requests
2023-01-25 14:19:11 ERROR 429: Too Many Requests.

Jan 25 14:19:11 cloud-init[3163]: util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [8]
Jan 25 14:19:11 cloud-init[3163]: cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
Jan 25 14:19:11 cloud-init[3163]: util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_user.pyc'>) failed
ci-info: no authorized ssh keys fingerprints found for user ec2-user.
Cloud-init v. 19.3-46.amzn2 finished at Wed, 25 Jan 2023 14:19:11 +0000. Datasource DataSourceEc2.  Up 86.93 seconds

colliding group is in the working tree

Hello Adrian

I was cloning the repo "learn-cantrill-io-labs" for the Cognito lab in the aws-sa-pro course and when cloning it I got the following error

warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'aws-lex-lambda-rds/02_LABINSTRUCTIONS/STAGE 4 - Create and configure the Lex Bot.md'
  'aws-lex-lambda-rds/02_LABINSTRUCTIONS/STAGE 4 - Create and configure the Lex bot.md'

as you can see in the error you have the same file name with with different capitalization on the B in bot

Path: aws-lex-lambda-rds/02_LABINSTRUCTIONS

This typo cause failure in importing data to MySQL

This command causes an issue:
mysql -h $DBEndpoint -u $DBUser -p$DBPassword $DBName < a4lWordPress.sql

because the "-p$DBPassword " should be "-p $DBPassword " (need to have a blank space between the -p option and $DBPassword)

CloudFront caching causes this demo to not work (at least for me)

[MINIPROJECT] Implementing Web Identity Federation (WEBIDF) - PART4

For this lab, if the student opens the CloudFront URI before the index.html and scripts.js are updated, it will cache those files for the next 24 hours (and keep the student from completing the lab).

I found that I had to go into CloudFront > Distributions > select my Distribution > Invalidations, then add these two invalidations:
/index.html
/scripts.js

After that, it reloaded my updated files from the S3 bucket and let me open it. For those who get stuck here, it may be something to add to the instructions. Thanks!

Update for Advanced Demo - Web App - Single Server to Elastic Evolution - STAGE 2

In section https://github.com/acantril/learn-cantrill-io-labs/blob/master/aws-elastic-wordpress-evolution/02_LABINSTRUCTIONS/STAGE2%20-%20Automate%20the%20build%20using%20a%20Launch%20Template.md#stage-2a---create-the-launch-template
Change:
Under T2/T3 Unlimited select Enable
for:
Under Credit specification select Unlimited

image

Suggested change for section https://github.com/acantril/learn-cantrill-io-labs/blob/master/aws-elastic-wordpress-evolution/02_LABINSTRUCTIONS/STAGE2%20-%20Automate%20the%20build%20using%20a%20Launch%20Template.md#stage-2b---add-userdata

#!/bin/bash

DBPassword=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBPassword --with-decryption --query Parameters[0].Value | tr -d \")
DBRootPassword=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBRootPassword --with-decryption --query Parameters[0].Value | tr -d \" | tr -d \")
DBUser=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBUser --query Parameters[0].Value | tr -d \")
DBName=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBName --query Parameters[0].Value | tr -d \")
DBEndpoint=$(aws ssm get-parameters --region us-east-1 --names /A4L/Wordpress/DBEndpoint --query Parameters[0].Value | tr -d \")

yum -y update

yum install -y mariadb-server httpd
amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
amazon-linux-extras install -y epel
yum install -y stress

systemctl enable httpd
systemctl enable mariadb
systemctl start httpd
systemctl start mariadb

mysqladmin -u root password $DBRootPassword

cd /var/www/html
curl -sL http://wordpress.org/latest.tar.gz | tar -zxvf -
cp -frv wordpress/* .
rm -fr wordpress/ latest.tar.gz

cp ./wp-config-sample.php ./wp-config.php
sed -i -e "s/'database_name_here'/'$DBName'/g" -e "s/'username_here'/'$DBUser'/g" -e "s/'password_here'/'$DBPassword'/g" -e "s/'localhost'/'$DBEndpoint'/g" wp-config.php


usermod -a -G apache ec2-user   
chown -R ec2-user:apache /var/www
chmod 2775 /var/www
find /var/www -type d -exec chmod 2775 {} \;
find /var/www -type f -exec chmod 0664 {} \;

cat <<EOF | mysql -u root --password=$DBRootPassword
CREATE DATABASE $DBName;
CREATE USER '$DBUser'@'localhost' IDENTIFIED BY '$DBPassword';
GRANT ALL ON $DBName.* TO '$DBUser'@'localhost';
FLUSH PRIVILEGES;
EOF

mysql command not found

Minor issue in the aws-elastic-wordpress-evolution lab.

In Stage 5C, there is a step to update the launch template to create and execute a file called update_wp_ip.sh. This is to update the wordpress database to use the ALB domain instead of the IP of the single EC2 instance.

When you run this script, you get an error "mysql: command not found".

This is because in stage 3F of the lab, there is an instruction to remove the "mariadb105-server" package. Removing this package removes the ability to use the mysql command line tool. Suggest removing this instruction from stage 3F?

Pet-Cuddle-O-Tron - STAGE 3B ASL code does not match video

The link at this line which looks like this:

{
  "Comment": "Pet Cuddle-o-Tron - using Lambda for email.",
  "StartAt": "Timer",
  "States": {
    "Timer": {
      "Type": "Wait",
      "SecondsPath": "$.waitSeconds",
      "Next": "Email"
    },
    "Email": {
      "Type" : "Task",
      "Resource": "arn:aws:states:::lambda:invoke",
      "Parameters": {
        "FunctionName": "EMAIL_LAMBDA_ARN",
        "Payload": {
          "Input.$": "$"
        }
      },
      "Next": "NextState"
    },
    "NextState": {
      "Type": "Pass",
      "End": true
    }
  }
}

that contains the ASL code does not match the code shown in the video:
image

Am I doing something wrong? Otherwise I'm surprised this has been like this for 3 years if that's the case.

WebIDF CloudFormation quicklink, failing to deploy

https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://learn-cantrill-labs.s3.amazonaws.com/aws-cognito-web-identity-federation/WEBIDF.yaml&stackName=WEBIDF

I am seeing:

Logical ID: appbucket
Status: Create_Failed
Status Reason: API: s3:CreateBucket Access Denied

With the following as being the Status Reason for CloudFormation to fail to deploy:

The following resource(s) failed to create: [appbucket, patchesprivatebucket]. Rollback requested by user.

Logged in with Admin user in us-east-1 before deployment. It's possible that it's trying to create a bucket named appbucket which may already exist in another account (due to global namespace).

Advanced Hybrid Directory Demo: 03_HYBRIDDIR-NESTED-ONPREM-AD error

Hello,

I have tried several times to deploy the CloudFormation (CFN) Nested Stack.
I keep having an issue with the 03_HYBRIDDIR-NESTED-ONPREM-AD, when building the DomainController2

DomainController2 | CREATE_FAILED | Failed to receive 1 resource signal(s) within the specified duration
HYBRIDDIR-ONPREMAD-FEU63JAX72I9 | CREATE_FAILED | The following resource(s) failed to create: [DomainController2].

Troubleshooting steps : I tried to deactivate the CFN Rollback Failure, The domain controller EC2 instance is built, I connected to it, there were no errors, but could not determine what was the issue, the cfn logs were created but empty.

  DomainController2:
    Type: AWS::EC2::Instance
    DependsOn: DomainController1
    CreationPolicy:
      ResourceSignal:
        Timeout: PT60M
        Count: 1

Any idea ? I really would like to perfrom this hands on labs.

Thank you for your attention

Update the bash script

Script needs to be updated as follows

#!/bin/bash
source <(php -r 'require("/var/www/html/wp-config.php"); echo("DB_NAME=".DB_NAME."; DB_USER=".DB_USER."; DB_PASSWORD=".DB_PASSWORD."; DB_HOST=".DB_HOST); ')
SQL_COMMAND="mysql -u $DB_USER -h $DB_HOST -p$DB_PASSWORD $DB_NAME -e"
OLD_URL=$(mysql -u $DB_USER -h $DB_HOST -p$DB_PASSWORD $DB_NAME -e 'select option_value from wp_options where option_id = 1;' | grep http)
TOKEN=curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"
HOST=$(curl -H "X-aws-ec2-metadata-token: $TOKEN" -v http://169.254.169.254/latest/meta-data/public-hostname)

$SQL_COMMAND "UPDATE wp_options SET option_value = replace(option_value, '$OLD_URL', 'http://$HOST') WHERE option_name = 'home' OR option_name = 'siteurl';"
$SQL_COMMAND "UPDATE wp_posts SET guid = replace(guid, '$OLD_URL','http://$HOST');"
$SQL_COMMAND "UPDATE wp_posts SET post_content = replace(post_content, '$OLD_URL', 'http://$HOST');"
$SQL_COMMAND "UPDATE wp_postmeta SET meta_value = replace(meta_value,'$OLD_URL','http://$HOST');"

On-Prem SSM Agent installation FAIL

Running this command in Windows Agent Installation for On-Prem fails:

Get-Content ($env:ProgramData + "\Amazon\SSM\InstanceData\registration")

Get-Content : Cannot find path 'C:\ProgramData\Amazon\SSM\InstanceData\registration' because it does not exist.
At line:1 char:1
+ Get-Content ($env:ProgramData + "\Amazon\SSM\InstanceData\registratio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\ProgramData\...ta\registration:String) [Get-Content], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

STAGE 2B - Add Userdata - ISSUE

Hello,

I encountered error while i just followed the demo it seems that the user-data is failing whenever i launch an instance from template.

Errno 2] No such file or directory: '/var/cache/dnf/amazonlinux-39b85c012216ab5c/packages/krb5-devel-1.21-3.amzn2023.0.4.x86_64.rpm'

when i tried to perform a -x only, it gets me this error regardless,
what i saw was this.

https://repost.aws/questions/QU_tj7NQl6ReKoG53zzEqYOw/amazon-linux-2023-issue-with-installing-packages-with-cloud-init

" I am attempting to install packages via cloud-init in an Amazon Linux 2023 instance. Sometimes it works, sometimes it fails with: "RPM: error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Resource temporarily unavailable)" This issue occurs when attempting pkg installs in both a cloudconfig and a script. The most annoying part is that it fails most of the time but not always. And it doesn't always fail in the same place. Sometimes it get through cloudconfig pkgs and fails in the pkgs being installed by the script, sometimes it doesn't get that far.

""

but i didn't get far.

Hybridlab error

Hi Adrian,

I'm in the session Hybrid demo:

[DEMO] Implementing a hybrid directory solution in AWS - PART1
I'd tried to provision by use your link:

https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/quickcreate?templateURL=https://learn-cantrill-labs.s3.amazonaws.com/aws-hybrid-activedirectory/01_HYBRIDDIR.yaml&stackName=HYBRIDDIR

And the error appear:

Embedded stack arn:aws:cloudformation:us-east-1:792286733653:stack/HYBRIDDIR-ONPREMAD-14D1JLDNZTKHI/e8098230-370a-11eb-918b-0ed5acf75591 was not successfully created: The following resource(s) failed to create: [DomainController2].

Kindly check and advice.

Thanks so much.

Vuhondat

Instructions do not match ASL code

STAGE 3C - CONFIGURE STATE MACHINE
In the state machine ASL (the code on the left) locate the EmailOnly definition.

This should say:
locate the Email definition.

CatPipeline - STAGE4 - Deploy our Container w/ CodeDeploy - PART1

By default AWS Console opens in a new layout so all ECS related steps look different and I had to switch to the old layout to be able to follow the instructions provided in this lesson.

"The new experience is now the default
The new experience is now the default in the Amazon ECS console. You can now use the new simplified workflows for deploying tasks and services, task definition JSON editor, and other new features. You can temporarily switch to the classic console for any unsupported features, but your preference will be reset after a session."

Furthermore, while creating Task Definition, the Task role drop-down is empty so I can't select the ecsTaskExecutionRole.

Any suggestions how to progress from there?

Typo on second line of README.md

Hi, On the second line of README.md available is spelled incorrectly. This is the line: [These demos are avialable in two ways].

Pet-Cuddle-O-Tron | CORS issue between S3 and API gateway

CORS is enabled on the API created. Verified using the curl command below:

image

After submitting values from the S3 static website, I get this error:

Access to fetch at 'https://hfg9swflk0.execute-api.us-east-1.amazonaws.com/prod/petcuddleotron' from origin 'http://petcuddleotron9007.s3-website-us-east-1.amazonaws.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

image

Build error with catpipeline

When trying to build I get this error: Any ideas?

24 | [Container] 2024/03/05 18:49:31.181522 Entering phase BUILD
25 | [Container] 2024/03/05 18:49:31.182098 Running command buildspec.yml
26 | /codebuild/output/tmp/script.sh: line 4: buildspec.yml: command not found
27 |  
28 | [Container] 2024/03/05 18:49:31.192380 Command did not exit successfully buildspec.yml exit status 127
29 | [Container] 2024/03/05 18:49:31.197588 Phase complete: BUILD State: FAILED
30 | [Container] 2024/03/05 18:49:31.197604 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: buildspec.yml. Reason: exit status 127

AWS SSM LAB2, Stage 3 - needs review for Windows AMI/password retrieval

https://github.com/acantril/learn-cantrill-io-labs/blob/master/aws-patch-manager/02_LABINSTRUCTIONS/STAGE3%20-%20On-Prem%20Managed%20Instances.md


Unable to connect to the simulated "OnPrem" windows instance (apparently is a "feature/bug" by AWS) - not able to retrieve the password for a Windows instance launched from a custom AMI


UI Error:

Password is not available.
The instance was launched from a custom AMI, or the default password has changed. A password cannot be retrieved for this instance. If you have forgotten your password, you can reset it using the Amazon EC2 configuration service.

CLI returning empty password field

❯ aws ec2 get-password-data --instance-id i-EDITED --priv-launch-key A4L-WIN.rdp --profile EDITED

{
"InstanceId": "i-EDITED",
"PasswordData": "",
"Timestamp": "2022-08-EDITED"
}

Similar issues is described here:
https://www.logicata.com/blog/ec2-windows-password-bug/


windows-pass-bug

MySQL RDS - Aurora compatibility issue

First of all, thanks for sharing this lab. This is pretty useful.

In stage 3 you suggest to select MySQL version 8.0.28 for best Aurora compatibility for snapshot migrations. However when in stage 6 I try to execute the migrate snapshot action it fails with error connected to MySQL engine compatibility issue between snapshot MySQL 8.0.28 and Aurora MySQL 8.0.23 (there is no way to pick another MySQL version for Aurora). I fixed this by creating a new RDS MySQL 8.0.23 instance, migrating the WordPress DB on this new RDS instance and then catching up with your instructions. Can I suggest to amend stage 3 MySQL version suggestion?

Advanced Hybrid Directory - STAGE 2E - Connect to the 'client' instance

Hi @acantril,

Loving your course. The fundamentals are a godsend!

Need your help with something I'm stuck with.

I'm not able to connect to the 'Client' instance as a Domain Admin. Getting a login attempt failed. Local Admin works.

I'm 100% certain I'm using the right password. I have deleted and recreated the stack twice already.

I have tried all variations:

  1. [email protected]
  2. A4L\Admin
  3. ad.animals4life.org\Admin

Any ideas?

Appreciate your help.

https://github.com/acantril/learn-cantrill-io-labs/blob/master/aws-hybrid-activedirectory/02_LABINSTRUCTIONS/STAGE2%20-%20Connect%20to%20the%20ONPREMISES%20Jumpbox.md

Pet Cuddle-o-ttron lab Stage 1 Issue with SNS origination number

After going through the steps in stage 1D of the pet cuddle-o-tron lab, the origination number in Amazon SNS is stuck in pending status after the pinpoint number reached enabled status. Looking into this further, it seems that in the US it is now required to register the number, which could take up to 15 days to be processed per https://docs.aws.amazon.com/sns/latest/dg/channels-sms-us-requirements.html.

Not that it's a big loss, but it might be worth mentioning in the video/text instructions before people spend the $2 registering a number they won't be able to use for the lab right away

Hybrid Active Directory Stack Creation Failure

Hello-

During stack formation in the hybrid-AD first stage, the process fails at the ONPREMVPC logical ID step.

Here is the error I receive:
Embedded stack arn:aws:cloudformation:us-east-1:873210807183:stack/HYBRIDDIR-ONPREMVPC-BMA78SNNGR5N/8d2708b0-b0ef-11eb-9777-0e7742256abf was not successfully created: The following resource(s) failed to create: [PrivateRTB, Pub, PrivA, InternetGatewayAttachment, EC2InstanceProfile, InstanceSG, PublicRT, PrivB, PrivateRTA].

At this point I'm unsure how to troubleshoot further. I've searched for potential existing resources however as far as I know AWS, should care whether something has the same name. Either way, there doesn't appear to be anything existing already which might prevent this stack from forming. I am operating out of the us-east-1 region as instructed. The account I'm using is my own and has full privileges.

Additionally, this doesn't appear to be related to the other issue with a similar problem, so I'm creating a new one. The password I configured is quite complex and should satisfy any requirement there, although it doesn't look like it's even getting that far.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.