forked from linuxacademy/content-terraform-2021
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from hyp0th3rmi4/feature/aws-profile-support
Added support for AWS profile
- Loading branch information
Showing
4 changed files
with
66 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
variable aws_profile { | ||
type = string | ||
description = "The name of the profile to configure for the AWS CLI to provision infrastructure" | ||
default = "default" | ||
} | ||
|
||
variable aws_region { | ||
type = string | ||
description = "The name of the designated region to deploy the infrastructure" | ||
default = "us-east-1" | ||
} | ||
|
||
|
||
provider "aws" { | ||
profile = var.aws_profile | ||
region = var.aws_region | ||
} |
This file contains 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
This file contains 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