{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1246","repository_url":"https://api.github.com/repos/aws/aws-sdk-ruby","labels_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1246/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1246/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1246/events","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1246","id":166279868,"number":1246,"title":"Where to get the value of region and what is it? Give an example what is a region!","user":{"login":"thebravoman","id":1311493,"avatar_url":"https://avatars.githubusercontent.com/u/1311493?v=3","gravatar_id":"","url":"https://api.github.com/users/thebravoman","html_url":"https://github.com/thebravoman","followers_url":"https://api.github.com/users/thebravoman/followers","following_url":"https://api.github.com/users/thebravoman/following{/other_user}","gists_url":"https://api.github.com/users/thebravoman/gists{/gist_id}","starred_url":"https://api.github.com/users/thebravoman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebravoman/subscriptions","organizations_url":"https://api.github.com/users/thebravoman/orgs","repos_url":"https://api.github.com/users/thebravoman/repos","events_url":"https://api.github.com/users/thebravoman/events{/privacy}","received_events_url":"https://api.github.com/users/thebravoman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-19T08:53:58Z","updated_at":"2016-07-19T13:25:44Z","closed_at":null,"body":"With this version the region is required. \r\n\r\nIf I use us-west-2a I get \r\n``` \r\n[Aws::S3::Client 0 2.243104 3 retries] put_object(content_type:\"image/png\",acl:\"public-read\",bucket:\"fllcasts-development\",key:\"schools/pictures/000/000/027/original/exit_rbp_exit.png\",body:#<File:/tmp/023b288fd692b5b3b3fa532314682be420160719-28827-1ul6wyq.png (102088 bytes)>) Seahorse::Client::NetworkingError getaddrinfo: Name or service not known\r\n\r\n   (39.8ms)  ROLLBACK\r\nCompleted 500 Internal Server Error in 2610ms (ActiveRecord: 42.6ms)\r\n\r\nSeahorse::Client::NetworkingError - getaddrinfo: Name or service not known:\r\n  aws-sdk-core (2.3.21) lib/seahorse/client/networking_error.rb:7:in `initialize'\r\n  aws-sdk-core (2.3.21) lib/seahorse/client/net_http/handler.rb:86:in `rescue in transmit'\r\n  aws-sdk-core (2.3.21) lib/seahorse/client/net_http/handler.rb:68:in `transmit'\r\n  aws-sdk-core (2.3.21) lib/seahorse/client/net_http/handler.rb:42:in `call'\r\n  aws-sdk-core (2.3.21) lib/seahorse/client/plugins/content_length.rb:12:in `call'\r\n  aws-sdk-core (2.3.21) lib/aws-sdk-core/plugins/s3_request_signer.rb:88:in `call'\r\n  aws-sdk-core (2.3.21) lib/aws-sdk-core/plugins/s3_request_signer.rb:23:in `call'\r\n\r\n```\r\nIf i use us-west-2 I get\r\n```\r\n[Aws::S3::Client 403 1.142556 0 retries] put_object(content_type:\"image/png\",acl:\"public-read\",bucket:\"fllcasts-development\",key:\"schools/pictures/000/000/028/original/exit_rbp_exit.png\",body:#<File:/tmp/023b288fd692b5b3b3fa532314682be420160719-28827-v9qfgu.png (102088 bytes)>) Aws::S3::Errors::AccessDenied Access Denied\r\n\r\n   (42.3ms)  ROLLBACK\r\nCompleted 500 Internal Server Error in 1538ms (ActiveRecord: 120.7ms)\r\n\r\nAws::S3::Errors::AccessDenied - Access Denied:\r\n  aws-sdk-core (2.3.21) lib/seahorse/client/plugins/raise_response_errors.rb:15:in `call'\r\n  aws-sdk-core (2.3.21) lib/aws-sdk-core/plugins/s3_sse_cpk.rb:19:in `call'\r\n  aws-sdk-core (2.3.21) lib/aws-sdk-core/plugins/s3_accelerate.rb:33:in `call'\r\n```"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/comments/233631379","html_url":"https://github.com/aws/aws-sdk-ruby/issues/1246#issuecomment-233631379","issue_url":"https://api.github.com/repos/aws/aws-sdk-ruby/issues/1246","id":233631379,"user":{"login":"Doug-AWS","id":16107690,"avatar_url":"https://avatars.githubusercontent.com/u/16107690?v=3","gravatar_id":"","url":"https://api.github.com/users/Doug-AWS","html_url":"https://github.com/Doug-AWS","followers_url":"https://api.github.com/users/Doug-AWS/followers","following_url":"https://api.github.com/users/Doug-AWS/following{/other_user}","gists_url":"https://api.github.com/users/Doug-AWS/gists{/gist_id}","starred_url":"https://api.github.com/users/Doug-AWS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doug-AWS/subscriptions","organizations_url":"https://api.github.com/users/Doug-AWS/orgs","repos_url":"https://api.github.com/users/Doug-AWS/repos","events_url":"https://api.github.com/users/Doug-AWS/events{/privacy}","received_events_url":"https://api.github.com/users/Doug-AWS/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T13:25:44Z","updated_at":"2016-07-19T13:25:44Z","body":"Try the code we include with the Aws.partition method, http://docs.aws.amazon.com/sdkforruby/api/Aws.html#partition-class_method. It just returned:\r\n\r\nRegions available in the aws partition:\r\nus-east-1\r\nus-west-1\r\nus-west-2\r\nap-northeast-1\r\nap-northeast-2\r\nap-south-1\r\nap-southeast-1\r\nap-southeast-2\r\nsa-east-1\r\neu-west-1\r\neu-central-1\r\nServices available in the aws partition:\r\nACM\r\nAPIGateway\r\nApplicationAutoScaling\r\nApplicationDiscoveryService\r\nAutoScaling\r\nCloudFormation\r\nCloudFront\r\nCloudHSM\r\nCloudSearch\r\nCloudSearchDomain\r\nCloudTrail\r\nCloudWatch\r\nCloudWatchEvents\r\nCloudWatchLogs\r\nCodeCommit\r\nCodeDeploy\r\nCodePipeline\r\nCognitoIdentity\r\nCognitoIdentityProvider\r\nCognitoSync\r\nConfigService\r\nDatabaseMigrationService\r\nDataPipeline\r\nDeviceFarm\r\nDirectConnect\r\nDirectoryService\r\nDynamoDB\r\nDynamoDBStreams\r\nEC2\r\nECR\r\nECS\r\nEFS\r\nElastiCache\r\nElasticBeanstalk\r\nElasticLoadBalancing\r\nElasticsearchService\r\nElasticTranscoder\r\nEMR\r\nFirehose\r\nGameLift\r\nGlacier\r\nIAM\r\nImportExport\r\nInspector\r\nIoT\r\nIoTDataPlane\r\nKinesis\r\nKMS\r\nLambda\r\nLambdaPreview\r\nMachineLearning\r\nMarketplaceCommerceAnalytics\r\nMarketplaceMetering\r\nOpsWorks\r\nRDS\r\nRedshift\r\nRoute53\r\nRoute53Domains\r\nS3\r\nSES\r\nSimpleDB\r\nSNS\r\nSQS\r\nSSM\r\nStorageGateway\r\nSTS\r\nSupport\r\nSWF\r\nWAF\r\nWorkSpaces"}}
{"actor":{"display_login":"Doug-AWS"}}