You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can replace lines 10 and 11 with: tags = ec2.describe_tags(filters: [{ name: "resource-id", values: [instance_id] }]).tags
This prevents the need for the ec2::DescribeInstance permission (you only need ec2::DescribeTags)