Updating new SMS credentails in ukd-prod-sdc in enagarasewaU organization.
Updating the SMS credentials in a secret YAML file, it can typically be done by editing the file with the new credentials and then applying the changes to your system.
Here are the general steps to update the SMS credentials in a secret YAML file:
First get an access to edit an secret YAML file to the respective organization.
Here I’m taking an example of which I have resolved earlier i.e., ukd-prod-sdc-secrets.yaml which is in enagarasewa organization.
Open DIGIT-DevOps and copy the HTTPS to clone which is in <> code.
Run the following command to clone the repository.
- git clone https://github.com/eNagarsewaU/DIGIT-DevOps.git
After cloning the repository open it in Visual studio, by running the following command.
- code .
In Visual studio open terminal and export AWS credentails to open the YAML files.
Create new branch by running the following command.
- git checkout -b <branch name>
Run the following command to export AWS credentials.
- export AWS_PROFILE=egov
Using Sops credentials open the secrets YAML file (get the sops credentails from the admin for the respective organization)
- sops <respective path>
(It's important to remember that secret YAML files contain sensitive information, so you should always take proper precautions to protect them. This includes limiting access to only authorized individuals, encrypting them if possible, and not sharing them with anyone who does not need access.)
Once the file is opened, you should be able to view and edit its contents as needed. Close the file directly so that it will save manually.
Run the following commands to commit the changes in Visual studio terminal.
- git status
- git add .
- git commit -m “Changes made in ukd-prod-sdc-secrets.yaml“
- git push (When you run this command it gives the another command below, then you need to copy that command and run that command again).
Then after running this command, the changes will be made in the YAML file.
Raise a pull request, by going to that respective organization and click on pull request.
Once the changes which you have made will merged by the owner once after it will be verified.
After in jenkins we need to do deployment of the service and need to give the service name and deploy the cluster config by ticking it.