My available resources are
OS - ubuntu 18.04 | Terraform cli - Terraform v0.12.9 | user - root login
My problem is - I want tfstate to store remotely backend by s3 so I created manually, a
s3 bucket - sellist-infra
for that I created backend.tf
file and my terraform script in below , when I terraform init
the error in below .
What's wrong with the script ?
provider "aws" {
acces_key = "**************"
secret_key = "**************"
}
terraform {
backend "s3" {
bucket = "sellist-infra"
key = "terraform/sellist/do/prod/terraform.tfstate
endpoint = "nyc3.digitaloceanspaces.com"
region = "us-east-1"
profile = "sellist-do"
skip_credentials_validation = true
skip_get_ec2_platforms = true
skip_requesting_account_id = true
skip_metadata_api_check = true
}
}
***OUTPUT***
Initializing the backend...
Warning: "skip_requesting_account_id": [DEPRECATED] The S3 Backend no longer automatically looks up the AWS Account ID and this attribute is no longer used.
Warning: "skip_get_ec2_platforms": [DEPRECATED] The S3 Backend does not require EC2 functionality and this attribute is no longer used.
Error: Failed to get existing workspaces: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors