use input variables for aws variables

This commit is contained in:
Ryan Malloy 2024-03-28 18:39:16 +00:00
parent 769ce803de
commit ace065d9d2
1 changed files with 12 additions and 11 deletions

View File

@ -1,12 +1,13 @@
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
}
provider "aws" {
region = "us-east-1"
shared_credentials_files = ["~/.aws/credentials"]
profile = "vscode"
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = var.aws_region
access_key = var.aws_access_key
secret_key = var.aws_secret_key
}