Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8930129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:48:57+00:00 2026-06-15T08:48:57+00:00

I have a PHP application, using symfony2, silex, and the AWS DynamoDB SDK. It’s

  • 0

I have a PHP application, using symfony2, silex, and the AWS DynamoDB SDK. It’s been working fine. The DynamoDB is created on the East Coast.

We have a second AWS account, and we duplicated the DynamoDB structure (table names, table structures, etc. are all the same). This DynamoDB installation is on the West Coast (N. California).

My application does not work when we try to use the second AWS credentials.

When I try to do:

$res = $app['db']->describe_table(array('TableName' => 'account'));

and I dump $res, here’s what I get:

CFResponse Object
(
[header] => Array
    (
        [x-amzn-requestid] => xxxxxxxxxxxxxxxxxxxxxxxxxx
        [x-amz-crc32] => xxxxxxxxxxxxx
        [content-type] => application/x-amz-json-1.0
        [content-length] => 143
        [date] => Wed, 28 Nov 2012 20:49:31 GMT
        [_info] => Array
            (
                [url] => https://dynamodb.us-east-1.amazonaws.com/
                [content_type] => application/x-amz-json-1.0
                [http_code] => 400
                [header_size] => 224
                [request_size] => 896
                [filetime] => -1
                [ssl_verify_result] => 0
                [redirect_count] => 0
                [total_time] => 0.363967
                [namelookup_time] => 0.008497
                [connect_time] => 0.091183
                [pretransfer_time] => 0.263514
                [size_upload] => 28
                [size_download] => 143
                [speed_download] => 392
                [speed_upload] => 76
                [download_content_length] => 143
                [upload_content_length] => 0
                [starttransfer_time] => 0.363929
                [redirect_time] => 0
                [certinfo] => Array
                    (
                    )

                [redirect_url] => 
                [method] => POST
            )

        [x-aws-stringtosign] => AWS4-HMAC-SHA256
            20121128T204931Z
            20121128/us-east-1/dynamodb/aws4_request
            xxxxxxxxxxxxxxxxxxxxxxx
        [x-aws-canonicalrequest] => POST
            /
            content-length:28
            content-type:application/x-amz-json-1.0
            host:dynamodb.us-east-1.amazonaws.com
            x-amz-date:20121128T204931Z
            x-amz-target:DynamoDB_20111205.DescribeTable
            content-length;content-type;host;x-amz-date;x-amz-target
            xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        [x-aws-request-headers] => Array
            (
                [Content-Length] => 28
                [Content-Type] => application/x-amz-json-1.0
                [Host] => dynamodb.us-east-1.amazonaws.com
                [X-Amz-Date] => 20121128T204931Z
                [X-Amz-Target] => DynamoDB_20111205.DescribeTable
                [Authorization] => AWS4-HMAC-SHA256 Credential=AKIAJAIBF2DKGD2UD3YQ/20121128/us-east-1/dynamodb/aws4_request,SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-target,Signature=xxxxxxxxxxxxxxxxxxxxxxxx
                [Expect] => 
            )

        [x-aws-body] => {"TableName":"account"}
    )

[body] => CFSimpleXML Object
    (
        [__type] => com.amazonaws.dynamodb.v20111205#ResourceNotFoundException
        [message] => Requested resource not found: Table: account not found
    )

[status] => 400
)

I thought that the only configuration required is in the AWS DynamoDB SDK, in the file config.inc.php, where I can only configure the credentials. This does not seem to be the case,as the response has all these references to the east coast and the DynamoDB table I’m targeting is on the West Coast. Any ideas how I can tell it the AmazonSDK to point to another region? Any other issues I should be concerned about?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:48:58+00:00Added an answer on June 15, 2026 at 8:48 am

    Solved it. It was buried in the docs (Amazon considers this product and its docs BETA).

    Prior to using $app[‘db’], I need to do:

    $app['db']->set_region('dynamodb.us-west-1.amazonaws.com');
    

    or whatever region my DynamoDB was created in. Amazon provides some region constants as part of the amazonDynamodb class, but I’m having trouble using them. So, instead of ‘dynamodb.us-west-1.amazonaws.com’, you can use something like REGION_US_W1

    It seems as if by default, the REGION_US_E1 is used, so if you’re in that region, you probably don’t need to set anything, but it might be wise to do so, as Amazon may modify the SDK classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on on an AJAX chat application using php, mysql. It's
I have a PHP application using an Oracle XE database. Whenever I add a
I have a PHP MVC application using Zend Framework. As presented in the quickstart,
All, I have a PHP Web application built using Zend Framework and MVC with
I have a PHP application that sends email using the pear Mail function. Unfortunately
I am using Google GeoCoding services. I have a PHP application which calls the
I have deployed a PHP application on my tomcat server(Tomcat 6.0).Previously I was using
I have just succeeded in creating oAuth authentication for my twitter application using PHP.
We have a custom PHP/MySQL web application that gets updated and copied (using SFTP)
am using the application in this link http://www.jeasyui.com/tutorial/app/crud2.php .I have added one more column

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.