Datasets:
Commit ·
e7c6917
1
Parent(s): 22da302
Add human_reference_dataset/aws-cloudformation-templates/DataPipeline/
Browse files
human_reference_dataset/aws-cloudformation-templates/DataPipeline/DataPipeline-StringValue.json
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Description": "A CloudFormation template which shows how to provide multiple values to one StringValue when creating a DataPipeline definition, This template is entirely based on the example provided in the DataPipeline documentation here: http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-object-emrconfiguration.html - Written by Nishant Casey",
|
| 3 |
+
"Resources": {
|
| 4 |
+
"DynamoDBInputS3OutputHive": {
|
| 5 |
+
"Type": "AWS::DataPipeline::Pipeline",
|
| 6 |
+
"Properties": {
|
| 7 |
+
"Name": "DynamoDBInputS3OutputHive",
|
| 8 |
+
"Description": "Pipeline to backup DynamoDB data to S3",
|
| 9 |
+
"Activate": "true",
|
| 10 |
+
"PipelineObjects": [
|
| 11 |
+
{
|
| 12 |
+
"Id": "ResourceId_I1mCc",
|
| 13 |
+
"Name": "ReleaseLabelCluster",
|
| 14 |
+
"Fields": [
|
| 15 |
+
{
|
| 16 |
+
"Key": "releaseLabel",
|
| 17 |
+
"StringValue": "emr-4.1.0"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"Key": "applications",
|
| 21 |
+
"StringValue": "spark"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"Key": "applications",
|
| 25 |
+
"StringValue": "hive"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"Key": "applications",
|
| 29 |
+
"StringValue": "pig"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"Key": "type",
|
| 33 |
+
"StringValue": "EmrCluster"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"Key": "configuration",
|
| 37 |
+
"RefValue": "coresite"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"Id": "coresite",
|
| 43 |
+
"Name": "coresite",
|
| 44 |
+
"Fields": [
|
| 45 |
+
{
|
| 46 |
+
"Key": "type",
|
| 47 |
+
"StringValue": "EmrConfiguration"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"Key": "classification",
|
| 51 |
+
"StringValue": "core-site"
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"Key": "property",
|
| 55 |
+
"RefValue": "io-file-buffer-size"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"Key": "property",
|
| 59 |
+
"RefValue": "fs-s3-block-size"
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"Id": "io-file-buffer-size",
|
| 65 |
+
"Name": "io-file-buffer-size",
|
| 66 |
+
"Fields": [
|
| 67 |
+
{
|
| 68 |
+
"Key": "type",
|
| 69 |
+
"StringValue": "Property"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"Key": "value",
|
| 73 |
+
"StringValue": "4096"
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"Key": "key",
|
| 77 |
+
"StringValue": "io.file.buffer.size"
|
| 78 |
+
}
|
| 79 |
+
]
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"Id": "fs-s3-block-size",
|
| 83 |
+
"Name": "fs-s3-block-size",
|
| 84 |
+
"Fields": [
|
| 85 |
+
{
|
| 86 |
+
"Key": "type",
|
| 87 |
+
"StringValue": "Property"
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"Key": "value",
|
| 91 |
+
"StringValue": "67108864"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"Key": "key",
|
| 95 |
+
"StringValue": "fs.s3.block.size"
|
| 96 |
+
}
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"Id": "DefaultSchedule",
|
| 101 |
+
"Name": "RunOnce",
|
| 102 |
+
"Fields": [
|
| 103 |
+
{
|
| 104 |
+
"Key": "occurrences",
|
| 105 |
+
"StringValue": "1"
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"Key": "startAt",
|
| 109 |
+
"StringValue": "FIRST_ACTIVATION_DATE_TIME"
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"Key": "type",
|
| 113 |
+
"StringValue": "Schedule"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"Key": "period",
|
| 117 |
+
"StringValue": "1 Day"
|
| 118 |
+
}
|
| 119 |
+
]
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"Id": "Default",
|
| 123 |
+
"Name": "Default",
|
| 124 |
+
"Fields": [
|
| 125 |
+
{
|
| 126 |
+
"Key": "resourceRole",
|
| 127 |
+
"StringValue": "DataPipelineDefaultResourceRole"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"Key": "role",
|
| 131 |
+
"StringValue": "DataPipelineDefaultRole"
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"Key": "scheduleType",
|
| 135 |
+
"StringValue": "cron"
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"Key": "type",
|
| 139 |
+
"StringValue": "Default"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"Key": "schedule",
|
| 143 |
+
"RefValue": "DefaultSchedule"
|
| 144 |
+
}
|
| 145 |
+
]
|
| 146 |
+
}
|
| 147 |
+
]
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
}
|
human_reference_dataset/aws-cloudformation-templates/DataPipeline/DataPipeline-StringValue.yaml
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Description: 'A CloudFormation template which shows how to provide multiple values to one StringValue when creating a DataPipeline definition, This template is entirely based on the example provided in the DataPipeline documentation here: http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-object-emrconfiguration.html - Written by Nishant Casey'
|
| 2 |
+
|
| 3 |
+
Resources:
|
| 4 |
+
DynamoDBInputS3OutputHive:
|
| 5 |
+
Type: AWS::DataPipeline::Pipeline
|
| 6 |
+
Properties:
|
| 7 |
+
Name: DynamoDBInputS3OutputHive
|
| 8 |
+
Description: Pipeline to backup DynamoDB data to S3
|
| 9 |
+
Activate: "true"
|
| 10 |
+
PipelineObjects:
|
| 11 |
+
- Id: ResourceId_I1mCc
|
| 12 |
+
Name: ReleaseLabelCluster
|
| 13 |
+
Fields:
|
| 14 |
+
- Key: releaseLabel
|
| 15 |
+
StringValue: emr-4.1.0
|
| 16 |
+
- Key: applications
|
| 17 |
+
StringValue: spark
|
| 18 |
+
- Key: applications
|
| 19 |
+
StringValue: hive
|
| 20 |
+
- Key: applications
|
| 21 |
+
StringValue: pig
|
| 22 |
+
- Key: type
|
| 23 |
+
StringValue: EmrCluster
|
| 24 |
+
- Key: configuration
|
| 25 |
+
RefValue: coresite
|
| 26 |
+
- Id: coresite
|
| 27 |
+
Name: coresite
|
| 28 |
+
Fields:
|
| 29 |
+
- Key: type
|
| 30 |
+
StringValue: EmrConfiguration
|
| 31 |
+
- Key: classification
|
| 32 |
+
StringValue: core-site
|
| 33 |
+
- Key: property
|
| 34 |
+
RefValue: io-file-buffer-size
|
| 35 |
+
- Key: property
|
| 36 |
+
RefValue: fs-s3-block-size
|
| 37 |
+
- Id: io-file-buffer-size
|
| 38 |
+
Name: io-file-buffer-size
|
| 39 |
+
Fields:
|
| 40 |
+
- Key: type
|
| 41 |
+
StringValue: Property
|
| 42 |
+
- Key: value
|
| 43 |
+
StringValue: "4096"
|
| 44 |
+
- Key: key
|
| 45 |
+
StringValue: io.file.buffer.size
|
| 46 |
+
- Id: fs-s3-block-size
|
| 47 |
+
Name: fs-s3-block-size
|
| 48 |
+
Fields:
|
| 49 |
+
- Key: type
|
| 50 |
+
StringValue: Property
|
| 51 |
+
- Key: value
|
| 52 |
+
StringValue: "67108864"
|
| 53 |
+
- Key: key
|
| 54 |
+
StringValue: fs.s3.block.size
|
| 55 |
+
- Id: DefaultSchedule
|
| 56 |
+
Name: RunOnce
|
| 57 |
+
Fields:
|
| 58 |
+
- Key: occurrences
|
| 59 |
+
StringValue: "1"
|
| 60 |
+
- Key: startAt
|
| 61 |
+
StringValue: FIRST_ACTIVATION_DATE_TIME
|
| 62 |
+
- Key: type
|
| 63 |
+
StringValue: Schedule
|
| 64 |
+
- Key: period
|
| 65 |
+
StringValue: 1 Day
|
| 66 |
+
- Id: Default
|
| 67 |
+
Name: Default
|
| 68 |
+
Fields:
|
| 69 |
+
- Key: resourceRole
|
| 70 |
+
StringValue: DataPipelineDefaultResourceRole
|
| 71 |
+
- Key: role
|
| 72 |
+
StringValue: DataPipelineDefaultRole
|
| 73 |
+
- Key: scheduleType
|
| 74 |
+
StringValue: cron
|
| 75 |
+
- Key: type
|
| 76 |
+
StringValue: Default
|
| 77 |
+
- Key: schedule
|
| 78 |
+
RefValue: DefaultSchedule
|