错误设置CloudFoundry 2 AWS(AWS :: S3 ::错误:: AccessDenied) [英] Error setting up CloudFoundry 2 on AWS (AWS::S3::Errors::AccessDenied)

查看:688
本文介绍了错误设置CloudFoundry 2 AWS(AWS :: S3 ::错误:: AccessDenied)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这真棒演示视频后,我一直在试图安装在AWS上根据文档并保持运行到的问题。

After watching this awesome demo video, I've been trying to setup a CloudFoundry2 installation on AWS according to the docs and keep running into issues.

我在OS X上,所以我最终安装 rbenv 红宝石v 1.9.3-P327 ,但现在我不能跟着导游,我不知道如何继续。试图运行波什AWS创建来提供亚马逊的服务时,我得到了以下错误:

I'm on OS X, so I ended up installing rbenv and Ruby v 1.9.3-p327, but now I can't follow the guide and am not sure how to proceed. I get the following error when trying to run bosh aws create to provision the Amazon services:

→ bosh aws create
/Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:339:in `return_or_raise': Access Denied (AWS::S3::Errors::AccessDenied)
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:in `client_request'
    from (eval):3:in `get_object'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:1272:in `get_object'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/aws-sdk-1.8.5/lib/aws/s3/s3_object.rb:1058:in `read'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.5.0.pre.650/lib/bosh_cli_plugin_aws/s3.rb:51:in `block in fetch_object_contents'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_common-1.5.0.pre.650/lib/common/retryable.rb:23:in `block in retryer'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_common-1.5.0.pre.650/lib/common/retryable.rb:21:in `loop'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_common-1.5.0.pre.650/lib/common/retryable.rb:21:in `retryer'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_common-1.5.0.pre.650/lib/common/common.rb:119:in `retryable'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.5.0.pre.650/lib/bosh_cli_plugin_aws/s3.rb:50:in `fetch_object_contents'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.5.0.pre.650/lib/bosh_cli_plugin_aws/migrator.rb:81:in `load_migrations_for_env'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.5.0.pre.650/lib/bosh_cli_plugin_aws/migrator.rb:35:in `environment_migrations'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.5.0.pre.650/lib/bosh_cli_plugin_aws/migrator.rb:40:in `needs_migration?'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.5.0.pre.650/lib/bosh_cli_plugin_aws/migrator.rb:11:in `migrate'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli_plugin_aws-1.5.0.pre.650/lib/bosh/cli/commands/aws.rb:125:in `create'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli-1.5.0.pre.650/lib/cli/command_handler.rb:57:in `run'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli-1.5.0.pre.650/lib/cli/runner.rb:59:in `run'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli-1.5.0.pre.650/lib/cli/runner.rb:18:in `run'
    from /Users/dave/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bosh_cli-1.5.0.pre.650/bin/bosh:7:in `<top (required)>'
    from /Users/dave/.rbenv/versions/1.9.3-p327/bin/bosh:23:in `load'
    from /Users/dave/.rbenv/versions/1.9.3-p327/bin/bosh:23:in `<main>'

我真的想避免手动设置所有AWS部件如果可能的话,但如果需要的话,我可以走这条路(假设有一些好的文档跟随)。

I'd really like to avoid manually setting up all the AWS components if possible, but if needs be I can go that route (assuming there's some good documentation to follow).

波什详情

→ gem list bosh 

*** LOCAL GEMS ***

bosh (1.3.0)
bosh_aws_cpi (1.5.0.pre.650)
bosh_cli (1.5.0.pre.650, 1.0.3)
bosh_cli_plugin_aws (1.5.0.pre.650)
bosh_cli_plugin_micro (1.5.0.pre.650)
bosh_common (1.5.0.pre.650, 0.5.4)
bosh_cpi (1.5.0.pre.650)
bosh_openstack_cpi (1.5.0.pre.650)
bosh_registry (1.5.0.pre.650)
bosh_vcloud_cpi (1.5.0.pre.650)
bosh_vsphere_cpi (1.5.0.pre.650)

波什的其他信息(可能是不相关的,因为我还没有部署任何

Additional bosh info (probably not relevant, given I haven't deployed anything

→  bosh status 
Config
             /Users/dave/.bosh_config

Director
  not set

Deployment
  not set

任何帮助将是AP preciated。谢谢!

Any help would be appreciated. Thanks!

推荐答案

原来,这个问题是创建的S3存储是从 BOSH_VPC_SUBDOMAIN 输入产生和必须是唯一的。改变这种东西的非常的具体工作对我来说。

Turns out that the issue was that the S3 bucket that is created is generated from the BOSH_VPC_SUBDOMAIN you enter and has to be unique. Changing that to something very specific worked for me.

这篇关于错误设置CloudFoundry 2 AWS(AWS :: S3 ::错误:: AccessDenied)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆