Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. git aws.push
  2.  
  3. /config/database.yml
  4. /config/initializers/omniauth.rb
  5. /config/initializers/secret_token.rb
  6.  
  7. sources:
  8. /etc/myapp: http://s3.amazonaws.com/mybucket/myobject
  9.  
  10. sources:
  11. /var/app/current/: https://s3.amazonaws.com/mybucket/config.tar.gz
  12.  
  13. /config/database.yml
  14. /config/initializers/omniauth.rb
  15. /config/initializers/secret_token.rb
  16.  
  17. Error message:
  18. No such file or directory - /var/app/current/config/database.yml
  19. Exception class:
  20. Errno::ENOENT
  21. Application root:
  22. /var/app/current
  23.  
  24. # .ebextensions/sensitive_files.config
  25.  
  26. Resources:
  27. AWSEBAutoScalingGroup:
  28. Metadata:
  29. AWS::CloudFormation::Authentication:
  30. S3Auth:
  31. type: "s3"
  32. buckets: ["elasticbeanstalk-us-east-1-XXX"] # Replace with your bucket name
  33. roleName:
  34. "Fn::GetOptionSetting":
  35. Namespace: "aws:autoscaling:launchconfiguration"
  36. OptionName: "IamInstanceProfile"
  37. DefaultValue: "aws-elasticbeanstalk-ec2-role" # This is the default role created for you when creating a new Beanstalk environment. Change it if you are using a custom role
  38.  
  39. files:
  40. /etc/pki/tls/certs/server.key: # This is where the file will be copied on the EC2 instances
  41. mode: "000400" # Apply restrictive permissions to the file
  42. owner: root # Or nodejs, or whatever suits your needs
  43. group: root # Or nodejs, or whatever suits your needs
  44. authentication: "S3Auth"
  45. source: https://s3-us-west-2.amazonaws.com/elasticbeanstalk-us-east-1-XXX/server.key # URL to the file in S3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement