AWS Session Manager Raspberry-pi/Beaglebone - amazon-web-services

I am trying to manage a Beaglebones/Raspberry-pis using AWS System Manager.
I registered it on the AWS System Manager shown in the pic below.
However, it does not appear in the Session Manager tab
In the Manage Instances tab I can try the Start Session action.
When I try to start the session like the image above, I get the error shown below which is not all that helpful.
Does anyone know how to make the session manager work with hardware like beaglebones or raspberry-pis? Would it be a matter that AWS would only support Sessions with EC2 instances? Or maybe it is incompatible with the Beaglebone/Raspberry?

Session Manager currently only supports connections to EC2 instances. On-premises managed instances (which is what a Raspberry is after it's registered) are not supported by Session Manager today.
Other features of AWS Systems Manager will work - you can, for example, use Run Command to execute actions on your Raspberry instance.

Related

How to connect GCP VM instance using android Cloud Console?

I've just created a VM instance at GCP with os-login feature enabled. I can connect via ssh using web browser console, SDK, but, I can't connect using the android app called Cloud Console.
Is there any extra step while configuring os-login to use the offical google android app?
Thanks.
I believe everything should work out of the box. There certainly isn't mention of any extra documentation on the Cloud Console Mobile App landing page.
I spun up a new instance (europe-west4-b, n1-standard-1, debian-9-stretch-v20190813) and set the metadata to enable-oslogin = TRUE and I managed to connect right away, albeit from an iOS device.
I would suggest trying different networks (WiFi, 3G/4G), double check any suspicious firewall tags on the instance, maybe even try from a different device. If the connection attempt did reach the server, chances are there's at least one log entry mentioning it in /var/log (/var/log/auth.log in Debian is a good place to start).

How to get multiple user remote access for AWS Windows instance?

How to get remote control access (RDP) for simultaneous multiple users on a Windows Server on AWS instance?
What are the charges if it incurs any?
You can create as many users as you like (within Windows limitations), but to have more than two RDP sessions on the same time you have to buy your own license, AWS does not provide it.
If you need more than two simultaneous remote connections, you must
purchase a Remote Desktop Services (RDS) license. (Source at AWS)
As far as I understand, adding new users to Windows Server would have to be done the same way new users are added to Linux Instances -> through userdata or cloud-init part, programatically.
For Windows that would be a powershell command, something like this: https://gallery.technet.microsoft.com/scriptcenter/Add-AD-UserGroup-to-RDP-c17b24a4
As for charges, I am not aware of additional charges, but not a windows expert here.
I understand that we can create 2 users for free in a Windows instance. So, I created a new user from the Control Panel of Windows server instance and used this new user name and password to login for the second user and it worked. I've not tried with even more users. I think that would incur cost. But not sure.

What is the use of view/change user data if that script is not run when we stop and then start the EC2 instance?

AWS console has the option to view/change user data where we can change the data when the instance is stopped. But what i am unable to understand is why is this option to edit provided if the script is not run when we stop and restart the instance.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
Because cloud-init is just one use for user data (and it came into existence after EC2).
Consider instead a pre-built AMI that is already configured to run a service. That service needs to be configured in some way, and user data is a great way to do that (especially prior to the introduction of AWS Systems Manager). For example, you could store a list of variable settings in user data, then have the service read those into its environment.
Using configuration in that way, it's very nice to be able to change user data and restart the service to pick up changes.

Create Basic Landing Page to allow a user to start/stop an AWS Windows EC2 instance

I would like to create a landing page using Beanstalk/EC2 (beanstalk for PHP or .NET) that is a simple HTML landing page with a Start and Stop button, allowing a non-technical person to spin start/stop a specific AWS EC2 instance (Windows Server 2012) in the same VPC.
Is it possible for me to start/stop the separate EC2 Windows instance from my beanstalk web app?
Would I need to setup anything specifically on the EC2 Windows instance to enable this to work?
Would I need to setup anything special on the Beanstalk instance to enable what I've described to work?
Thanks again for any pointers anyone can provide.
Is it possible for me to start/stop the separate EC2 Windows instance from my beanstalk web app? Yes
Would I need to setup anything specifically on the EC2 Windows instance to enable this to work? No
Would I need to setup anything special on the Beanstalk instance to enable what I've described to work? No
So how do you achieve this?
1. If you wanted a frontend GUI, you could use nodeJS. This is a good resource for that: https://aws.amazon.com/sdk-for-browser/
2. Your backend will have AWS CLI installed and handle all the API calls. This is a good resource for that: https://aws.amazon.com/cli/
3. You can always automate a pipeline structure using Jenkins and the many AWS plugins. So say you want to give the user parameters to select from without building anything fancy. Jenkins will do this for you with the AWS plugin and the parameter plugin.
So there are many ways to handle this. To decide which works best for you make sure you have the business requirements well defined and then maybe setup an agile like structure were you have an epic and user stories.
Hope that helped. Happy hacking!!!

How to configure application on Amazon EC2?

I have an application in ASP.NET MVC4 that i need to configure on Amazon EC2 server.
But i am new to this and not familiar with this.Currently my application is configured on Azure server.And now i want to shift it on Amazon EC2.
I go through with this video :-
http://www.youtube.com/watch?v=JPFoDnjR8e8
I have sign up and went to Launch an application.But i did not have the credit card details now.And i used dummy CC details(took from google).
But i guess its not supporting the dummy CC details.
Can anyone help me out on this ?
The basic process is that you need to setup an account with a valid credit card, create an instance thru the aws console, and then use the generated credentials to RDP (Remote Desktop) into the server.
The process of setting up an MVC app (or any program for that matter) is going to be 100% identical to doing it on your own machine - there is no difference once you are able to remote to the instance.