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/sh | |
### BEGIN INIT INFO | |
# Provides: node_exporter | |
# Required-Start: $remote_fs | |
# Required-Stop: $remote_fs | |
# Should-Start: $all | |
# Should-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
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
--- | |
policies: | |
- name: ec2-tag-policy | |
resource: aws.ec2 | |
filters: | |
- or: | |
- "tag:Project": absent | |
- "tag:Team": absent |
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::ACM::Certificate | |
AWS::ApiGateway::RestApi | |
AWS::ApiGateway::Stage | |
AWS::ApiGatewayV2::Api | |
AWS::ApiGatewayV2::Stage | |
AWS::AutoScaling::AutoScalingGroup | |
AWS::AutoScaling::LaunchConfiguration | |
AWS::AutoScaling::ScalingPolicy | |
AWS::AutoScaling::ScheduledAction | |
AWS::CloudFormation::Stack |
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::ApiGateway::Method Dependency | |
AWS::ACMPCA::Certificate | |
AWS::ACMPCA::Certificate Validity | |
AWS::ACMPCA::CertificateAuthority | |
AWS::ACMPCA::CertificateAuthority CrlConfiguration | |
AWS::ACMPCA::CertificateAuthority RevocationConfiguration | |
AWS::ACMPCA::CertificateAuthority Subject | |
AWS::ACMPCA::CertificateAuthorityActivation | |
AWS::AccessAnalyzer::Analyzer | |
AWS::AccessAnalyzer::Analyzer ArchiveRule |
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
# remove previous installed package | |
sudo apt-get remove --purge ansible | |
# install pip | |
wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py --user | |
# install ansible | |
pip install ansible==2.5.0 --user | |
# update PATH |
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
sudo curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh | sh config | |
sudo /usr/sbin/td-agent-gem install fluent-plugin-kv-parser | |
(edit config file, do backup first) | |
sudo cp /etc/td-agent/td-agent.conf /etc/td-agent/td-agent.conf.backup | |
echo " | |
<source> | |
@type tcp | |
tag kv_log # required |
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
user nginx; | |
worker_processes 2; | |
worker_rlimit_nofile 32768; | |
error_log /var/log/nginx/error.log; | |
#error_log /var/log/nginx/error.log notice; | |
#error_log /var/log/nginx/error.log info; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 4096; | |
multi_accept on; |
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/sh | |
# MongoDB backup script | |
# This script is licensed under GNU GPL version 2.0 or above | |
# It makes a folder under BACKUP folder and compress it into .tar.gz.file | |
# Using another script we will remove older backups later | |
# --------------------------------------------------------------------- | |
### System Setup ### | |
BACKUP="" |
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
ServerTokens OS | |
ServerRoot "/etc/httpd" | |
PidFile run/httpd.pid | |
Timeout 60 | |
KeepAlive Off | |
MaxKeepAliveRequests 100 | |
KeepAliveTimeout 15 | |
<IfModule prefork.c> | |
StartServers 8 | |
MinSpareServers 5 |
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
ServerTokens OS | |
ServerRoot "/etc/httpd" | |
PidFile run/httpd.pid | |
Timeout 60 | |
KeepAlive On | |
MaxKeepAliveRequests 100 | |
KeepAliveTimeout 60 | |
<IfModule prefork.c> | |
StartServers 16 | |
MinSpareServers 10 |
NewerOlder