User-Specific EC2 Instances
ACM.115 A dedicated and easy-to-identify virtual machine for a specific user on a zero-trust security group and personal SSH key
Part of my series on Automating Cybersecurity Metrics. The Code.
Free Content on Jobs in Cybersecurity | Sign up for the Email List
In our last post we created a user-specific security group that limits traffic to a single remote user’s IP address.
In this post we are going to use it to deploy a user-specific EC2 instance.
Creating a unique VM name per user
In order to create a user-specific VM we need to add the username to the VM. We’re already doing that because we are passing in the user name (Developer) as the NameParam.
We use that in the instance name via a tag:
We also use the username in an output.
Assigning our user-specific Security Group
If you recall we create our user VM by passing in a list of security group IDs:
We’ll need to get the security group ID for our user-specific security group. We can get that from the outputs…