{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-cli/issues/2549","repository_url":"https://api.github.com/repos/aws/aws-cli","labels_url":"https://api.github.com/repos/aws/aws-cli/issues/2549/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-cli/issues/2549/comments","events_url":"https://api.github.com/repos/aws/aws-cli/issues/2549/events","html_url":"https://github.com/aws/aws-cli/issues/2549","id":221823748,"node_id":"MDU6SXNzdWUyMjE4MjM3NDg=","number":2549,"title":"Unable to create FIFO queue: \"Unknown Attribute FifoQueue\"","user":{"login":"flintinatux","id":888052,"node_id":"MDQ6VXNlcjg4ODA1Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/888052?v=4","gravatar_id":"","url":"https://api.github.com/users/flintinatux","html_url":"https://github.com/flintinatux","followers_url":"https://api.github.com/users/flintinatux/followers","following_url":"https://api.github.com/users/flintinatux/following{/other_user}","gists_url":"https://api.github.com/users/flintinatux/gists{/gist_id}","starred_url":"https://api.github.com/users/flintinatux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flintinatux/subscriptions","organizations_url":"https://api.github.com/users/flintinatux/orgs","repos_url":"https://api.github.com/users/flintinatux/repos","events_url":"https://api.github.com/users/flintinatux/events{/privacy}","received_events_url":"https://api.github.com/users/flintinatux/received_events","type":"User","site_admin":false},"labels":[{"id":297058759,"node_id":"MDU6TGFiZWwyOTcwNTg3NTk=","url":"https://api.github.com/repos/aws/aws-cli/labels/api-question","name":"api-question","color":"cc317c","default":false},{"id":217040864,"node_id":"MDU6TGFiZWwyMTcwNDA4NjQ=","url":"https://api.github.com/repos/aws/aws-cli/labels/closing-soon-if-no-response","name":"closing-soon-if-no-response","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-14T14:49:42Z","updated_at":"2018-07-20T19:30:24Z","closed_at":"2017-04-14T16:01:06Z","author_association":"NONE","body":"According to the [latest docs](http://docs.aws.amazon.com/cli/latest/reference/sqs/create-queue.html) for `aws sqs create-queue`, the `FifoQueue` and `ContentBasedDeduplication` attributes are both valid, and are required to create a FIFO queue.  However, the cli receives an `Unknown Attribute` error when trying to create one.\r\n\r\nCLI version: \r\n```\r\n$ aws --version\r\naws-cli/1.11.76 Python/2.7.10 Darwin/15.4.0 botocore/1.5.39\r\n```\r\nCommand executed:\r\n```\r\n$ aws sqs create-queue --queue-name my-queue.fifo --attributes \"{\\\"FifoQueue\\\":\\\"true\\\",\\\"ContentBasedDeduplication\\\":\\\"false\\\"}\" --debug\r\n```\r\nDebug output:\r\n```\r\n2017-04-14 10:42:17,001 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.11.76 Python/2.7.10 Darwin/15.4.0 botocore/1.5.39\r\n2017-04-14 10:42:17,001 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['sqs', 'create-queue', '--queue-name', 'my-queue.fifo', '--attributes', '{\"FifoQueue\":\"true\",\"ContentBasedDeduplication\":\"false\"}', '--debug']\r\n2017-04-14 10:42:17,001 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_scalar_parsers at 0x10d794140>\r\n2017-04-14 10:42:17,001 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x10d4b6668>\r\n2017-04-14 10:42:17,002 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/botocore/data/sqs/2012-11-05/service-2.json\r\n2017-04-14 10:42:17,006 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.sqs: calling handler <function register_retries_for_service at 0x10d080758>\r\n2017-04-14 10:42:17,006 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: sqs\r\n2017-04-14 10:42:17,006 - MainThread - botocore.hooks - DEBUG - Event building-command-table.sqs: calling handler <function add_waiters at 0x10d79c230>\r\n2017-04-14 10:42:17,009 - MainThread - awscli.clidriver - DEBUG - OrderedDict([(u'queue-name', <awscli.arguments.CLIArgument object at 0x10db18650>), (u'attributes', <awscli.arguments.CLIArgument object at 0x10db18710>)])\r\n2017-04-14 10:42:17,009 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler <function add_streaming_output_arg at 0x10d794398>\r\n2017-04-14 10:42:17,009 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler <function add_cli_input_json at 0x10d4c3488>\r\n2017-04-14 10:42:17,009 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler <function unify_paging_params at 0x10d712a28>\r\n2017-04-14 10:42:17,012 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/botocore/data/sqs/2012-11-05/paginators-1.json\r\n2017-04-14 10:42:17,012 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.sqs.create-queue: calling handler <function add_generate_skeleton at 0x10d6fade8>\r\n2017-04-14 10:42:17,012 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sqs.create-queue: calling handler <bound method CliInputJSONArgument.override_required_args of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x10db18850>>\r\n2017-04-14 10:42:17,012 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.sqs.create-queue: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x10da7d210>>\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.queue-name: calling handler <function uri_param at 0x10d34c848>\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.sqs.create-queue: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10d79d910>\r\n2017-04-14 10:42:17,013 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'my-queue.fifo' for parameter \"queue_name\": u'my-queue.fifo'\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.attributes: calling handler <function uri_param at 0x10d34c848>\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.sqs.create-queue: calling handler <awscli.argprocess.ParamShorthandParser object at 0x10d79d910>\r\n2017-04-14 10:42:17,013 - MainThread - awscli.argprocess - DEBUG - Param attributes looks like JSON, not considered for param shorthand.\r\n2017-04-14 10:42:17,013 - MainThread - awscli.arguments - DEBUG - Unpacked value of u'{\"FifoQueue\":\"true\",\"ContentBasedDeduplication\":\"false\"}' for parameter \"attributes\": OrderedDict([(u'FifoQueue', u'true'), (u'ContentBasedDeduplication', u'false')])\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.cli-input-json: calling handler <function uri_param at 0x10d34c848>\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.sqs.create-queue.generate-cli-skeleton: calling handler <function uri_param at 0x10d34c848>\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event calling-command.sqs.create-queue: calling handler <bound method CliInputJSONArgument.add_to_call_parameters of <awscli.customizations.cliinputjson.CliInputJSONArgument object at 0x10db18850>>\r\n2017-04-14 10:42:17,013 - MainThread - botocore.hooks - DEBUG - Event calling-command.sqs.create-queue: calling handler <bound method GenerateCliSkeletonArgument.generate_json_skeleton of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x10da7d210>>\r\n2017-04-14 10:42:17,013 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env\r\n2017-04-14 10:42:17,013 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: assume-role\r\n2017-04-14 10:42:17,013 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: shared-credentials-file\r\n2017-04-14 10:42:17,014 - MainThread - botocore.credentials - INFO - Found credentials in shared credentials file: ~/.aws/credentials\r\n2017-04-14 10:42:17,014 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/botocore/data/endpoints.json\r\n2017-04-14 10:42:17,024 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: sqs\r\n2017-04-14 10:42:17,024 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.sqs: calling handler <function add_generate_presigned_url at 0x10d0495f0>\r\n2017-04-14 10:42:17,025 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None\r\n2017-04-14 10:42:17,032 - MainThread - botocore.endpoint - DEBUG - Setting sqs timeout as (60, 60)\r\n2017-04-14 10:42:17,032 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.sqs.CreateQueue: calling handler <function generate_idempotent_uuid at 0x10d0801b8>\r\n2017-04-14 10:42:17,032 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=CreateQueue) (verify_ssl=True) with params: {'body': {u'Attribute.2.Name': u'ContentBasedDeduplication', u'Attribute.1.Value': u'true', u'Attribute.2.Value': u'false', 'Version': u'2012-11-05', 'Action': u'CreateQueue', u'Attribute.1.Name': u'FifoQueue', u'QueueName': u'my-queue.fifo'}, 'url': u'https://queue.amazonaws.com/', 'headers': {'User-Agent': 'aws-cli/1.11.76 Python/2.7.10 Darwin/15.4.0 botocore/1.5.39'}, 'context': {'auth_type': None, 'client_region': 'us-east-1', 'has_streaming_input': False, 'client_config': <botocore.config.Config object at 0x10dc7b9d0>}, 'query_string': '', 'url_path': '/', 'method': u'POST'}\r\n2017-04-14 10:42:17,032 - MainThread - botocore.hooks - DEBUG - Event request-created.sqs.CreateQueue: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10dc7b990>>\r\n2017-04-14 10:42:17,032 - MainThread - botocore.hooks - DEBUG - Event choose-signer.sqs.CreateQueue: calling handler <function set_operation_specific_signer at 0x10d0800c8>\r\n2017-04-14 10:42:17,033 - MainThread - botocore.auth - DEBUG - Calculating signature using v4 auth.\r\n2017-04-14 10:42:17,033 - MainThread - botocore.auth - DEBUG - CanonicalRequest:\r\nPOST\r\n/\r\n\r\nhost:queue.amazonaws.com\r\nx-amz-date:20170414T144217Z\r\n\r\nhost;x-amz-date\r\n4f241c51a703010f531ffe41a2150cd91dd770627485cb7996a007796d87a6c3\r\n2017-04-14 10:42:17,033 - MainThread - botocore.auth - DEBUG - StringToSign:\r\nAWS4-HMAC-SHA256\r\n20170414T144217Z\r\n20170414/us-east-1/sqs/aws4_request\r\n79b98b56db7d26c655a2a2e0849c826c2b0b542ecb48678e2c411879294b075b\r\n2017-04-14 10:42:17,033 - MainThread - botocore.auth - DEBUG - Signature:\r\ned155dbd056eb38d2ebb761aff42b7b2b738e2a52ae14a7dd3d4e638d8f5cf52\r\n2017-04-14 10:42:17,035 - MainThread - botocore.endpoint - DEBUG - Sending http request: <PreparedRequest [POST]>\r\n2017-04-14 10:42:17,035 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): queue.amazonaws.com\r\n2017-04-14 10:42:17,626 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - \"POST / HTTP/1.1\" 400 285\r\n2017-04-14 10:42:17,627 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amzn-requestid': '61feb0b1-2852-5ea0-9c2d-e1dbca5b36b0', 'content-length': '285', 'server': 'Server', 'connection': 'keep-alive', 'date': 'Fri, 14 Apr 2017 14:42:17 GMT', 'content-type': 'text/xml'}\r\n2017-04-14 10:42:17,627 - MainThread - botocore.parsers - DEBUG - Response body:\r\n<?xml version=\"1.0\"?><ErrorResponse xmlns=\"http://queue.amazonaws.com/doc/2012-11-05/\"><Error><Type>Sender</Type><Code>InvalidAttributeName</Code><Message>Unknown Attribute FifoQueue.</Message><Detail/></Error><RequestId>61feb0b1-2852-5ea0-9c2d-e1dbca5b36b0</RequestId></ErrorResponse>\r\n2017-04-14 10:42:17,627 - MainThread - botocore.hooks - DEBUG - Event needs-retry.sqs.CreateQueue: calling handler <botocore.retryhandler.RetryHandler object at 0x10da5ac50>\r\n2017-04-14 10:42:17,627 - MainThread - botocore.retryhandler - DEBUG - No retry needed.\r\n2017-04-14 10:42:17,628 - MainThread - awscli.clidriver - DEBUG - Exception caught in main()\r\nTraceback (most recent call last):\r\n  File \"/usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/awscli/clidriver.py\", line 199, in main\r\n    return command_table[parsed_args.command](remaining, parsed_args)\r\n  File \"/usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/awscli/clidriver.py\", line 337, in __call__\r\n    return command_table[parsed_args.operation](remaining, parsed_globals)\r\n  File \"/usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/awscli/clidriver.py\", line 507, in __call__\r\n    call_parameters, parsed_globals)\r\n  File \"/usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/awscli/clidriver.py\", line 626, in invoke\r\n    client, operation_name, parameters, parsed_globals)\r\n  File \"/usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/awscli/clidriver.py\", line 638, in _make_client_call\r\n    **parameters)\r\n  File \"/usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/botocore/client.py\", line 253, in _api_call\r\n    return self._make_api_call(operation_name, kwargs)\r\n  File \"/usr/local/Cellar/awscli/1.11.76/libexec/lib/python2.7/site-packages/botocore/client.py\", line 544, in _make_api_call\r\n    raise error_class(parsed_response, operation_name)\r\nInvalidAttributeName: An error occurred (InvalidAttributeName) when calling the CreateQueue operation: Unknown Attribute FifoQueue.\r\n2017-04-14 10:42:17,630 - MainThread - awscli.clidriver - DEBUG - Exiting with rc 255\r\n\r\nAn error occurred (InvalidAttributeName) when calling the CreateQueue operation: Unknown Attribute FifoQueue.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-cli/issues/comments/406704563","html_url":"https://github.com/aws/aws-cli/issues/2549#issuecomment-406704563","issue_url":"https://api.github.com/repos/aws/aws-cli/issues/2549","id":406704563,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjcwNDU2Mw==","user":{"login":"mateusfccp","id":4605213,"node_id":"MDQ6VXNlcjQ2MDUyMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/4605213?v=4","gravatar_id":"","url":"https://api.github.com/users/mateusfccp","html_url":"https://github.com/mateusfccp","followers_url":"https://api.github.com/users/mateusfccp/followers","following_url":"https://api.github.com/users/mateusfccp/following{/other_user}","gists_url":"https://api.github.com/users/mateusfccp/gists{/gist_id}","starred_url":"https://api.github.com/users/mateusfccp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mateusfccp/subscriptions","organizations_url":"https://api.github.com/users/mateusfccp/orgs","repos_url":"https://api.github.com/users/mateusfccp/repos","events_url":"https://api.github.com/users/mateusfccp/events{/privacy}","received_events_url":"https://api.github.com/users/mateusfccp/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T19:30:24Z","updated_at":"2018-07-20T19:30:24Z","author_association":"NONE","body":"Does anyone know when will it be available on sa-east-1?"}}
{"actor":{"display_login":"mateusfccp"}}