NodegroupRemoteAccess

class aws_cdk.aws_eks.NodegroupRemoteAccess(*, ssh_key_name, source_security_groups=None)

Bases: object

The remote access (SSH) configuration to use with your node group.

Parameters:
  • ssh_key_name (str) – The Amazon EC2 SSH key that provides access for SSH communication with the worker nodes in the managed node group.

  • source_security_groups (Optional[Sequence[ISecurityGroup]]) – The security groups that are allowed SSH access (port 22) to the worker nodes. 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). Default: - port 22 on the worker nodes is opened to the internet (0.0.0.0/0)

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-remoteaccess.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_ec2 as ec2
import aws_cdk.aws_eks as eks

# security_group: ec2.SecurityGroup

nodegroup_remote_access = eks.NodegroupRemoteAccess(
    ssh_key_name="sshKeyName",

    # the properties below are optional
    source_security_groups=[security_group]
)

Attributes

source_security_groups

The security groups that are allowed SSH access (port 22) to the worker nodes.

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).

Default:
  • port 22 on the worker nodes is opened to the internet (0.0.0.0/0)

ssh_key_name

The Amazon EC2 SSH key that provides access for SSH communication with the worker nodes in the managed node group.