Open muralikrishna9581 opened 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @muralikrishna9581 👋 Thank you for taking the time to raise this! In this case, it looks like you need to take a look at the token that you're providing to authenticate the provider, as the error is indicating that it's not valid:
api error InvalidClientTokenId: The security token included in the request is invalid.
Thank you lot sharing the info.next how to i will do.can you please share steps
@muralikrishna9581 Your configuration requires the AWS credentials in the filesystem which is running the terraform commands. If your aws
provider block is how it is in your code, you would need to provide your AWS credentials in one of the ways specified here.
I entered to terraform apply command in vs code. but i got below error. pls suggest Error: creating EC2 Instance: UnauthorizedOperation: You are not authorized to perform this operation. Encoded authorization failure message: jx3jPZ-rb36N6LwLJFtO6vmNpV9eH2o1bwVmEh66ux_cIglZ5hrC3JGyOoknv8ya4chXCQCJX59kjM68Mkze8MbYJgJDA1S0FY-FOIonO7HXIXNhkHK-US5wCd95zWPtBxdF7kfY1PoBoXY9QGrKyHM4Z5mkaOwjYvSdtT5vrP4Vv0uBlzgsCxUWvxR7KAdJbtu-4TJitqQcvEzG_sbDDtes3KyZOrGx6JebzAVKKQlIrw7bc2kYZEksBqwSAc28pbiC-5Mn9d_djgP-NZ4WWmbzeNqDLtt4tIytKYDdfyKmb2PgDNSuqkI3G4ZMXfIWyHCgmBdkP_k3b0d7w49sxbeqtqlnRKBAh-qkovtxqqlIdR7a9lI_E1bGbfvpC2mQIrd2mS_Gcc66hoRkz9kkw_y0yFp4Ut1bfA0CYDWb_D_90cFPSYz5QCIAuKFvu9zNRnsxd4UkdUtXNcDWGzd3e5c9a08QtmxTsoBRSB2nxph-YqDRr8m65wGGAuQMrtUl9ZQRkVNEfZYUh99q-X9zpj_nW4OhGyu6YM1-ZH0nX_F_xXKOALkkR15ijQhikHv8842IM2hX5JENIB2Q6WFEqmTbdrz9A9ly9N0IP_mMTcFe6VYwRtt296g3PEQVsSJRk3fmu7abNFBXuS9jWP4yzNSTQx-dDg status code: 403, request id: 64dcfc82-d4fe-4c29-956f-00bcf4bd2cdb
with aws_instance.public_inst-2,on vpcterraform.tf line 88, in resource "aws_instance" "public_inst-2"88: resource "aws_instance" "public_inst-2" {
What does this command reveal:
aws sts decode-authorization-message --encoded-message 'jx3jPZ-rb36N6LwLJFtO6vmNpV9eH2o1bwVmEh66ux_cIglZ5hrC3JGyOoknv8ya4chXCQCJX59kjM68Mkze8MbYJgJDA1S0FY-FOIonO7HXIXNhkHK-US5wCd95zWPtBxdF7kfY1PoBoXY9QGrKyHM4Z5mkaOwjYvSdtT5vrP4Vv0uBlzgsCxUWvxR7KAdJbtu-4TJitqQcvEzG_sbDDtes3KyZOrGx6JebzAVKKQlIrw7bc2kYZEksBqwSAc28pbiC-5Mn9d_djgP-NZ4WWmbzeNqDLtt4tIytKYDdfyKmb2PgDNSuqkI3G4ZMXfIWyHCgmBdkP_k3b0d7w49sxbeqtqlnRKBAh-qkovtxqqlIdR7a9lI_E1bGbfvpC2mQIrd2mS_Gcc66hoRkz9kkw_y0yFp4Ut1bfA0CYDWb_D_90cFPSYz5QCIAuKFvu9zNRnsxd4UkdUtXNcDWGzd3e5c9a08QtmxTsoBRSB2nxph-YqDRr8m65wGGAuQMrtUl9ZQRkVNEfZYUh99q-X9zpj_nW4OhGyu6YM1-ZH0nX_F_xXKOALkkR15ijQhikHv8842IM2hX5JENIB2Q6WFEqmTbdrz9A9ly9N0IP_mMTcFe6VYwRtt296g3PEQVsSJRk3fmu7abNFBXuS9jWP4yzNSTQx-dDg'
ok. you can tell how to do .pls suggest
You'll need the AWS CLI tool which you can install following the instructions at https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html. Then just copy and paste the command I wrote above.
ok tq u so much ur hlp
Description
Actually, I'm creating vpc by using terraform in vs code. I think max i written code correctly. terraform init command is also successfully worked. then I entered into terraform plan command in vs code. i got below error.c please see attached pic. can anyone help me.
i written code as below format.
I got below error.
References
No response
Would you like to implement a fix?
None