Lab Exercise: Automating Network Deployment with Terraform
In this final lab, you will use Terraform to automate the creation of a VNet and subnet as IaC, building on previous concepts for repeatable deployments.
import "time" | |
# Check if today is a weekday (Mon–Fri) | |
is_weekday = rule { | |
weekday = time.weekday(time.now()) | |
weekday >= 1 and weekday <= 5 | |
} | |
# Check if current hour is between 9 and 17 (9 AM to 5 PM) | |
is_business_hours = rule { |
Argo CD is an open-source GitOps continuous delivery tool. It monitors your cluster and your declaratively-defined infrastructure stored in a Git repository and resolves differences between the two — effectively automating an application deployment.
In this lab you will:
kubectl
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ecsdemo-nodejs | |
labels: | |
app: ecsdemo-nodejs | |
namespace: default | |
spec: | |
replicas: {{ .Values.replicas }} | |
selector: |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ecsdemo-crystal | |
labels: | |
app: ecsdemo-crystal | |
namespace: default | |
spec: | |
replicas: {{ .Values.replicas }} | |
selector: |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ecsdemo-frontend | |
labels: | |
app: ecsdemo-frontend | |
namespace: default | |
spec: | |
replicas: {{ .Values.replicas }} | |
selector: |
!function(e){var t={};function i(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(s,o,function(t){return e[t]}.bind(null,o));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=2)}([function(e,t,i){"use strict";function s(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,co |
To create a Kops cluster
Install AWSCLI
pip install awscli
Add to path
export PATH=~/.local/bin:$PATH