Quantcast
Channel: capistrano - There's an echo in my head
Viewing all articles
Browse latest Browse all 15

capistrano-ec2_taggedというgemのv0.1.0をリリースした

$
0
0

以前Capistranoでデプロイ対象のEC2インスタンスをタグで指定するものを書いているという記事で紹介した、capistrano-ec2_taggedというgemをリリースした。

当時と設定の仕方が変わっていて、 キーにaws_というprefixを追加した*1なのでv0.1.0からは下記のように設定する:

# Gemfile
gem "capistrano-ec2_tagged", require: false# Capfilerequire"capistrano/ec2_tagged"# deploy.rb# このへんがちょっとだけ変わってる
set :aws_access_key_id, "ACCESS KEY ID"
set :aws_secret_access_key, "SECRET ACCESS KEY"
set :aws_region, "ap-northeast-1"# production.rb
role :app, ec2_tagged(some_tag: "foo", another_tag: "bar")

コードは引き続きGitHub上にあげてある: https://github.com/a2ikm/capistrano-ec2_tagged

*1:このコードはmasterにも反映されているので、もしGitHubからcloneして使ってる人がいたら注意してください


Viewing all articles
Browse latest Browse all 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>