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
Description: (SO0062) - Distributed Load Testing on AWS is a reference architecture to perform application load testing at scale. Version v3.2.1 | |
AWSTemplateFormatVersion: "2010-09-09" | |
Metadata: | |
AWS::CloudFormation::Interface: | |
ParameterGroups: | |
- Label: | |
default: Console access | |
Parameters: | |
- AdminName | |
- AdminEmail |
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
#!/usr/bin/env bash | |
LOG_GROUP_NAME=${1:?log group name is not set} | |
echo Getting stream names... | |
LOG_STREAMS=$( | |
aws logs describe-log-streams \ | |
--log-group-name ${LOG_GROUP_NAME} \ | |
--query 'logStreams[*].logStreamName' \ | |
--output table | |
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 | |
apt-get update | |
apt-get -y install curl | |
# create staging directories | |
if [ ! -d /drop ]; then | |
mkdir /drop | |
fi | |
if [ ! -d /downloads ]; then |
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 json | |
import os | |
from botocore.vendored import requests | |
TOKEN = os.environ['TOKEN'] | |
API = "https://api.telegram.org/bot{}/".format(TOKEN) | |
def send_message(text, chat_id): | |
final_text = "Your Message was: " + text | |
url = API + "sendMessage?text={}&chat_id={}".format(final_text, chat_id) |
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 { | |
kafka { | |
bootstrap_servers => "localhost:9092" | |
topics => "apache" | |
} | |
} | |
filter { | |
grok { | |
match => { "message" => "%{COMBINEDAPACHELOG}" } |
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
{ | |
"name" : "elasticsearch", | |
"cluster_name" : "elasticsearch", | |
"cluster_uuid" : "W_Ky1DL3QL2vgu3sdafyag", | |
"version" : { | |
"number" : "7.2.0", | |
"build_flavor" : "default", | |
"build_type" : "deb", | |
"build_hash" : "508c38a", | |
"build_date" : "2019-06-20T15:54:18.811730Z", |
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
{ | |
"min": $input.params('min'); | |
"max": $input.params('max'); | |
} |
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 | |
# mount EFS volume | |
# https://docs.aws.amazon.com/efs/latest/ug/gs-step-three-connect-to-ec2-instance.html | |
# create a directory to mount our efs volume to | |
"sudo mkdir -p /mnt/efs", | |
# mount the efs volume | |
"sudo mount -t nfs4 -o nfsvers=4.1 ${aws_efs_mount_target.efs-mount-target.dns_name}:/ /mnt/efs", | |
# create fstab entry to ensure automount on reboots | |
# https://docs.aws.amazon.com/efs/latest/ug/mount-fs-auto-mount-onreboot.html#mount-fs-auto-mount-on-creation | |
"sudo su -c \"echo '${aws_efs_mount_target.efs-mount-target.dns_name}:/ /mnt/efs nfs defaults,vers=4.1 0 0' >> /etc/fstab\"" #create fstab entry to ensure automount on reboots |
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
#loglevel.default is the default log level for jobs: ERROR,WARN,INFO,VERBOSE,DEBUG | |
loglevel.default=INFO | |
rdeck.base=/rundeckFiles/ | |
#rss.enabled if set to true enables RSS feeds that are public (non-authenticated) | |
rss.enabled=false | |
server.address=DNS_REPLACE | |
grails.serverURL=DNS_REPLACE | |
dataSource.dbCreate = update | |
dataSource.url = jdbc:driver://RDS_HOSTNAME:3306/RDS_DBNAME?user=RDS_USERNAME&password=RDS_PASSWORD;MVCC=true |
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: "This is the first CF Template for running Rundeck via UserData!" | |
Parameters: | |
NameOfService: | |
Description: "The name of the service this stack is to be used for." | |
Type: String | |
KeyName: | |
Description: Name of an existing EC2 KeyPair to enable SSH access into the server | |
Type: AWS::EC2::KeyPair::KeyName | |
DatabaseName: |
NewerOlder