NodegroupRemoteAccess Struct
The remote access (SSH) configuration to use with your node group.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_eks as eks } from 'aws-cdk-lib';
declare const securityGroup: ec2.SecurityGroup;
const nodegroupRemoteAccess: eks.NodegroupRemoteAccess = {
sshKeyName: 'sshKeyName',
// the properties below are optional
sourceSecurityGroups: [securityGroup],
};
Properties
sourceSecurityGroupsoptionalISecurityGroup[]source_security_groupsoptionaltyping.List[ISecurityGroup]sourceSecurityGroupsoptionalList<ISecurityGroup>SourceSecurityGroupsoptionalISecurityGroup[]SourceSecurityGroupsoptional*[]ISecurityGroup#The security groups that are allowed SSH access (port 22) to the worker nodes.
Default: port 22 on the worker nodes is opened to the internet (0.0.0.0/0)
If you specify an Amazon EC2 SSH key but do not specify a source security group when you create a managed node group, then port 22 on the worker nodes is opened to the internet (0.0.0.0/0).
The Amazon EC2 SSH key that provides access for SSH communication with the worker nodes in the managed node group.