All Questions
Tagged with deployment amazon-web-services
830
questions
90
votes
4
answers
105k
views
For an Amazon S3 bucket deployment from GitHub how do I fix the error AccessControlListNotSupported: The bucket does not allow ACLs?
I have the following access policy set on an IAM user in my AWS account. The policy references the bucket name which is "xo-staging".
{
"Version": "2012-10-17",
&...
68
votes
3
answers
31k
views
How to deploy a React + NodeJS Express application to AWS?
I have a React + Webpack/Babel + Node/Express application and I want to deploy it on AWS.
Would I have to deploy React and Node/Express separately? Or could they be deployed together at once?
53
votes
4
answers
34k
views
Blue Green Deployments vs Rolling Deployments?
What's the difference between a blue/green deployment and a rolling deployment? I always thought that a blue/green deployment was a sudden switch of traffic from the old version to the new version ...
53
votes
7
answers
83k
views
AWS ECS restart Service with the same task definition and image with no downtime
I am trying to restart an AWS service (basically stop and start all tasks within the service) without making any changes to the task definition.
The reason for this is because the image has the ...
49
votes
8
answers
47k
views
AWS EB Error: Incorrect application version found on all instances
I am trying to use the EB CLI to deploy an application into an environment but I seem to be getting strange errors. Is there a way to empty out previous application versions so I can upload a fresh ...
31
votes
8
answers
15k
views
Best strategy to deploy static site to s3 on github push? [closed]
I'd like to automate deploying our site to AWS S3. I've written a node script to automate building and uploading the site, but I'd like to have the script automatically run whenever the master branch ...
29
votes
1
answer
9k
views
How to understand Amazon ECS cluster
I recently tried to deploy docker containers using task definition by AWS. Along the way, I came across the following questions.
How to add an instance to a cluster? When creating a new cluster ...
29
votes
2
answers
12k
views
How to prevent downtime during AWS Elastic Beanstalk deployment of a new version of the app?
My understanding of Elastic Beanstalk is that when you deploy a new version of your app, that it deploys it to the Amazon EC2 instances one at a time (if you have more than one). However, even with a ...
21
votes
6
answers
15k
views
how do I deploy Django on AWS? [closed]
I'm looking to deploy a django app on AWS (since I have some credit coupon) and am looking for a good place to read about it - mostly b/c I never used it before. thanks
20
votes
2
answers
8k
views
Creating load balancer failed Reason: Default VPC not found
i m trying to deploy my app spring boot to aws elastic beanstalk , but i got these errors:
18
votes
3
answers
5k
views
AWS S3 website versioning
I am running a website on AWS S3 bucket. I have to update the website once in a while. At the moment, when I do the deployment I just copy the built files to my bucket and override existing ones.
Is ...
16
votes
6
answers
18k
views
AWS Lambda: class java.lang.ClassNotFoundException
I am getting this message and I have no idea how to resolve it. Searched online and tried to implement their suggestion, but no luck yet.
I basically followed the instructions specified in this link -...
15
votes
1
answer
13k
views
AWS CodeDeploy does not have the permissions required to assume the role
I am trying to set up CI/CD with AWS + EC2 and am stuck when creating Deployment Group. The role of CodeDeploy has policies AWSCodeDeployRole and AWSCodeDeployRoleForECS but it throws an error. I ...
15
votes
4
answers
11k
views
How to automatically restart delayed_job when deploying a rails project on Amazon Elastic Beanstalk?
I'm hosting a rails project on Amazon Elastic Beanstalk and I try to configure a container command to automatically restart my delayed_job worker on the server after each deployment.
I tried with ...
14
votes
2
answers
5k
views
Should I include my .aws-sam file in my repository?
Quick question for anyone that is using AWS SAM to deploy their microservices in AWS.
Do you include your .aws-sam files into your repositories? Or do you gitignore this directory and sub directories?
14
votes
2
answers
6k
views
AWS Beanstalk docker image automatic update doesn't work
I have a node.js application packaged in a docker image hosted in a public repository.
I have deployed that image in an AWS Beanstalk docker application successfully.
The problem is that I was ...
14
votes
4
answers
3k
views
Java EE application deployment on Amazon EC2
We have a Java EE application (EAR file deployed on JBoss, MySQL, MongoDB) which we would like to deploy on an Amazon EC2 instance. I have several questions regarding deployment best practices.
What ...
13
votes
2
answers
7k
views
Amazon cli image doesn't work with Gitlab CI
I'm trying to run the aws command (to invalidate cloudfront) using official aws image and have the following config of .gitlab-ci.yml:
static-invalidation:
<<: *production-env
stage: ...
13
votes
2
answers
12k
views
AWS Elastic Beanstalk health check issue
My web application is Django and web server use Nginx, use Docker image and Elastic Beanstalk for deployment.
Normally there was no problem, but as the load balancer expands EC2, my web server ...
12
votes
4
answers
21k
views
Execute command after deploy AWS Beanstalk
I have problem with execute command after deploy, i have some node.js project and script, this script use some bin from node_modules, if i write my command for script in .ebextensions/.config he ...
12
votes
4
answers
6k
views
Serverless framework deployment error: You're not authorized to access this resource
When I deploy my serverless framework project using AWS as provider I get:
You're not authorized to access this resource. - Please contact support and provide this identifier to reference this issue ...
12
votes
3
answers
12k
views
How to deploy an AWS Amplify app from GitHub Actions?
I want to control Amplify deployments from GitHub Actions because Amplify auto-build
doesn't provide a GitHub Environment
doesn't watch the CI for failures and will deploy anyways, or
requires me to ...
12
votes
1
answer
13k
views
AccessDenied: User is not authorized to perform: cloudfront:CreateInvalidation
I'm trying to deploy an ember app to AWS CloudFront using ember-cli-deploy and ember-cli-deploy-cloudfront.
I set up my bucket and user in AWS, gave my user AmazonS3FullAccess policy.
Set up my ....
12
votes
3
answers
11k
views
Is there any possibility to use CodeDeploy environment variables in section files of AppSpec file
I have website, which stored on AWS EC2 servers.
We have 2 servers, one for production environment and another one for development and staging environments.
Development and staging environments ...
12
votes
2
answers
4k
views
Deploy to elasticbeanstalk via CLI deploy command with Dockerrun.aws.json
I am running an elasticbeanstalk application, with multiple environments. This particular application is hosting docker containers which host a webservice.
To upload and deploy a new version of the ...
11
votes
4
answers
10k
views
AWS Amplify Build Settings
Using Amplify I'm having difficulty deploying a React application which I believe is due to the build settings.
When trying to deploy the default build settings provided are shown below:
I know this ...
11
votes
2
answers
13k
views
How to Deploy Django Rest Framework and React on AWS
I am very new to deploy Django and AWS. So now I would like to deploy my separate project (drf + react) to AWS.
So How can I deploy the separate project to AWS?
EC2 vs Elastic BeanStalk which one ...
11
votes
1
answer
5k
views
amazon aws elastic beanstalk. Custom Configuration Files not working
I've got a problem with Custom Configuration File in aws elastic beanstalk.
My application is python flask app.
I put 01wsgi.config file into .ebextensions.
and zipped it then upload to elastic ...
10
votes
3
answers
10k
views
Deploy Rails Application on EC2
For the past week, I've been playing with the Rubber gem and can't seem to get it to work. I've decided it would be easier just to manually set up my EC2 instance. The problem is that I don't know how....
10
votes
6
answers
36k
views
ElasticBeanstalk, deployment error: Command hooks (directoryHooksExecutor.py --path /opt/elasticbeanstalk/hooks/appdeploy/pre/) failed
getting this error:
Command hooks (directoryHooksExecutor.py --path /opt/elasticbeanstalk/hooks/appdeploy/pre/) failed
after trying to deploy via git aws.push.
The deployment doesn't go through, ...
10
votes
4
answers
9k
views
Deployment options using Amazon Lightsail? [closed]
We're looking to host a number of small projects on Amazon Lightsail. For larger projects we use Codepipeline to manage deployments from github.
Is there a similar option available to push ...
10
votes
1
answer
2k
views
pm2 creates a "source" directory and copies all my files inside, why?
I deleted my previous question because it was not very clear, and the problem was not clearly exposed. I have an instance @aws, a repository @gitlab, and gitlab CI is setup.
I made a little app in ...
9
votes
4
answers
7k
views
Deploy ASP.NET Core to AWS Elastic Beanstalk, must include a file with a '.runtimeconfig.json' suffix error
I am trying to deploy ASP.NET Core (dotnet version 5.0) to AWS Elastic Beanstalk with Bitbucket pipelines, but the deploy step results in error: Instance deployment: Your source bundle has a single ....
9
votes
2
answers
8k
views
Deployment using CodeDeploy failing at "install" step due to error "File already exists"
This is the error I am getting at the "install" step -
File already exists at location /var/cake_1.2.0.6311-beta/app/webroot/../../somefile.php
I am unable to conclude what course of events brought ...
9
votes
3
answers
1k
views
Heroku-like deployment and environment configuration via EC2
I really like the approach of a 12factor app, which you are kinda forced into, when you deploy an application to Heroku. For this question I'm particularly interested in setting environment variables ...
9
votes
1
answer
3k
views
Deploy Django API application with AWS Lambda
Is it a way / tutorial how to deploy / convert Existing Django Application (I am using django-rest-famework) for APIs to be available via API Gateway and executed by AWS Lambda functions?
I see ...
8
votes
1
answer
11k
views
Is there a timeout configuration for AWS code pipeline action?
I'm currently looking for a way to automatically stop a step, whether it be build or deploy if it reaches a certain threshold.
Like if the deploy step lasted for 15 minutes already, I want it to ...
8
votes
3
answers
4k
views
How do I enable continuous deployment of Node.js applications to Amazon EC2?
I am a node.js developer. I have used Heroku and Joyent's no.de platform before .
For both of these platforms , the deployment used to be simple
git push heroku master ( Heroku )
git push joyent ...
8
votes
1
answer
6k
views
Issue with Elastic Beanstalk, Immutable Deployments, and CloudFormation
We have just recently begun using immutable deployments with Elastic Beanstalk. To be more specific, we enabled
immutable application deployment and
immutable configuration updates.
We use ...
8
votes
1
answer
3k
views
Is is possible to deploy a Docker image straight to AWS?
I'm having a tough time wrapping my brain around the possibilities of Docker, so pardon my ignorance here:
Can I take a Docker image of a database server that I've created, and deploy that straight ...
8
votes
2
answers
17k
views
AWS ECS InvalidParameterExcpetion when calling the UpdateService Operation
I've been trying to setup CI/CD for my ECS cluster using jenkins. I followed this blog to do the same. But I'm getting this error:
An error occurred (InvalidParameterException) when calling the
...
8
votes
1
answer
5k
views
ActionCable on AWS: Error during WebSocket handshake: Unexpected response code: 404
We are attempting to deploy DHH's simple Rails 5 chat example to a single, self contained EC2 instance on AWS. Code is available here: https://github.com/HectorPerez/chat-in-rails5
We used Elastic ...
8
votes
5
answers
798
views
Database trouble deploying django app to amazon beanstalk
I tried to deploy my Django application to AWS beanstalk. For this I was following this tutorial:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
However, when ...
8
votes
2
answers
4k
views
Rails secrets.yml VS Dotenv VS Figaro with Capistrano on AWS
There are several posts ans Stack Overflow questions about how to manage API tokens on the web, but I see a lot of people repeat what they read somewhere else, often with contradictions...
How do you ...
8
votes
2
answers
2k
views
Best practise/way to deploy Laravel + Vue SPA application to AWS
I have 2 repositories residing in Bitbucket - Backend (Laravel app as the API and entry point) and Frontend (Main application front-end - VueJs app). My goal is to set up continuous deployment so ...
7
votes
2
answers
12k
views
AWS Fargate deploy: "Invalid action configuration The AWS ECS container ***** does not exist"
I am using terraform to provision the resources required.
I have a terraform codepipeline resource and the Production stage reads the imagedefinitions.json file to know which images to deploy:
...
7
votes
1
answer
5k
views
Create File in /var/app/current directory after successful deployment
I am trying to create a file in the /var/app/current directory after a successful deployment. I already created a configuration file under .ebextensions but the file is not being created. I think it ...
7
votes
2
answers
3k
views
OpsWorks overriding database.yml / ignoring custom JSON
When I deploy a Rails app with OpsWorks, a new database.yml gets created in the shared directory. It ignores the existing database.yml (which rightfully shouldn't be in the repo), and I've also tried ...
7
votes
1
answer
1k
views
Spray-servlet on Tomcat 7 vs Spray-can jar on JVM
Has anyone benchmarked the performances of his/her application in following two combinations?
built with spray-servlet and deployed on Tomcat 7 on JVM 7
built with spray-can and deployed as a jar on ...