How to upgrade the redash that running on ECS of AWS? - amazon-web-services

Hi,I don't know how to upgrade redash ,my redash is running by ECS on AWS and it depends on redis and rds that run on AWS too.
I pulled redash from docker hub and run it by ECS on AWS,I look into this website https://redash.io/help/open-source/admin-guide/how-to-upgrade ,and get confused.Can the redash image that i pulled from docker hub can be upgraded this way just like the website says, if it can’t, so how can I upgrade it.

Related

How to use Redis with AWS ECS?

I want to use Redis with my nodejs app running in docker on AWS ECS. I'd either want a solution to run Redis in ECS or solution on how to connect ECS with AWS Elasticache
Run Redis in ECS:
Container definitions:
Image:redis:6.0.13
Port mapping:6379
Environment-Command:redis-server,--requirepass redis123456
Login to the Redis Server with password redis123456.It works normally.
Image&Port mapping
Environment-Command

Aws Eks (Kubernetes) Thingsboard setup

I am trying to set up ThingsBoard in AWS EKS ( Kubernetes) as a individual micro service, I am not getting any guide how to set up.
How to set up ThingsBoard as a individual micro service inside AWS EKS>?
Here is a guide Installing ThingsBoard using Docker (Linux or Mac OS). You can use this and create your own Docked image and use is inside Kubernetes.
ThingsBoard also have dedicated Docker Hub, so you can use already created images.
You can use the GitHub to find ThinkBoard Kubernetes deployments.
As for the guide on how to install it on Kubernetes you could use this Installing ThingsBoard using Kubernetes (on Google Cloud Platform) v1.4.

AWS ECS repository creation with EC2

Hello,
I have a running EC2 with applications installed and I want to migrate the app onto Docker container.So, can we create an ECS Docker repository using running EC2 instance?
The biggest thing in your question is dockerizing your apps.The complexity varies as per technologies used in app, app server as docker image and many other things comes into picture.Its not direct conversion and you need to do lot of work to convert apps as docker images depends app comlexity.
ECR is docker registry where you store docker images and you don't need ec2 instance for that.
Once you docker images and ECR, you need to create ECS cluster to run your apps docker containers.

How can automatic deploy yii2 app when Elastic Beanstalk instance is terminated and created a new instance

Currently I have setup my yii2 website on AWS Elastic beanstalk. I followed following steps :
Created Elastic Beanstalk app and environment : Platform PHP 7.0, RDS database
Created SSH connection from EC2 instance of elastic beanstalk using putty with .pem file
In Apache folder I have cloned my yii2 git repo using (sudo git clone repo_url) command
Installed composer using this link https://gist.github.com/asugai/6694502
Run command : (sudo composer install) in my repo folder
Edited common/config/main-local.php and made db connection
And run migration using (sudo php yii migrate)
Setup a domain for this elastic beanstalk app
Now I don't know how should I proceed further and I am facing following problems :
Elastic Balance loader is creating new instance and terminating current one when it fails or health goes in severe.
Due this, my all data in that instance is lost. To make it work I am doing all steps again and again manually.
How can I make my domain https (SSL certified)
How can make easy process to pull new changes from git
I already have a working site in nodeJS. which is using elastic beanstalk, elastic balance loader, RDS(postgres), S3 bucket, cloudfront for Route 53, SSL certificate (https), code pipeline, code commit. And AWSCLI at local to deploy nodeJS app.
my question is about I want to use same flow for yii2 advance app.
Can anyone please help me here?
Thanks in advance :)

running a docker loop device on aws

I'm new to aws and am having some issues with getting my mobile app back running again. Forgive me if this question seems vague.
For a school project we created a mobile app on aws and deployed using docker containers (another student managed these tasks). When trying to get my own key pair to ssh into my ec2 instance i detached the volume associated with my instance and reattached it after getting my own key pair. Now i can ssh into my instance but my front end cant talk to my web server.
So my question is, do i create a new application on elastic beanstalk to deploy my app? Even though when i run lsblk is shows a have a docker loop device and when i run docker images i see several that match the name of my application? or do i somehow get the container running again, docker run doesn't seem to be working.
No need, just upload a new update into Elastic Beanstalk. AWS will handle the rest.
FYI, Elastic Beanstalk - Single Docker Container update process (simple under the hood):
You upload the update into AWS.
AWS will put it on your S3.
Inside your EC2, there is an Elastic Beanstalk agent. It will check for a new update.
If there is an update, the agent will download the update file and extract it.
The agent will build a new Docker image.
If the build is success, it will generate a new config to tell Nginx (web proxy) the new web server container.
Nginx will be reloaded.
Your old docker container will be destroyed.
Don't change anything inside EC2 of Elastic Beanstalk, except you know what you do. Elastic Beanstalk is design for automate deployment and scaling. So, if you change something in your EC2 manually, it might be lost. Of course, you can modified your EC2 instance, but you need to automate it using .ebextensions or take an image.