Skip to content

Commit 9310e37

Browse files
authored
Update Terraform_Providers.md
1 parent 7307327 commit 9310e37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎beginners/providers/Terraform_Providers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Terraform’s documentation on providers can be found here:
1111
We will focus on AWS for example. We’ll need to configure an AWS provider with our region, at minimum.
1212
A simple version of the AWS provider looks like this:
1313

14-
```
14+
```hcl
1515
provider "aws" {
1616
region = "ap-south-1"
1717
}
@@ -30,7 +30,7 @@ AWS provider offers a different ways of passing credentials for authentication a
3030
3131
Using this method, you can pass the AWS **access_key** ID and **secret_key** within the provider code block as an argument.
3232

33-
```
33+
```hcl
3434
provider "aws" {
3535
region = "ap-south-1"
3636
access_key = "AKIAXXXXXMPLE"
@@ -41,7 +41,7 @@ provider "aws" {
4141
### Environment variables
4242
This method provide another way to specify configuration options and credentials. The following examples show how you can configure environment variables for the default user.
4343

44-
```
44+
```hcl
4545
provider "aws" {}
4646
```
4747

@@ -64,7 +64,7 @@ Once you have exported the keys, you can run the terraform commands.
6464
### Shared credentials file
6565
If you have [configured AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html) on your system earlier, credentials and default region informations will be stored in a plain-text under the default location of user's home directory `$HOME/.aws/credentials`. Terraform will check this location for the credentials. Optionally you can specify a different custom location by providing the `shared_credentials_file` argument
6666

67-
```
67+
```hcl
6868
provider "aws" {
6969
region = "ap-south-1"
7070
shared_credentials_file = "/home/tf_user/creds"

0 commit comments

Comments
 (0)