Skip to content

Commit 225ff62

Browse files
committed
Fixing bug in policy syntax and key arn type
1 parent e7f4d01 commit 225ff62

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

deploy.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,16 @@ Parameters:
7373
Type: AWS::EC2::Subnet::Id
7474
KmsKeyArn:
7575
Description: "The KMS Key to use for Encryption"
76-
Type: AWS::KMS::Key::Id
76+
Type: String
7777

7878
Resources:
7979
RedshiftLoaderIamPolicy:
8080
Type: "AWS::IAM::Policy"
8181
Properties:
8282
PolicyName: "RedshiftLambdaLoaderPolicy"
83+
Roles:
84+
- !Ref EC2ContainerRole
85+
- !Ref LambdaTriggerRole
8386
PolicyDocument:
8487
Version: "2012-10-17"
8588
Statement:
@@ -147,8 +150,6 @@ Resources:
147150
Action:
148151
- sts:AssumeRole
149152
Path: "/"
150-
Policies:
151-
- !Ref RedshiftLoaderIamPolicy
152153

153154
LambdaTriggerRole:
154155
Type: "AWS::IAM::Role"
@@ -164,8 +165,6 @@ Resources:
164165
Action:
165166
- sts:AssumeRole
166167
Path: "/"
167-
Policies:
168-
- !Ref RedshiftLoaderIamPolicy
169168

170169
MyInstanceProfile:
171170
Type: AWS::IAM::InstanceProfile

0 commit comments

Comments
 (0)