fernandocarletti / capistrano-aws

Integrates Capistrano with AWS EC2.
MIT License
16 stars 6 forks source link

No Instances displayed when using Utility Task #7

Closed esparkman closed 6 years ago

esparkman commented 6 years ago

Hi. I'm using the latest version of your plugin. When I make a call to cap production aws:ec2:instances The table returns nothing.

=> config/deploy.rb
Aws.config.update({
  region: 'us-east-1',
  profile: 'production'
})

# Remove in the future, in the interim this is a value add for sanity's sake
puts Aws.config

---> rest of file omitted
=> confing/deploy/production.rb

aws_ec2_register

set :puma_threads, [1,1]
set :puma_workers, 4
set :mmonit_server, '<omitted>'
role :app, %w(<omitted>)
role :web, %w(<omitted>)

set :linked_files, fetch(:linked_files, []).push('config/secret.prod.yml', 'config/token.prod.yml')

# AWS regions to use.
# set :aws_ec2_regions, ['us-east-1']

# Application name to match application tag.
# set :aws_ec2_application, (proc { fetch(:application) })

# Stage to match stage tag.
# set :aws_ec2_stage, (proc { fetch(:stage) })

# Tag to be used for Capistrano stage.
# set :aws_ec2_stage_tag, 'Production'

# Tag to be used to match the application.
# set :aws_ec2_application_tag, "gatekeeper"

# Tag to be used for Capistrano roles of the server (the tag value can be a comma separated list).
# set :aws_ec2_roles_tag, 'web, app'

# Extra filters to be used to retrieve the instances. See the README.md for more information.
# set :aws_ec2_extra_filters, []

# Tag to be used as the instance name in the instances table (aws:ec2:instances task).
# set :aws_ec2_name_tag, 'gatekeeper'

# How to contact the instance (:public_ip, :public_dns, :private_ip).
# set :aws_ec2_contact_point, :public_ip

I have commented out all the sets to use as much default behavior as possible.