CrowdStrike / Cloud-AWS

A collection of projects supporting AWS Integration
MIT License
142 stars 81 forks source link

What to put in the "Key" value when trying to run Cloudformation based security-hub integration? #241

Closed steven-tan closed 11 months ago

steven-tan commented 11 months ago

Hi, I'm trying to run a CloudFormation job using Security-Hub/cloudformation/security-hub-integration.yaml - but I can't figure out what to use for the "Key" value. The text description just says "The key used to access the instance." - and the documentation states this is an SSH key.

I tried generating a public RSA key, but when I paste the key into that field while trying to run a Cloudformation stack, the process eventually bombs out and says "Value for parameter is invalid. Length exceeds maximum of 255. (Service: AmazonEC2; Status Code: 400"

Standard rsa key seems to be over 700 characters long.

What exactly am I supposed to be pasting in that field?

jshcodes commented 11 months ago

Hi @steven-tan -

This should be the name of the EC2 key pair used to access the instance in AWS. This does mean the key needs to pre-exist in your AWS environment before running the deployment script. (This script will stand up a new instance that expects that key.)

steven-tan commented 11 months ago

That did the trick, thanks so much @jshcodes !