Last active
May 11, 2022 14:08
-
-
Save travispaul/3fa46a4897595496e4de612757d3ac73 to your computer and use it in GitHub Desktop.
Example Terraform configuration using Vultr object store for state backend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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