How to connect AWS Cloud9 environment to VS Code? - amazon-web-services

I want to connect my AWS Cloud9 environment to my VS Code i.e. I will write my code in VS Code and it will show changes in my environment.
Is this possible? If it is, please share how to do it - I found it very difficult to work with AWS instance as its IDE is not coder friendly.

Related

How to setup Shopware 6 production environment running on docker in Ubuntu Image EC2?

I would like to setup production environment on EC2 Ubuntu Image. What is the best practice for setting up production environment on a cloud server?
What are the aws services to look at apart from ec2 for the best approach?
p.s I managed to get running installation for development environment with docker on EC2 but cant find production related resources. I would like to learn more about it but could not find a relevant guide for it.
Thank you in advance.
There's a general guide for cluster setups with Shopware. I assume that is your goal. Also if you managed to install the development template you should not run into any problems installing the production template in a similar manner.

Add more storage on a Amazon Web Service emulator for Windows on Mac

I'm using the Amazon Web Services emulator EC2 to run Windows server. I upgraded my instance type to the one with 4cores 16gb ram, and it worked well, but I need more storage to install visual studio. When I tried to upgrade to m5ad.xlarge to get the 150gb SSD, C: drive didn't expand like it was supposed to. I also tried adding a Volume, but that wouldn't work either. If anyone could give me a simple way or any external tutorials to complete this, that would be much appreciated, as the AWS Documentation solutions didn't work. Thanks!
Based on the comments, the issue was that the partition was not expanded. Following steps from the following AWS blog solved the problem:
How do I expand the Amazon EBS root volume of my Amazon EC2 Windows instance?

Creating an iso of a RHEL instance

I have an amazon ec2 instance with RHEL 7.3 on it. I would like to convert this into an iso so that I can migrate it wherever I want. What are the best tools to create an iso of a virtual machine. Or how do I clone/backup this VM so that I can restore it anywhere I want?
You can work with VM and AWS programatically via AWS CLI commands.
You want to get familiar with import-task and export-task commands.
The best place to start is by reading an official AWS guides for:
Exporting an Instance as a VM Using VM Import/Export
Importing a VM as an Image Using VM Import/Export
The key information you need to pick up from the guide is this quote:
"You can't export an instance from Amazon EC2 unless you previously
imported it into Amazon EC2 from another virtualization environment."
Yes, there are solutions, one of them linked by #Nicholas Smith. That being said, if you go the unofficial route you might end up in a dark alley where help might not be available. I highly recommend and warn here to not proceed with trying to clone EC2 into VM at this point. You will spend a lot of time with a huge risk factor for future.
For you to be able to achieve what you want, you need to create a RHEL VM using any VM software, you need to load this VM into AWS and then you will be able to work with VM in AWS making any necessary changes and export again for local or transportation needs.
As you are running a widely-used Linux distribution - RHEL, you can attempt to recreate your EC2 environment manually by launching a VM that runs the same kernel version along with the same package versions. From there, you can tarball what files you need from your production instance and copy them over to your on-premise site by using SCP/SFTP.
Just get your RHEL environment into VM locally and import to AWS and you set.
Clonezilla provides functionality to create images. Generated images can be converted to ISO files.
It doesn't seem to be something that Amazon promote as a service however the aws cli tools have an ec2-unbundle command for extracting from an AMI. There's a guide here on how to download and run an EC2 AMI locally by using it.
Caveat is it appears the ec2-unbundle command currently only works on Linux and not OS X or Windows.

How do i automatically deploy a mean stack application on to AWS server?

I have a mean stack application running on an AWS instance, but whenever there is a commit, we have to manually deploy the code by using putty and winSCP,
Is there a way to detect changes in the Bitbucket(we use BB as it has private repos) repository and automatically push the changes to the AWS instance?
i heard gulp can do the task , but i doubt it can push code to the instance.
can someone please help me out?
You could move your application to Elastic Beanstalk. You could use Amazon Code Deploy (although I don't think it works with Bitbucket yet). You could setup a Jenkins server that would do this for you. You could use Gulp to do this, or countless other similar tools. There are also services like DeployHQ and Codeship that will do this for you.

Amazon Web Services (AWS) - Web Development and IDE Workflow

I'm completely new to AWS and due to the many different types of services they offer I'm having trouble really figuring things out, so I'd love to get some input and fresh insight.
If I want to setup a development environment to play around with what would be the best course of action? (Please explain in detail, because like I said, I'm completely new to al of this)
How can I integrate my preferred IDE (Dreamweaver or Sublime Text 3) into my AWS workflow and web/application development process because it seems nearly impossible to be able to integrate these IDE's with any of the AWS services like EC2 or Elastic Beanstalk. Typically I would just connect my IDE via FTP to my hosting server but that doesn't seem possible with any of AWS' services. I know in many instances you can SSH into these work files and modify them via terminal (ex. using nano) but clearly that isn't a very user-friendly means of developing by any stretch of the imagination.
The underline gist of this post is that I'm trying to understand what the best website/web-application development process might be when using Amazon Web Services (ex. using s3/cloudfront as a CDN and using EC2 or Elastic Beanstalk for the application itself), as well as trying to understand how to correctly interact with various service environments so that I can still use my IDE of choice to add/modify/delete and push/pull files/directories from the various AWS services that I'm using.
Please explain any answers in detail and thanks in advance for any and all insights!
(As a side note I'd like to use PHP/MySQL, as well as MEAN, AngularJS, and other implementations of MongoDB/PostgreSQL)
Many Amazon services, including EC2, support SSH/SFTP. The SFTP is supported by both Dreamweaver and Sublime Text 3.
See my guide for connecting to Amazon EC2 with SFTP. It's for WinSCP client, but you can easily reuse it for configuring Dreamweaver or Sublime Text 3.