forked from NeCTAR-RC/heat-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccess_key.yaml
34 lines (23 loc) · 956 Bytes
/
access_key.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#heat-template-version
heat_template_version: 2014-10-16
description: >
NeCTAR Sample Template showing the creation of a user and their aws access keys by heat.
resources:
# http://docs.openstack.org/developer/heat/template_guide/cfn.html#AWS::IAM::User
cfn_user:
type: AWS::IAM::User
# http://docs.openstack.org/developer/heat/template_guide/cfn.html#AWS::IAM::AccessKey
web_server_access_key:
type: AWS::IAM::AccessKey
properties:
UserName: { get_resource: cfn_user }
outputs:
access_key:
value: { get_resource: web_server_access_key }
description: "The access key"
secret_access_key:
value: { get_attr: [ web_server_access_key, SecretAccessKey ] }
description: "The secret access key"
user_name:
value: { get_attr: [ web_server_access_key, UserName ] }
description: "The username associated with the access key"