Skip to content

Commit

Permalink
add scaffolding tf code
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Jun 10, 2024
1 parent ae9f646 commit 2836faf
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
8 changes: 8 additions & 0 deletions backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
terraform {
backend "s3" {
bucket = "kunduso-terraform-remote-bucket"
encrypt = true
key = "tf/add-aws-lambda-terraform/terraform.tfstate"
region = "us-east-2"
}
}
19 changes: 19 additions & 0 deletions provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.53.0"
}
}
}

provider "aws" {
region = var.region
access_key = var.access_key
secret_key = var.secret_key
default_tags {
tags = {
Source = "https://github.com/kunduso/add-aws-lambda-terraform"
}
}
}
20 changes: 20 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#Define AWS Region
variable "region" {
description = "Infrastructure region"
type = string
default = "us-east-2"
}
#Define IAM User Access Key
variable "access_key" {
description = "The access_key that belongs to the IAM user"
type = string
sensitive = true
default = ""
}
#Define IAM User Secret Key
variable "secret_key" {
description = "The secret_key that belongs to the IAM user"
type = string
sensitive = true
default = ""
}

0 comments on commit 2836faf

Please sign in to comment.