README.md in simnos-0.1.0.beta4 vs README.md in simnos-0.1.0

- old
+ new

@@ -23,29 +23,31 @@ ``` export AWS_ACCESS_KEY_ID='...' export AWS_SECRET_ACCESS_KEY='...' export AWS_REGION='ap-northeast-1' -simnos -e -o SNSfile # export SNS topic +simnos -e -f SNSfile # export SNS topic vi SNSfile simnos -a --dry-run simnos -a # apply `SNSfile` to SNS ``` ## Help ``` Usage: simnos [options] - -h, --help Show help - -v, --debug Show debug log + -h, --help show help + -v, --debug show debug log -a, --apply apply DSL -e, --export export to DSL -n, --dry-run dry run -f, --file FILE use selected DSL file -s, --split split export DSL file to 1 per topic --no-color no color + --with-subscriptions + manage subscriptions -i, --include-names NAMES include SNS names -x, --exclude-names NAMES exclude SNS names by regex ``` ## SNSfile @@ -76,9 +78,16 @@ "Effect"=>"Allow", "Principal"=>{"AWS"=>"*"}, "Action"=>"SNS:Subscribe", "Resource"=>"arn:aws:sns:ap-northeast-1:XXXXXXXXXXXX:test-topic", "Condition"=>{"StringEquals"=>{"AWS:SourceOwner"=>"XXXXXXXXXXXX"}}}]} + end + + subscriptions opt_out: false do + subscription protocol: "https", endpoint: "https://your.awesome.site/" + subscription protocol: "email", endpoint: "simnos@example.com" + subscription protocol: "email-json", endpoint: "simnos@example.com" + subscription protocol: "sqs", endpoint: "arn:aws:sqs:ap-northeast-1:XXXXXXXXXXXX:test-queue" end end end ```