Skip to content

Commit c2b5167

Browse files
Update sra-patch_mgmt-configuration-role.yaml
1 parent a3e7e98 commit c2b5167

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

aws_sra_examples/solutions/patch_mgmt/patch_mgmt_org/templates/sra-patch_mgmt-configuration-role.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Parameters:
7474
Default: sra-patch-mgmt-org
7575
Description: The SRA solution name. The default value is the folder name of the solution
7676
Type: String
77-
pPatchMgrEC2ProfileRoleName:
77+
pPatchMgrEC2ProfileName:
7878
Default: patch-mgr-ec2-profile
79-
Description: An EC2 profile that can be used if having problems with the Default Host Configuration setting.
79+
Description: An EC2 Instance profile that can be used if having problems with the Default Host Configuration setting.
8080
Type: String
8181

8282
Resources:
@@ -270,8 +270,8 @@ Resources:
270270
- Key: sra-solution
271271
Value: !Ref pSRASolutionName
272272

273-
rPatchMgrEC2ProfileRoleName:
274-
Type: AWS::IAM::Role
273+
rPatchMgrEC2ProfileName:
274+
Type: AWS::IAM::InstanceProfile
275275
Metadata:
276276
cfn_nag:
277277
rules_to_suppress:
@@ -282,7 +282,7 @@ Resources:
282282
- id: W28
283283
reason: Explicit role name provided
284284
Properties:
285-
RoleName: !Ref pPatchMgrEC2ProfileRoleName
285+
RoleName: !Ref pPatchMgrEC2ProfileName
286286
AssumeRolePolicyDocument:
287287
Version: 2012-10-17
288288
Statement:
@@ -291,7 +291,7 @@ Resources:
291291
Principal:
292292
Service:
293293
- ec2.amazonaws.com
294-
Path: "/service-role/"
294+
Path: "/"
295295
ManagedPolicyArns:
296296
- !Sub arn:${AWS::Partition}:iam::${AWS::Partition}:policy/AmazonSSMManagedInstanceCore
297297
Tags:

0 commit comments

Comments
 (0)