cloudtools / cloudtools/troposphere

ec2.Instance allows cloudformation Tag instances.

Open
#803 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.9k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I erroneously set my tags to be cloudformation tags:

from troposphere.autoscaling import Tag
instance = ec2.Instance(...)
instance.Tags = [ Tag(...) ]

And...neither the `instance.validate()` nor the Template that I added it to complained - I would have expected some kind of complaint along the lines of 'Tags list may only contain instances of ec2.Tag'.

Contributor guide

Open the contributing guide

Research direction

The issue identifies ec2.Instance.Tags and the autoscaling.Tag and ec2.Tag classes as the entry points. Compare how tag validation is performed during instance.validate() and Template validation, then add regression coverage showing that an autoscaling Tag is rejected where an ec2.Tag is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.