Hi Team
while i’m executing the terraform script to create the EC2,vpc and among others, but remain are resources creating and EC2 instance creation failed and below error getting.
ERROR :
Error: creating EC2 Instance: UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message: oBYAI2f0n4tDIcmHPf2YlUokY0UIzbTT5EZnpJXPYHJv-u6W7Czmihd9tE6cOcwTuW8gRVBJSErtSboy_nlCpbNQ8ewwb0wIS4FIWO3aUhsZxQXTeC8_qX75NWMMsV6z9b8v6raAMcv7vhmGAk-ShbNSlWaNwbkrO6wkVuihkiWVYtLYw1aZLdfzA8GWS1q56LFM9jAXDUDE5azNv2E3cENPU5fSNqDMMl-jdE_3Lez4UkNfr7fuBWojUeCrL5SN9fLRvIAzU1nUiC3HMO6ve_zAf8kaoION49JgLYURLLOl26TKJr8c0ImUyib-6aLJ0YLCvvdmnTwg71CancEZeMye9aJQYe76_rLrGXH7AU0rgSXKo0Awfmy0uIYsktHjmqWdDP-Ep0VtTQcoq8Hl8zYOdLUiylo2uvLMPN7R13Xq1sH_bY714lEhdDC30somvH_qTmPi4JbCt9MIBRXij58IakriVsaO7Wq27KFnCX5e6NbpgVVV_Y6qvlmm7SfIXqyp5OBL5eeRz5fY_hxKOCntc-s3FSf0EIssIOymS8X7riiDM_xOfxr2qBIX2BeDVBWbp1CtvQF1sArgIaQXR7C9TKSSKqZi7RuXx_iESZDhBd6IGzw64AeINiH2Lny4vHbZqwvCDKD9PuKPICMLShnjYhxgZy30mtpHCpWqF-ZA2eK89mL8wfjw5zxwD4d6u_OJSJyw2JbdieKUmwEciY6S7D8t-Ec5Y7WQtOG85JFeBmYq58BZV2afrux-QfqA2oorJ5Qr4526gWBoIY3sM7aMQFaGXs-Ibe16x1tl33eTdi3C6QiRDag
│ status code: 403, request id: 5a19b535-df90-463e-9ce1-97928b07a815
│
│ with aws_instance.tc_servers,
│ on EC2.tf line 1, in resource “aws_instance” “tc_servers”:
│ 1: resource “aws_instance” “tc_servers” {
kindly help on this.
Below are the details: