Skip to content

Instantly share code, notes, and snippets.

@rwd
rwd / jenkins-blue-green-cf-push.sh
Last active June 9, 2021 06:54
CF app blue/green deployment from Jenkins
# Given an app with mirrors web-blue and web-green in the CF test space with hostname www.example.org...
# Find which mirror is already active, which to switch to
export OLD_MIRROR=$(cf routes | sed -nr 's/^(test\s+)?www\s+example\.org\s+web-(blue|green).*$/\2/p')
if [ "$OLD_MIRROR" = "blue" ]; then
export NEW_MIRROR="green"
elif [ "$OLD_MIRROR" = "green" ]; then
export NEW_MIRROR="blue"
else
export OLD_MIRROR="green"
@leonardofed
leonardofed / README.md
Last active April 24, 2024 01:47
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.