我试图使用DynamoDB中的一个配置文件在一个基本节点项目中创建一个.ebextensions表。该应用程序成功启动,但该表从未被创建。我的项目结构如下:
app/
.elasticbeanstalk/
config.yml
.ebextensions/
setup.config
app.jssetup.config包含以下内容:
Resources:
StartupSignupsTable:
Type: AWS::DynamoDB::Table
Properties:
KeySchema:
HashKeyElement:
AttributeName: "email"
AttributeType: "S"
ProvisionedThroughput:
ReadCapacityUnits: 1
WriteCapacityUnits: 1然后运行以下命令来创建一个新的弹力豆茎应用程序:
git init
eb init
git add *
git commit -m "Initial commit."
eb create应用程序将启动,但会出现错误:
ERROR: Creating security group named: sg-8c926717 failed Reason: Resource creation cancelled
ERROR: Stack named 'awseb-f-nrju2hums2-stack' aborted operation. Current state: 'CREATE_FAILED'
Reason: The following resource(s) failed to create: [StartupSignupsTable, AWSEBLoadBalancerSecurityGroup].
INFO: Launched environment: test-dev. However, there were issues during launch. See event log for details.
ERROR: The operation timed out. The state of the environment is unknown.有人知道什么能阻止桌子的制作吗?我使用的是具有完全DynamoDB权限的修改后的EB IAM角色。非常感谢!
发布于 2015-05-27 04:40:43
我已经弄清楚出了什么问题。事实证明,我与eb CLI关联的用户没有创建DynamoDB表的适当权限。添加DynamoDB:CreateTable策略解决了问题。
https://stackoverflow.com/questions/30471002
复制相似问题