Created
July 10, 2019 09:33
-
-
Save omerxx/656217bb1ad177d2d7cee4ca9c5fae3a to your computer and use it in GitHub Desktop.
Getting EC2 instance tags from within the instance
@kesor No, you can not restrict that action in an IAM policy...
FYI: don't lose time trying to do this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
placeholder
${ec2:SourceInstanceARN}
will be replaced by any instance to which instance-profile will be attached. This means each instance with proper instance-profile can query. Obviously if you do not what to allow to other instancesec2:DescribeTags
permission just do not attach instance profile to them.