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
variable "AWS_ACCESS_KEY" { | |
} | |
variable "AWS_SECRET_KEY" { | |
} | |
variable "ATLAS_PUBLIC_KEY" { | |
} | |
variable "ATLAS_PRIVATE_KEY" { |
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
provider "aws" { | |
region = var.AWS_REGION | |
access_key = var.AWS_ACCESS_KEY | |
secret_key = var.AWS_SECRET_KEY | |
} | |
provider "mongodbatlas" { | |
public_key = var.ATLAS_PUBLIC_KEY | |
private_key = var.ATLAS_PRIVATE_KEY | |
} |
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
AWS_ACCESS_KEY = "" | |
AWS_SECRET_KEY = "" | |
ATLAS_PUBLIC_KEY = "" | |
ATLAS_PRIVATE_KEY = "" |
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
input { | |
beats { | |
port => 5044 | |
} | |
} | |
## Add your filters / logstash plugins configuration here | |
filter { |
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
[Unit] | |
Description=Filebeat Docker Service | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
Type=simple | |
User=root | |
TimeoutStartSec=0 | |
Restart=on-failure |
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
filebeat.inputs: | |
- type: docker | |
containers: | |
path: "/usr/share/dockerlogs/data" | |
stream: "stdout" | |
ids: | |
- "*" | |
cri.parse_flags: true | |
combine_partial: true | |
exclude_files: ['\.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 docker.elastic.co/beats/filebeat:6.5.2 | |
# Copy custom configuration file | |
COPY filebeat.yml /usr/share/filebeat/filebeat.yml | |
USER root | |
# Create a directory to map volume with all docker log files | |
RUN mkdir /usr/share/filebeat/dockerlogs | |
RUN chown -R root /usr/share/filebeat/ | |
RUN chmod -R go-w /usr/share/filebeat/ |
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 | |
# current Git branch | |
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
# current project name | |
projectName=$(git config --local remote.origin.url|sed -n 's#.*/\([^.]*\)\.git#\1#p') | |
# establish master branch name variables | |
masterBranch=$branch |
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
fab set_hosts:Name,${awsInstanceName},${regionName} restart_systemctl:servicefile=${serviceFileName} |
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
import boto, urllib2 | |
from boto.ec2 import connect_to_region | |
from fabric.api import env, run, cd, settings, sudo | |
from fabric.api import parallel | |
import os | |
import sys | |
REGION = os.environ.get("AWS_EC2_REGION") | |
# Server user | |
env.user = "core" | |
# List of AWS private key Files |
NewerOlder