Unable to do backups with instance that has internal AWS tags
AndrewFarley opened this issue · 0 comments
AndrewFarley commented
Reported via email...
Failure trying to create image or tag image. See/report exception below
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 104, in backup_tagged_instances_in_region
Tags=instance['Tags']
File "/var/runtime/botocore/client.py", line 314, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/runtime/botocore/client.py", line 612, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: 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
Scanning for AMIs with tags (AWSAutomatedDailySnapshots)
This occurs because some instances created with CloudFormation or that are associated to an autoscaler have tags on them prefixed with aws:
. We should skip these tags.