You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to launch a mac1.metal EC2 instance in the AWS console
How to launch a mac1.metal EC2 instance in the AWS console
Procedure
Go to the AWS EC2 dashboard in your AWS account. Select a region
where EC2 instances are available, as at the time of writing, they are not available in all regions.You can see in this image that I have
selected us-east-2 (by its display name, Ohio) top right of the window. Click the Launch Instance button.
Using an EC2 instance to do development allows numerous scenarios, like doing vanilla Linux/Unix development on a Windows host machine. Wouldn’t it be great to use amazing tools like Visual Studio Code to develop on an EC2 instance too, right from the device at your desk?
Visual Studio Code has a very nice feature to allow this, using the Remote-SSH extension. It can SSH into the EC2 instance, install the Visual Studio Code agent, and give you the shell prompt on the EC2 instance. Further, the development folder on the EC2 instance can be opened in Visual Studio, so that the whole application context appears to be on the EC2 instance.
Connect to your mac1.metal instance GUI using VNC (properly)
Connect to your mac1.metal instance GUI using VNC (properly)
Prerequisites
The gist assumes that you have launched a mac1.metal instance, and are able to SSH into it. Your IP address must be the same as the one in the security group, especially watch out for VPNs.
I tried unsuccessfully to create one of these using the App Store app on the mac1.metal instance. If you need a new AppleID for your project, go to https://appleid.apple.com/account to create one.
CLI/sh: Delete AWS Buckets starting with the specified string (including versioned and non-empty)
Delete all buckets whose name starts with the string parameter. Works on versioning buckets and buckets containing objects.
# Delete all buckets whose name starts with the string parameter. Works on versioning buckets and buckets containing objects.# Usage:# deleteBucket "bucketname" Deletes buckets whose name starts with 'bucketname'deleteBucket()
{
BUCKETS=`aws s3api list-buckets --output text --query "Buckets[?starts_with(Name, '$1')].Name"`
IFS=$'\t'