Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git aws.push
- /config/database.yml
- /config/initializers/omniauth.rb
- /config/initializers/secret_token.rb
- sources:
- /etc/myapp: http://s3.amazonaws.com/mybucket/myobject
- sources:
- /var/app/current/: https://s3.amazonaws.com/mybucket/config.tar.gz
- /config/database.yml
- /config/initializers/omniauth.rb
- /config/initializers/secret_token.rb
- Error message:
- No such file or directory - /var/app/current/config/database.yml
- Exception class:
- Errno::ENOENT
- Application root:
- /var/app/current
- # .ebextensions/sensitive_files.config
- Resources:
- AWSEBAutoScalingGroup:
- Metadata:
- AWS::CloudFormation::Authentication:
- S3Auth:
- type: "s3"
- buckets: ["elasticbeanstalk-us-east-1-XXX"] # Replace with your bucket name
- roleName:
- "Fn::GetOptionSetting":
- Namespace: "aws:autoscaling:launchconfiguration"
- OptionName: "IamInstanceProfile"
- 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
- files:
- /etc/pki/tls/certs/server.key: # This is where the file will be copied on the EC2 instances
- mode: "000400" # Apply restrictive permissions to the file
- owner: root # Or nodejs, or whatever suits your needs
- group: root # Or nodejs, or whatever suits your needs
- authentication: "S3Auth"
- 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