Skip to content

Commit

Permalink
Cannot use generic-user.yaml, copy/paste in
Browse files Browse the repository at this point in the history
  • Loading branch information
SpamapS committed May 7, 2013
1 parent 41e7504 commit 8be7b6b
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions glance.yaml
Expand Up @@ -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:
Expand All @@ -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'}
Expand Down

0 comments on commit 8be7b6b

Please sign in to comment.