Skip to content

Commit

Permalink
chore: grant Jake playground ec2 ssh permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoieni committed Sep 25, 2024
1 parent 78f1e4d commit b5a8c2e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions terraform/team-members-access/infra-deploy-playground.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@ resource "aws_iam_group_policy" "infra_deploy_playground" {
"arn:aws:ssm:us-west-1:890664054962:parameter/staging/ansible/all/*",
]
},
{
"Effect" : "Allow",
"Action" : "ec2-instance-connect:SendSSHPublicKey",
"Resource" : [
"arn:aws:ec2:us-west-1:890664054962:instance/i-04db6ae41566bd1d9",
],
"Condition" : {
"StringEquals" : {
"ec2:osuser" : "shepmaster"
}
}
},
{
"Effect" : "Allow",
"Action" : [
"ec2:DescribeInstances",
"ec2:DescribeVpcs"
],
"Resource" : "*"
}
]
})
}

0 comments on commit b5a8c2e

Please sign in to comment.