-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.yml
28 lines (28 loc) · 1 KB
/
publish.yml
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
AWSTemplateFormatVersion: "2010-09-09"
Description: Registers and sets a new default resource version, registers the account as a publisher, and publishes the resource to the public registry.
Parameters:
SchemaPackageURL:
Description: URL to S3::Bucket that contains the resource project package
Type: String
Resources:
PrivateResourceVersion:
Type: AWS::CloudFormation::ResourceVersion
Properties:
SchemaHandlerPackage: !Ref SchemaPackageURL
TypeName: MyOrg::MyService::MyType
ResourceDefaultVersion:
Type: AWS::CloudFormation::ResourceDefaultVersion
DependsOn: PrivateResourceVersion
Properties:
TypeVersionArn: !Ref PrivateResourceVersion
Publisher:
Type: AWS::CloudFormation::Publisher
DependsOn: ResourceDefaultVersion
Properties:
AcceptTermsAndConditions: true
PublishedResource:
Type: AWS::CloudFormation::PublicTypeVersion
DependsOn: Publisher
Properties:
Type: RESOURCE
TypeName: MyOrg::MyService::MyType