How do I deploy my java application in multiple environment within same application in elastic beanstalk.
Related
I'm writing an aspnet core app which can be deployed to either azure or aws. The Microsoft libraries for accessing azure logging / configuration sources are well-behaved and fail silently if they're not in an appropriate environment. However the AWS SDK blows up with and exception Unable to get IAM security credentials from EC2 Instance Metadata Service. if the providers are configured outside of AWS. Are there some environment variables I can look at to determine if my application is running in AWS so I can skip those?
All EC2 instances (and therefore all AWS hosting methods) have access to an instance meta-data http service running on a local-link address at http://169.254.169.254/latest/meta-data/. The best process I can come up with is to make a call to this service. If the call fails -- the process is not hosted on an EC2 instance.
I'm trying to deploy a node.js application into aws using Elastic BeansTalk. However, while creating a web server environment, it fails because my account does not havve the permission to use auto scaling due to cost. Is there a way to disable autoscaling completely with elastic beanstalk?
Yes, just create a single instance environment.
As per the AWS docs, single instance environments do not have load balancers or auto-scaling. You can read more about Elastic Beanstalk environment types here:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-types.html?ref_=pe_395030_31184250_9
We are creating Serverless ASP.NET Core 2.0 applications("https://aws.amazon.com/blogs/developer/serverless-asp-net-core-2-0-applications/"). Actually our production environment running on "Dedicated Tenancy VPCs", and AWS Lambda does not support connecting to resources within Dedicated Tenancy VPCs("https://docs.aws.amazon.com/lambda/latest/dg/vpc.html"). So our question here can we have any alternate to create aws serverless application with .net core that will run on "Dedicated Tenancy VPCs"?
There are several solutions, how you can achieve this:
You can configure proxy service that will have an access to your environment in "dedicated tenancy VPCs" and proxy requests. (NGINX can be an option)
You can try to review AWS Elastic Beanstalk solution.
VPC peering
I am currently using elastic beanstalk to run .war file on web server , But the problem is that when ever I need to change some code then I need to upload the entire project again and deploy it ,it's little bit lengthy process and server remain down for few moment , So is there any solution where I can update the project files or add some extra page without letting the server down ?
You set up a blue green deployment with Elastic Beanstalk
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.CNAMESwap.html
Please forgive me, I just started using spinnaker.
I have a war file that is currently deployed on tomcat using elastic beanstalk.
Is there a way to specify a deployment using a war file to elastic beanstalk using tomcat with spinnaker?
You can deploy to Beanstalk by using the Jenkins stage and then deploy a Cloudformation template with the CF stage.
Basically you just have to set up the AWS Provider in halyard and then enable the Cloud Formation Stage