This file contains hidden or 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
const Store = require("./store"); | |
const { toys } = require("./toy"); | |
const store = new Store("Big Al's Toy Barn", toys); | |
store.welcome(); | |
store.processProductSale("Action Figure"); | |
store.processProductSale("Action Figure"); | |
store.processProductSale("Rare Toy"); | |
store.processProductSale("Action Figure"); |
This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
passwd='vault kv get -field=ansivault secret/ansible' | |
os.system(passwd) |
This file contains hidden or 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
ansible-playbook -i inventory sample.yml --vault-password-file ~/<path to python script>/readPasswd.py |
This file contains hidden or 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
#!/usr/bin/bash | |
# Purpose: Working The Amazon EKS Immersion Workshop - CH 1.2 — Deploy Microservices Application Using Helm | |
# Ref: https://catalog.workshops.aws/eks-immersionday/en-US/helm | |
# | |
# Author's NOTE | |
# 1. # are comment lines | |
# 2. Command output wherever helpful is shown inside {} | |
# |
This file contains hidden or 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
#!/usr/bin/env python3 | |
from aws_cdk import ( | |
core, | |
aws_ec2 as ec2 | |
) | |
app = core.App() | |
vpc = ec2.Vpc.from_lookup(self, |
This file contains hidden or 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
# Application Load Balancer (ALB) Ingress Controller Deployment Manifest. | |
# This manifest details sensible defaults for deploying an ALB Ingress Controller. | |
# GitHub: https://github.com/kubernetes-sigs/aws-alb-ingress-controller | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: alb-ingress-controller | |
name: alb-ingress-controller | |
# Namespace the ALB Ingress Controller should run in. Does not impact which |
This file contains hidden or 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
# base image | |
FROM alpine:3.14 | |
# set vault version | |
ENV VAULT_VERSION 1.8.2 | |
# create a new directory | |
RUN mkdir /vault | |
# download dependencies |
This file contains hidden or 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
version: '3.8' | |
services: | |
vault-filesystem: | |
image: erangaeb/vault-filesystem:0.1 | |
ports: | |
- 8200:8200 | |
environment: | |
- VAULT_ADDR=http://127.0.0.1:8200 | |
- VAULT_API_ADDR=http://127.0.0.1:8200 |
This file contains hidden or 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
# build docker | |
docker build -t erangaeb/vault-filesystem:0.1 . | |
# run vault with filesystem backend | |
docker-compose up -d vault-filesystem | |
❯❯ docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
This file contains hidden or 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
# base image | |
FROM alpine:3.14 | |
# set consul version | |
ENV CONSUL_VERSION 1.10.2 | |
# create a new directory | |
RUN mkdir /consul | |
# download dependencies |
NewerOlder