Installing an Amazon EC2 Key - AWS OpsWorks

Installing an Amazon EC2 Key

Important

AWS OpsWorks Stacks is no longer accepting new customers. Existing customers will be able to use the OpsWorks console, API, CLI, and CloudFormation resources as normal until May 26, 2024, at which time they will be discontinued. To prepare for this transition, we recommend you transition your stacks to AWS Systems Manager as soon as possible. For more information, see AWS OpsWorks Stacks End of Life FAQs and Migrating your AWS OpsWorks Stacks applications to AWS Systems Manager Application Manager.

When you create a stack, you can specify an Amazon EC2 SSH key that is installed by default on every instance in the stack.


                Default SSH key list on Add stack page

The Default SSH key list shows your AWS account's Amazon EC2keys. You can do one of the following:

  • Select the appropriate key from the list.

  • Select Do not use a default SSH key to specify no key.

If you selected Do not use a default SSH key, or you want to override a stack's default key, you can specify a key when you create an instance.


                Specifying an SSH key

When you start the instance AWS OpsWorks Stacks installs the public key in the authorized_keys file.