- login to 'AWS Management Console' (https://aws.amazon.com/console/)
- from 'Services'(in navbar) choose 'EC2'
- from 'Create Instance' section, click on 'Launch Instance'
- then select 'AMI' (Amazon Machine Image), we will be using 'Ubuntu Server 16.04 LTS (HVM)' as example
- select 'Instance Type' as per your requirement
- then click 'Next:Configure Instance Details' to continue
change 'Configure Instance Details' or used as default settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# exit when the command fails | |
set -o errexit; | |
# exit when try to use undeclared var | |
set -o nounset; | |
Total_num_of_buckets=`aws s3 ls s3:// | awk '{print $NF}'| wc -l` | |
printf "%s: %4d\n" "Total Number of s3 buckets" ${Total_num_of_buckets} | |
printf "%s: %4s\n" "Bucket Name" "Bucket Size" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set your project Prefix using your GUID | |
def prefix = "user22" | |
// Routes | |
def clusterDomain = "apps.cluster-19ae.sandbox478.opentlc.com" | |
def tasksDevRoute = "tasks-${prefix}-tasks-dev.${clusterDomain}" | |
def ocpRegistryRoute = "default-route-openshift-image-registry.${clusterDomain}" | |
def nexusRegistryRoute = "nexus-registry-${prefix}-cicd.${clusterDomain}" | |
// Set variable globally to be available in all stages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
################################################################################ | |
# This script will upgrade Jenkins. | |
# | |
# It assumes the Jenkins server is started with java -jar jenkins.war command. | |
# The script will backup existing Jenkins war file and configurations. | |
# After upgrade is done, Jenkins server will be restarted. | |
# | |
# Check upgrade.sh -h to get help. |
In this guide I will go through the steps of setting up your EC2 instance for your React-Express project and deploy it with CI/CD using Github Actions.
Any commands with the "$" at the beginning run on your local machine and any with "%" should be run on your server.
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.