-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublish.template
59 lines (50 loc) · 1.5 KB
/
publish.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
AWSTemplateFormatVersion: "2010-09-09"
Description: Registers and sets a new default resource version, and publishes the resource to the public registry.
Parameters:
SchemaPackageURL:
Description: URL to S3::Bucket that contains the resource project package
Type: String
TestingLogBucket:
Type: String
ExecutionRoleArn:
Type: String
LogRoleArn:
Type: String
PubliclyPublish:
Type: String
AllowedValues:
- "yes"
- "no"
Default: "no"
TypeName:
Type: String
Default: ConfluentCloud::IAM::ServiceAccount
AllowedValues:
- ConfluentCloud::IAM::ServiceAccount
Conditions:
PublishPubliclyCon: !Equals [ !Ref PubliclyPublish, "yes" ]
Resources:
PrivateResourceVersion:
Type: AWS::CloudFormation::ResourceVersion
Properties:
SchemaHandlerPackage: !Ref SchemaPackageURL
TypeName: !Ref TypeName
ExecutionRoleArn: !Ref ExecutionRoleArn
LoggingConfig:
LogRoleArn: !Ref LogRoleArn
LogGroupName: cfn/types/resource/private/confluentcloud-iam-serviceaccount
ResourceDefaultVersion:
Type: AWS::CloudFormation::ResourceDefaultVersion
DependsOn:
- PrivateResourceVersion
Properties:
TypeVersionArn: !Ref PrivateResourceVersion
PublishedResource:
Type: AWS::CloudFormation::PublicTypeVersion
DependsOn:
- PrivateResourceVersion
Condition: PublishPubliclyCon
Properties:
Type: RESOURCE
TypeName: !Ref TypeName
LogDeliveryBucket: !Ref TestingLogBucket