Adding name to EC2 instances when deploying AWS::EKS::Nodegroup in CloudFormation

Jeff Coe

I'm creating a CloudFormation template to deploy an EKS node group using the AWS::EKS::Nodegroup CloudFormation resource.

It looks like you can create tags for the node group resource specifically, but cannot change the name of the EC2 instances that are deployed as part of the node group. From the AWS documentation, it looks like tags are not propagated to other resources the node group deploys (such as EC2 instances).

Does anyone know of a way on how we can update the name of the EC2 instances when we deploy a new EKS node group? Would this require a lambda function to be executed to modify the EC2 instances?

marcincuber

Currently there is no way to pass tag “Name” so that instance will be named appropriately. This is applicable to both terraform and cloud formation.

Two options I see here are;

  1. Lambda function that tags instances for you.

  2. You can bake it into an AMI. So, you would have a systemd script which will execute on boot and tag your instances as desired.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

AWS: Adding Correct Inbound Security Groups to RDS and EC2 Instances

分類Dev

Establecer etiqueta en AWS :: EC2 :: Instances BlockStorage del volumen raíz a través de CloudFormation

分類Dev

AWS EC2 run powershell script when scaling in

分類Dev

Redirect all outbound SSH traffic through single IP from bunch of AWS EC2 instances

分類Dev

Setting AWS IAM policy for restricting user access to certain EC2 instances

分類Dev

Access key ID error when deploying with juju-core on non-ec2 ec2 clouds

分類Dev

AWS CloudFormation: Unable to attach the security groups to the instances of ElasticBeanstalk

分類Dev

AWS-Cloudformationを介して作成されたEC2へのSSH

分類Dev

CloudFormation AWS :: EC2 :: Instanceはインスタンスの数を指定します

分類Dev

AWS :: CloudFormation :: InitとともにEC2を作成するcloudformationテンプレートを修正する方法

分類Dev

DNS problem on AWS EKS when running in private subnets

分類Dev

Connection_timed_out when trying to connect to AWS EC2 tcp port (not rdp)

分類Dev

AWS Lambda + python:ec2.start_instances(InstancesIds = ??)

分類Dev

AWS CloudformationリソースをEKS入力設定に変換しますか?

分類Dev

AWS CodePipeline and deployingto EKS

分類Dev

AWS CloudFormation、スタックの更新でEC2構成が変更されない

分類Dev

AWS Java SDK Cloudformation unable to describe stacks by name or Id

分類Dev

AWS - Serverless - "message": "Internal server error" when deploying, but work offline

分類Dev

Export Existing EC2 instance to CloudFormation json/yaml

分類Dev

Amazon AWS EC2 GoLang

分類Dev

robomongo aws ec2 ubuntu

分類Dev

CircleCI deployment to AWS EC2

分類Dev

Certbot renewal error - AWS EC2

分類Dev

Spontaneous shutdowns in AWS EC2 instance

分類Dev

Installing Postgresql 9.6 on AWS - EC2

分類Dev

Run Elasticsearch on AWS EC2 with Docker

分類Dev

Error when loading torch.hub.load('pytorch/fairseq', 'roberta.large.mnli') on AWS EC2

分類Dev

504 Gateway Timeout - Two EC2 instances with load balancer

分類Dev

How do I query security groups for EC2 instances?

Related 関連記事

  1. 1

    AWS: Adding Correct Inbound Security Groups to RDS and EC2 Instances

  2. 2

    Establecer etiqueta en AWS :: EC2 :: Instances BlockStorage del volumen raíz a través de CloudFormation

  3. 3

    AWS EC2 run powershell script when scaling in

  4. 4

    Redirect all outbound SSH traffic through single IP from bunch of AWS EC2 instances

  5. 5

    Setting AWS IAM policy for restricting user access to certain EC2 instances

  6. 6

    Access key ID error when deploying with juju-core on non-ec2 ec2 clouds

  7. 7

    AWS CloudFormation: Unable to attach the security groups to the instances of ElasticBeanstalk

  8. 8

    AWS-Cloudformationを介して作成されたEC2へのSSH

  9. 9

    CloudFormation AWS :: EC2 :: Instanceはインスタンスの数を指定します

  10. 10

    AWS :: CloudFormation :: InitとともにEC2を作成するcloudformationテンプレートを修正する方法

  11. 11

    DNS problem on AWS EKS when running in private subnets

  12. 12

    Connection_timed_out when trying to connect to AWS EC2 tcp port (not rdp)

  13. 13

    AWS Lambda + python:ec2.start_instances(InstancesIds = ??)

  14. 14

    AWS CloudformationリソースをEKS入力設定に変換しますか?

  15. 15

    AWS CodePipeline and deployingto EKS

  16. 16

    AWS CloudFormation、スタックの更新でEC2構成が変更されない

  17. 17

    AWS Java SDK Cloudformation unable to describe stacks by name or Id

  18. 18

    AWS - Serverless - "message": "Internal server error" when deploying, but work offline

  19. 19

    Export Existing EC2 instance to CloudFormation json/yaml

  20. 20

    Amazon AWS EC2 GoLang

  21. 21

    robomongo aws ec2 ubuntu

  22. 22

    CircleCI deployment to AWS EC2

  23. 23

    Certbot renewal error - AWS EC2

  24. 24

    Spontaneous shutdowns in AWS EC2 instance

  25. 25

    Installing Postgresql 9.6 on AWS - EC2

  26. 26

    Run Elasticsearch on AWS EC2 with Docker

  27. 27

    Error when loading torch.hub.load('pytorch/fairseq', 'roberta.large.mnli') on AWS EC2

  28. 28

    504 Gateway Timeout - Two EC2 instances with load balancer

  29. 29

    How do I query security groups for EC2 instances?

ホットタグ

アーカイブ