Week 3 Graded Programming Assignment 2

In the step of 5 - Enhancing Security. When savings the needed steps, it shows like this. What should I do?
You may be missing IAM policies that allow ModifySecurityGroupRules. You are not authorized to perform this operation. User: arn:aws:sts::891377118531:assumed-role/voclabs/user3698452=Hnin_Ei_Khaing is not authorized to perform: ec2:ModifySecurityGroupRules on resource: arn:aws:ec2:us-east-1:891377118531:security-group/sg-0f8a1aebc61df705c because no identity-based policy allows the ec2:ModifySecurityGroupRules action. Encoded authorization failure message: Af4xzXmzLFRDIya_5lpq5cUgSWMaAlGTS_HInkcn69GinTPZdDb5eGGWQWRjV3uim0n5b0D_kTILdwgf3T5RNPe0WAEXA7dQlQNQfVV4G4uERubMiXt70Y6Q5jiQ5__3rlJYlw5Nipc3psvefdKwtRW6oLptEQY6oSiq1fTPM4hOLFieyRDPOs5eDlZEGw5p1iM6lIWrFihX7ZQT73RGobLNjgUV2XukgYLk3BH5Dsb9_Jof9rGqYM6RyGj4tVE8tmIu3m5lxJVL2vwB3TdBII-ib0_n169ApHcm_KGoebZDq1dCKC5HRtP1C-9hokQSGOydz8nyiwSqmrMImOKqx8qD_ZnTcessDpuZ_AwF7IZRjsE2mqCS302kzcjsPzaxx1kgkSJBOj7q9InFU8xwJqiYP16Pr5O1QP9IppMH-B06EMhm3uRLED6XgLm79NUydB7K_fBxnMUP8e7-aKfqzOldokzYsyDH5tBDnuDUuAdtePDGUTZhGqmP7Q0lFbUptsDxZ2THYRI59oBEaEm8xCRj24SW8-aloAe0rDX7wVWdDNFCd2p69IzfOq-50WuuFbVPFCjiOuNCBxu_NH971wr-2vFOgjPQRFb82dffqlQ_3QmiW7WR4Xr-dvuHaibL6XPdFQk-Et0hIWTYhs5uwrAWkQJz7UYtcJ9h7ZJGAIXKAsPx9GlKY_vSP-xw7LAPTNyNQzR–k3qXB–030Ls3G2dMSsz6n5fEliHJAczJewi3SeoQuBG3Af0iYV-R7ne7Um9Hl4CchIJjp5U2g6gk3mkCvp3kcQOhYyY4ozZV2EXQP8mlliIlWo3VYK6CVEuALWY_VsEAXDkHKaoLdAVEaS9rBJMMS3h70Z4V2uqHs-6CyClSHnHuh0N8_Di_zDtsP9UmYdJrfQUoxj-VlKo3YpvFvC1jh5DBVo0bwx3A

Hello @ycchek ,
I could reproduce the error when I modify the existing rule instead of adding a new one. :

Solution is to delete the current rule then add the new one (Step 5.5) and save:

1 Like