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 | |
set -euo pipefail | |
function usage() { | |
cat <<EOF | |
Usage: [TF_SKIP_INIT=boolean ] $0 [-help] <env> <command> [args] | |
env : environment [stg/prd/...] | |
command : terraform command [plan/apply/state/...] | |
args : subcommand [e.g. state "mv"] and terraform command options (see : terraform <command> -help) | |
TF_SKIP_INIT : skip "terraform init" |
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
upstream app { | |
server unix:/home/webapp/rails-deploy/tmp/sockets/puma.sock; | |
} | |
server { | |
listen 80; | |
root /home/webapp/rails-deploy/public; | |
client_max_body_size 10m; | |
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 | |
Parameters: | |
VpcCidrBlock: | |
Type: String | |
Default: 172.18.0.0/16 | |
PublicSubnetCidrBlockA: | |
Type: String | |
Default: 172.18.0.0/24 | |
PublicSubnetCidrBlockC: |