github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/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 description: |- 6 The Amazon Web Services (AWS) provider is used to interact with the many resources supported by AWS. The provider needs to be configured with the proper credentials before it can be used. 7 --- 8 9 # AWS Provider 10 11 The Amazon Web Services (AWS) provider is used to interact with the 12 many resources supported by AWS. The provider needs to be configured 13 with the proper credentials before it can be used. 14 15 Use the navigation to the left to read about the available resources. 16 17 ## Example Usage 18 19 ``` 20 # Configure the AWS Provider 21 provider "aws" { 22 access_key = "${var.aws_access_key}" 23 secret_key = "${var.aws_secret_key}" 24 region = "us-east-1" 25 } 26 27 # Create a web server 28 resource "aws_instance" "web" { 29 ... 30 } 31 ``` 32 33 ## Argument Reference 34 35 The following arguments are supported in the `provider` block: 36 37 * `access_key` - (Required) This is the AWS access key. It must be provided, but 38 it can also be sourced from the `AWS_ACCESS_KEY_ID` environment variable. 39 40 * `secret_key` - (Required) This is the AWS secret key. It must be provided, but 41 it can also be sourced from the `AWS_SECRET_ACCESS_KEY` environment variable. 42 43 * `region` - (Required) This is the AWS region. It must be provided, but 44 it can also be sourced from the `AWS_DEFAULT_REGION` environment variables. 45 46 * `max_retries` - (Optional) This is the maximum number of times an API call is 47 being retried in case requests are being throttled or experience transient failures. 48 The delay between the subsequent API calls increases exponentially. 49 50 * `allowed_account_ids` - (Optional) List of allowed AWS account IDs (whitelist) 51 to prevent you mistakenly using a wrong one (and end up destroying live environment). 52 Conflicts with `forbidden_account_ids`. 53 54 * `forbidden_account_ids` - (Optional) List of forbidden AWS account IDs (blacklist) 55 to prevent you mistakenly using a wrong one (and end up destroying live environment). 56 Conflicts with `allowed_account_ids`. 57 58 * `dynamodb_endpoint` - (Optional) Use this to override the default endpoint URL constructed from the `region`. It's typically used to connect to dynamodb-local. 59 60 * `kinesis_endpoint` - (Optional) Use this to override the default endpoint URL constructed from the `region`. It's typically used to connect to kinesalite. 61 62 * `token` - (Optional) Use this to set an MFA token. It can also be sourced from the `AWS_SECURITY_TOKEN` environment variable.