Blog on DevOps, Cloud Computing, SCM

January 31, 2021

CI / CD for a Static Website hosted on Amazon S3


In continuation to the blog post, In the making of bhuvana.pro with S3 Route 53 ACM CloudFront, let's set up the continuous integration and continuous deployment using AWS CodePipeline to get the source from GitHub and deploy it to the static website (my personal site https://bhuvana.pro), hosted in the Amazon S3 bucket



AWS Services Used

  • Amazon S3
  • AWS CodePipeline
  • Identity & Access Management

Amazon S3

Amazon Simple Storage Service (Amazon S3) is storage for the internet and static website hosting functionality helps you to host a static website on S3 bucket without the need to provision and manage servers to meet the scale. Read here for more details on how to use S3.

AWS CodePipeline

AWS CodePipeline is a fully managed continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates. CodePipeline automates the build, test, and deploy phases of your release process every time there is a code change, based on the release model you define. Click here to read more.

CodePipeline Components

Alt Text

Pipeline - A pipeline is a workflow construct that describes how software changes go through a release process. You define the workflow with a sequence of stages and actions.

Stage - A stage is a group of one or more actions. A pipeline can have two or more stages.

Action - An action is a task performed on a revision. Pipeline actions occur in a specified order, in serial or in parallel, as determined in the configuration of the stage.

Transition - The stages in a pipeline are connected by transitions, and are represented by arrows in the AWS CodePipeline console. Revisions that successfully complete the actions in a stage will be automatically sent on to the next stage as indicated by the transition arrow. Transitions can be disabled or enabled between stages.

Identity and Access Management

AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources. You use IAM to control who is authenticated (signed in) and authorized (has permissions) to use resources. Click here to read more

Create & Configure Pipeline

You will see a two-stage pipeline to setup automated deployment for every commit into GitHub to the static website hosted on Amazon S3. 
The Pipeline setup is a five-step process as detailed below

Step 1: Pipeline

AWS CodePipeline is a fully managed continuous delivery service that helps you automate your release pipelines for fast and reliable application and infrastructure updates. CodePipeline automates the build, test, and deploy phases of your release process every time there is a code change, based on the release model you define. Click here to read more.

  • Sign in to the AWS Management Console and open the CodePipeline console at http://console.aws.amazon.com/codesuite/codepipeline/home
  • Create a new Pipeline with the following settings. Leaving the New Service Role as default will create a new service role and assign required permissions 

Alt Text


Step 2: Source

Choose GitHub (Version 2) as source provider, connection string, repository name, and the branch.
Enable the change detection option by checking Start the pipeline on source code change so that your pipeline starts automatically when a change occurs in the source code. Leave the Output artifact format to CodePipeline default.

Note: The GitHub (Version 1) action is not recommended since it uses OAuth apps to access your GitHub repository. Instead, choose the GitHub (Version 2) action to access your repository by creating a connection. Connections use GitHub Apps to manage authentication and can be shared with other resources.

Alt Text

Connection String:

In order to connect to GitHub, click Connect to GitHub, enter the connection name, select the GitHub App, if it is already configured else click Install a new app to authenticate against your GitHub account.
Alt Text


Step 3: Build

The build stage is not required, since we are going to deploy a static website to the Amazon S3 bucket and no code compilation involved
Alt Text


Step 4: Deploy

Choose Amazon S3 as deploy provider with the region where your S3 bucket hosting the static website is created, the bucket name, and check Extract file before deploy in order to deploy the artifact before deployment (you may ignore Deployment path & Additional configuration as default).
Alt Text


Step 5: Review

When all the configuration is done, preview to verify your changes and create the pipeline
Alt Text


Pipeline Output

As soon as the pipeline is created, the first execution is initiated. Subsecuted deployments will be triggered whenever a change is committed to the integrated branch or when you explicitly click Release Change button. Your resulting pipeline will look as follows when the deployment is successful and will show the commit id and comment added for commit.
Alt Text

Can I disable a Pipeline?

You can disable a transition from one state to another (in our case from source to deploy) but cannot disable or deactivate a pipeline.


AWS Code Pipeline Pricing

  • You pay only for what you use. AWS CodePipeline costs $1.00 per active pipeline* per month.
  • An active pipeline is a pipeline that has existed for more than 30 days and has at least one code change that runs through it during the month. There is no charge for pipelines that have no new code changes running through them during the month. An active pipeline is not prorated for partial months.
  • As part of the AWS Free Tier, AWS CodePipeline offers new and existing customers one free active pipeline each month.
  • You may incur additional charges for storing and accessing your pipeline artifacts in Amazon S3 and for triggering actions from other AWS and third-party services that you connect to your pipeline.

So in our example, I would expect a $1 bill per month if commit changes to my GitHub repo.

Posted by Bhuvana at 3:14 PM No comments:
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest

January 28, 2021

Thanks to BIT for transforming Tiny feet to Tennis Champ!!


Locked-down has brought the entire world to stand still but has let little feet try Tennis in the open air with the best in class Sports complex at Bannari Amman Institute of Technology, Sathyamangalam custom made for the BIT Staff's kids staying in Staff Quarters. The standard synthetic tennis courts with fencing and floodlights are an excellent platform and our children are fortunate to gain access to these facilities.

Thanks to the BIT Physical Education department, dedicated Tennis coaches MS. D. Dhanu & Mr. P. Thamilarasan, under the guidance of Dr. R. Jeyaraman, Director of Physical Education along with Dr. K. Amirthavalli and Dr. R. Sathish Kumar who always stand up for anything that's needed.  We are always indebted to the ever-supportive Chairman Dr. S.V. Balasubramaniam for nurturing the budding players and ever encouraging Trustee Thiru M.P.Vijayakumar IAS Retd, Principal Dr. C. Palanisamy, and Dean PDS Dr. K. Sivakumar.

Coaching Timings

PED department at BIT Sathy, truly believes in Novak's words and reflects them in their Tennis coaching schedule, fitness routine, and training.

The session started with 3 kids is now 60+ which is a phenomenal growth in less than a year. 
Fitness Sessions starts early morning from 6:15am to 7:45am and kids used to come with so much energy and enthusiasm. 

Considering the strength of students and their age group, the Tennis coaching is split into 2 different timings

  • 10:15 am to 11:30am 
  • 05:15 pm to 06:45pm
  • 05:45 pm to 07:30pm
The evening session ends with homemade healthy snacks sponsored by parents on a rotational basis. 












Heart-felt Experiences 

Dr. R. Jayaraman, Director of Physical Education, BIT Sathy
The tennis coaching was started in the year 2019 at our college premises. In this regard, the management has magnanimously accepted to recruit 2 specialized tennis coaches in the department of physical education. Besides this our management has sponsored several lakhs to purchase advanced coaching equipment like Ball feeder, Topspin pro, Tennis ball training net and etc. in the year 2019 around 12 kids were attended the coaching sessions. The Department of Physical Education (DPE) has been expressing our hearty thanks to Dr. R. V. Natarajan Prof. IT for taken the initiative to start the tennis coaching classes. During the pandemic lockdown period, we have bunged all the coaching sessions. After the Govt. relaxation the Department of Physical Education has resumed the tennis coaching with 3 kids. The DPE has introduced more attractive coaching & fitness sessions and also provides healthy refreshment to all the kids with the help of the parents. Now it’s grown up to more than 60 kids. For the convenience of the kids, we have to organize four coaching sessions a day. Now the academy is named BIT Tennis Academy. DPE has created a logo and office bearers for BIT Tennis Academy. Recently, some of our academy kids have participated in various tournaments and brought laurels to the BIT Tennis Academy. The kids are attending the coaching sessions with great enthusiasm and cheers. The management and BIT tennis academy are ready to extend our dedicated coaching session to all the kids throughout the year and we are expecting the parents to support and motivate their kids to play in the forthcoming years.

External Tournament

Kovai Open

A.R. Aabbey Varsha, N. Madumitha, and J. Bhavna Devi have participated in the Kovai Open (a state-level tournament) organized by JS Tennis academy, Coimbatore. J. Bhavna Devi played in under 10 category and entered up to quarterfinals. And received a medal and certificate for the same.


Moxiee Junior Championship Tennis

N. MADHUMITHA entered upto quarter-finals in Moxiee Junior Championship Tennis Tournament Under 10 category held at Moxiee Tennis School, Coimbatore on 25th & 26th January 2019. She was honored with a trophy and certificate.



Universal Tennis Rating (UTR) Championship

J. BHAVNA DEVI won the FIRST place in Universal Tennis Rating (UTR) Championship under 12 Category (losers Draw) organised by JS Tennis Academy, Coimbatore.




BIT Kids Tennis Tournament

As a crown to all the effort, BIT Physical Education Department came up with the Kids Tennis Tournament 2021 to celebrate the enthusiastic Kids' commitment towards Tennis while India celebrates its 72nd Republic Day. 

Well, I never knew that 6 categories could be brought in for engaging kids of different ages & experiences with Racket & Ball.
  • Elite - Tennis (Match Ball)
  • Intermediate I - Tennis (Green Dot Ball)
  • Intermediate II - Box Rally (Red Tennis Ball)
  • Beginners I - Target Hit (Self Feeding)
  • Beginners II - Target Hit (Drop Feeding)
  • Beginners III - Ball Balancing

The event started with a grand inauguration with an invocation song Guru Stotram chanted by our kid. Professor Dr. Natarajan presided over the function and Mrs. Bhuvaneswari Subramani, Alumnae declared the Match open. Uniform distribution & the players' introduction brought in new joy on all faces. 

We could see great discipline in the kids witnessing all the matches patiently and waiting for their turn to exhibit their talent. 

Dr. P. Saravanamoorthi, HOD Maths has  inaugurated the Kids Tennis Trophy Elite Group final match with spin of coin.

Dr. K. Sivakumar, Dean PDS was the chief guest for this valediction. He encouraged all the students to achieve more and distributed the prizes & certificates.

Inauguration














Elite - Tennis (Match Ball)

Elite - Semi-Finals


Labels



DSC_3286.JPG
Open with Pixlr Editor
Displaying DSC_3286.JPG.



Elite - Finals






Intermediate II - Box Rally (Green Dot Ball)


Intermediate II - Box Rally (Red Tennis Ball)



Beginners I - Target Hit (Self Feeding)


Beginners II - Target Hit (Drop Feeding)



Beginners III - Ball Balancing



Valedictory Function & Prize Distribution


















Dear Kiddoes 

Indulge into some form of sport,
Not just to exercise or develop a physical skill - But also
To build positive self-esteem,
To make new friends and have fun,
To be a good team player and be focused on goals.


What am I missing here? Let me know in the comments and I'll add it in!

Bhuvaneswari Subramani

Posted by Bhuvana at 3:48 PM No comments:
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: Inspiring

January 7, 2021

The Changemakers Summit 2021

 "The Changemakers Summit 2021" organized by Stanley College of Engineering - ATBD - About Those Big Dreams and glad to be part of it.
Here you go with the Recording of Day 1






Posted by Bhuvana at 8:40 PM No comments:
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Labels: TechTalk
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Search This Blog

Labels

  • AWS
  • CI CD
  • Events
  • General
  • InstallShield
  • MindMap
  • SCM
  • Scripting
  • TechTalk
  • Windows Installer

Blog Archive

  • ▼  2021 (3)
    • January (3)
  • ►  2020 (13)
    • December (1)
    • September (1)
    • August (1)
    • July (2)
    • June (2)
    • May (1)
    • March (3)
    • February (2)
  • ►  2019 (37)
    • November (1)
    • October (6)
    • September (1)
    • August (1)
    • June (9)
    • May (2)
    • March (14)
    • February (1)
    • January (2)
  • ►  2018 (48)
    • December (2)
    • October (9)
    • September (30)
    • July (4)
    • June (2)
    • January (1)
  • ►  2017 (17)
    • December (4)
    • November (2)
    • October (2)
    • August (3)
    • July (2)
    • May (1)
    • April (2)
    • March (1)
  • ►  2016 (1)
    • December (1)
  • ►  2014 (9)
    • December (1)
    • November (2)
    • October (1)
    • July (1)
    • April (1)
    • February (1)
    • January (2)
  • ►  2013 (17)
    • December (1)
    • October (3)
    • September (1)
    • August (1)
    • July (1)
    • June (1)
    • April (2)
    • March (2)
    • February (4)
    • January (1)
  • ►  2012 (32)
    • December (2)
    • November (2)
    • October (1)
    • September (5)
    • August (6)
    • July (8)
    • June (2)
    • May (2)
    • April (3)
    • January (1)
  • ►  2011 (8)
    • November (1)
    • October (2)
    • September (3)
    • August (1)
    • July (1)
  • ►  2010 (11)
    • November (1)
    • August (1)
    • May (1)
    • April (2)
    • March (2)
    • February (2)
    • January (2)
  • ►  2009 (20)
    • December (10)
    • November (9)
    • January (1)
  • ►  2008 (1)
    • September (1)

Author

My photo
Bhuvana
Passionate about Technology, Training & Creative Writing
View my complete profile

Follow by Email

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments
Simple theme. Powered by Blogger.