Alguém passou por esse erro?
Depois de rodar o terraform apply, começou a retornar o erro como se eu não tivesse permissão.
Error: creating EC2 Instance: UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message: iHptJqkfGbHG1WxgllnQu1PxKF53mJpD2B9QwbNZmDZpTNWFr8_oXcoxAQ9HtRWcyYNQzYbBokXQELYqXLutTuFuLQwBGgmyCFN7MKvmVjARQsEqSn4Mz7MTR_DVNxA9MFF-tJBq7yoKxWdthH-MuPWb2URPHlt3uj8VW9H6FL_I4OWyUgYrXO8Epwr5oUZ5gDAauUTng3sZbzqxldkK1OVb962x4Vbqc37Q1X6AuxgbMhoZkn_DRKGBqj4-viij7gAVpxm41Dnj7gYgy05OTPgcQTg2U0ycQb3GuGmLQJ_oSE3pr8AYnTR_B3Ep3UvU_Cx-uZuBDj0SrOYKyZTILBWnKFhR70SdUqopYrsVUctaNq1m2kSCr4ab92quoEgjUP0aGVK5aJDYIJX2ZQ0cHOtmv0OgQ0pTJqRwqO3GJy4lW-RxU4gg4LuioODbSodCRgR76LjafW6rUwpb3TS7B9P818VVce8jy__Xq8RnDLV1xOj72VZzI9dYPIarmkQ9OaxEMtN1wzoNLT91fGIPxbYqtphXGTgLH8PHW4L1t4M375W03ShJUmFLDwfzLqPUOjnCtTAEgKy_AhwfZwdWGAsSlQxz9U8bRrpKUyDr5jPKP9x4RbVmCY0ZIoIjX1xprpYDchADP7pyTtQiNX1jDiigvgPx3riyo1nrD3DynIQ4k3fgqzTyfInSFC0kDn1ArYY_eEG_hHdJ62A-wRoZQxG8krVHqOr41Dy7a7XHF2wNPwMBKGmstjc-sOed55A6UGvnVrJIvbMmCWial3ybw6-uFLpKeK__wzGLdlI4LOsFS7vqgEmuAd7HJXT8xvTX3E_zFeLbxxyM1uUyaU5OSbaGU2l-rE0eMC8Bb5nNy8Pnz9fGtWHv7hxajdX1B-lZdSvrd_z__Y09q2PozBJSUd_A0-l0CagDQ_ObcEV2yp0YPLBmA44TuVQBVXf7FkwPgm2WdxU0hY--ICzIA5BrIlfmCm6nrkXXIfSnDsmpOcmtM54QKeCaqtGgDXzDi9fI7bHNokrvZKPYZmuw0Uo6ABJY-pJLynmOM6KUZMopfvJYNGOLlYYwl1xh4axkGNb7z4e_KwSqpStBpw625lxRl8n6JPGEXzYII6aXZvGwAa-DhBildQV71cmv7Un3YibIMBVcJvKmFlVJgUKX3qu5z75EXX_ol19KUjb7qylJeGoDMPau-hz-FwEa4RMD_ZSUoMtAESPRpnSqsVoK3_-CnJKnUX30wlZq9vmpsboKHLRbP303Cn1zOTXAOL8K407_6ZuRJxMp9nica2Ej0p5jV08MED5pqW1FjuQ8IqtrvYojsLpY1ObKX4qvUHJERYQcmEurakkE4KvpCsOB9dDA7zztdcxW4xeW8z-g1lwFGGFU4VYvabKr4A8-wdqUvg-3Bip1J9XmGJ-i5mY1vlxlF6qUoj5cb7eZ-TAaWQ
│ status code: 403, request id: f93f8c68-ced5-49ad-8d38-c5ed46851da8
│
│ with aws_instance.app_server,
│ on main.tf line 18, in resource "aws_instance" "app_server":
│ 18: resource "aws_instance" "app_server" {
Não entendi o motivo.
Meu código está igual ao do vídeo.