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
#!/bin/bash | |
cat - <<-EOF >> /etc/apt/sources.list.d/webupd8team-java.list | |
# webupd8team repository list | |
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main | |
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main | |
EOF | |
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xEEA14886 |
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
#!/bin/bash | |
delete-vpc() { | |
local teamName=${1:-ciberadok8s} | |
local region=${2:-eu-west-1} | |
aws ec2 describe-vpcs --region ${region} | jq -r ".Vpcs[] | select(.Tags[].Value | contains(\"${teamName}\")) | .VpcId" 2>/dev/null | | |
while read vpcID; do | |
echo "# deleting vpc (${vpcID}) ..." | |