aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-05-06 21:43:44 -0700
committerClint Byrum <clint@fewbar.com>2013-05-06 21:43:44 -0700
commit8be7b6b509afc3937f7d0656851d370f612b3860 (patch)
treeb4117e18e74ca8df064255354aa9d0ee88610b73
parent41e750482efcaeb67db2af011c7e4fd936e49ad4 (diff)
Cannot use generic-user.yaml, copy/paste in
-rw-r--r--glance.yaml26
1 files changed, 19 insertions, 7 deletions
diff --git a/glance.yaml b/glance.yaml
index 9eab3a9a..b5df07e4 100644
--- a/glance.yaml
+++ b/glance.yaml
@@ -22,12 +22,24 @@ Parameters:
TemplateURL:
Type: String
Default: https://raw.github.com/openstack-ops/templates/master/
+ RabbitHost:
+ Type: String
+ RabbitPassword:
+ Type: String
Resources:
- GlanceUser:
- Type: AWS::CloudFormation::Stack
- TemplateURL: {'Fn::Join': [ {Ref: TemplateURL} , 'generic-user.yaml' ]}
- Parameters:
- AccessList: [ Glance ]
+ AccessPolicy:
+ Type: OS::Heat::AccessPolicy
+ Properties:
+ AllowedResources: [ Glance ]
+ User:
+ Type: AWS::IAM::User
+ Properties:
+ Policies: [ { Ref: AccessPolicy } ]
+ Key:
+ Type: AWS::IAM::AccessKey
+ Properties:
+ UserName:
+ Ref: User
Glance:
Type: AWS::EC2::Instance
Properties:
@@ -39,9 +51,9 @@ Resources:
OpenStack::ImageBuilder::Elements: [ glance ]
heat:
access_key_id:
- Fn::GetAtt: [ GlanceUser, AccessKeyId ]
+ Ref: Key
secret_key:
- Fn::GetAtt: [ GlanceUser, SecretAccessKey ]
+ Fn::GetAtt: [ Key, SecretAccessKey ]
stack:
name: {Ref: 'AWS::StackName'}
region: {Ref: 'AWS::Region'}