'How to make EC2 "inherit" tags from AMI
I have some tags (like os) that can be reliably inferred by the AMI used to spin up the ec2 instance.
How to make the ec2 instances inherit tags from the AMI to avoid the duplication of tagging each instance separately in terraform?
Solution 1:[1]
In my findings doesn't seem that the EC2 instance can inherit the tags from the AMI, If you're trying to create several instances using those tags I would suggest creating a Launch template and add the tags that way so you won't need to add them manually again.
Solution 2:[2]
I Fixed this issue by:
In gradle-wrapper.properties I defined Gradle version 6.1.1
by adding at the last of the filedistributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip
And in the project-level build.gradle I set version 4.0.2
by addingclasspath 'com.android.tools.build:gradle:4.0.2'
reference: solution
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Winter-py |
| Solution 2 | Adison |
