quick setup and usage guide for SSH access over SSM to private AWS EC2 instances
- python3
- awscli
- session-manager-plugin
git clone https://github.com/elpy1/ssm-tool.git
quick setup and usage guide for SSH access over SSM to private AWS EC2 instances
git clone https://github.com/elpy1/ssm-tool.git| .......some config..... | |
| alertmanager: | |
| ## Deploy alertmanager | |
| ## | |
| enabled: true | |
| ## Service account for Alertmanager to use. | |
| ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | |
| ## |
| #!/usr/bin/env groovy | |
| // Load the shared libraries | |
| @Library('jenkins-shared-libraries')_ | |
| import static groovy.io.FileType.FILES | |
| // Load child Jenkinsfiles based on diff | |
| def loadDiff() { | |
| dirs = [] | |
| loads = [:] |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.define "master" do |master| | |
| master.vm.box = "fedora/28-cloud-base" | |
| master.vm.hostname = "master" | |
| master.vm.network "private_network", ip: "192.168.50.10" | |
| end |
| variable "hcloud_token" { | |
| } | |
| provider "hcloud" { | |
| token = "${var.hcloud_token}" | |
| } | |
| resource "hcloud_server" "kube-master" { | |
| name = "kube-master" | |
| image = "ubuntu-18.04" |
| ## This creates a working single node Azure Kubernetes Cluster | |
| ## and with an Azure Container Registry. Note, the ACR is in | |
| ## the same resource group as the AKS for demo purposes. For | |
| ## dev, qa, and prod you should have ACR in separate resource group. | |
| echo "Beginning AKS Setup for Demo" | |
| date | |
| AKS_RESOURCE_GROUP=aks-rg1 | |
| AKS_CLUSTER_NAME=aks-c1 |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: Role | |
| metadata: | |
| name: your-namespace | |
| namespace: your-namespace | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - pods |
| version: '2.1' | |
| services: | |
| filebeat: | |
| user: root | |
| image: docker.elastic.co/beats/filebeat:6.2.4 | |
| volumes: | |
| - ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro | |
| - /var/lib/docker/containers:/var/lib/docker/containers:ro | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| command: "filebeat -e -v --strict.perms=false" |