Browsed by
Category: DevOps Resources

Initial setup to git-gitlab-terraform connection.

Initial setup to git-gitlab-terraform connection.

PC to AWS connection config. create amazon account. configure the aws account to use MFA, could be admin permision or limited permission. Use authy app to auhenticate. configure aws account with a access key to be used with aws vault. install aws-vault run aws-vault add “awsuserhere” vi ~/.aws/config add [awsuserhere]region=”regionhere” mfa_serial=”mfaserialhere” mfa serial is under the user credential a string like aws:iam::202575445566:mfa/userforaws run ./brew/aws-vault exec userterraform –duration=12h PC git to Gitalb config. Create a ssh public key to remote access…

Read More Read More

Show git Branch in Linux/mac terminal.

Show git Branch in Linux/mac terminal.

Add this line ate the end of the ˜/.bash_profile #————————- parse_git_branch() { git branch 2> /dev/null | sed -e ‘/^[^*]/d’ -e ‘s/* \(.*\)/ (\1)/’ } export PS1=”\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ “

Git Workflow

Git Workflow

https://medium.com/@talgoldfus/better-understanding-gits-work-flow-in-order-to-properly-deal-with-merge-conflicts-part-i-760a366fc997#:~:text=Whats%20the%20difference%20between%20push,refs%20along%20with%20associated%20objects%E2%80%9D.