-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathresource-test.template
32 lines (27 loc) · 1.02 KB
/
resource-test.template
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
AWSTemplateFormatVersion: "2010-09-09"
Description:
Simple template to test ConfluentCloud::IAM::ServiceAccount resource
Parameters:
ConfluentCloudApiSecrets:
Type: String
Description: Name or full ARN of the ConfluentCloudApiSecrets that contains the ApiKey and ApiSecret
ServiceAccountName:
Type: String
Description: Name of the service account to create
AllowedPattern: "^[a-zA-Z0-9-_.]+$"
ServiceAccountDescription:
Type: String
Description: Description of the service account
Default: "None"
Resources:
ConfluentServiceAccount:
Type: ConfluentCloud::IAM::ServiceAccount
Properties:
Description: !Ref ServiceAccountDescription
Name: !Ref ServiceAccountName
ConfluentCloudCredentials:
ApiKey: !Sub "{{resolve:secretsmanager:${ConfluentCloudApiSecrets}:SecretString:ApiKey}}"
ApiSecret: !Sub "{{resolve:secretsmanager:${ConfluentCloudApiSecrets}:SecretString:ApiSecret}}"
Outputs:
ServiceAccountId:
Value: !Ref ConfluentServiceAccount