NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

version: 0.2
env:
variables:
PIPELINE_REGION: "us-east-1"
CLUSTER_REGION: "us-east-1"
TARGET_AWS_ACCOUNT_ID:
phases:
install:
commands:
- echo Starting Install Phase
- pip install yq jq
#Retrive CI/Build artifact which contains helm chart location and version to deploy
- cat $CODEBUILD_SRC_DIR_containerBuildArtifact/imagedefinitions.json
- HELM_CHART_NAME=$(jq -r .helm_chart_name $CODEBUILD_SRC_DIR_containerBuildArtifact/imagedefinitions.json)
- HELM_CHART_REPO=$(jq -r .helm_chart_repo $CODEBUILD_SRC_DIR_containerBuildArtifact/imagedefinitions.json)
- HELM_CHART_VERSION=$(jq -r .helmChartVersion $CODEBUILD_SRC_DIR_containerBuildArtifact/imagedefinitions.json)
#Retrieve cluster name from helm chart environment yaml
- CLUSTER_NAME=$(yq -r .cluster_name helm-chart/sdev.yaml)
- echo $CLUSTER_NAME
- NAMESPACE=$(yq -r .namespace helm-chart/sdev.yaml)
## Install Helm CLI
- echo Installing Helm
- curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
- chmod 700 get_helm.sh
- ./get_helm.sh
## Log into ECR repository hosting helm charts
- aws ecr get-login-password --region $PIPELINE_REGION | helm registry login --username AWS --password-stdin 410997643304.dkr.ecr.us-east-1.amazonaws.com
pre_build:
commands:
build:
commands:
#Assume role into StandardPipelineRole This role needs to be granted access to EKS Cluster.
- temp_role=$(aws sts assume-role --role-arn arn:aws:iam::261154127693:role/StandardPipelineRole --role-session-name eks-session)
- export AWS_ACCESS_KEY_ID=$(echo $temp_role | jq -r .Credentials.AccessKeyId)
- export AWS_SECRET_ACCESS_KEY=$(echo $temp_role | jq -r .Credentials.SecretAccessKey)
- export AWS_SESSION_TOKEN=$(echo $temp_role | jq -r .Credentials.SessionToken)
- export AWS_REGION=$CLUSTER_REGION
## Authenticate to EKS Cluster
- aws eks update-kubeconfig --name $CLUSTER_NAME --region $CLUSTER_REGION
## Pull down helm charts
- helm pull oci://$HELM_CHART_REPO --version $HELM_CHART_VERSION
- ls -lrt
#Deploy helm chart to cluster
- echo "helm upgrade --install --atomic $HELM_CHART_NAME ./$HELM_CHART_NAME-$HELM_CHART_VERSION.tgz -f helm-chart/sdev.yaml --create-namespace -n $NAMESPACE"
- helm upgrade --install --atomic $HELM_CHART_NAME ./$HELM_CHART_NAME-$HELM_CHART_VERSION.tgz -f helm-chart/sdev.yaml --create-namespace -n $NAMESPACE
post_build:
commands:
- echo Deploy completed on `date`+
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.