-
Notifications
You must be signed in to change notification settings - Fork 227
/
sc-glue-ra.yml
56 lines (55 loc) · 1.85 KB
/
sc-glue-ra.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
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
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
AWSTemplateFormatVersion: 2010-09-09
Description: 'This Cloudformation template creates a glue crawler.(fdp-2o24sdsdpoh). Please review the cloudformation template and ensure that configuration of resources (such as SchemaChangePolicy and others) created meet your security standards and expectations. '
Parameters:
CrawlerName:
Description: Enter a name of crawler.
Type: String
Default: ""
DatabaseName:
Description: Enter a name of crawler.
Type: String
Default: ""
S3Path:
Description: Full S3 path for crawling data from(e.g. s3://<bucketname>/data)
Type: String
Default: ""
IAMRoleARN:
Description: IAMRoleARN to be used for crawling.
Type: String
Default: ""
Resources:
MyCrawler2:
Type: AWS::Glue::Crawler
Properties:
Name: !Ref CrawlerName
Role: !Ref IAMRoleARN
DatabaseName: !Ref MyDatabase
Targets:
S3Targets:
- Path: !Ref S3Path
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "LOG"
MyDatabase:
Type: AWS::Glue::Database
Properties:
CatalogId: !Ref AWS::AccountId
DatabaseInput:
Name: !Ref DatabaseName
Outputs:
Crawler:
Value: !Join
- ''
- - 'https://console.aws.amazon.com/glue/home?#crawler:name='
- !Ref MyCrawler2
- /
Description: Database populated by the crawler
Database:
Value: !Join
- ''
- - 'https://console.aws.amazon.com/glue/home?#database:name='
- !Ref MyDatabase
- /
Description: Database populated by the crawler