Skip to content

Commit

Permalink
feat: allow access to instances using session manager
Browse files Browse the repository at this point in the history
Enable SSM Agent for masters and nodes by attaching the IAM policy as
external policy
  • Loading branch information
peter-svensson authored and argoyle committed Sep 15, 2022
1 parent 2d50909 commit 46e7e63
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ resource "kops_cluster" "k8s" {
addons {
manifest = "s3://${var.bucket_state_store.id}/${var.name}-addons/addon.yaml"
}

external_policies {
key = "master"
value = ["arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"]
}

external_policies {
key = "node"
value = ["arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"]
}
}

resource "kops_instance_group" "masters" {
Expand Down

0 comments on commit 46e7e63

Please sign in to comment.