To gain access to the Amazon instance, you must first construct a keypair (which I think you already have). Make that ssh access is enabled in the security group you've chosen. Then, assuming you're running the app in a staging environment, cd into the app directory and run bundle exec rake db:seed RAILS ENV='staging'.