Lua
Lua
S3 Create Bucket
See more Amazon S3 Examples
Demonstrates how to create a new bucket.Chilkat Lua Downloads
local chilkat = require("chilkat")
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
local http = chilkat.Http.new()
-- Insert your access key here:
http.aws_access_key = "ABQXXABC83ABCDEFVQXX"
-- Insert your secret key here:
http.aws_secret_key = "XXXXYYYYabcdABCD12345678xxxxyyyyzzzz"
local success = http:s3_create_bucket("chilkattestbucket")
if not success then
print(http.last_error_text)
else
print("Bucket created.")
end