Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sdlf-utils] workshop update #499

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
AWSTemplateFormatVersion: 2010-09-09
Description: Example datasets

Parameters:
pPipelineReference:
Type: String
Default: none

Resources:
rLegislators:
Type: awslabs::sdlf::dataset::MODULE
Properties:
pPipelineReference: !Ref pPipelineReference
pDatasetName: legislators
pS3Prefix: legislators
pDeploymentInstance: dev
pStorageDeploymentInstance: dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
AWSTemplateFormatVersion: 2010-09-09
Description: SDLF Foundations in datalake domain, dev environment

Parameters:
pPipelineReference:
Type: String
Default: none

Resources:
rAnycompany:
Type: awslabs::sdlf::foundations::MODULE
Properties:
pPipelineReference: !Ref pPipelineReference
pChildAccountId: !Ref AWS::AccountId
pOrg: anycompany
pDomain: datalake
pDeploymentInstance: dev
pCicdRole: Admin
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
AWSTemplateFormatVersion: "2010-09-09"
Description: Main pipeline

Parameters:
pPipelineReference:
Type: String
Default: none

Resources:
rMainA:
Type: awslabs::sdlf::stagelambda::MODULE
Properties:
pStageName: A
pPipeline: main
pDataset: legislators
pDeploymentInstance: maina
pStorageDeploymentInstance: dev
pDatasetDeploymentInstance: dev
pTriggerType: event
pEventPattern: !Sub >-
{
"source": ["aws.s3"],
"detail-type": ["Object Created"],
"detail": {
"bucket": {
"name": ["{{resolve:ssm:/sdlf/storage/rRawBucket/dev}}"]
},
"object": {
"key": [{ "prefix": "legislators/" }]
}
}
}
pEnableTracing: false

rMainB:
Type: awslabs::sdlf::stageglue::MODULE
Properties:
pStageName: B
pPipeline: main
pDataset: legislators
pDeploymentInstance: mainb
pStorageDeploymentInstance: dev
pDatasetDeploymentInstance: dev
pGlueJobName: sdlf-legislators-glue-job
pGlueNumberOfWorkers: 10
pGlueWorkerType: G.1X
pTriggerType: schedule
pEventPattern: !Sub >-
{
"source": ["aws.s3"],
"detail-type": ["Object Created"],
"detail": {
"bucket": {
"name": ["{{resolve:ssm:/sdlf/storage/rStageBucket/dev}}"]
},
"object": {
"key": [{ "prefix": "legislators/main/A/" }]
}
}
}
pSchedule: "cron(*/5 * * * ? *)"
pEnableTracing: false
pGlueArguments: >-
{
"--job-bookmark-option": "job-bookmark-enable",
"--enable-metrics": "",
"--enable-auto-scaling": "true",
"--SOURCE_LOCATION": !Sub "s3://{{resolve:ssm:/sdlf/storage/rStageBucket/dev}}/legislators/main/A",
"--OUTPUT_LOCATION": !Sub "s3://{{resolve:ssm:/sdlf/storage/rAnalyticsBucket/dev}}/legislators/main/B"
}
5 changes: 5 additions & 0 deletions sdlf-utils/workshop-examples/10-demo/sdlf-workshop/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Tags" : {
"Framework" : "sdlf"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
AWSTemplateFormatVersion: 2010-09-09
Description: Engineering SDLF Team in datalake domain, dev environment

Parameters:
pPipelineReference:
Type: String
Default: none

Resources:
rEngineering:
Type: awslabs::sdlf::team::MODULE
Properties:
pPipelineReference: !Ref pPipelineReference
pTeamName: engineering
pStorageDeploymentInstance: dev
pSNSNotificationsEmail: nobody@amazon.com
Loading