Skip to content

Instantly share code, notes, and snippets.

@nivleshc
Created June 9, 2025 08:33
Show Gist options
  • Save nivleshc/264c408cf26fd86f0c9268794df643d1 to your computer and use it in GitHub Desktop.
Save nivleshc/264c408cf26fd86f0c9268794df643d1 to your computer and use it in GitHub Desktop.
This gist contains code from the file provider.tf which is part of the blog-photo-location-map repository.
provider "aws" {
region = local.region
default_tags {
tags = {
Project = local.lambda_function_name_prefix
}
}
}
terraform {
backend "s3" {
bucket = "<myterraformbucket>"
key = "<path-to-my-tfstate-file>/terraform.tfstate"
region = "ap-southeast-2"
use_lockfile = true
}
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.89.0"
}
archive = {
source = "hashicorp/archive"
version = "2.7.0"
}
local = {
source = "hashicorp/local"
version = "2.5.2"
}
}
required_version = "1.11"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment