uploading ec2 instance to aws using windows - amazon-ec2

I need to upload a centOS bundle from windows cmd to AWS. How can I do that?
In ec2-api-tools ec2-upload-bundle.cmd is not present.
How can i use that command in windows cmd? Can anybody help me to solve this issue?
Thanks in advance.

You can download the tools from http://aws.amazon.com/developertools/351
this includes the windows cmd files as well.

Your point is probably that AWS says to use ec2-upload-bundle.cmd, but that file does not exist in the API tools.
Your problem is that the AMI tools are separate. Get them from Amazon EC2 AMI Tools. The tools are written in Ruby. After installing Ruby, you might have to play with the commands to get them to work on Windows.

Related

How to provision a AWS cloud 9 environment?

I need to provision a cloud 9 environment and run some provision scripts in it. Tried to do it with cloudFormation but found no way to ssh into it (without accessing the cloud9 terminal) nor to pass a script while bring cloud9 up.
My goal: setup several cloud nine instances for a workshop, which needs to run some scripts to work with it.
Any hints?
Auto-configuration is still a weak point for Cloud9 instances. What I've seen others do is create a script that is distributed to users and then ask them to run it in the terminal to setup the environment - not ideal but it works. I too would like to see a solution using CloudFormation or some other mechanism. Does this help?
You can have Cloud9 attach to any server via ssh after installing a few utilities. Thus, you can use whatever provisioning tools you want as long as your process includes adding those utilities.

What is the AWS SDK equivalent of EC2's Run Command

AWS has a remote management capability for EC2. I am looking for the same thing, but in the Ruby SDK. I see it mentioned in the image below (See second to last sentence) but for the life of me, I can't figure out where this is in the SDK. I have googled, looked through the docs and the API. Is this just a cut and paste issue in the AWS documentation?
Run Command is part of the Simple Systems Manager Service (SSM).
Here it is in the Ruby SDK.

Recreate SID on Google Cloud VM

I have two virtual machines running in google cloud. They both run MS Server 2012.
It appears that the person who created them used a clone as the machine SID's are the same. This is now causing a problem for things such as WebRoot AV which identify the machines using the SID.
In AWS this is resolved by using the AWS sysprep tool, how can I get solve this s the Google environment?
Thanks all.
Sysprep tool is a built-in tool that comes with windows itself. So i would suggest you run sysprep by following this guide. Note that this wipe out anything installed on your VM.

Ansible windows client or host with Ansible linux server? Possible?

I am using Ansible for some infrastructure management problem for my project. I achieved this task using a Linux client like say to copy a bin file from Ansible server and install it on a client machine. This involves tasks in my playbooks using normal Linux commands like ssh, scp, ./bin etc.,
Now I want to achieve the same in a windows client. I couldn't find any good documentation to try it out. If anyone of you have tried using Ansible with Windows client then it would be great if you could share the procedures or prototype or any piece of information to start with and progress further on my problem.
There's no built-in Windows support for Ansible today. If you search the mailing list, you'll find some references to people having some minimal success with things like CygWin. You should probably check out the mailing list and stay tuned.
Starting in version 1.7, Ansible also contains support for managing Windows machines. This uses native powershell remoting, rather than SSH. See the Ansible documentation website for details on Windows support for Ansible.
Ansible Windows support (including Azure) has been extended a great deal in 2.2 which released in June. https://www.ansible.com/blog/ansible-2.1 For what it's worth, I've also released a course on Pluralsight for managing Windows targets with Ansible
You can use powershell remoting. But i'm using SSH with Cygwin installed in windows so that the same linux code will work smoothly in windows as well.

ec2 workflow microsoft / apple

I'm switching over to EC2 and obviously it's easiest to manage instances through a command line rather than some crappy web interface, but I work on a PC and have everything set up in Windows. What is the best way to work with dev server instances? Putty? Is there an alternative? What do you guys use?
Thanks!
It depends what you mean by "manage instances".
If you mean the ability to launch new instances from an AMI, configure security groups, manage EIP's and so on, the ElasticFox plugin to Firefox is great (in spite of having occasionally buggy releases). The command line tools supplied by Amazon for this purpose could be a good basis if you're writing automated scripts, but I find ElasticFox much better for my work.
To work directly on the instances, I use WinSCP for both Windows and Linux instances (I installed a third-party SFTP server for Windows), PuTTY for Linux and Remote Desktop for Windows.
I manage both Linux and Windows EC2 instances for a couple of different businesses.
For the Windows boxes I normally connect via Remote Desktop to do virtually everything. For Linux I use WinSCP and PuTTY consoles.
For EC2-specific operations I use the Amazon web console or the Amazon-supplied scripts from my PC.

Resources