Instance Refresh - PCR

Revision as of 12:27, 29 June 2023 by Admin (talk | contribs) (Created page with "Instance Refresh PCR --------------------- - Login to lb.pcr.apoyar - Go to /usr/local/bin - Run below script ----> ./1-create***.sh (press ENTER until its ask's for) - Then, Go to aws console - EC2 instances - AMI’S console - Check here latest AMI is creating - Wait for 5-8 mins to create new AMI - Then copy the ami name, with todays it creates - Now again go to server same location (/usr/local/bin) - Run below script ---> ./2-revert-template.sh - Now...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Instance Refresh PCR


- Login to lb.pcr.apoyar

- Go to /usr/local/bin


- Run below script


> ./1-create***.sh (press ENTER until its ask's for)


- Then, Go to aws console

- EC2 instances - AMI’S console

- Check here latest AMI is creating

- Wait for 5-8 mins to create new AMI

- Then copy the ami name, with todays it creates

- Now again go to server same location (/usr/local/bin)


- Run below script

---> ./2-revert-template.sh


- Now go to aws EC2 console

- Select "Launch Templates" from left side menu

- Select "PCR_LB", then click on "Actions" and select "Modify template (create new version)"

- Here search in my AMI's —> we have copied ami name earlier, so need to search it and select that and create template version


- Then go to EC2 console, click on left side menu last option "autoscaling group"

- select pcr_lb2 --> --> instance refresh tab ---> skip matching (untick) and then start instsance refresh


NOTE ---> When instance refresh initiate we will receive email from aws cloudwatch and once its finished we will receive second email termination of old autoscale instance (this way we can get to know that instance refresh done and new autoscale intance will launch)