DeveloperMachineSetup Updated
DeveloperMachineSetup Updated
[credential]
UseHttpPath = true
2. AWS Switcher extension for switch role (For Browsers)
a. Chrome https://chrome.google.com/webstore/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl
3. Python
a. For Windows, any version above 3.7.0 https://www.python.org/downloads/
4. Text editor
a. Visual Studio Code
5. Duo Mobile App in mobile for MFA setup from Play Store / App Store
6. AWS CLI Setup (AWS CLI v2 is recommended)- https://docs.aws.amazon.com/cli/latest/userguide/install-cliv1.html
Prerequisite
· MFA device
DevOps
Raise request for following item to Dev-ops to create user.
· Repo access
https://sq.pentair.cloud
· Use this as "Root user email address": "pentairiotiam" and click on the next button
· Now enter your username and use "Mywater@1#23" as your password and press on login.
· Search your user name and select it. It will open user summary section.
· In that Sign-in credentials section you will find Assigned MFA device section. Click on the Manage link.
· Select Virtual MFA device option from the popup and click on continue button
In Device name section, Please enter your AWS username( which you have received on email i.e. pentair domain
email id. ) only.
· In setup Virtual MFA device section click on the Show QR code button.
· It will show 6-digit code enter that code into MFA code 1 and after 30 seconds it will give you another 6-digit code, enter that code into MFA
code 2
· Now Press Assign MFA button. It will assign virtual MFA with your account.
· Then go to Access Keys tab, delete any existing key (if there is any) and click on create access key button.
· Now logout from your account and again login using your credentials
· When you again sign in it will ask for MFA and enter code from the Duo application.
· Click on the AWS switch role extension, then click on Configuration option
https://chrome.google.com/webstore/detail/aws-extend-switch-roles/jpmkfafbacpgapdghgdpembnojdlgkdl?hl=en
Example:-
[profile repo]
region = us-east-1
color = ff2600
· Now go to your AWS account and refresh it and click on your user name, in that you will find your repo account that you just created under
Role History and click on it
· Check that your region is us-east-1 only if not than change to us-east-1
· Now you are able to see the list of repositories. Now search for mobapp
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
o unzip awscli-bundle.zip
o aws --version
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html
· It will ask for AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Get this value from the accessKeys.csv that we have downloaded
from
Once you setup the AWS, Check its credentials file created in the root directory under .aws folder and paste the following code ( ~/.aws
/credentials)
[iam]
aws_access_key_id = ……………………………………………
aws_secret_access_key = …………………………………….
region = us-east-1
[repo]
region = us-east-1
[credential]
UseHttpPath = true
[user]
https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windows.html
· Now open the .bash_profile file (this file maybe different in you system so just check where you android sdk path are saved, it code into it and
save it
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
export AWS_PROFILE=repo
export AWS_GIT_PROFILE=repo
export AWS_DEFAULT_REGION=us-east-1
Window Machine
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
Note :- Every time you need to run above command, if you restarting your terminal.
o source ~/.bash_profile
· To check the list of repositories run the aws codecommit list-repositories on terminal and pass the six digit MFA code.
o For first time clone of git repo it will ask for MFA token for that follow below steps:-
Go to Duo Mobile App
Click on your profile have “pentairiotiam” as subscript
Enter the code provided
· Repositories Naming
· Team Lead will guide you for repositories structure based on the development team (webapp/mobapp/backend/foundation)
Contact Person
In case you face any issue please contact dev-ops