Skip to content

Commit

Permalink
✨Autoscaling/Clusters-keeper tags also volume and network-interface (I…
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg authored and jsaq007 committed Mar 6, 2024
1 parent affdac4 commit d516498
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/aws-library/src/aws_library/ec2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ async def start_aws_instance(
for tag_key, tag_value in instance_config.tags.items()
]

resource_tags: list[TagTypeDef] = [
{"Key": tag_key, "Value": tag_value}
for tag_key, tag_value in instance_config.tags.items()
]

instances = await self.client.run_instances(
ImageId=instance_config.ami_id,
MinCount=min_number_of_instances,
Expand Down

0 comments on commit d516498

Please sign in to comment.