1 Answer
- Newest
- Most votes
- Most comments
0
hello,
i understand that you are trying to figure out if it is possible to assign a name to a new instance during creation using user data script. Please correct me if i misunderstood you.
Unfortunately it is not possible to assign a new instance a name via user data script, however you can add tags to the instance using user data. Tags are metadata that can be used to categorize your AWS resources in different ways.
More information can be found on the listed AWS reference link [1].
I hope this helps.
References [1].https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html
answered 2 years ago
Relevant content
- Accepted Answerasked 3 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago