English 中文(简体)
AWS Terraform: │ Error: 组合Terraform AWS Provider的错误:验证供应商资格的错误:错误呼号: GetCallerIdentity:
原标题:AWS Terraform: │ Error: error configuring Terraform AWS Provider: error validating provider credentials: error calling sts:GetCallerIdentity:

错误:配置Terraform AWS Provider的错误:

1. 验证供应商资格的错误:错误词指: GetCallerIdentity:Operation mis STS: GetCallerIdentity, https response差 StatusCode: 403, RequestID: 95e52463-8cd7-038-b924-3a5d4ad6ef03, api mis InvalidClient Token Id: The security token included in the request is disabilities. with Provide[“registry.terraform.io/hashicorp/aws”], on Provide.tf line 1, in Provide "aws”1: Provide“aws”{

I have only two files.

  1. instance.tf
resource "aws_instance" "web" {
  ami           = "ami-068257025f72f470d"
  instance_type = "t2.micro"
    
  tags = {
    Name = "instance_using_terraform"
  }
}
  1. provider.tf
provider "aws" {
  region = "ap-east-1"
  access_key = "xxxx"
  secret_key = "xxxx/xxx+xxx"
}

“erorgram

问题回答

May be Your passed AWS configure region is different from your terraform provider region e.g: us-east-1 in AWS configure, us-east-1a in terraform provider region.

请将这些区域改为同样区域。

在我的个案中,这个问题是因为你的系统日期/时间是错误的。

3. 通过指挥确定我的大事8

timedatectl status timedatectl set-time HH:MM:SS

it will throw error saying "Failed to set time: NTP unit is active“if you already have set NTP service on your machine"

sudo timedatectl set-local-rtc true sudo timedatectl set-ntp false sudo timedatectl set-time "yyyy-MM-dd hh:mm:ss" timedatectl list-timezones sudo timedatectl set-timezone Europe/Zagreb sudo timedatectl set-ntp yes

在我的测试环境中,我使用了根本用户的存取和秘密接触钥匙,这些钥匙不可行。 在创建专用用户之后,错误不再发生。

我采取了以下步骤:

Created a user called terraform here Created a new group Administrators with attached permissions Administrator Access by following the wizard Copied access key and secret access key to ~/. aws /credentials aws access key =xxx aws secret access key=xxx Created ~/.aws/config [default] region=us-west-2

确保利用为你的非洲妇女论坛账户指定的缺省区

provider "aws" {
  region     = "eu-north-1" # < --- here 
  access_key = "**************"
  secret_key = "**************"
}

Check .aws folder(CONFIG FILE). Try this

aws sts get-caller-identity

{
    "UserId": "AIDAYMYFUCQM7K2RD9DDD",
    "Account": "111147549871",
    "Arn": "arn:aws:iam::111147549871:user/myself"
}

还向我们展示了你的主要。 参考文件,以及你如何界定准入。

Made mistake in the region where I declared entered the wrong namecode of region and access key - secret key + and / generating the error due to some symbols, you just need to try the new key till the access key contains only alphabetical string. (Symbols are lmao).

如果任何人都谈到这一问题,我发现,我的工作空间是在Terraform云为AWS证书设定的环境变量。 这些立场优先于我的当地全权证书,需要更新。

对我来说,我不得不更新我的供应商版本。 通过这里的所有建议,但都没有奏效。 我所要求的“提供者”版本是4.67.0,但需要更新,使其在我的卷宗上达到5.0,这要求我更新锁定的扶养选择,以便与经过改变的配置相匹配,进行“地形化——级”指挥。 这对我来说也是这样。

任何人都可能发现这一错误

Error: configuring Terraform AWS Provider: validating provider credentials: retrieving caller identity from STS: operation error STS: GetCallerIdentity, https response error StatusCode: 400 ... api error IncompleteSignature: ....  not a valid key=value pair  

检查贵方的全权证书档案中是否有线索,如线末。 第三世界学会非常乐于将这些东西 strip掉,并做精细的工作。 我走了很长的路要走下去。

In my case, I was demonstrating with the Credentials and files I downloaded from GitHub. I didn t change the credentials to my own. (Both the Access Key and the Secret Key). I changed it and it worked! I was on it for several weeks trying to figure what could have happened.

就我而言,错误是因为我没有违约组合声明。 当我创立时,它都发挥了作用。





相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签