This file contains hidden or 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 | |
| set -eu | |
| trap catch ERR | |
| trap finally EXIT | |
| function catch { | |
| echo CATCH | |
| } |
This file contains hidden or 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
| LSB=1 |
This file contains hidden or 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
| [default] | |
| aws_access_key_id = DEFAULT_ACCESS_KEY_ID | |
| aws_secret_access_key = DEFAULT_SECRET_ACCESS_KEY | |
| aws_session_token = DEFAULT_SESSION_TOKEN | |
| [dev] | |
| aws_access_key_id = DEV_ACCESS_KEY_ID | |
| aws_secret_access_key = DEV_SECRET_ACCESS_KEY |
This file contains hidden or 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" : { | |
| "BucketName" : { | |
| "Description" : "Name of the S3 bucket.", | |
| "Type" : "String" | |
| }, | |
| "TopicName" : { | |
| "Description" : "Name of the SNS topic.", | |
| "Type" : "String", |
This file contains hidden or 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": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "lambda:InvokeFunction" | |
| ], | |
| "Resource": [ | |
| "*" |
This file contains hidden or 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
| exports.do = function(event, callback) { | |
| console.log('doing'); | |
| callback(null, 'done'); | |
| }; |
This file contains hidden or 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
| { | |
| "message": "At least one of the pre-conditions you specified did not hold", | |
| "code": "PreconditionFailed", | |
| "time": "2014-12-03T02:54:39.101Z", | |
| "statusCode": 412, | |
| "retryable": false | |
| } |
This file contains hidden or 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
| begin | |
| require 'aws-sdk-core' | |
| rescue LoadError | |
| else | |
| # aws.rb may already have been initialized | |
| Aws.config[:region] ||= 'ap-northeast-1' | |
| Pry::Commands.import(Pry::CommandSet.new { | |
| block_command 'aws-assume-role' do |role_name, external_id, token_code| | |
| system "~/bin/aws-assume-role #{role_name} #{external_id} #{token_code}" |
This file contains hidden or 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
| { | |
| "Resources": { | |
| "Group": { | |
| "Type": "AWS::AutoScaling::AutoScalingGroup", | |
| "UpdatePolicy": { | |
| "AutoScalingRollingUpdate": { | |
| "MaxBatchSize": "2", | |
| "MinInstancesInService": "5", | |
| "PauseTime": "PT10M", | |
| "WaitOnResourceSignals": "true" |
This file contains hidden or 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": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "1", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "s3:GetBucketLocation", | |
| "s3:ListBucket" | |
| ], |
OlderNewer