-
Notifications
You must be signed in to change notification settings - Fork 0
/
sc-glue-launchrole.yml
51 lines (50 loc) · 1.67 KB
/
sc-glue-launchrole.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
Description: "ServiceCatalog Glue Launch Role. (fdp-1p5rtglue)"
Resources:
GlueLaunchRole:
Type: 'AWS::IAM::Role'
Properties:
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Principal:
Service:
- servicecatalog.amazonaws.com
Action:
- 'sts:AssumeRole'
Path: /
Policies:
- PolicyName: GlueLaunchPolicy
PolicyDocument:
Version: 2012-10-17
Statement:
- Sid: GluePolicy
Effect: Allow
Action:
- catalog-user:*
- cloudformation:CreateStack
- cloudformation:DeleteStack
- cloudformation:DescribeStackEvents
- cloudformation:DescribeStacks
- cloudformation:GetTemplateSummary
- cloudformation:SetStackPolicy
- cloudformation:ValidateTemplate
- cloudformation:UpdateStack
- s3:GetObject
- glue:*Crawler
- glue:*Database
Resource: '*'
- Sid: PassRole
Effect: Allow
Action: iam:PassRole
Resource:
- arn:aws:iam::*:role/*Glue*
Condition:
ForAnyValue:StringEqualsIfExists:
iam:PassedToService:
- glue.amazonaws.com
Outputs:
LaunchRoleArn:
Value: !GetAtt GlueLaunchRole.Arn
LaunchRoleName:
Value: !Ref GlueLaunchRole