Created
September 12, 2013 04:54
-
-
Save unnitallman/6533192 to your computer and use it in GitHub Desktop.
Creating a S3 bucket with location constraint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pry(main)> s3= AWS::S3.new(:region=> "eu-west-1") | |
| => <AWS::S3> | |
| [3] pry(main)> s3.buckets | |
| => <AWS::S3::BucketCollection> | |
| [4] pry(main)> s3.buckets.create | |
| ArgumentError: wrong number of arguments (0 for 1..2) | |
| from /Users/unni/.rvm/gems/ruby-2.0.0-p195@ehqv2/gems/aws-sdk-1.11.1/lib/aws/s3/bucket_collection.rb:91:in `create' | |
| [5] pry(main)> s3.buckets.create("unni-test") | |
| => #<AWS::S3::Bucket:unni-test> | |
| [6] pry(main)> s3.buckets | |
| => <AWS::S3::BucketCollection> | |
| [7] pry(main)> s3.buckets["unni-test"] | |
| => #<AWS::S3::Bucket:unni-test> | |
| [8] pry(main)> s3.buckets["unni-test"].location_constraint | |
| => "EU" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment