Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

due to some auto tags script fails #13

Open
santoshdeyannavar opened this issue May 24, 2021 · 3 comments
Open

due to some auto tags script fails #13

santoshdeyannavar opened this issue May 24, 2021 · 3 comments

Comments

@santoshdeyannavar
Copy link

if you are using this backup of instance under autoscalling it has a default tage which cannot be created manually so the scripts tries to copy and tag that and fails example awsautoscallinggroup tag

@kopal2212
Copy link
Contributor

@santoshdeyannavar Could you elaborate more on the issue?

  • The exact error message you are getting and a screenshot would help as well.
  • Which default tags are you pointing to?
  • Current configuration of tags present in the Launch configuration of the ASG
  • Which part/function of the script is failing for you?

@santoshdeyannavar
Copy link
Author

santoshdeyannavar commented Jun 1, 2021

@kopal2212

example is an instance is in auto scaling group part.
aws adds a tag to it with "aws:autoscaling:groupName" with value of group name. the tags starting with "aws:" cannot be created manually or using api as aws controls them.

now if i m running this script to take backup of any such instances..

Below is error for the run.

"An error occurred (InvalidParameterValue) when calling the CreateTags operation: Value ( aws:autoscaling:groupName ) for parameter key is invalid. Tag keys starting with 'aws:' are reserved for internal use
Error while creating image of instance

InstanceId:xxxxxxxxxxxxxxxxxx

Region:XXXXXX

Exception:An error occurred (InvalidParameterValue) when calling the CreateTags operation: Value ( aws:autoscaling:groupName ) for parameter key is invalid. Tag keys starting with 'aws:' are reserved for internal use
"

So error does not occur for backup but occurs when is collects all the tags from running instances and tries to create the same to AMI and snapshots respectively the respective ami and snapshots does not get tagged.

@kopal2212
Copy link
Contributor

@santoshdeyannavar Could you let us know, if you have mentioned the tag AMIBACKUPON: YES , in your launch configuration so that any upcoming instance would automatically have this tag, so that the script can proceed without any error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants