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
To add more user to the Windows bastion (Domain Controller), from a CMD: | |
for /l %i in (1, 1, 10) do (net user user%i <password> /ADD) | |
for /l %i in (11, 1, 11) do (net group "Domain Admins" user%i /ADD) | |
for /l %i in (11, 1, 11) do (net group "Enterprise Admins" user%i /ADD) | |
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 | |
# Massimo Re Ferre' massimo@it20.info | |
########################################################### | |
########### USER INPUTS ########### | |
########################################################### | |
# Variables AppServer component | |
RACK_ENV="${RACK_ENV:-'custom'}" | |
REDIS_SERVER_ENDPOINT="${REDIS_SERVER_ENDPOINT:-<here the IP or FQDN of the Redis endpoint>}" |
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
yum install -y php-cli php-gd php-mysqlnd php-curl php-json php-zip php-exif php-session php-mbstring |
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
FROM amazonlinux:2 | |
MAINTAINER massimo@it20.info | |
# This Dockerfile builds a GG image for the ARM64 platform | |
# curl this file: https://d1onfpft10uf5o.cloudfront.net/greengrass-core/downloads/1.7.0/aws-greengrass-docker-1.7.0.tar.gz | |
# untar it | |
# move into the directory | |
# curl this file: https://d1onfpft10uf5o.cloudfront.net/greengrass-core/downloads/1.7.0/greengrass-linux-aarch64-1.7.0.tar.gz | |
# replace the Dockerfile in the directory with this Dockerfile | |
# run this command: docker build -t gg-arm64:1.7 --build-arg "greengrass_release=greengrass-linux-aarch64-1.7.0.tar.gz" . |
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
FROM centos | |
MAINTAINER massimo@it20.info | |
# This Dockerfile builds a GG image for the ARM64 platform | |
# curl this file: https://d1onfpft10uf5o.cloudfront.net/greengrass-core/downloads/1.7.0/aws-greengrass-docker-1.7.0.tar.gz | |
# untar it | |
# move into the directory | |
# curl this file: https://d1onfpft10uf5o.cloudfront.net/greengrass-core/downloads/1.7.0/greengrass-linux-armv7l-1.7.0.tar.gz | |
# replace the Dockerfile in the directory with this Dockerfile | |
# run this command: docker build -t gg-armv7:1.7 --build-arg "greengrass_release=greengrass-linux-armv7l-1.7.0.tar.gz" . |
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
# This script can be run on an i3.metal EC2 instance running Ubuntu 18 TLS and will setup minikube | |
#!/bin/bash | |
sudo apt update | |
sudo apt upgrade | |
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - | |
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add - | |
sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian bionic contrib" | |
sudo apt update | |
sudo apt install virtualbox-6.0 | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl |
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
# This should work on Kubernetes deployments on AWS that have an ALB ingress controller as well as App Mesh components deployed. | |
apiVersion: appmesh.k8s.aws/v1beta1 | |
kind: Mesh | |
metadata: | |
name: MESH_NAME | |
--- | |
apiVersion: appmesh.k8s.aws/v1beta1 | |
kind: VirtualNode | |
metadata: | |
name: yelb-ui-node |
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
# This should work on Kubernetes deployments on AWS that have an ALB ingress controller as well as App Mesh components deployed. | |
apiVersion: appmesh.k8s.aws/v1beta1 | |
kind: Mesh | |
metadata: | |
name: MESH_NAME | |
--- | |
apiVersion: appmesh.k8s.aws/v1beta1 | |
kind: VirtualNode | |
metadata: | |
name: nginx-v1 |
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
FROM alpine | |
MAINTAINER massimo@it20.info | |
# Set ENV_VAR for Greengrass RC to be untarred inside Docker Image | |
ARG greengrass_release | |
ENV GREENGRASS_RELEASE=${greengrass_release} | |
# This Dockerfile builds a GG image for the ARMv7 platform | |
# curl this file: https://d1onfpft10uf5o.cloudfront.net/greengrass-core/downloads/1.7.0/aws-greengrass-docker-1.7.0.tar.gz | |
# untar it |
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
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'EC2 Postgres and EC2 Redis deployments for Yelb backends' | |
Parameters: | |
KeyName: | |
Description: Name of an existing EC2 KeyPair to enable SSH access to the instance | |
(where applicable) | |
Type: AWS::EC2::KeyPair::KeyName | |
ConstraintDescription: Can contain only ASCII characters. | |
InstanceType: |
OlderNewer