-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsc-product-ec2-linux.json
67 lines (67 loc) · 2.61 KB
/
sc-product-ec2-linux.json
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
60
61
62
63
64
65
66
67
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Linux EC2 ServiceCatalog product. (fdp-1p4da46q6)",
"Parameters":
{
"PortfolioProvider": {
"Type":"String",
"Description":"Owner and Distributor Name"
},
"LaunchConstraintRole": {
"Type":"String",
"Description":"Name of the launch constraint role for EC2 products."
},
"PortfolioId":{
"Type":"String",
"Description":"The ServiceCatalog portfolio this product will be attached to."
},
"RepoRootURL": {
"Type":"String",
"Description":"Root url for the repo containing the product templates."
}
},
"Resources": {
"scec2linuxproduct": {
"Type": "AWS::ServiceCatalog::CloudFormationProduct",
"Properties": {
"Name": "Amazon Elastic Compute Cloud (EC2) Linux",
"Description": "This product builds one Amazon Linux EC2 instance and create a SSM patch baseline, maintenance window, and patch task to scan for and install operating system updates the EC2 instance.",
"Owner": {"Ref":"PortfolioProvider"},
"Distributor": {"Ref":"PortfolioProvider"},
"SupportDescription": "Operations Team",
"SupportEmail": "[email protected]",
"AcceptLanguage": "en",
"SupportUrl": "http://helpdesk.yourcompany.com",
"ProvisioningArtifactParameters": [
{
"Description": "baseline version",
"Info": {
"LoadTemplateFromURL": {"Fn::Sub": "${RepoRootURL}ec2/sc-ec2-linux-ra.json"}
},
"Name": "v1.0"
}
]
}
},
"Associateec2linux":{
"Type" : "AWS::ServiceCatalog::PortfolioProductAssociation",
"Properties" : {
"PortfolioId" : {"Ref":"PortfolioId"},
"ProductId" : {"Ref":"scec2linuxproduct"}
}
},
"constraintec2linux":{
"Type" : "AWS::ServiceCatalog::LaunchRoleConstraint",
"DependsOn" : "Associateec2linux",
"Properties" : {
"PortfolioId" : {"Ref":"PortfolioId"},
"ProductId" : {"Ref":"scec2linuxproduct"},
"LocalRoleName" : {"Ref":"LaunchConstraintRole"},
"Description": {"Ref":"LaunchConstraintRole"}
}
}
},
"Outputs": {
"ProductId":{"Value": { "Ref":"scec2linuxproduct" } }
}
}