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

chore: grant Jake playground ec2 ssh permissions #579

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

MarcoIeni
Copy link
Member

No description provided.

"Effect" : "Allow",
"Action" : "ec2-instance-connect:SendSSHPublicKey",
"Resource" : [
"arn:aws:ec2:us-west-1:890664054962:instance/i-04db6ae41566bd1d9",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to do this via "tags" and give playground instances a tag? That way it works for the next playground instances for free.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-configure-IAM-role.html#eic-permissions-allow-users-to-connect-to-instances-with-specific-tags

],
"Condition" : {
"StringEquals" : {
"ec2:osuser" : "shepmaster"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this value; the docs suggest it being the user that the AMI creates (e.g. ubuntu for us, I think).

If it is my OS username, that'd be shep.

@MarcoIeni MarcoIeni force-pushed the chore-grant-jake-playground-ec2-ssh-permissions branch from 5e3f61d to f373899 Compare September 26, 2024 09:35
@MarcoIeni MarcoIeni marked this pull request as ready for review September 26, 2024 10:06
@MarcoIeni
Copy link
Member Author

applied

@MarcoIeni MarcoIeni merged commit 7244dc7 into master Sep 26, 2024
3 checks passed
@MarcoIeni MarcoIeni deleted the chore-grant-jake-playground-ec2-ssh-permissions branch September 26, 2024 10:07
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

Successfully merging this pull request may close these issues.

3 participants