aws-opsworks

Can I automate an application deployment via webhook to OpsWorks?

巧了我就是萌 提交于 2019-12-03 11:40:56
问题 I want to set up an webhook from our Github account so it automatically starts an deployment task in OpsWorks. It seems to be possible according to the documentation - but can't find any examples or smart lib which is unusual for the Internets. ;) 回答1: This process is much simpler now. All you have to do is provide the required values per the Webhook, and it will be done for you. Steps : GitHub repository -> Settings Webhooks & Services AWS Opsworks Provide AWS::IAM keys, Stack and App ID ,

Cannot set a property of cognito userpool client via cloudformation

亡梦爱人 提交于 2019-12-03 08:25:47
I am trying to run congnito via cloudformation and everything works but there is section in cognito as follows: As you see there is section "Enable identity providers" and I can not find where I can set it to my cognito user pool in cloudformation! I tried this attributes but it says not supported. SupportedIdentityProviders Here is my code for user pool client: UserPoolClient: Type: "AWS::Cognito::UserPoolClient" Properties: ClientName: !Sub ${project}-client ExplicitAuthFlows: - ADMIN_NO_SRP_AUTH - USER_PASSWORD_AUTH GenerateSecret: false UserPoolId: !Ref UserPool RefreshTokenValidity: 30

Using Ruby 2.0 on Amazon OpsWorks

。_饼干妹妹 提交于 2019-12-03 07:59:22
I'd like to use Ruby 2.0 on Amazon OpsWorks, so I'm trying the following: Choose custom cookbooks and set them to my fork of https://github.com/aws/opsworks-cookbooks Update all version numbers here https://github.com/aws/opsworks-cookbooks/blob/master/ruby/attributes/ruby.rb to 2.0 values. This doesn't seem to have any effect, though. Do custom cookbooks override their built in counterparts? Does OpsWorks use the Ruby recipe from the cookbook for basic Ruby setup? The same question applies to Nginx too - can I control versions and settings by changing my fork for the cookbooks? OpsWorks now

How to precompile assets with Chef?

≯℡__Kan透↙ 提交于 2019-12-03 06:02:45
问题 OpsWorks isn't precompiling assets on deploy. I found this recipe in this thread but I think it's not complete though, or missing something because I get an error about release_path not being found. precompile.rb: Chef::Log.info("Running deploy/before_migrate.rb...") Chef::Log.info("Symlinking #{release_path}/public/assets to #{new_resource.deploy_to}/shared/assets") link "#{release_path}/public/assets" do to "#{new_resource.deploy_to}/shared/assets" end rails_env = new_resource.environment[

Can I automate an application deployment via webhook to OpsWorks?

让人想犯罪 __ 提交于 2019-12-03 02:07:27
I want to set up an webhook from our Github account so it automatically starts an deployment task in OpsWorks. It seems to be possible according to the documentation - but can't find any examples or smart lib which is unusual for the Internets. ;) This process is much simpler now. All you have to do is provide the required values per the Webhook, and it will be done for you. Steps : GitHub repository -> Settings Webhooks & Services AWS Opsworks Provide AWS::IAM keys, Stack and App ID , and branch you want to deploy. Be aware that by this process you deploy a specific app to ALL the layers in a

How to precompile assets with Chef?

隐身守侯 提交于 2019-12-02 19:29:57
OpsWorks isn't precompiling assets on deploy. I found this recipe in this thread but I think it's not complete though, or missing something because I get an error about release_path not being found. precompile.rb: Chef::Log.info("Running deploy/before_migrate.rb...") Chef::Log.info("Symlinking #{release_path}/public/assets to #{new_resource.deploy_to}/shared/assets") link "#{release_path}/public/assets" do to "#{new_resource.deploy_to}/shared/assets" end rails_env = new_resource.environment["RAILS_ENV"] Chef::Log.info("Precompiling assets for RAILS_ENV=#{rails_env}...") execute "rake assets

Windows Puppet agent does not connect to the AWSOpsWorks Puppet Enterprise master

佐手、 提交于 2019-12-02 00:31:46
I have created the puppet master using aws opsworks. and I am able to add ami linux nodes automatically to the puppet master. I am having issues when I tried to to add a windows 64 bit node to my puppet master by following this link https://puppet.com/docs/pe/2017.3/installing/installing_agents.html#install-windows-agents-with-the-msi-package I copied the puppet-agent-x64.msi from the puppet master present in location to the windows node and /opt/puppetlabs/server/data/packages/public//windows-x86_64-/ and ran the installer to install the agent. the installation is successful and the Start

AWS OpsWorks vs AWS Beanstalk vs AWS CloudFormation?

五迷三道 提交于 2019-11-30 10:12:39
问题 I would like to know what are the advantages and disadvantages of using AWS OpsWorks vs AWS Beanstalk and AWS CloudFormation? I am interested in a system that can be auto scaled to handle any high number of simultaneous web requests (From 1000 requests per minute to 10 million rpm.), including a database layer that can be auto scalable as well. Instead of having a separate instance for each app, Ideally I would like to share some hardware resources efficiently. In the past I have used mostly

AWS OpsWorks vs AWS Beanstalk vs AWS CloudFormation?

余生颓废 提交于 2019-11-29 19:04:30
I would like to know what are the advantages and disadvantages of using AWS OpsWorks vs AWS Beanstalk and AWS CloudFormation? I am interested in a system that can be auto scaled to handle any high number of simultaneous web requests (From 1000 requests per minute to 10 million rpm.), including a database layer that can be auto scalable as well. Instead of having a separate instance for each app, Ideally I would like to share some hardware resources efficiently. In the past I have used mostly an EC2 instance + RDS + Cloudfront + S3 The stack system will host some high traffic ruby on rails apps

Node.js OpsWorks Layer console logs

情到浓时终转凉″ 提交于 2019-11-29 09:43:01
问题 I have an Opsworks stack with a Node.js Layer and Node.js Application. I'm wondering if anyone knows where on an ubuntu 14.04LTS instance the console logs from my application are being printed to. I know the opsworks uses monit to run my application but I'm not sure where its outputting the logs to. Thanks! 回答1: So annoyingly enough, the Monit configuration rendered for Node.JS apps on Opsworks doesn't send the output anywhere! Source for this claim. (This surprised me when I learned about it