File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
aws_sra_examples/solutions/patch_mgmt/patch_mgmt_org/templates Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ Parameters:
74
74
Default : sra-patch-mgmt-org
75
75
Description : The SRA solution name. The default value is the folder name of the solution
76
76
Type : String
77
+ pPatchMgrEC2ProfileRoleName :
78
+ Default : patch-mgr-ec2-profile
79
+ Description : An EC2 profile that can be used if having problems with the Default Host Configuration setting.
80
+ Type : String
77
81
78
82
Resources :
79
83
rConfigurationRole :
@@ -265,3 +269,31 @@ Resources:
265
269
Tags :
266
270
- Key : sra-solution
267
271
Value : !Ref pSRASolutionName
272
+
273
+ rPatchMgrEC2ProfileRoleName :
274
+ Type : AWS::IAM::Role
275
+ Metadata :
276
+ cfn_nag :
277
+ rules_to_suppress :
278
+ - id : F3
279
+ reason : Actions require * in permissions policy
280
+ - id : W11
281
+ reason : Actions require * in resource
282
+ - id : W28
283
+ reason : Explicit role name provided
284
+ Properties :
285
+ RoleName : !Ref pPatchMgrEC2ProfileRoleName
286
+ AssumeRolePolicyDocument :
287
+ Version : 2012-10-17
288
+ Statement :
289
+ - Action : sts:AssumeRole
290
+ Effect : Allow
291
+ Principal :
292
+ Service :
293
+ - ec2.amazonaws.com
294
+ Path : " /service-role/"
295
+ ManagedPolicyArns :
296
+ - !Sub arn:${AWS::Partition}:iam::${AWS::Partition}:policy/AmazonSSMManagedInstanceCore
297
+ Tags :
298
+ - Key : sra-solution
299
+ Value : !Ref pSRASolutionName
You can’t perform that action at this time.
0 commit comments