aws-quickstart / cdk-eks-blueprints

AWS Quick Start Team
Apache License 2.0
454 stars 205 forks source link

(cluster-providers): tagging ec2 instances #485

Closed pflorek closed 1 year ago

pflorek commented 2 years ago

Describe the feature

Propagate tags to EC2 instances.

Use Case

Proposed Solution

Always create a NodeGroup with a LaunchTemplate and pass tags

Other Information

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatetagspecification.html instance

Acknowledgements

CDK version used

2.37.1

EKS Blueprints Version

1.2.0

Node.js Version

18.7.0

Environment details (OS name and version, etc.)

MacOS

praveenperera commented 1 year ago

Is there a workaround for this right now, is it possible to add tags to the cluster provider?

shapirov103 commented 1 year ago

Is there a workaround for this right now, is it possible to add tags to the cluster provider?

You can check the approach taken in the PR that I linked here #624. It is achievable now by creating a subclass of the GenericClusterProvider and applying changes similar to those in the PR. Or you can wait just a bit, once the PR is merged, we will release 1.6.1 with this support.

praveenperera commented 1 year ago

@shapirov103 thanks for the quick response, that's exactly what I need the customTags I'll wait for that PR thanks.

elamaran11 commented 1 year ago

@praveenperera Are you good to close this Issue. The issue is fixed.

praveenperera commented 1 year ago

@elamaran11 Yup good to close