import boto3
client = boto3.Session(profile_name='Sandbox').client('redshift')
response = client.create_tags(ResourceName='arn:aws:redshift:us-east-1:123456:snapshot:situation',
Tags=[ {'Key': 'k1', 'Value': 'v1'},{'Key': 'k2', 'Value': 'v2'}])
인쇄 응답적색 편이 BOTO를 사용하는 동안 오류를 얻기
오류 :
File "sai.py", line 5, in <module>
response = client.create_tags(ResourceName='arn:aws:redshift:us-east-1:123456:snapshot:situation',Tags=[ {'Key': 'k1', 'Value': 'v1'},{'Key': 'k2', 'Value': 'v2'}])
File "/Library/Python/2.7/site-packages/botocore/client.py", line 253, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/Library/Python/2.7/site-packages/botocore/client.py", line 543, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidParameterValue) when calling the CreateTags operation: The format of the provided snapshot identifier is invalid.
질문의 형식을 올바르게 지정할 수 있습니까? – kaveh
또한 오류 메시지를 읽는 것은 몇 가지 단서를 제공합니다. – kaveh
kaven, Tag 매개 변수를 확인해 주시겠습니까? 유효하지 않은 식별자를 제공하고 있습니까? 하지만 그 create_tag에 (resourceName이 = ''문자열 ''태그 = '' ") 왜 그것을 보여주는 스냅 샷 식별자가 잘못? –