Skip to content

Instantly share code, notes, and snippets.

View rgodishela's full-sized avatar

Ramesh Godishela rgodishela

  • https://github.com/salesforce
  • Hyderabad, India
View GitHub Profile
Skeleton:
1. Get the VPC Name
2. check the cidr block:Get-EC2Vpc -Filter @{Name="cidr"; Values="172.31.0.0/16"}
3. check dns hosnames are enabled or not: Get-EC2VpcAttribute -VpcId $VPC_Id -Attribute enableDnsHostnames
4. check dns support enabled or not : Get-EC2VpcAttribute -VpcId $VPC_Id -Attribute enableDnsSupport
5. find the vpc end point: we need vpc endpoint id too-- not found yet
6. check whether service_name matches with com.amazonaws.us-east-1.s3
7. Check whether the given vpc_id matching with vpc id: Get-EC2Vpc | select VpcId | format-wide
@rgodishela
rgodishela / powershell_on_macosx
Last active December 24, 2017 08:11
Powershell on MacOSX
#Install Powershell
bash <(curl -fsSL https://raw.githubusercontent.com/PowerShell/PowerShell/v6.0.0-beta.1/tools/download.sh)
#Uninstall all versions of powershell
Uninstall-Package -Name AWSPowerShell.NetCore -AllVersions
#Install Powershell
Install-Package -Name AWSPowerShell.NetCore -Source https://www.powershellgallery.com/api/v2/ -ProviderName NuGet -ExcludeVersion -Destination $PSHOME/Modules -Scope CurrentUser
@rgodishela
rgodishela / terraform
Created May 31, 2017 06:33
Terraform
tfenv
terraform
terragrunt
terraforming
tfjson
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
config.vm.box = "fedora/23-cloud-base"
config.vm.box_check_update = true
gcloud compute --project "cncf-demo" instances create "instance-1" --zone "us-east1-b" --machine-type "n1-standard-4" --subnet "default" --address 35.185.21.149 --metadata "startup-script=yum install update -y\u000ayum install git vim go -y" --maintenance-policy "MIGRATE" --service-account "464404446259-compute@developer.gserviceaccount.com" --scopes "https://www.googleapis.com/auth/cloud-platform" --tags "http-server","https-server" --image "centos-7-v20170426" --image-project "centos-cloud" --boot-disk-size "40" --boot-disk-type "pd-standard" --boot-disk-device-name "instance-1"
Containers 101
Objective
This learning lab aims to provide you with background on the term "Containers", what they are, what they aren't and how they relate to other technologies often used interchangeably, such as 'Docker'.
Completion time: 10 minutes
Audience
DevOps engineers
Application developers
@rgodishela
rgodishela / output
Created May 22, 2017 04:57 — forked from halberom/output
ansible - example of setting a complex var with set_fact
PLAY [foo] ********************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [set_fact ] *************************************************************
ok: [localhost]
TASK: [debug ] ****************************************************************
ok: [localhost] => {
@rgodishela
rgodishela / Impartant_Info
Last active June 14, 2017 06:12
Important Info
http://hakunin.com/six-ansible-practices
http://codeheaven.io/15-things-you-should-know-about-ansible/
aws ec2 get-password-data --instance-id i-099cbfb62aa3d675b --priv-launch-key ~/Downloads/TestBox.pem
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
ATMECS/CNCF Demo
## First off let's set up the code and the go build environment
GOPATH=~/go
mkdir -p $GOPATH/src/github.com/askcarter
cd $GOPATH/src/github.com/askcarter
git clone https://github.com/askcarter/io16
## Now let's build the app as a static binary and test it's functionality.
cd io16/app/monolith
* What have you been doing over the last 1-2 years?
* How do you deploy software?
* 1. Do you have a database in the stack?
* 2. How do you update the schema?
* 3. What tests do you run, and how do you run them?
* 4. If all tests pass, how is the code deployed into production?
* 5. How do you make sure that you do not lose traffic during deployment?
* How have you handled failed deployments?
* 1. tell the story of a failed deployment and how it was handled?
* 2. How do you know there was a deployment failure?