This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tfenv | |
terraform | |
terragrunt | |
terraforming | |
tfjson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [foo] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
ok: [localhost] | |
TASK: [set_fact ] ************************************************************* | |
ok: [localhost] | |
TASK: [debug ] **************************************************************** | |
ok: [localhost] => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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? |