Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSM support should be added #46

Open
dudymas opened this issue Sep 21, 2021 · 3 comments
Open

SSM support should be added #46

dudymas opened this issue Sep 21, 2021 · 3 comments

Comments

@dudymas
Copy link

dudymas commented Sep 21, 2021

Describe the Feature

SSM allows folks to connect to an instance without the need for ssh.

This is described here: https://aws.amazon.com/blogs/big-data/securing-access-to-emr-clusters-using-aws-systems-manager/

Expected Behavior

Users and roles with permission to start and attach to ssm sessions should be able to remotely manage emr clusters.

Use Case

Most emr clusters need some initial boot operations to set things up

Describe Ideal Solution

Not only is ssm a possible flag, but also adding more boot actions is supported via s3 objects or even plain text.

@nitrocode
Copy link
Member

@dudymas couldn't that be done by attaching an ssm iam policy to the iam role created by this module?

@LawrenceWarren
Copy link

I use this module and can confirm that SSM can be configured on the cluster nodes, you need to:

  • Attach the relevant IAM policies.
  • Use an AMI that has the SSM agent installed OR install the SSM agent via user data.

@danjbh
Copy link
Contributor

danjbh commented Aug 16, 2022

In the PR above, I've added a boolean flag to the module that controls the attachment of the SSM IAM policy to the EC2 instance profile role. I successfully tested this with the default EMR AMI, which appears to have the SSM agent already bundled. Per the AWS documentation, the following Linux-based AMIs come w/ SSM agent preinstalled...

  • Amazon Linux Base AMIs dated 2017.09 and later
  • Amazon Linux 2
  • Amazon Linux 2 ECS-Optimized Base AMIs
  • SUSE Linux Enterprise Server (SLES) 12 and 15
  • Ubuntu Server 16.04, 18.04, and 20.04

For anyone using a custom AMI outside of this list, the module supports a custom bootstrap_action that can be used to install the agent (per the AWS document referenced in this issue above).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants