github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/website/source/docs/providers/aws/index.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "Provider: AWS"
     4  sidebar_current: "docs-aws-index"
     5  ---
     6  
     7  # AWS Provider
     8  
     9  The Amazon Web Services (AWS) provider is used to interact with the
    10  many resources supported by AWS. The provider needs to be configured
    11  with the proper credentials before it can be used.
    12  
    13  Use the navigation to the left to read about the available resources.
    14  
    15  ## Example Usage
    16  
    17  ```
    18  # Configure the AWS Provider
    19  provider "aws" {
    20      access_key = "${var.aws_access_key}"
    21      secret_key = "${var.aws_secret_key}"
    22      region = "us-east-1"
    23  }
    24  
    25  # Create a web server
    26  resource "aws_instance" "web" {
    27      ...
    28  }
    29  ```
    30  
    31  ## Argument Reference
    32  
    33  The following arguments are supported:
    34  
    35  * `access_key` - (Required) This is the AWS access key. It must be provided, but
    36    it can also be sourced from the `AWS_ACCESS_KEY` environment variable.
    37  
    38  * `secret_key` - (Required) This is the AWS secret key. It must be provided, but
    39    it can also be sourced from the `AWS_SECRET_KEY` environment variable.
    40  
    41  * `region` - (Required) This is the AWS region. It must be provided, but
    42    it can also be sourced from the `AWS_REGION` environment variables.
    43