Amazon web services 在aws-terraform中使用凭据获取accountid:getcalleridentity时出错
我为terraform管理员访问创建了一个aws帐户和一个IAM用户,并获得了我的凭据。 我现在正在尝试使用terraform在AWS中创建一个EC2实例Amazon web services 在aws-terraform中使用凭据获取accountid:getcalleridentity时出错,amazon-web-services,amazon-ec2,terraform,Amazon Web Services,Amazon Ec2,Terraform,我为terraform管理员访问创建了一个aws帐户和一个IAM用户,并获得了我的凭据。 我现在正在尝试使用terraform在AWS中创建一个EC2实例 provider "aws"{ access_key = "Axxxxxxxxx" secret_key = "Lxxxxxxxxxxxxxx" region="us-east-1" } resource "aws_instance" "example"{ ami="ami-0323c3dd2da7fb37d" instance_type="
provider "aws"{
access_key = "Axxxxxxxxx"
secret_key = "Lxxxxxxxxxxxxxx"
region="us-east-1"
}
resource "aws_instance" "example"{
ami="ami-0323c3dd2da7fb37d"
instance_type="t2.micro"
}
当我给出地形图时,我得到以下错误:
Error: error using credentials to get account ID: error calling sts:GetCallerIdentity: SignatureDoesNotMatch: Signature not yet current: 20200518T060344Z is still later than 20200518T041739Z (20200518T040239Z + 15 min.)
status code: 403, request id: 7d93e368-bf05-4110-9876-1bf6064dd255
on instance.tf line 1, in provider "aws":
1: provider "aws"{
我是AWS和terraform的新手。您能告诉我为什么会出现此错误吗?我尝试更新git bash。如果我遗漏了什么,请告诉我。您的系统时钟可能未配置 来自AWS论坛线程: API服务验证时间戳是否在实际时间的5分钟之内。如果系统时钟关闭时间超过5分钟,则API请求将失败
您的系统时钟可能未配置 来自AWS论坛线程: API服务验证时间戳是否在实际时间的5分钟之内。如果系统时钟关闭时间超过5分钟,则API请求将失败