Skip to content

Instantly share code, notes, and snippets.

@travispaul
Last active May 11, 2022 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travispaul/3fa46a4897595496e4de612757d3ac73 to your computer and use it in GitHub Desktop.
Save travispaul/3fa46a4897595496e4de612757d3ac73 to your computer and use it in GitHub Desktop.
Example Terraform configuration using Vultr object store for state backend.
# https://www.vultr.com/docs/vultr-object-storage
terraform {
# Even though this example is using Vultr's object storage, the AWS_ACCESS_KEY
# and AWS_SECRET_ACCESS_KEY environment variables need to be defined.
# The values can be obtained from the object storage page at my.vultr.com
backend "s3" {
bucket = "your-bucket-name-here"
key = "/path/in/bucket/terraform.state"
endpoint = "ewr1.vultrobjects.com"
region = "us-east-1"
# Without this, terraform attempts to connect to sts.amazonaws.com
skip_credentials_validation = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment