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
version: '2.1' | |
volumes: | |
kong_data: {} | |
networks: | |
kong-net: | |
services: | |
kong-migrations: | |
image: "${KONG_DOCKER_TAG:-kong:latest}" |
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 = require('aws-sdk') | |
AWS.config.region = 'ap-northeast-1' | |
ssm = new AWS.SSM() | |
Promise = require('bluebird') | |
retry = require('bluebird-retry') | |
Promise.promisifyAll(ssm) | |
checkStatus = (id) -> | |
params = |
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
{ | |
"service": { | |
"name": "VoIP", | |
"port": 9999, | |
"address": "xx.xx.xx.xx", | |
"tags": ["ap-northeast-1"], | |
"checks": [ | |
{ | |
"http": "http://localhost:9999/xxx", | |
"interval": "10s" |
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
ps -Cruby ufw | |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
webapp 19078 0.0 2.6 113468 26572 ? Ssl 22:08 0:00 puma 2.10.2 (unix:///var/run/puma/my_app.sock) | |
webapp 19084 0.3 18.3 845408 186564 ? Sl 22:08 0:16 \_ puma: cluster worker 0: 19078 | |
healthd 2410 0.0 2.6 686832 27316 ? Ssl 2015 50:45 puma 2.11.1 (tcp://127.0.0.1:22221) [healthd] |
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
ap-northeast-1 us-west-2 | |
| 172.16.0.0/16 |<-->| VyOS |<==INTERNET==>| VPN |<-->| 172.17.0.0/16 | |
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 /opt/rubies/ruby-current/bin/ruby | |
#============================================================================== | |
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
# | |
# Licensed under the Amazon Software License (the "License"). You may not use | |
# this file except in compliance with the License. A copy of the License is | |
# located at | |
# | |
# https://aws.amazon.com/asl/ | |
# |
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
deploy: | |
steps: | |
- hotakasaito/elastic-beanstalk-deploy: | |
key: $AWS_ACCESS_KEY_ID | |
secret: $AWS_SECRET_KEY | |
app_name: app01 | |
env_name: stg | |
region: ap-northeast-1 |
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
server { | |
listen 81; | |
rewrite ^ https://$host$request_uri permanent; | |
} |
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 td-agent-gem install fluent-plugin-aws-elasticsearch-service |
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 | |
set -xe | |
INSTANCE_ID=*** | |
APP_ID=*** | |
for i in opsworks_cookbooks contents | |
do | |
zip -9r ${i}.zip $i |
NewerOlder