beanstalk-deploy | GitHub action ( and command line script | Continuous Deployment library
kandi X-RAY | beanstalk-deploy Summary
kandi X-RAY | beanstalk-deploy Summary
Beanstalk Deploy is a GitHub action (and command line script) to deploy apps to AWS Elastic Beanstalk. It takes the application name, environment name, version name, region and filename as parameters, uploads the file to S3, creates a new version in Elastic Beanstalk, and then deploys that version to the environment. It will wait until the deployment is finished, logging any messages from the environment during the update and exiting with a non-zero exit code if the deployment fails. It does not handle rolling back the environment.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Make an AWS API request
- Main execution method .
- Waits for deployment notifications
- Get a list of events for deployment .
- Deploys a new version to the storage .
- Make an HTTP request
- Create a canonical request string for the given pathstring and querystring .
- Deploy an existing version .
- expect expected response
- Create a new application version
beanstalk-deploy Key Features
beanstalk-deploy Examples and Code Snippets
Community Discussions
Trending Discussions on beanstalk-deploy
QUESTION
I have a Github action pipeline that can successfully create an S3 and then upload my war file into there, but when deploying to the beanstalk, always got s3 access denied error. below is my build.yml file:
...ANSWER
Answered 2021-Oct-30 at 19:02As per docs, you need to attach the below policies for the AWS user to be able to deploy your project when using the GitHub action you have specified:
AWSElasticBeanstalkWebTier
AWSElasticBeanstalkManagedUpdatesCustomerRolePolicy
Adding the above will fix the problem, while also ensuring that you have no future issues when using this GitHub action.
QUESTION
I am trying to deploy to AWS using Github actions. The only problem is, that I have a main repo
and frontend and backend submodules
inside it.
This is the script I am using for deploy:
...ANSWER
Answered 2021-Oct-12 at 22:55Consulting the actions/checkout
documentation, there is a submodules
argument (default value false
) that controls whether the checkout includes submodules. So, you likely want
QUESTION
I am deploying my laravel application to AWS Elastic Beanstalk and I'm encountering the problem of persisting the oauth keys for laravel passport.
I went through this and this. While the S3 option sounds reasonable, I still wanted a more secure way and wanted to checkout secret manager from AWS.
Since laravel passport provides the option to load keys from a custom folder, I figured I could use the AWS PHP SDK to retrieve a secret key and write it to storage/app/oauth-public.key
and storage/app/oauth-private.key
and have passport load it from there.
This approach is working fine after deployment to beanstalk but is the storage/app
folder a safe location to generate the oauth.*.key
files? or is there a better way/safer place?
The following is my boot function in Providers/AuthServiceProvider.php
ANSWER
Answered 2021-Jan-20 at 21:45Generally your applications on AWS should be stateless. This means that no data should be stored on the instances as they can be replaced at any time due to scaling in activities, AZ re-balancing or other activities.
Consequently, usually you would store application data outside of your instances. For secretes, such as your keys, good locations could be SSM Parameter Store or Secrets Manager (SM).
You are already using SM which is good in my view. If you store them locally in storage/app
this folder will be deleted anytime you deploy new version of your application. So you have to make sure that you always get the keys from SM. Also you could consider them storing the files in memory, rather then on a hard drive. This would allow you to get them faster without reading them from the local storage.
QUESTION
I am trying to build a CD pipeline using the GitHub Actions and AWS Beanstalk (Linux) for my ASP.NET Core 3.1 app. I have configured the YML file as follows:
...ANSWER
Answered 2020-Jul-21 at 19:19Warning: This is a workaround, not a solution!
On the project that's failing to deploy, change the "Assembly name" in Project Properties / Application tab, to the name of the DLL it's missing (typically the solution name or the first period-separated part of the namespace).
i.e. "SLNNAME"
Then, redeploy your beanstalk app and it should work.
QUESTION
I'm trying to deploy my Angular application through GitHub Actions to Elastic Beanstalk. I'm using this GitHub actions for the deploying to ELB.
My problem is, the deployment is failing as the ELB cannot find the server.js
file. I have tried adding server.js
file into the deploy.zip file, but then it throws a different error.
I get it, it needs server.js
to run, but when I download the build for the same application which is pushed to ELB using Travis CI. It doesn't throw such error and CI/CD is working just fine.
Here is the error logged by ELB (when server.js
is not added to deploy.zip):
ANSWER
Answered 2020-Jan-06 at 09:22I figured it out finally.
We need to zip the complete root folder excluding the node_modules
folder. So, in that case, I won't need any server.js
and package.json
included inside the dist
folder.
Updated yml snippet
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install beanstalk-deploy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page