summaryrefslogtreecommitdiffstats
path: root/generic-user.yaml
diff options
context:
space:
mode:
authorClint Byrum <clint@fewbar.com>2013-04-18 15:23:07 -0700
committerClint Byrum <clint@fewbar.com>2013-04-18 15:23:07 -0700
commit72d250be0598aba3e9e9e09721cf99402ded0c91 (patch)
tree7b41ec00448988a173e78e70a30cc3cc3b4f8da3 /generic-user.yaml
parent41fb3c49045fd5dc6ae3ec013c51e8b8428d1fff (diff)
Refactor Heat template to use generic user
Diffstat (limited to 'generic-user.yaml')
-rw-r--r--generic-user.yaml24
1 files changed, 24 insertions, 0 deletions
diff --git a/generic-user.yaml b/generic-user.yaml
new file mode 100644
index 00000000..ce6b84b8
--- /dev/null
+++ b/generic-user.yaml
@@ -0,0 +1,24 @@
+HeatTemplateFormatVersion: '2012-12-12'
+Description: 'HEAT Template - Heat Engine and API'
+Parameters:
+ AllowedResources:
+ Type: list
+Resources:
+ AccessPolicy:
+ Type: OS::Heat::AccessPolicy
+ Properties:
+ AllowedResources: {Ref: AllowedResources}
+ User:
+ Type: AWS::IAM::User
+ Properties:
+ Policies: [ { Ref: AccessPolicy } ]
+ Key:
+ Type: AWS::IAM::AccessKey
+ Properties:
+ UserName:
+ Ref: User
+Outputs:
+ AccessKeyId:
+ Ref: Key
+ SecretKey:
+ Fn::GetAtt: [ Key, SecretAccessKey ]