Skip to content

Commit

Permalink
add glue database for analytics bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
cnfait committed Oct 9, 2024
1 parent 006096b commit 6d7b84b
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions sdlf-dataset/src/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,16 @@ Resources:
Value: !Ref rGlueDataCatalog
Description: !If
- NotUseLegacyTeam
- !Sub "${pDatasetName} metadata catalog"
- !Sub "${pTeamName} team ${pDatasetName} metadata catalog"
- !Sub "${pDatasetName} stage metadata catalog"
- !Sub "${pTeamName} team ${pDatasetName} stage metadata catalog"

rStageGlueDataCatalogSsm:
Type: AWS::SSM::Parameter
Properties:
Name: !Sub /SDLF/Glue/${pDatasetName}/StageDataCatalog
Type: String
Value: !Ref rGlueDataCatalog
Description: !Sub "${pDatasetName} stage metadata catalog"

rRawGlueDataCatalog:
Type: AWS::Glue::Database
Expand All @@ -258,6 +266,22 @@ Resources:
Value: !Ref rRawGlueDataCatalog
Description: !Sub "${pDatasetName} raw metadata catalog"

rAnalyticsGlueDataCatalog:
Type: AWS::Glue::Database
Properties:
CatalogId: !Ref AWS::AccountId
DatabaseInput:
Description: !Sub "${pDatasetName} analytics metadata catalog"
Name: !Sub ${pOrg}_${pDomain}_${pEnvironment}_${pDatasetName}_analytics

rAnalyticsGlueDataCatalogSsm:
Type: AWS::SSM::Parameter
Properties:
Name: !Sub /SDLF/Glue/${pDatasetName}/AnalyticsDataCatalog
Type: String
Value: !Ref rAnalyticsGlueDataCatalog
Description: !Sub "${pDatasetName} analytics metadata catalog"

rGlueSecurityConfiguration:
Type: AWS::Glue::SecurityConfiguration
Condition: NotUseLegacyTeam
Expand Down

0 comments on commit 6d7b84b

Please sign in to comment.