Unable to Launch EC2 instance using terraform

Hi, I am not able to launch EC2 instance using terraform neither via AWS cloud lab in KodeKloud or AWS+terraform lab.

I am getting unauthorized error below:

│ Error: creating EC2 Instance: UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message: MzEWdiVt8NMb740JnaTU9rhHcGjT7MNyfd3TsLPhnhEbyiQjjWjRl8YVlUcGwtlrZO-xA-r0bbbdsGeVyl3s2tN8Cff_J7F-SHGHPjNXGHtlZwsQAlLcMsthfoI31NzrBEBifkX7MhdupzKo9r1G_TW5hCDY98i5_z9k6m86EMHZc5s7UuQBpvDkUJGVywvxbvoJSg5rEiJG-JUdl2hJ9nnml8jAtcfYdRxjJ-N8rNWtP19sMlblk-OaVxLiYzafyCZxV27431ilY1vVdlIR3brr5R1OllJT8t_7omUxXhoqxDnFHwyoqBPKNKf1-bsDXKcbyb0EEHTNX79-35UTHM2XVyHlrxwJXZ9QEeYvyGMBr62kUgBdmqhOmg1uS0gVZUP1FE67gAFGSho4YxSBh7PEg29iRtzBd7XBk3MVfcPLYk2Lk0f0xieSGVOxfsWm3cTi_FStT5G0OKVTCGCNhMIumA0cTtW4lVjj1qhECJ83N5h8b3gLPvUBWN0Vt6iWR8keKuxrK4TslQi3-vZhmCwnSiHYS9YBYaAZ_pFp8xE2AQeJMYanv0UMU3JTliipMrXeJVsNxsJG9qDB2gxe0F31m6kIoe3bEBGh0bEoc_C3btpXCTgWk7UJQu6V1m2lW7IX9X5fBLGGJAcDcYHJjJqhD6wu-OGQcYqUTShV2x9i9EBz_Y_CH1_P8F4fdF1LvW44wwCYNwzEWj6eTtohxbWZzdgnZdHJEFGUioClf2BQX4gQOLzkmHkeS16S-0VgcfRzzFkm1XzpHFVLAU4LTauGjT8UHr4At_UK7tN9_uezKqso2FAD7_yIic7qneDPK7aT1dXOoljfaqczFftLLd1bp5dI2IaqsZQHeXIuEiD0uKpS_4oquK_RRcUALstkkKNa88iQXW6P7vMwMJIPKA-Xhg
│ status code: 403, request id: 174006ba-67a3-4c6b-aff7-3efa9a873955

Thank you

Hi,

Which characteristic you provide for your EC2 instance? You need to be aligned with the requirements

Regard