Skip to content

Commit

Permalink
docs/provider: Split Terraform 0.13 and later example configuration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bflad committed Sep 17, 2020
1 parent 5f5ba5d commit 9fac8c7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ Use the navigation to the left to read about the available resources.

## Example Usage

Terraform 0.13 and later:

```hcl
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = "us-east-1"
}
# Create a VPC
resource "aws_vpc" "example" {
cidr_block = "10.0.0.0/16"
}
```

Terraform 0.12 and earlier:

```hcl
# Configure the AWS Provider
provider "aws" {
Expand Down

0 comments on commit 9fac8c7

Please sign in to comment.