-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaws.tf
More file actions
22 lines (20 loc) · 1020 Bytes
/
aws.tf
File metadata and controls
22 lines (20 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
# This backend configuration instructs Terraform to store its state in an S3 bucket.
backend "s3" {
bucket = "newsfit-state-locking-bucket-1104861342143743" # Name of the S3 bucket where the state will be stored.
key = "terraform/terraform.tfstate" # Path within the bucket where the state will be read/written.
region = "ap-northeast-2" # AWS region of the S3 bucket.
dynamodb_table = "newsfit_state-locking-ddb_1928746237856237819482156" # DynamoDB table used for state locking.
encrypt = true # Ensures the state is encrypted at rest in S3.
}
}
# Configuration for the AWS provider.
provider "aws" {
region = var.aws_region # AWS region where resources will be provisioned.
profile = "newsfit" # AWS CLI profile to use for authentication.
}