AWS S3中缺少区域参数?

时间:2019-06-06 11:31:38

标签: php amazon-web-services symfony amazon-s3

我正在我的Symofony 3.4项目中实施Amazon Web Services,但是当我触发测试URL时,它会抛出:

Missing required client configuration options:
  region: (string)  A region configuration value is required.

我所在的控制台是EU(爱尔兰),我已经检查了文档并以此放置参数。

这是我的service.yml

 demo_storage:
    class: App\Service\S3\S3Service
    arguments:
        - "test.app" # Name of Bucket
        - credentials:
            key:     "%amazon_key%"
            secret:  "%amazon_secret%"
            region:  "eu-west-1"    
            version: "2006-03-01"      
    public: true

0 个答案:

没有答案